[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250603083157.GAaD6y_fec2X_hTnav@fat_crate.local>
Date: Tue, 3 Jun 2025 10:31:57 +0200
From: Borislav Petkov <bp@...en8.de>
To: "Luck, Tony" <tony.luck@...el.com>
Cc: Zaid Alali <zaidal@...amperecomputing.com>, rafael@...nel.org,
lenb@...nel.org, james.morse@....com, robert.moore@...el.com,
Jonathan.Cameron@...wei.com, ira.weiny@...el.com,
Benjamin.Cheatham@....com, dan.j.williams@...el.com, arnd@...db.de,
Avadhut.Naik@....com, john.allen@....com,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
acpica-devel@...ts.linux.dev
Subject: Re: [PATCH v7 9/9] ACPI: APEI: EINJ: Update the documentation for
EINJv2 support
On Mon, Jun 02, 2025 at 10:02:15AM -0700, Luck, Tony wrote:
> The actual structure passed to BIOS is the same each time. Just the
> set_error_type_with_address::einjv2_struct::component_arr_count
> changed to indicate how many errors to inject. In theory the
> driver could allocate and copy a correctly sized structure, but
> Zaid's code here is simpler, an this is hardly a critical path.
Right, allocate it once on driver init and keep massaging it on every
injection. Simple.
> This is just an improvement on my "option 1" (improved because all-ones
> for the component ID is going to be invalid for sure, while all zeroes
> could be a valid component).
Right, you need to know at injection time which of the components are valid
and which are not.
> Or just stop collecting on the first invalid one.
That would mean that you punish the user at the first typo. :-P
Considering how complex those interfaces become perhaps not such a good
idea...
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists