RE: [PATCH] drm/amdgpu: add uncorrectable error count print in UMC ecc irq cb

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

 



[AMD Official Use Only - Internal Distribution Only]

Reviewed-by: Tao Zhou <tao.zhou1@xxxxxxx>

> -----Original Message-----
> From: Chen, Guchun <Guchun.Chen@xxxxxxx>
> Sent: 2020年4月10日 11:55
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; Zhang, Hawking
> <Hawking.Zhang@xxxxxxx>; Li, Dennis <Dennis.Li@xxxxxxx>; Zhou1, Tao
> <Tao.Zhou1@xxxxxxx>; Clements, John <John.Clements@xxxxxxx>
> Cc: Chen, Guchun <Guchun.Chen@xxxxxxx>
> Subject: [PATCH] drm/amdgpu: add uncorrectable error count print in UMC
> ecc irq cb
> 
> Uncorrectable error count printing is missed when issuing UMC UE injection.
> When going to the error count log function in GPU recover work thread,
> there is no chance to get correct error count value by last error injection and
> print, because the error status register is automatically cleared after reading
> in UMC ecc irq callback. So add such message printing in UMC ecc irq cb to be
> consistent with other RAS error interrupt cases.
> 
> Signed-off-by: Guchun Chen <guchun.chen@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> index f4d40855147b..267f7c30f4dd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
> @@ -121,6 +121,9 @@ int amdgpu_umc_process_ras_data_cb(struct
> amdgpu_device *adev,
> 
>  	/* only uncorrectable error needs gpu reset */
>  	if (err_data->ue_count) {
> +		dev_info(adev->dev, "%ld uncorrectable errors detected in
> UMC block\n",
> +			err_data->ue_count);
> +
>  		if (err_data->err_addr_cnt &&
>  		    amdgpu_ras_add_bad_pages(adev, err_data->err_addr,
>  						err_data->err_addr_cnt))
> --
> 2.17.1
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




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

  Powered by Linux