summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-02-20 23:56:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-08 23:48:22 +0300
commit4ce60dbada9639e385f2f4be2dacf10d8ba22378 (patch)
treed54971c865602c5adeada4db5b845089ac9c2a6a /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent100b6010d7540ed0479ccdb85816db42f4111979 (diff)
downloadlinux-4ce60dbada9639e385f2f4be2dacf10d8ba22378.tar.xz
drm/amdgpu: store userq_managers in a list in adev
So we can iterate across them when we need to manage all user queues. v2: add uq_mgr to adev list in amdgpu_userq_mgr_init Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 3cdb5f8325aa..f88a04b1c4ce 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1237,6 +1237,9 @@ struct amdgpu_device {
* in KFD: VRAM or GTT.
*/
bool apu_prefer_gtt;
+
+ struct list_head userq_mgr_list;
+ struct mutex userq_mutex;
};
static inline uint32_t amdgpu_ip_version(const struct amdgpu_device *adev,