From b3e4477c269163221758f439d35e66909d678c39 Mon Sep 17 00:00:00 2001 From: Xiang Liu Date: Wed, 8 Jul 2026 22:13:18 +0800 Subject: [PATCH] drm/amd/ras: map boot log events to CPER type 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 Signed-off-by: Xiang Liu Signed-off-by: Alex Deucher --- 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 82fd277c3552..4047f9b0806e 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;