For GMC12, 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_v12_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index 586703ec0dfa..202b2efebeb8 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -950,7 +950,7 @@ static int gmc_v12_0_sw_init(struct amdgpu_ip_block 
*ip_block)
                 amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(12, 1, 0) ?
                3 : 8;
        adev->vm_manager.first_kfd_vmid =
-               adev->gfx.disable_kq ? 1 : (adev->vm_manager.first_kfd_vmid);
+               adev->gfx.disable_uq ? 1 : (adev->vm_manager.first_kfd_vmid);
 
        amdgpu_vm_manager_init(adev);
 
-- 
2.34.1

Reply via email to