Not only raise the event in runtime.
Signed-off-by: Tao Zhou <[email protected]>
---
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
b/drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
index 62d1a319c08c..b9a60ad2890c 100644
--- a/drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
+++ b/drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
@@ -1258,6 +1258,7 @@ int ras_eeprom_check_storage_status(struct
ras_core_context *ras_core)
bad_page_count,
control->record_threshold_count);
res = ras_eeprom_correct_header_tag(control,
RAS_TABLE_HDR_VAL);
+ ras_core_event_notify(ras_core,
RAS_EVENT_ID__DEVICE_RMA, NULL);
} else {
RAS_DEV_ERR(ras_core->dev, "RAS records:%d exceed
threshold:%d",
bad_page_count,
control->record_threshold_count);
--
2.34.1