[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240701165926.GIZoLgbknHklmJ143Z@fat_crate.local>
Date: Mon, 1 Jul 2024 18:59:26 +0200
From: Borislav Petkov <bp@...en8.de>
To: John Allen <john.allen@....com>
Cc: rafael@...nel.org, lenb@...nel.org, yazen.ghannam@....com,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-edac@...r.kernel.org
Subject: Re: [PATCH v2 2/2] RAS/AMD/ATL: Translate normalized to system
physical addresses using PRM
On Mon, Jul 01, 2024 at 11:43:35AM -0500, John Allen wrote:
> This is because the spec defines different param buffer structures for
> different types of translation. We can call this just param_buffer for
> now, but would need to be renamed if/when we add use cases for the other
> translation handlers. My preference would be to sort of future-proof
> the name now, but I don't have an issue calling it param_buffer now and
> changing it later if that's what you'd prefer.
Sure:
/*
* PRM parameter buffer - normalized to system physical address, as described
* in the section "PRM Parameter Buffer" in the aforementioned spec.
*/
struct norm_to_spa_param_buf {
...
} __packed;
and you'll have to mention the spec in the prm.c file, at the top.
This way readers can immediately map it to the place in the spec.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists