VirtualBox

Changeset 84255 in vbox


Ignore:
Timestamp:
May 11, 2020 2:32:23 PM (5 years ago)
Author:
vboxsync
Message:

Linux/GA: ticketref:19391 RedHat 8.2-rc1 kernel DRM backports to 4.18.0 kernels break Virtualbox GAs

Location:
trunk/src/VBox
Files:
4 edited

Legend:

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

    r83073 r84255  
    5252
    5353#if defined(RHEL_MAJOR) && defined(RHEL_MINOR)
     54# if RHEL_MAJOR == 8 && RHEL_MINOR >= 2
     55#  define RHEL_82
     56# endif
    5457# if RHEL_MAJOR == 8 && RHEL_MINOR >= 1
    5558#  define RHEL_81
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r83878 r84255  
    336336        info->apertures->ranges[0].size = pci_resource_len(dev->pdev, 0);
    337337
    338 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0)
     338#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0) || defined(RHEL_82)
     339        /*
     340         * The corresponding 5.2-rc1 Linux DRM kernel changes have been
     341         * also backported to older RedHat based 4.18.0 Linux kernels.
     342         */
    339343        drm_fb_helper_fill_info(info, &fbdev->helper, sizes);
    340 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_75)
     344#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_72)) && !defined(RHEL_82)
    341345        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
    342346#else
    343347        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
    344348#endif
    345 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
     349#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) && !defined(RHEL_82)
    346350        drm_fb_helper_fill_var(info, &fbdev->helper, sizes->fb_width,
    347351                               sizes->fb_height);
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r83073 r84255  
    313313#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
    314314                                 dev->vma_offset_manager,
    315 #elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0)
     315#elif LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) && !defined(RHEL_82)
    316316                                 DRM_FILE_PAGE_OFFSET,
    317317#endif
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r82968 r84255  
    476476#  define RHEL_81
    477477# endif
     478# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 2)
     479#  define RHEL_82
     480# endif
    478481#endif
    479482
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