From: Xiang Liu <[email protected]> Map boot RAS log events to the boot CPER type so records from boot-time error sources use the intended CPER record classification.
Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Xiang Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> --- drivers/gpu/drm/amd/ras/core/ras_cper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/ras/core/ras_cper.c b/drivers/gpu/drm/amd/ras/core/ras_cper.c index 82fd277c3552f..4047f9b0806e2 100644 --- a/drivers/gpu/drm/amd/ras/core/ras_cper.c +++ b/drivers/gpu/drm/amd/ras/core/ras_cper.c @@ -321,6 +321,8 @@ static enum ras_cper_type cper_ras_log_event_to_cper_type(enum ras_log_event eve return RAS_CPER_TYPE_RUNTIME; case RAS_LOG_EVENT_RMA: return RAS_CPER_TYPE_RMA; + case RAS_LOG_EVENT_BOOT: + return RAS_CPER_TYPE_BOOT; default: /* should never reach here */ return RAS_CPER_TYPE_RUNTIME; -- 2.55.0
