VirtualBox

Changeset 104057 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Mar 26, 2024 10:50:45 AM (10 months ago)
Author:
vboxsync
Message:

Additions: Linux: vboxvideo: Introduce initial support for kernel 6.9, bugref:10630.

File:
1 edited

Legend:

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

    r102874 r104057  
    533533
    534534        bo->placement.placement = bo->placements;
     535#if RTLNX_VER_MAX(6,9,0)
    535536        bo->placement.busy_placement = bo->placements;
     537#endif
    536538
    537539        if (mem_type & VBOX_MEM_TYPE_VRAM) {
    538 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
     540#if RTLNX_VER_MIN(6,9,0)
     541                bo->placements[c].mem_type = TTM_PL_VRAM;
     542                PLACEMENT_FLAGS(bo->placements[c++]) = TTM_PL_FLAG_DESIRED;
     543#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
    539544                bo->placements[c].mem_type = TTM_PL_VRAM;
    540545                PLACEMENT_FLAGS(bo->placements[c++]) = 0;
     
    549554        }
    550555        if (mem_type & VBOX_MEM_TYPE_SYSTEM) {
    551 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
     556
     557#if RTLNX_VER_MIN(6,9,0)
     558                bo->placements[c].mem_type = TTM_PL_SYSTEM;
     559                PLACEMENT_FLAGS(bo->placements[c++]) = TTM_PL_FLAG_DESIRED;
     560#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
    552561                bo->placements[c].mem_type = TTM_PL_SYSTEM;
    553562                PLACEMENT_FLAGS(bo->placements[c++]) = 0;
     
    562571        }
    563572        if (!c) {
    564 #if RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
     573#if RTLNX_VER_MIN(6,9,0)
     574                bo->placements[c].mem_type = TTM_PL_SYSTEM;
     575                PLACEMENT_FLAGS(bo->placements[c++]) = TTM_PL_FLAG_DESIRED;
     576#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
    565577                bo->placements[c].mem_type = TTM_PL_SYSTEM;
    566578                PLACEMENT_FLAGS(bo->placements[c++]) = 0;
     
    576588
    577589        bo->placement.num_placement = c;
     590#if RTLNX_VER_MAX(6,9,0)
    578591        bo->placement.num_busy_placement = c;
     592#endif
    579593
    580594#if RTLNX_VER_MIN(3,18,0) || RTLNX_RHEL_MAJ_PREREQ(7,2)
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