]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/gfx: decouple the number of kgqs from the hw
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Mar 2025 18:10:17 +0000 (14:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:34 +0000 (15:18 -0400)
commit8f970c46b56235a3965e0965fa3fd60e7567fecc
tree21ce1371dfd09fdcb863e7763a830c00b5422e3b
parent0d47bb77b505e539a99f4f032c9c5a58f1d21e18
drm/amdgpu/gfx: decouple the number of kgqs from the hw

The driver currently sets up one kgq per pipe.  As such
adev->gfx.me.num_queue_per_pipe is hardcoded to 1 everywhere.
This is fine for kernel queues, but when we enable user queues
we need to know that actual number of queues per pipe.  Decouple
the kgq setup from the actual hardware count.  For dev core
dumps and user queues, we want to know the actual number
of queues per pipe.

Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c