aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ras.h
diff options
context:
space:
mode:
authorYazen Ghannam <yazen.ghannam@amd.com>2024-02-13 21:35:15 -0600
committerBorislav Petkov (AMD) <bp@alien8.de>2024-02-14 17:10:06 +0100
commit3b566b30b41401888ee0e8eb904a1e7a6693794b (patch)
tree5e45761649c11d67ad7b4177cce84052afbf446b /include/linux/ras.h
parentDocumentation: Move RAS section to admin-guide (diff)
downloadwireguard-linux-3b566b30b41401888ee0e8eb904a1e7a6693794b.tar.xz
wireguard-linux-3b566b30b41401888ee0e8eb904a1e7a6693794b.zip
RAS/AMD/ATL: Add MI300 row retirement support
DRAM row retirement depends on model-specific information that is best done within the AMD Address Translation Library. Export a generic wrapper function for other modules to use. Add any model-specific helpers here. Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20240214033516.1344948-2-yazen.ghannam@amd.com
Diffstat (limited to 'include/linux/ras.h')
-rw-r--r--include/linux/ras.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ras.h b/include/linux/ras.h
index 09c632832bf1..a64182bc72ad 100644
--- a/include/linux/ras.h
+++ b/include/linux/ras.h
@@ -45,8 +45,10 @@ struct atl_err {
#if IS_ENABLED(CONFIG_AMD_ATL)
void amd_atl_register_decoder(unsigned long (*f)(struct atl_err *));
void amd_atl_unregister_decoder(void);
+void amd_retire_dram_row(struct atl_err *err);
unsigned long amd_convert_umc_mca_addr_to_sys_addr(struct atl_err *err);
#else
+static inline void amd_retire_dram_row(struct atl_err *err) { }
static inline unsigned long
amd_convert_umc_mca_addr_to_sys_addr(struct atl_err *err) { return -EINVAL; }
#endif /* CONFIG_AMD_ATL */