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:
Lijo Lazar 2025-05-06 16:38:27 +05:30 committed by Alex Deucher
parent 648a0dc0d7
commit 937467b7d5

View file

@ -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);