]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu/gfx: add generic handling for disable_kq
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2025 17:07:48 +0000 (12:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Apr 2025 20:48:22 +0000 (16:48 -0400)
commitf091fa777b24c189523db1ea626434ad6ff29799
treecc40f8d7874c425c5d568fee37b63a066a0131b1
parent4310acd4464bc6aed0d211d94b1d343ea3cb62f8
drm/amdgpu/gfx: add generic handling for disable_kq

Add proper checks for disable_kq functionality in
gfx helper functions.  Add special logic for families
that require the clear state setup.

v2: use ring count as per Felix suggestion
v3: fix num_gfx_rings handling in amdgpu_gfx_graphics_queue_acquire()
v4: fix error code (Alex)

Reviewed-by: Prike Liang <Prike.Liang@amd.com>
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/amdgpu_gfx.h