Skip to content

Commit

Permalink
XRT OS Support for RHEl 8.8 and 9.2 (Xilinx#7603)
Browse files Browse the repository at this point in the history
* XRT OS Support for RHEl 8.8 and 9.2

Signed-off-by: Manoj Takasi <[email protected]>

* Made few changes to provide OS support for RHEL 8.8 and 9.2

Signed-off-by: Manoj Takasi <[email protected]>

---------

Signed-off-by: Manoj Takasi <[email protected]>
(cherry picked from commit 6eff2fc)
  • Loading branch information
ManojTakasi authored and michaellass committed Oct 19, 2023
1 parent 4e85918 commit 5a1b2ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/runtime_src/core/pcie/driver/linux/xocl/subdev/ulite.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ static void ulite_shutdown(struct uart_port *port)
mutex_unlock(&pdata->lock);
}

#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0)
#if (LINUX_VERSION_CODE > KERNEL_VERSION(6, 1, 0)) || defined(RHEL_9_2_GE)
static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
struct ktermios *old)
const struct ktermios *old)
#else
static void ulite_set_termios(struct uart_port *port, struct ktermios *termios,
const struct ktermios *old)
struct ktermios *old)
#endif
{
unsigned long flags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#define XOCL_BO_ARE (1 << 26)

// Linux 5.18 uses iosys-map instead of dma-buf-map
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || defined(RHEL_8_7) || defined(RHEL_9_1_GE)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || defined(RHEL_8_7_GE)
#define XOCL_MAP_TYPE iosys_map
#define XOCL_MAP_SET_VADDR iosys_map_set_vaddr
#define XOCL_MAP_IS_NULL iosys_map_is_null
Expand Down
8 changes: 4 additions & 4 deletions src/runtime_src/core/pcie/driver/linux/xocl/xocl_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@
#endif

#if defined(RHEL_RELEASE_CODE)
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 1)
#define RHEL_9_1_GE
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 2)
#define RHEL_9_2_GE
#endif
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)
#define RHEL_9_0_GE
#endif
#if RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(8, 7)
#define RHEL_8_7
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 7)
#define RHEL_8_7_GE
#endif
#if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 5)
#define RHEL_8_5_GE
Expand Down

0 comments on commit 5a1b2ee

Please sign in to comment.