Re: [PATCH 03/33] ACPI / PPTT: Add acpi_pptt_cache_v1_full to use pptt cache as one structure
From: Fenghua Yu
Date: Wed Nov 12 2025 - 15:22:35 EST
On 11/7/25 04:34, Ben Horgan wrote:
In actbl2.h, struct 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 struct acpi_pptt_cache_v1. Introduce
the new, acpi_pptt_cache_v1_full to contain both these structures. Update
the existing code to use this new struct. This simplifies the code, removes
a non-standard use of ACPI_ADD_PTR and allows using the length in the
header to check if the cache_id is valid.
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Reviewed-by: Fenghua Yu <fenghuay@xxxxxxxxxx>
Thanks.
-Fenghua