lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251027192019.GAaP_F8yifQ1TKlqtO@fat_crate.local>
Date: Mon, 27 Oct 2025 20:20:19 +0100
From: Borislav Petkov <bp@...en8.de>
To: Yazen Ghannam <yazen.ghannam@....com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>, Len Brown <lenb@...nel.org>,
	Tony Luck <tony.luck@...el.com>, linux-acpi@...r.kernel.org,
	linux-kernel@...r.kernel.org, linux-edac@...r.kernel.org,
	Avadhut Naik <avadhut.naik@....com>,
	John Allen <john.allen@....com>,
	Mario Limonciello <mario.limonciello@....com>,
	"Mario Limonciello (AMD)" <superm1@...nel.org>
Subject: Re: [PATCH v2 2/2] RAS/AMD/ATL: Require PRM support for future
 systems

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ