mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
drm/amdgpu: Log RAS errors during load
During driver load, RAS event manager may not be initialized. This will cause any ATHUB event during driver load to be skipped in dmesg log. Log the error in dmesg log for easier diagnosis. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
648a0dc0d7
commit
937467b7d5
1 changed files with 4 additions and 1 deletions
|
|
@ -4498,8 +4498,11 @@ void amdgpu_ras_global_ras_isr(struct amdgpu_device *adev)
|
|||
enum ras_event_type type = RAS_EVENT_TYPE_FATAL;
|
||||
u64 event_id;
|
||||
|
||||
if (amdgpu_ras_mark_ras_event(adev, type))
|
||||
if (amdgpu_ras_mark_ras_event(adev, type)) {
|
||||
dev_err(adev->dev,
|
||||
"uncorrectable hardware error (ERREVENT_ATHUB_INTERRUPT) detected!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
event_id = amdgpu_ras_acquire_event_id(adev, type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue