drm/amdgpu: bypass querying ras error count registers
Subsystems (2)
PATCH 1/2 drm/amdgpu: bypass querying ras error count registers
Once ras recovery is issued by ras sync flood interrupt or ras controller interrupt, add this guard to bypass or execute ras error count register harvest of all IPs.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 22 ++++++------ drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 3 ++ drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 48 +++++++++++++------------ 3 files changed, 41 insertions(+), 32 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +12 -10
@@ -1547,17 +1547,19 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)struct list_head device_list, *device_list_handle =NULL ;struct amdgpu_hive_info *hive =amdgpu_get_xgmi_hive (adev, false); -/* Build list of devices to query RAS related errors */ -if (hive && adev->gmc.xgmi.num_physical_nodes >1 ) - device_list_handle = &hive->device_list; -else { -INIT_LIST_HEAD (&device_list); -list_add_tail (&adev->gmc.xgmi.head, &device_list); - device_list_handle = &device_list; - } +if (!ras->disable_ras_err_cnt_harvest) { +/* Build list of devices to query RAS related errors */ +if (hive && adev->gmc.xgmi.num_physical_nodes >1 ) { + device_list_handle = &hive->device_list; + }else { +INIT_LIST_HEAD (&device_list); +list_add_tail (&adev->gmc.xgmi.head, &device_list); + device_list_handle = &device_list; + } -list_for_each_entry (remote_adev, device_list_handle, gmc.xgmi.head) { -amdgpu_ras_log_on_err_counter (remote_adev); +list_for_each_entry (remote_adev, + device_list_handle, gmc.xgmi.head) +amdgpu_ras_log_on_err_counter (remote_adev); }if (amdgpu_device_should_recover_gpu (ras->adev))
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +3 -0
@@ -343,6 +343,9 @@ struct amdgpu_ras {/* bad page count threshold */ uint32_t bad_page_cnt_threshold; + +/* disable ras error count harvest in recovery */ +bool disable_ras_err_cnt_harvest; };struct ras_fs_data {
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c +26 -22
60 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/2 drm/amdgpu: add debugfs node to toggle ras error cnt harvest
Before ras recovery is issued, user could operate this debugfs node to enable/disable the harvest of all RAS IPs' ras error count registers, which will help keep hardware's registers' status instead of cleaning up them.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +7 -0
@@ -1215,6 +1215,13 @@ static void amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)*/ debugfs_create_bool ("auto_reboot" ,S_IWUGO |S_IRUGO , con->dir, &con->reboot); + +/* +* User could set this not to clean up hardware's error count register +* of RAS IPs during ras recovery. +*/ +debugfs_create_bool ("disable_ras_err_cnt_harvest" ,0644 , + con->dir, &con->disable_ras_err_cnt_harvest); } void amdgpu_ras_debugfs_create(struct amdgpu_device *adev,
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
RE: [PATCH 2/2] drm/amdgpu: add debugfs node to toggle ras error cnt harvest
[AMD Official Use Only - Internal Distribution Only]
Best Regards
Dennis Li
-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Monday, August 10, 2020 1:23 PM
To: [email protected]; Zhang, Hawking <[email protected]>; Li, Dennis <[email protected]>; Lazar, Lijo <[email protected]>; Zhou1, Tao <[email protected]>; Clements, John <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu: add debugfs node to toggle ras error cnt harvest
Before ras recovery is issued, user could operate this debugfs node to enable/disable the harvest of all RAS IPs' ras error count registers, which will help keep hardware's registers' status instead of cleaning up them.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +7 -0
@@ -1215,6 +1215,13 @@ static void amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)*/ debugfs_create_bool ("auto_reboot" ,S_IWUGO |S_IRUGO , con->dir, &con->reboot); + +/* +* User could set this not to clean up hardware's error count register +* of RAS IPs during ras recovery. +*/ +debugfs_create_bool ("disable_ras_err_cnt_harvest" ,0644 , + con->dir, &con->disable_ras_err_cnt_harvest); } void amdgpu_ras_debugfs_create(struct amdgpu_device *adev,
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
RE: [PATCH 2/2] drm/amdgpu: add debugfs node to toggle ras error cnt harvest
In reply to Guchun Chen[AMD Public Use]
Series is
Regards,
Hawking
-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Monday, August 10, 2020 13:23
To: [email protected]; Zhang, Hawking <[email protected]>; Li, Dennis <[email protected]>; Lazar, Lijo <[email protected]>; Zhou1, Tao <[email protected]>; Clements, John <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu: add debugfs node to toggle ras error cnt harvest
Before ras recovery is issued, user could operate this debugfs node to enable/disable the harvest of all RAS IPs' ras error count registers, which will help keep hardware's registers' status instead of cleaning up them.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +7 -0
@@ -1215,6 +1215,13 @@ static void amdgpu_ras_debugfs_create_ctrl_node(struct amdgpu_device *adev)*/ debugfs_create_bool ("auto_reboot" ,S_IWUGO |S_IRUGO , con->dir, &con->reboot); + +/* +* User could set this not to clean up hardware's error count register +* of RAS IPs during ras recovery. +*/ +debugfs_create_bool ("disable_ras_err_cnt_harvest" ,0644 , + con->dir, &con->disable_ras_err_cnt_harvest); } void amdgpu_ras_debugfs_create(struct amdgpu_device *adev,
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx