Re: [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442

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

 




On 2/11/2025 12:09 PM, Le Ma wrote:
> Add the trap irq processing for page queue of sdma442
> 
> Signed-off-by: Le Ma <le.ma@xxxxxxx>
Reviewed-by: Lijo Lazar <lijo.lazar@xxxxxxx>

Maybe good to add a WARN_ON(!adev->sdma.has_page_queue)

Thanks,
Lijo

> ---
>  drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
> index 5e0066cd6c51..14acc3b822ec 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
> @@ -1683,6 +1683,9 @@ static int sdma_v4_4_2_process_trap_irq(struct amdgpu_device *adev,
>  	case 0:
>  		amdgpu_fence_process(&adev->sdma.instance[i].ring);
>  		break;
> +	case 1:
> +		amdgpu_fence_process(&adev->sdma.instance[i].page);
> +		break;
>  	default:
>  		break;
>  	}




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

  Powered by Linux