Skip to content

Commit a6d6a86

Browse files
YiPeng Chaialexdeucher
authored andcommitted
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]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 3b3afba commit a6d6a86

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3306,7 +3306,6 @@ static int amdgpu_ras_poison_creation_handler(struct amdgpu_device *adev,
33063306
uint64_t de_queried_count;
33073307
uint32_t new_detect_count, total_detect_count;
33083308
uint32_t need_query_count = poison_creation_count;
3309-
bool query_data_timeout = false;
33103309
enum ras_event_type type = RAS_EVENT_TYPE_POISON_CREATION;
33113310

33123311
memset(&info, 0, sizeof(info));
@@ -3335,21 +3334,13 @@ static int amdgpu_ras_poison_creation_handler(struct amdgpu_device *adev,
33353334
timeout = MAX_UMC_POISON_POLLING_TIME_ASYNC;
33363335

33373336
if (timeout) {
3338-
if (!--timeout) {
3339-
query_data_timeout = true;
3337+
if (!--timeout)
33403338
break;
3341-
}
33423339
msleep(1);
33433340
}
33443341
}
33453342
} while (total_detect_count < need_query_count);
33463343

3347-
if (query_data_timeout) {
3348-
dev_warn(adev->dev, "Can't find deferred error! count: %u\n",
3349-
(need_query_count - total_detect_count));
3350-
return -ENOENT;
3351-
}
3352-
33533344
if (total_detect_count)
33543345
schedule_delayed_work(&ras->page_retirement_dwork, 0);
33553346

0 commit comments

Comments
 (0)