For GMC11, when KGD userqueues are enabled we should have vmid for kfd queues start after KGD userqueues VMID ends.
Use the variable gfx.disable_uq instead of gfx_disable_kq to check if userqueues are enabled or not. For mode 1 even when kernel queue submission is enabled but userqueues is also enabled at same time. Signed-off-by: Sunil Khatri <[email protected]> --- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c index 16388e3caea3..354cf1c1b93c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c @@ -846,7 +846,7 @@ static int gmc_v11_0_sw_init(struct amdgpu_ip_block *ip_block) * amdgpu graphics/compute will use VMIDs 1-7 * amdkfd will use VMIDs 8-15 */ - adev->vm_manager.first_kfd_vmid = adev->gfx.disable_kq ? 1 : 8; + adev->vm_manager.first_kfd_vmid = adev->gfx.disable_uq ? 1 : 8; amdgpu_vm_manager_init(adev); -- 2.34.1
