From: Alex Deucher Date: Tue, 18 Feb 2025 18:09:55 +0000 (-0500) Subject: drm/amdgpu/sdma: add flag for tracking disable_kq X-Git-Tag: v6.16-rc1~33^2~19^2~247 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1d65006fc14e9ad13f53f604f5969090dedf7dbd;p=linux-block.git drm/amdgpu/sdma: add flag for tracking disable_kq 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. Reviewed-by: Sunil Khatri Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h index 47d56fd0589f..0b1fbcf0b4d0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h @@ -131,6 +131,7 @@ struct amdgpu_sdma { uint32_t *ip_dump; uint32_t supported_reset; struct list_head reset_callback_list; + bool no_user_submission; }; /*