drm/amdgpu/sdma: add flag for tracking disable_kq
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2025 18:09:55 +0000 (13:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Apr 2025 20:48:23 +0000 (16:48 -0400)
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 <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h

index 47d56fd..0b1fbcf 100644 (file)
@@ -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;
 };
 
 /*