Re: [PATCH 11/11] drm/amdgpu/sdma7: add support for disable_kq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/13, Alex Deucher wrote:
> When the parameter is set, disable user submissions
> to kernel queues.
> 
> Reviewed-by: Sunil Khatri <sunil.khatri@xxxxxxx>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
> index 92a79296708ae..40d45f738c0a8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
> @@ -1316,6 +1316,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");
> @@ -1351,6 +1354,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");
> -- 
> 2.48.1
> 

Hi Alex,

I think patch 9-11 could be a squashed in a single one.

Thanks

-- 
Rodrigo Siqueira



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux