[PATCH 2/2] drm/amdgpu: Add user queue instance count reporting for gfx11
Jesse Zhang
jesse.zhang at amd.com
Mon Jun 23 09:04:39 UTC 2025
Initialize the number of available user queue instances for GFX11 hardware
when user queues are enabled (!disable_uq).
This sets:
- userq_gfx_instances to GFX11_NUM_GFX_RINGS
- userq_compute_instances to AMDGPU_MAX_COMPUTE_RINGS
Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index ec9b84f92d46..775036146d5a 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -5226,6 +5226,11 @@ static int gfx_v11_0_early_init(struct amdgpu_ip_block *ip_block)
AMDGPU_MAX_COMPUTE_RINGS);
}
+ if (!adev->gfx.disable_uq) {
+ adev->gfx.userq_gfx_instances = GFX11_NUM_GFX_RINGS;
+ adev->gfx.userq_compute_instances = AMDGPU_MAX_COMPUTE_RINGS;
+ }
+
gfx_v11_0_set_kiq_pm4_funcs(adev);
gfx_v11_0_set_ring_funcs(adev);
gfx_v11_0_set_irq_funcs(adev);
--
2.34.1
More information about the amd-gfx
mailing list