[PATCH 084/109] drm/amd/ras: add missing ras core block names
Alex Deucher <[email protected]>
| Newsgroups | org.freedesktop.lists.amd-gfx |
|---|---|
| Message-ID | <[email protected]> |
From: Xiang Liu <[email protected]> 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 <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> --- 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 dc78e52de8869..662a3a17a6b6a 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) -- 2.55.0