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

Lazar, Lijo lijo.lazar at amd.com
Tue Feb 11 08:22:03 UTC 2025



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 at amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar at amd.com>

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;
>  	}



More information about the amd-gfx mailing list