From 60a03019ea05ff492429142f4d1720cd1c54c069 Mon Sep 17 00:00:00 2001 From: Xiang Liu Date: Wed, 8 Jul 2026 23:06:06 +0800 Subject: [PATCH] drm/amd/ras: add missing ras core block names ras_core_get_ras_block_name() indexes ras_block_name[] directly with enum ras_block_id values. The table only covered entries through RAS_BLOCK_ID__MPIO, while ras.h defines additional blocks through RAS_BLOCK_ID__UCIE_PCS. When UniRAS reports a newer block such as RAS_BLOCK_ID__PCIE_PL, the lookup falls past the end of the table and returns an empty string. That leaves messages such as "new correctable hardware errors detected in block" without the block name. Fill in the missing names in enum order so the indexed lookup can resolve PCIE_PL and the other existing ras_block_id values. Signed-off-by: Xiang Liu Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/ras/core/core.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/amd/ras/core/core.c b/drivers/gpu/drm/amd/ras/core/core.c index 9c48cead17c2..bff25bbc08c5 100644 --- a/drivers/gpu/drm/amd/ras/core/core.c +++ b/drivers/gpu/drm/amd/ras/core/core.c @@ -52,6 +52,26 @@ static const char * const ras_block_name[] = { "jpeg", "ih", "mpio", + "mmsch", + "mp5", + "atu", + "dacc_be", + "eclr", + "kpx_serdes", + "lsdma", + "mpart", + "mpifoe", + "mpras", + "nbif", + "nbio", + "oxrp", + "pcie_pl", + "pcs_xgmi", + "pie", + "cs", + "shub", + "ssbdci", + "ucie_pcs", }; const char *ras_core_get_ras_block_name(enum ras_block_id block_id)