summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-04-14 14:18:03 -0400
committerAlex Deucher <alexander.deucher@amd.com>2025-04-21 10:55:47 -0400
commitfb20954c9717d1d07d8b8b8f34ac2a2755aec5ff (patch)
tree058b7f8460e4f74ffbdc7cbfc0991465b6d96ba2 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
parent172494c4e9f897f0f499a4a86a812dee7b617358 (diff)
drm/amdgpu/userq: rework driver parameter
Replace disable_kq parameter with user_queue parameter. The parameter has the following logic: -1 = auto (ASIC specific default) 0 = user queues disabled 1 = user queues enabled and kernel queues enabled (if supported) 2 = user queues enabled and kernel queues disabled The default behavior (-1) is currently the same as 0 for current ASICs. To enable user queues (in addition to kernel queues) set user_queue=1. To enable user queues and disable kernel queues (to make all resources available to user queues), set user_queue=2. Reviewed-by: Sunil Khatri <sunil.khatri@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
index a6c8f07a0da4..59778b978eb5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
@@ -138,6 +138,7 @@ struct amdgpu_sdma {
uint32_t supported_reset;
struct list_head reset_callback_list;
bool no_user_submission;
+ bool disable_uq;
};
/*