ACPI: tables: PPTT: Populate cache-id if provided by firmware
authorJames Morse <james.morse@arm.com>
Tue, 1 Jun 2021 12:17:35 +0000 (13:17 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jun 2021 13:55:02 +0000 (15:55 +0200)
commit7ca1a8014d860d23001605f63c1402f1092a58d5
tree2844841e1e9393ceb5416b363cd077dbc1c43501
parent614124bea77e452aa6df7a8714e8bc820b489922
ACPI: tables: PPTT: Populate cache-id if provided by firmware

ACPI 6.4 adds a 'cache id' to the PPTT Cache Type Structure.

Copy this property across into the cacheinfo leaf when it was
provided by firmware.

This value gets exposed to userspace as:
/sys/devices/system/cpu/cpu*/cache/index*/id.

See the "Cache IDs" section of Documentation/x86/resctrl.rst.

Co-authored-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pptt.c