Re: [PATCH v2 2/2] RAS/AMD/ATL: Require PRM support for future systems

From: Borislav Petkov

Date: Mon Oct 27 2025 - 15:29:11 EST


On Fri, Oct 17, 2025 at 01:26:29PM +0000, Yazen Ghannam wrote:
> + /* All other systems should have PRM handlers. */
> + if (!acpi_prm_handler_available(&norm_to_sys_guid)) {
> + pr_debug("PRM not available\n");
> + return -ENODEV;
> + }
> +
> + df_cfg.flags.prm_only = true;
> + return 0;
> }
>
> static int get_dram_hole_base(void)
> @@ -297,6 +305,9 @@ int get_df_system_info(void)
> return ret;
> }
>
> + if (df_cfg.flags.prm_only)
> + return 0;
> +
> apply_node_id_shift();
>
> get_num_maps();
> diff --git a/drivers/ras/amd/atl/umc.c b/drivers/ras/amd/atl/umc.c
> index 6e072b7667e9..18ce419236a5 100644
> --- a/drivers/ras/amd/atl/umc.c
> +++ b/drivers/ras/amd/atl/umc.c
> @@ -422,7 +422,7 @@ unsigned long convert_umc_mca_addr_to_sys_addr(struct atl_err *err)
> socket_id, die_id, coh_st_inst_id, addr);
>
> ret_addr = prm_umc_norm_to_sys_addr(socket_id, err->ipid, addr);
> - if (!IS_ERR_VALUE(ret_addr))
> + if (!IS_ERR_VALUE(ret_addr) || df_cfg.flags.prm_only)
> return ret_addr;
>

Much better, thanks!

Both applied.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette