VirtualBox

Changeset 98455 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 2, 2023 7:50:15 PM (23 months ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Additional build fixes for RHEL 9.1 and 9.2 kernels, bugref:10190, bugref:10237, bugref:10279, ticketref:21446, ticketref:21450.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r98349 r98455  
    5353/** Detect whether kernel mode setting is OFF. */
    5454#if defined(CONFIG_VGA_CONSOLE)
    55 # if RTLNX_VER_MIN(5,17,0) || RTLNX_RHEL_RANGE(8,7, 8,99)
     55# if RTLNX_VER_MIN(5,17,0) || RTLNX_RHEL_RANGE(8,7, 8,99) || RTLNX_RHEL_MIN(9,1)
    5656#  define VBOX_VIDEO_NOMODESET() drm_firmware_drivers_only() && vbox_modeset == -1
    5757# elif RTLNX_VER_MIN(4,7,0)
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r98103 r98455  
    186186#endif
    187187
    188 #if RTLNX_VER_MIN(6,0,0)
     188#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_MAJ_PREREQ(9,2)
    189189# include <drm/drm_framebuffer.h>
    190190#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r98103 r98455  
    4747#endif
    4848
    49 #if RTLNX_VER_MIN(6,0,0)
     49#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_MAJ_PREREQ(9,2)
    5050# include <drm/drm_edid.h>
    5151#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r98103 r98455  
    317317        tt->func = &vbox_tt_backend_func;
    318318#endif
    319 #if RTLNX_VER_MAX(4,17,0) && !RTLNX_RHEL_MAJ_PREREQ(7,6) && !RTLNX_SUSE_MAJ_PREREQ(15,1) && !RTLNX_SUSE_MAJ_PREREQ(12,5)
     319#if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_MAJ_PREREQ(9,2)
     320        if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined, 0)) {
     321#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
     322        if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined)) {
     323#elif RTLNX_VER_MIN(4,17,0) || RTLNX_RHEL_MAJ_PREREQ(7,6) || RTLNX_SUSE_MAJ_PREREQ(15,1) || RTLNX_SUSE_MAJ_PREREQ(12,5)
     324        if (ttm_tt_init(tt, bo, page_flags)) {
     325#else
    320326        if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) {
    321 #elif RTLNX_VER_MAX(5,11,0) && !RTLNX_RHEL_RANGE(8,5, 8,99)
    322         if (ttm_tt_init(tt, bo, page_flags)) {
    323 #elif RTLNX_VER_MAX(5,19,0)
    324         if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined)) {
    325 #else
    326         if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined, 0)) {
    327 #endif
     327#endif
     328
    328329                kfree(tt);
    329330                return NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette