]> git.ipfire.org Git - thirdparty/linux.git/commit
ARM: 9433/2: implement cacheinfo support
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 14 Jan 2025 11:54:52 +0000 (12:54 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 14 Jan 2025 12:29:30 +0000 (12:29 +0000)
commita9ff94477836cb43d94efbd9a851213944800177
tree5a805a10862227e2a6330df0df3d66fbf88a89ff
parent961d234779867695a7724fd4fb0a5a1bd3d4ccab
ARM: 9433/2: implement cacheinfo support

On ARMv7 / v7m machines read CTR and CLIDR registers to provide
information regarding the cache topology. Earlier machines should
describe full cache topology in the device tree.

Note, this follows the ARM64 cacheinfo support and provides only minimal
support required to bootstrap cache info. All useful properties should
be decribed in Device Tree.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/Kconfig
arch/arm/include/asm/cache.h
arch/arm/kernel/Makefile
arch/arm/kernel/cacheinfo.c [new file with mode: 0644]
include/linux/cacheinfo.h