To reduce multiple queues switch latency, move user queues MQD to HBM, and map on GART with mtype RW.
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/amdkfd: Map VRAM MQD on GART drm/amdgpu: Use resource iterators update MQD mapping 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 | 37 ++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 93 ++++++++++++++++++- 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 | 15 +-- .../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, 201 insertions(+), 48 deletions(-) -- 2.50.1
