[PATCH 09/11] drm/amdgpu/sdma: add flag for tracking disable_kq

Khatri, Sunil sukhatri at amd.com
Thu Mar 6 11:19:26 UTC 2025


Reviewed-by: Sunil Khatri <sunil.khatri at amd.com>

On 3/6/2025 2:17 AM, Alex Deucher wrote:
> For SDMA, we still need kernel queues for paging so
> they need to be initialized, but we no not want to
> accept submissions from userspace when disable_kq
> is set.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
> index 9651693200655..edc856e10337a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
> @@ -129,6 +129,7 @@ struct amdgpu_sdma {
>   	/* track guilty state of GFX and PAGE queues */
>   	bool gfx_guilty;
>   	bool page_guilty;
> +	bool			no_user_submission;
>   };
>   
>   /*


More information about the amd-gfx mailing list