drm/amdgpu: wait pmfw polling mca bank info done
Subsystems (2)
PATCH 1/1 drm/amdgpu: wait pmfw polling mca bank info done
wait 500ms to ensure pmfw polling mca bank info done.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +8 -0
@@ -2705,6 +2705,7 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)struct amdgpu_device *adev = ras->adev;struct list_head device_list, *device_list_handle =NULL ;struct amdgpu_hive_info *hive =amdgpu_get_xgmi_hive (adev); +unsigned int error_query_mode;enum ras_event_type type;if (hive) {
@@ -2733,6 +2734,13 @@ static void amdgpu_ras_do_recovery(struct work_struct *work) device_list_handle = &device_list; } +if (amdgpu_ras_get_error_query_mode (adev, &error_query_mode)) { +if (error_query_mode ==AMDGPU_RAS_FIRMWARE_ERROR_QUERY ) { +/* wait 500ms to ensure pmfw polling mca bank info done */ +msleep (500 ); + } + } + type =amdgpu_ras_get_fatal_error_event (adev);list_for_each_entry (remote_adev, device_list_handle, gmc.xgmi.head) {
Signature · 1 line
2.25.1
[AMD Official Use Only - AMD Internal Distribution Only]
500ms is not a short time, not sure if we can decrease the delay or check pmfw status.
Quoted 49 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Stanley.Yang
Sent: Friday, August 29, 2025 10:45 AM
To: [email protected]
Cc: Yang, Stanley <[email protected]>
Subject: [PATCH Review 1/1] drm/amdgpu: wait pmfw polling mca bank info donewait 500ms to ensure pmfw polling mca bank info done.
Change-Id I50581f03929c86d75bf09d66238b64f2806697f0Signed-off-by Stanley.Yang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1
-0@@ -2705,6 +2705,7 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)struct amdgpu_device *adev = ras->adev;struct list_head device_list, *device_list_handle =NULL ;struct amdgpu_hive_info *hive =amdgpu_get_xgmi_hive (adev); +unsigned int error_query_mode;enum ras_event_type type;if (hive) {drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +3
-0@@ -2733,6 +2734,13 @@ static void amdgpu_ras_do_recovery(struct work_struct *work) device_list_handle = &device_list; } +if (amdgpu_ras_get_error_query_mode (adev, &error_query_mode)) { +if (error_query_mode ==AMDGPU_RAS_FIRMWARE_ERROR_QUERY ) { +/* wait 500ms to ensure pmfw polling mca bank info done */
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +4
-1+msleep (500 ); + } + } + type =amdgpu_ras_get_fatal_error_event (adev);list_for_each_entry (remote_adev, device_list_handle, gmc.xgmi.head) { --2.25.1
[AMD Official Use Only - AMD Internal Distribution Only]
Quoted 8 lines
-----Original Message-----
From: Zhou1, Tao <[email protected]>
Sent: Monday, September 1, 2025 10:23 AM
To: Yang, Stanley <[email protected]>; [email protected]
Cc: Yang, Stanley <[email protected]>
Subject: RE: [PATCH Review 1/1] drm/amdgpu: wait pmfw polling mca bank info done
Quoted 6 lines
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Tao Zhou <[email protected]>500ms is not a short time, not sure if we can decrease the delay or check pmfw status.
[Stanley]: Agree, 500ms is not short time, but currently, there is no way to check pmfw status (polling done), and the delay of 500ms has been verified.
Regards,
Stanley
Quoted 56 lines
Quoted 36 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Stanley.Yang
Sent: Friday, August 29, 2025 10:45 AM
To: [email protected]
Cc: Yang, Stanley <[email protected]>
Subject: [PATCH Review 1/1] drm/amdgpu: wait pmfw polling mca bank info donewait 500ms to ensure pmfw polling mca bank info done.
Change-Id I50581f03929c86d75bf09d66238b64f2806697f0Signed-off-by Stanley.Yang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +0
-0@@ -2705,6 +2705,7 @@ static void amdgpu_ras_do_recovery(struct
work_struct
*work)struct amdgpu_device *adev = ras->adev; struct list_head device_list, *device_list_handle = NULL; struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev);drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1
-0+unsigned int error_query_mode;enum ras_event_type type;if (hive) {@@ -2733,6 +2734,13 @@ static void amdgpu_ras_do_recovery(struct
work_struct
*work)Quoted 4 lines
device_list_handle = &device_list; }+ if (amdgpu_ras_get_error_query_mode(adev,
&error_query_mode)) {Quoted 14 lines
+ if (
error_query_mode==AMDGPU_RAS_FIRMWARE_ERROR_QUERY) {
+ /* wait 500ms to ensure pmfw polling mca
+ bank info
done */drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +4
-1+msleep (500 ); + } + } + type =amdgpu_ras_get_fatal_error_event (adev);list_for_each_entry (remote_adev, device_list_handle, gmc.xgmi.head) { --2.25.1