From: Robin Murphy <robin.murphy@arm.com>
To: Amit Singh Tomar <amitsinght@marvell.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: linux-kernel@vger.kernel.org, Marc Zyngier <maz@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Mark Rutland <mark.rutland@arm.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org,
acpica-devel@lists.linux.dev
Subject: Re: [PATCH v6 1/1] irqchip/gic-v3: Enable non-coherent redistributors/ITSes ACPI probing
Date: Fri, 7 Jun 2024 10:10:17 +0100 [thread overview]
Message-ID: <d1ce4b09-c0ac-447e-8779-633bfb2bd8c3@arm.com> (raw)
In-Reply-To: <02dba55e-39a3-4853-ac52-834cb1c0fc7f@marvell.com>
On 2024-06-07 8:53 am, Amit Singh Tomar wrote:
>> On Fri, Jun 07, 2024 at 12:21:54AM +0530, Amit Singh Tomar wrote:
>>
>> [...]
>>
>>>> diff --git a/drivers/acpi/processor_core.c
>>>> b/drivers/acpi/processor_core.c
>>>> index b203cfe28550..915713c0e9b7 100644
>>>> --- a/drivers/acpi/processor_core.c
>>>> +++ b/drivers/acpi/processor_core.c
>>>> @@ -215,6 +215,21 @@ phys_cpuid_t __init acpi_map_madt_entry(u32
>>>> acpi_id)
>>>> return rv;
>>>> }
>>>> +int __init acpi_get_madt_revision(void)
>>>
>>> Wondering, if we can have a generic function (acpi_get_tbl_revision) to
>>> obtain the revision number for any ACPI table, not just specific to
>>> MADT?
>>
>> We could - I don't think there would be users other than code in this
>> patch though so I thought it would not be necessary.
>>
>
> Right, it might not be essential now but I see that MPAM will be another
> user of it once the MPAM patches are out.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/tree/drivers/acpi/arm64/mpam.c?h=mpam/snapshot/v6.7-rc2#n299
Not really; there's already plenty of ACPI code which checks the
revision of a table *while* also parsing other information from it, and
that MPAM code is doing the same. Using a standalone function to look up
the table, check one thing and throw it away, and then immediately have
to look it up again to do the rest would be needlessly overcomplicated.
The thing in the GIC case is that doing this semi-redundant lookup to
re-retrieve the top-level MADT header while we're already deep into
parsing its subtables is still the least-worst option, because the
alternative would be invasively churning the whole common MADT
abstraction to pass that information all the way down just for this one
slightly niche thing.
Thanks,
Robin.
prev parent reply other threads:[~2024-06-07 9:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-23 11:03 [PATCH v5 0/1] irqchip/gic-v3: Enable non-coherent GIC designs probing Lorenzo Pieralisi
2024-01-23 11:03 ` [PATCH v5 1/1] irqchip/gic-v3: Enable non-coherent redistributors/ITSes ACPI probing Lorenzo Pieralisi
2024-01-23 13:36 ` Robin Murphy
2024-04-22 8:42 ` Lorenzo Pieralisi
2024-06-05 7:14 ` Lorenzo Pieralisi
2024-06-05 8:40 ` Marc Zyngier
2024-03-06 14:43 ` [PATCH v5 0/1] irqchip/gic-v3: Enable non-coherent GIC designs probing Lorenzo Pieralisi
2024-04-08 14:54 ` Lorenzo Pieralisi
2024-06-06 9:42 ` [PATCH v6 " Lorenzo Pieralisi
2024-06-06 9:42 ` [PATCH v6 1/1] irqchip/gic-v3: Enable non-coherent redistributors/ITSes ACPI probing Lorenzo Pieralisi
2024-06-06 14:40 ` [tip: irq/core] " tip-bot2 for Lorenzo Pieralisi
2024-06-06 18:51 ` [PATCH v6 1/1] " Amit Singh Tomar
2024-06-07 7:39 ` Lorenzo Pieralisi
2024-06-07 7:53 ` Amit Singh Tomar
2024-06-07 9:10 ` Robin Murphy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d1ce4b09-c0ac-447e-8779-633bfb2bd8c3@arm.com \
--to=robin.murphy@arm.com \
--cc=acpica-devel@lists.linux.dev \
--cc=amitsinght@marvell.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=rafael@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®