]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI / PPTT: Add acpi_pptt_cache_v1_full to use pptt cache as one structure
authorBen Horgan <ben.horgan@arm.com>
Wed, 19 Nov 2025 12:22:33 +0000 (12:22 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 19 Nov 2025 18:34:01 +0000 (18:34 +0000)
commitcfc085af8398479e855b86236a21e1d870d51184
tree37065791ba67300f7a2bd01e40dbfbd5209275a6
parenteeec7845e966f9278973c02573e3587e6733a4dd
ACPI / PPTT: Add acpi_pptt_cache_v1_full to use pptt cache as one structure

In actbl2.h, acpi_pptt_cache describes the fields in the original
Cache Type Structure. In PPTT table version 3 a new field was added at the
end, cache_id. This is described in acpi_pptt_cache_v1 but rather than
including all v1 fields it just includes this one.

In lieu of this being fixed in acpica, introduce acpi_pptt_cache_v1_full to
contain all the fields of the Cache Type Structure . Update the existing
code to use this new struct. This simplifies the code and removes a
non-standard use of ACPI_ADD_PTR.

Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Jeremy Linton <jeremy.linton@arm.com>
Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/acpi/pptt.c