mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
drm/amdgpu/sdma7: add support for disable_kq
When the parameter is set, disable user submissions to kernel queues. Reviewed-by: Sunil Khatri <sunil.khatri@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fcf5eb979a
commit
72801504fd
|
|
@ -1254,6 +1254,9 @@ static int sdma_v7_0_early_init(struct amdgpu_ip_block *ip_block)
|
|||
struct amdgpu_device *adev = ip_block->adev;
|
||||
int r;
|
||||
|
||||
if (amdgpu_disable_kq == 1)
|
||||
adev->sdma.no_user_submission = true;
|
||||
|
||||
r = amdgpu_sdma_init_microcode(adev, 0, true);
|
||||
if (r) {
|
||||
DRM_ERROR("Failed to init sdma firmware!\n");
|
||||
|
|
@ -1289,6 +1292,7 @@ static int sdma_v7_0_sw_init(struct amdgpu_ip_block *ip_block)
|
|||
ring->ring_obj = NULL;
|
||||
ring->use_doorbell = true;
|
||||
ring->me = i;
|
||||
ring->no_user_submission = adev->sdma.no_user_submission;
|
||||
|
||||
DRM_DEBUG("SDMA %d use_doorbell being set to: [%s]\n", i,
|
||||
ring->use_doorbell?"true":"false");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user