Commit 1ab6383e authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

ACPI / PPTT: Provide a helper to walk processor containers

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/log/?h=mpam/snapshot/v6.7-rc2



---------------------------

The PPTT describes CPUs and caches, as well as processor containers.

To enable PPI partitions, the irqchip driver needs to know how many
partitions the platform has, and which CPUs belong to which partition.
When a percpu interrupt is registered, the partition is provided to allow
a different driver to request the same percpu interrupt intid, one per
partition.

The acpi_id of the Processor Container is the natural way to do this
with ACPI, but the DSDT AML interpreter is not available early enough
for the irqchipi driver. Fortunately, the same information can be
described in the PPTT.

Add a helper to count the number or Processor Containers in the PPTT.
This is structured as a walker/callback as the irqchip driver will
also use this to configure each partition.

Only Processor entries in the PPTT that have a valid acpi id are considered
as containers. To identify a particular Processor Container, it must have
an id.

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent 689cbe75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment