diff options
author | 2025-04-10 13:26:43 -0400 | |
---|---|---|
committer | 2025-04-21 10:55:59 -0400 | |
commit | 94976e7e5ede65f9dfad669b1ea7170320f08399 (patch) | |
tree | 7837b8a799e782647359e0a63302678d848b5dec /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | drm/amdgpu/userq: track the xcp_id associated with the queue (diff) | |
download | linux-rng-94976e7e5ede65f9dfad669b1ea7170320f08399.tar.xz linux-rng-94976e7e5ede65f9dfad669b1ea7170320f08399.zip |
drm/amdgpu/userq: add helpers to start/stop scheduling
This will be used to stop/start user queue scheduling for
example when switching between kernel and user queues when
enforce isolation is enabled.
v2: use idx
v3: only stop compute/gfx queues
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.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3212fd78b012..68410ba1b944 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1249,6 +1249,7 @@ struct amdgpu_device { struct list_head userq_mgr_list; struct mutex userq_mutex; + bool userq_halt_for_enforce_isolation; }; static inline uint32_t amdgpu_ip_version(const struct amdgpu_device *adev, |