]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ACPI/PPTT: Handle architecturally unknown cache types
authorJeffrey Hugo <jhugo@codeaurora.org>
Thu, 4 Oct 2018 15:20:06 +0000 (09:20 -0600)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:58:13 +0000 (19:58 -0600)
commitfa808b2bc28c53fdc2f14815ac6fba12ad91af2c
treeff8cc00c413e07e934d6c4f0992aca30271fff5e
parent3179e595431a9ce3aa989f0536e85a66c3d1b8fc
ACPI/PPTT: Handle architecturally unknown cache types

BugLink: https://bugs.launchpad.net/bugs/1836802
[ Upstream commit 59bbff3775c0951300f7b41345a54b999438f8d0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/pptt.c