VirtualBox

Changeset 94330 in vbox for trunk


Ignore:
Timestamp:
Mar 22, 2022 7:23:04 PM (3 years ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Introduce initial support for RHEL 8.6 kernels (another attempt to exclude 8.99), ​​bugref:4567.

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

Legend:

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

    r94328 r94330  
    4444#endif
    4545
    46 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     46#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    4747# include <drm/drm_aperture.h>
    4848#endif
     
    8383        int ret = 0;
    8484
    85 # if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     85# if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    8686#  if RTLNX_VER_MIN(5,15,0)
    8787        ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver);
     
    101101                goto err_drv_alloc;
    102102        }
    103 # if RTLNX_VER_MAX(5,14,0) && !RTLNX_RHEL_MAJ_PREREQ(8,6)
     103# if RTLNX_VER_MAX(5,14,0) && !RTLNX_RHEL_RANGE(8,6, 8,99)
    104104        dev->pdev = pdev;
    105105# endif
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r94329 r94330  
    233233 * transparently handles this change. Input argument is a pointer
    234234 * to struct drm_device. */
    235 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     235#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    236236# define VBOX_DRM_TO_PCI_DEV(_dev) to_pci_dev(_dev->dev)
    237237#else
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r94328 r94330  
    302302        }
    303303
    304 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     304#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    305305        ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.resource->num_pages, &bo->kmap);
    306306#elif RTLNX_VER_MIN(5,12,0) || RTLNX_RHEL_MAJ_PREREQ(8,5)
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r94328 r94330  
    633633        struct vbox_bo *vbox_bo = gem_to_vbox_bo(obj);
    634634
    635 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     635#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    636636        /* Starting from kernel 5.14, there is a warning appears in dmesg
    637637         * on attempt to desroy pinned buffer object. Make sure it is unpinned. */
     
    685685        *offset = vbox_bo_mmap_offset(bo);
    686686
    687 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     687#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    688688        ret = drm_vma_node_allow(&bo->bo.base.vma_node, file);
    689689        if (ret)
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r94328 r94330  
    861861        dst = vbox->cursor_data;
    862862
    863 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     863#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    864864        ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.resource->num_pages, &uobj_map);
    865865#elif RTLNX_VER_MIN(5,12,0) || RTLNX_RHEL_MAJ_PREREQ(8,5)
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r94329 r94330  
    4242#endif
    4343
    44 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     44#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    4545# include <drm/ttm/ttm_range_manager.h>
    4646#endif
     
    179179}
    180180
    181 #if RTLNX_VER_MAX(5,14,0) && !RTLNX_RHEL_MAJ_PREREQ(8,6)
     181#if RTLNX_VER_MAX(5,14,0) && !RTLNX_RHEL_RANGE(8,6, 8,99)
    182182static int vbox_bo_verify_access(struct ttm_buffer_object *bo,
    183183                                 struct file *filp)
     
    380380#endif
    381381        .evict_flags = vbox_bo_evict_flags,
    382 #if RTLNX_VER_MAX(5,14,0) && !RTLNX_RHEL_MAJ_PREREQ(8,6)
     382#if RTLNX_VER_MAX(5,14,0) && !RTLNX_RHEL_RANGE(8,6, 8,99)
    383383        .verify_access = vbox_bo_verify_access,
    384384#endif
     
    569569        .free   = vbox_gem_free_object,
    570570        .print_info = drm_gem_ttm_print_info,
    571 # if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     571# if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    572572        .mmap = drm_gem_ttm_mmap,
    573573# endif
     
    610610#endif
    611611
    612 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     612#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    613613        /* Initialization of the following was removed from DRM stack
    614614         * in 5.14, so we need to do it manually. */
     
    654654static inline u64 vbox_bo_gpu_offset(struct vbox_bo *bo)
    655655{
    656 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     656#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    657657        return bo->bo.resource->start << PAGE_SHIFT;
    658658#elif RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3)
     
    803803        vbox = file_priv->minor->dev->dev_private;
    804804
    805 #if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_MAJ_PREREQ(8,6)
     805#if RTLNX_VER_MIN(5,14,0) || RTLNX_RHEL_RANGE(8,6, 8,99)
    806806        if (drm_dev_is_unplugged(file_priv->minor->dev))
    807807                return -ENODEV;
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