diff options
| author | Alex Deucher <[email protected]> | 2024-08-15 16:58:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-08-29 17:39:57 +0000 |
| commit | 1125f95cd2455b51ad1c16d7f96ae39117083d20 (patch) | |
| tree | d9b640315a113a89c215238d9d81569727dc63fe /drivers/gpu | |
| parent | drm/amdgpu/gfx11: return early in preempt_ib() (diff) | |
| download | kernel-1125f95cd2455b51ad1c16d7f96ae39117083d20.tar.gz kernel-1125f95cd2455b51ad1c16d7f96ae39117083d20.zip | |
drm/amdgpu/gfx12: return early in preempt_ib()
When MES is enabled KIQ is not available. Return an error
when someone uses the debugfs preempt test interface in
that case.
Acked-by: Srinivasan Shanmugam <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 54059cbcfc08..6f700800f346 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c @@ -4501,6 +4501,9 @@ static int gfx_v12_0_ring_preempt_ib(struct amdgpu_ring *ring) struct amdgpu_ring *kiq_ring = &kiq->ring; unsigned long flags; + if (adev->enable_mes) + return -EINVAL; + if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) return -EINVAL; |
