]> git.itanic.dy.fi Git - linux-stable/commit
cacheinfo: Use cache identifiers to check if the caches are shared if available
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:15:51 +0000 (11:15 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:22:28 +0000 (16:22 +0100)
commitf16d1becf96f0a95dc9e1a5a7f97feeec2b149d5
treea33a409fa9824a7887b86324e9ef282587feef5f
parent36bbc5b4ffab33ccac0f4db27f619a6ba7a4fd32
cacheinfo: Use cache identifiers to check if the caches are shared if available

The cache identifiers is an optional property on most of the platforms.
The presence of one must be indicated by the CACHE_ID valid bit in the
attributes.

We can use the cache identifiers provided by the firmware to check if
any two cpus share the same cache instead of relying on the fw_token
generated and set in the OS.

Link: https://lore.kernel.org/r/20220704101605.1318280-8-sudeep.holla@arm.com
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/base/cacheinfo.c