Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBM PowerPC(PPC64le) redhat uses 4.14 as of 7.5 and 7.6 #1935

Merged
merged 1 commit into from
Aug 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/runtime_src/driver/xclng/drm/xocl/xocl_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
/* drm_dev_put was introduced with Linux 4.15 and backported to Red Hat 7.6. */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)
#define XOCL_DRM_DEV_PUT drm_dev_put
#elif defined(RHEL_RELEASE_CODE)
#elif defined(RHEL_RELEASE_CODE) && !defined(__PPC64__)
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,6)
#define XOCL_DRM_DEV_PUT drm_dev_put
#else
Expand Down Expand Up @@ -207,17 +207,19 @@ static inline void xocl_memcpy_toio(void *iomem, void *buf, u32 size)
#define XOCL_CHARDEV_REG_COUNT 16

#ifdef RHEL_RELEASE_VERSION

#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 6)
#define RHEL_P2P_SUPPORT_74 0
#define RHEL_P2P_SUPPORT_76 1
#if defined(__PPC64__)
#define RHEL_P2P_SUPPORT_74 0
#define RHEL_P2P_SUPPORT_76 0
#elif RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 6)
#define RHEL_P2P_SUPPORT_74 0
#define RHEL_P2P_SUPPORT_76 1
#elif RHEL_RELEASE_CODE > RHEL_RELEASE_VERSION(7, 3) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7, 6)
#define RHEL_P2P_SUPPORT_74 1
#define RHEL_P2P_SUPPORT_76 0
#define RHEL_P2P_SUPPORT_74 1
#define RHEL_P2P_SUPPORT_76 0
#endif
#else
#define RHEL_P2P_SUPPORT_74 0
#define RHEL_P2P_SUPPORT_76 0
#define RHEL_P2P_SUPPORT_74 0
#define RHEL_P2P_SUPPORT_76 0
#endif


Expand Down