- Timestamp:
- Mar 22, 2022 7:23:04 PM (3 years ago)
- 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 44 44 #endif 45 45 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) 47 47 # include <drm/drm_aperture.h> 48 48 #endif … … 83 83 int ret = 0; 84 84 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) 86 86 # if RTLNX_VER_MIN(5,15,0) 87 87 ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver); … … 101 101 goto err_drv_alloc; 102 102 } 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) 104 104 dev->pdev = pdev; 105 105 # endif -
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r94329 r94330 233 233 * transparently handles this change. Input argument is a pointer 234 234 * 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) 236 236 # define VBOX_DRM_TO_PCI_DEV(_dev) to_pci_dev(_dev->dev) 237 237 #else -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r94328 r94330 302 302 } 303 303 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) 305 305 ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.resource->num_pages, &bo->kmap); 306 306 #elif RTLNX_VER_MIN(5,12,0) || RTLNX_RHEL_MAJ_PREREQ(8,5) -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r94328 r94330 633 633 struct vbox_bo *vbox_bo = gem_to_vbox_bo(obj); 634 634 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) 636 636 /* Starting from kernel 5.14, there is a warning appears in dmesg 637 637 * on attempt to desroy pinned buffer object. Make sure it is unpinned. */ … … 685 685 *offset = vbox_bo_mmap_offset(bo); 686 686 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) 688 688 ret = drm_vma_node_allow(&bo->bo.base.vma_node, file); 689 689 if (ret) -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r94328 r94330 861 861 dst = vbox->cursor_data; 862 862 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) 864 864 ret = ttm_bo_kmap(&bo->bo, 0, bo->bo.resource->num_pages, &uobj_map); 865 865 #elif RTLNX_VER_MIN(5,12,0) || RTLNX_RHEL_MAJ_PREREQ(8,5) -
trunk/src/VBox/Additions/linux/drm/vbox_ttm.c
r94329 r94330 42 42 #endif 43 43 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) 45 45 # include <drm/ttm/ttm_range_manager.h> 46 46 #endif … … 179 179 } 180 180 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) 182 182 static int vbox_bo_verify_access(struct ttm_buffer_object *bo, 183 183 struct file *filp) … … 380 380 #endif 381 381 .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) 383 383 .verify_access = vbox_bo_verify_access, 384 384 #endif … … 569 569 .free = vbox_gem_free_object, 570 570 .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) 572 572 .mmap = drm_gem_ttm_mmap, 573 573 # endif … … 610 610 #endif 611 611 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) 613 613 /* Initialization of the following was removed from DRM stack 614 614 * in 5.14, so we need to do it manually. */ … … 654 654 static inline u64 vbox_bo_gpu_offset(struct vbox_bo *bo) 655 655 { 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) 657 657 return bo->bo.resource->start << PAGE_SHIFT; 658 658 #elif RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4) || RTLNX_SUSE_MAJ_PREREQ(15,3) … … 803 803 vbox = file_priv->minor->dev->dev_private; 804 804 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) 806 806 if (drm_dev_is_unplugged(file_priv->minor->dev)) 807 807 return -ENODEV;
Note:
See TracChangeset
for help on using the changeset viewer.