Skip to content

Commit

Permalink
IBM PowerPC(PPC64le) redhat uses 4.14 as of 7.5 and 7.6 (Xilinx#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidz authored and houlz0507 committed Aug 30, 2019
1 parent bfc1bd5 commit dd21016
Showing 1 changed file with 11 additions and 9 deletions.
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

0 comments on commit dd21016

Please sign in to comment.