mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
drm/amd/ras: send RMA event in RAS init stage
Previously the event was only raised at runtime, also raise it during RAS init when threshold is exceeded and eeprom header is tagged bad, so we can get related cper at boot time. Signed-off-by: Tao Zhou <tao.zhou1@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
482e2cadea
commit
b8e9449627
|
|
@ -1261,6 +1261,11 @@ int ras_eeprom_check_storage_status(struct ras_core_context *ras_core)
|
|||
} else {
|
||||
RAS_DEV_ERR(ras_core->dev, "RAS records:%d exceed threshold:%d",
|
||||
bad_page_count, control->record_threshold_count);
|
||||
/* send the event when threshold is exceeded, and ignore the
|
||||
* return value here
|
||||
*/
|
||||
ras_core_event_notify(ras_core, RAS_EVENT_ID__DEVICE_RMA, NULL);
|
||||
|
||||
if ((control->record_threshold_config == WARN_NONSTOP_OVER_THRESHOLD) ||
|
||||
(control->record_threshold_config == NONSTOP_OVER_THRESHOLD)) {
|
||||
RAS_DEV_WARN(ras_core->dev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user