To reduce multiple queues switch latency, move user queues MQD to HBM, and map on GART with mtype RW.
v6: - patch 5 remove color parameter from the helper - patch 6 changes suggested by Christian - add comment at the head of the functions v5: - patch 1 update commit message - patch 5 separate GART alloc helpers - patch 6 use resource cursor to handle GART entries v4: - patch 1 remove the executable bit change, cc stable - patch 5 move GART helper functions to amdgpu_gtt_mgr.c - add patch 6 to update MQD GART mapping using resource cursor v3: - add patch 1 to fix gfx9 mtype update bug - patch 2 use ASIC specific mtype - patch 5 use drm mm to alloc GART entries and store in mqd obj v2: - patch 4 GART mapping use MC address, vram_base_offset + physical address Philip Yang (6): drm/amdgpu: Fix gfx9 update PTE mtype flag drm/amdkfd: Bind MQD in GART with mtype RW drm/amdkfd: Add domain parameter to alloc kernel BO drm/amdkfd: Move gfx9 MQD to VRAM domain drm/amdgpu: Add helper to alloc GART entries drm/amdkfd: Map VRAM MQD on GART drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 13 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 6 +- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 48 +++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 101 +++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 10 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 - drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 8 +- drivers/gpu/drm/amd/amdkfd/kfd_debug.c | 3 +- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 13 +-- .../drm/amd/amdkfd/kfd_device_queue_manager.c | 7 +- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c | 16 +-- .../drm/amd/amdkfd/kfd_mqd_manager_v12_1.c | 4 +- .../gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 18 +++- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 3 +- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 +- .../amd/amdkfd/kfd_process_queue_manager.c | 12 ++- 17 files changed, 220 insertions(+), 49 deletions(-) -- 2.50.1
