mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
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 <xiang.liu@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b73d6e9f42
commit
60a03019ea
1 changed files with 20 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue