drm/amdgpu/sdma7.1: add support for disable_kq

Plumb in support for disabling kernel queues and make it
the default.  For testing, kernel queues can be re-enabled
by setting amdgpu.user_queue=0.  Kernel queues are still
created for use by the kernel driver for memory management,
etc., just not user submissions.

Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
master
Alex Deucher 2026-03-26 13:50:03 -04:00
parent 831cb9ba54
commit 80d4d3a45b
1 changed files with 12 additions and 0 deletions

View File

@ -1268,6 +1268,18 @@ static int sdma_v7_1_early_init(struct amdgpu_ip_block *ip_block)
struct amdgpu_device *adev = ip_block->adev;
int r;
switch (amdgpu_user_queue) {
case -1:
default:
adev->sdma.no_user_submission = true;
adev->sdma.disable_uq = true;
break;
case 0:
adev->sdma.no_user_submission = false;
adev->sdma.disable_uq = true;
break;
}
r = amdgpu_sdma_init_microcode(adev, 0, true);
if (r) {
DRM_ERROR("Failed to init sdma firmware!\n");