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 47d56fd0589fc1c4677bf2578bf90cba09cd33a3..0b1fbcf0b4d0e4956e961d5b4b2b2e5e8aa8f0e2 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;
 };
 
 /*