drm/amdgpu: Remove useless timeout error message
Subsystems (2)
PATCH 1/1 drm/amdgpu: Remove useless timeout error message
The timeout is only used to interrupt polling and
not need to print a error message.
Signed-off-by YiPeng Chai <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -10
@@ -3304,7 +3304,6 @@ static int amdgpu_ras_poison_creation_handler(struct amdgpu_device *adev,uint64_t de_queried_count;uint32_t new_detect_count, total_detect_count;uint32_t need_query_count = poison_creation_count; -bool query_data_timeout = false;enum ras_event_type type =RAS_EVENT_TYPE_POISON_CREATION ;memset (&info,0 ,sizeof (info));
@@ -3333,21 +3332,13 @@ static int amdgpu_ras_poison_creation_handler(struct amdgpu_device *adev, timeout =MAX_UMC_POISON_POLLING_TIME_ASYNC ;if (timeout) { -if (!--timeout) { - query_data_timeout = true; +if (!--timeout)break ; - }msleep (1 ); } } }while (total_detect_count < need_query_count); -if (query_data_timeout) { -dev_warn (adev->dev,"Can't find deferred error! count: %u\n" , - (need_query_count - total_detect_count)); -return -ENOENT ; - } -if (total_detect_count)schedule_delayed_work (&ras->page_retirement_dwork,0 );
Signature · 1 line
2.34.1
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Chai, Thomas <[email protected]>
Sent: Monday, June 30, 2025 14:54
To: [email protected]
Cc: Chai, Thomas <[email protected]>; Zhang, Hawking <[email protected]>; Zhou1, Tao <[email protected]>; Yang, Stanley <[email protected]>; Chai, Thomas <[email protected]>
Subject: [PATCH] drm/amdgpu: Remove useless timeout error message
The timeout is only used to interrupt polling and not need to print a error message.
Signed-off-by YiPeng Chai <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -10
@@ -3304,7 +3304,6 @@ static int amdgpu_ras_poison_creation_handler(struct amdgpu_device *adev,uint64_t de_queried_count;uint32_t new_detect_count, total_detect_count;uint32_t need_query_count = poison_creation_count; -bool query_data_timeout = false;enum ras_event_type type =RAS_EVENT_TYPE_POISON_CREATION ;memset (&info,0 ,sizeof (info));
@@ -3333,21 +3332,13 @@ static int amdgpu_ras_poison_creation_handler(struct amdgpu_device *adev, timeout =MAX_UMC_POISON_POLLING_TIME_ASYNC ;if (timeout) { -if (!--timeout) { - query_data_timeout = true; +if (!--timeout)break ; - }msleep (1 ); } } }while (total_detect_count < need_query_count); -if (query_data_timeout) { -dev_warn (adev->dev,"Can't find deferred error! count: %u\n" , - (need_query_count - total_detect_count)); -return -ENOENT ; - } -if (total_detect_count)schedule_delayed_work (&ras->page_retirement_dwork,0 );
--
2.34.1