[PATCH 1/2] drm/amdgpu/gfx11: return early in preempt_ib()
Alex Deucher
alexdeucher at gmail.com
Mon Aug 26 18:54:25 UTC 2024
Ping on this series?
Alex
On Thu, Aug 15, 2024 at 1:10 PM Alex Deucher <alexander.deucher at amd.com> wrote:
>
> When MES is enabled KIQ is not available. Return an error
> when someone uses the debugfs preempt test interface in
> that case.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> index 5685aee479df..5704ad25a49d 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> @@ -5924,6 +5924,9 @@ static int gfx_v11_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;
>
> --
> 2.46.0
>
More information about the amd-gfx
mailing list