[PATCH] drm/amdgpu: add printing after executing page reservation to eeprom
Zhou1, Tao
Tao.Zhou1 at amd.com
Mon Jul 20 06:07:46 UTC 2020
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by: Tao Zhou <tao.zhou1 at amd.com>
-----Original Message-----
From: Chen, Guchun <Guchun.Chen at amd.com>
Sent: Monday, July 20, 2020 11:16 AM
To: amd-gfx at lists.freedesktop.org; Zhang, Hawking <Hawking.Zhang at amd.com>; Li, Dennis <Dennis.Li at amd.com>; Yang, Stanley <Stanley.Yang at amd.com>; Zhou1, Tao <Tao.Zhou1 at amd.com>; Clements, John <John.Clements at amd.com>
Cc: Chen, Guchun <Guchun.Chen at amd.com>
Subject: [PATCH] drm/amdgpu: add printing after executing page reservation to eeprom
This will tell users if the faulty page has been written to external eeprom device in dmesg log.
Signed-off-by: Guchun Chen <guchun.chen at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 6f06e1214622..4a82a587de28 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -1622,7 +1622,7 @@ static int amdgpu_ras_save_bad_pages(struct amdgpu_device *adev)
data = con->eh_data;
save_count = data->count - control->num_recs;
/* only new entries are saved */
-if (save_count > 0)
+if (save_count > 0) {
if (amdgpu_ras_eeprom_process_recods(control,
&data->bps[control->num_recs],
true,
@@ -1631,6 +1631,9 @@ static int amdgpu_ras_save_bad_pages(struct amdgpu_device *adev)
return -EIO;
}
+dev_info(adev->dev, "Saved %d pages to EEPROM table.\n", save_count);
+}
+
return 0;
}
--
2.17.1
More information about the amd-gfx
mailing list