[PATCH 2/2] drm/amdgpu: Initialize vcn v5_0_1 ras function
Zhou1, Tao
Tao.Zhou1 at amd.com
Thu Jul 31 06:39:29 UTC 2025
[AMD Official Use Only - AMD Internal Distribution Only]
The series is:
Reviewed-by: Tao Zhou <tao.zhou1 at amd.com>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Mangesh
> Gadre
> Sent: Tuesday, July 29, 2025 12:20 PM
> To: amd-gfx at lists.freedesktop.org; Zhang, Hawking <Hawking.Zhang at amd.com>
> Cc: Gadre, Mangesh <Mangesh.Gadre at amd.com>; Yang, Stanley
> <Stanley.Yang at amd.com>
> Subject: [PATCH 2/2] drm/amdgpu: Initialize vcn v5_0_1 ras function
>
> Initialize vcn v5_0_1 ras function
>
> Signed-off-by: Mangesh Gadre <Mangesh.Gadre at amd.com>
> Reviewed-by: Stanley.Yang <Stanley.Yang at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
> b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
> index cdefd7fcb0da..563cb3e1b610 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
> @@ -163,6 +163,15 @@ static int vcn_v5_0_1_sw_init(struct amdgpu_ip_block
> *ip_block)
> return r;
> }
>
> + if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__VCN)) {
> + r = amdgpu_vcn_ras_sw_init(adev);
> + if (r) {
> + dev_err(adev->dev, "Failed to initialize vcn ras block!\n");
> + return r;
> + }
> + }
> +
> +
> vcn_v5_0_0_alloc_ip_dump(adev);
>
> return amdgpu_vcn_sysfs_reset_mask_init(adev);
> --
> 2.34.1
More information about the amd-gfx
mailing list