linux-next/drivers/ras
Yazen Ghannam 87a6123753 RAS/AMD/ATL: Add MI300 DRAM to normalized address translation support
Zen-based AMD systems report DRAM ECC errors through Unified Memory
Controller (UMC) MCA banks. The value provided in MCA_ADDR is
a "normalized" address which represents the UMC's view of its managed
memory. The normalized address must be translated to a system physical
address for software to take action.

MI300 systems, uniquely, do not provide a normalized address in MCA_ADDR
for DRAM ECC errors. Rather, the "DRAM" address is reported. This value
includes identifiers for the bank, row, column, pseudochannel and stack
of the memory location.

The DRAM address must be converted to a normalized address in order to
be further translated to a system physical address.

Add helper functions to do the DRAM to normalized translation for MI300
systems. The method is based on the fixed hardware layout of the on-chip
memory.

  [ bp: Massage commit message, decapitalize some, rename function. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Co-developed-by: Muralidhara M K <muralidhara.mk@amd.com>
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Muralidhara M K <muralidhara.mk@amd.com>
Link: https://lore.kernel.org/r/20240131165732.88297-1-yazen.ghannam@amd.com
2024-02-01 16:28:56 +01:00
..
amd/atl RAS/AMD/ATL: Add MI300 DRAM to normalized address translation support 2024-02-01 16:28:56 +01:00
cec.c RAS/CEC: Reduce offline page threshold for Intel systems 2022-08-22 19:30:02 +02:00
debugfs.c ras/debugfs: Fix error checking for debugfs_create_dir() 2023-05-16 21:12:23 +02:00
debugfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig RAS: Introduce AMD Address Translation Library 2024-01-24 12:49:35 +01:00
Makefile RAS: Introduce AMD Address Translation Library 2024-01-24 12:49:35 +01:00
ras.c RAS: Introduce AMD Address Translation Library 2024-01-24 12:49:35 +01:00