From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Subject: [PATCH RESEND 0/2] ARM: implement cacheinfo support (for v7/v7m)
Date: Tue, 30 Apr 2024 04:20:07 +0300 [thread overview]
Message-ID: <20240430-armv7-cacheinfo-v1-0-e3d1caa40dc5@linaro.org> (raw)
Follow the ARM64 platform and implement simple cache information driver.
As it reads data from CTR (ARMv6+) and CLIDR (ARMv7+) registers, it is
limited to the ARMv7 / ARMv7M, providing simple fallback or just
returning -EOPNOTSUPP in case of older platforms.
In theory we should be able to skip CLIDR reading and assume that Dcache
and Icache (or unified L1 cache) always exist if CTR is supported and
returns sensible value. However I think this better be handled by the
maintainers of corresponding platforms.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
Dmitry Baryshkov (2):
ARM: add CLIDR accessor functions
ARM: implement cacheinfo support
arch/arm/Kconfig | 1 +
arch/arm/include/asm/cache.h | 6 ++
arch/arm/include/asm/cachetype.h | 13 ++++
arch/arm/kernel/Makefile | 1 +
arch/arm/kernel/cacheinfo.c | 164 +++++++++++++++++++++++++++++++++++++++
include/linux/cacheinfo.h | 2 +-
6 files changed, 186 insertions(+), 1 deletion(-)
---
base-commit: 39676dfe52331dba909c617f213fdb21015c8d10
change-id: 20231231-armv7-cacheinfo-9fa533ae371e
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
next reply other threads:[~2024-04-30 1:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 1:20 Dmitry Baryshkov [this message]
2024-04-30 1:20 ` [PATCH RESEND 1/2] ARM: add CLIDR accessor functions Dmitry Baryshkov
2024-04-30 1:20 ` [PATCH RESEND 2/2] ARM: implement cacheinfo support Dmitry Baryshkov
-- strict thread matches above, loose matches on Subject: below --
2024-02-20 22:57 [PATCH RESEND 0/2] ARM: implement cacheinfo support (for v7/v7m) Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240430-armv7-cacheinfo-v1-0-e3d1caa40dc5@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux@armlinux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).