ACPI/PPTT: Handle architecturally unknown cache types
authorJeffrey Hugo <jhugo@codeaurora.org>
Thu, 4 Oct 2018 15:20:06 +0000 (09:20 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Oct 2018 21:02:17 +0000 (23:02 +0200)
commit59bbff3775c0951300f7b41345a54b999438f8d0
treed25c1be9819e008e002f0b7b0202243e4c19262e
parentca388e436f588a7fa88fcdefcb0b2c55aff6836c
ACPI/PPTT: Handle architecturally unknown cache types

The type of a cache might not be specified by architectural mechanisms (ie
system registers), but its type might be specified in the PPTT.  In this
case, we should populate the type of the cache, rather than leave it
undefined.

This fixes the issue where the cacheinfo driver will not populate sysfs
for such caches, resulting in the information missing from utilities like
lstopo and lscpu, thus degrading the user experience.

Fixes: 2bd00bcd73e5 (ACPI/PPTT: Add Processor Properties Topology Table parsing)
Reported-by: Vijaya Kumar K <vkilari@codeaurora.org>
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pptt.c