Re: [PATCH v4 1/3] RAS: Introduce AMD Address Translation Library

From: Borislav Petkov
Date: Tue Dec 19 2023 - 11:40:41 EST


On Mon, Dec 18, 2023 at 01:04:04PM -0600, Yazen Ghannam wrote:
> +unsigned long norm_to_sys_addr(u8 socket_id, u8 die_id, u8 coh_st_inst_id, unsigned long addr)
> +{
> + struct addr_ctx ctx;
> +
> + if (df_cfg.rev == UNKNOWN)
> + return -EINVAL;

Right, I know I suggested this but, will we ever have valid system
physical addresses in the range of

0xfffffffffffff001 (-MAX_ERRNO) - 0xffffffffffffffff (-EPERM)

?

--
Regards/Gruss,
Boris.

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