From: Yao Zi <me@ziyao.cc>
To: Indrek Kruusa <indrek.kruusa@gmail.com>,
Tim Ouyang <tim609@andestech.com>,
Leo Liang <leo.liang@sifive.com>
Cc: Yao Zi <me@ziyao.cc>, Tom Rini <trini@konsulko.com>,
Han Gao <gaohan@iscas.ac.cn>,
Kongyang Liu <seashell11234455@gmail.com>,
Junhui Liu <junhui.liu@pigmoral.tech>,
Samuel Holland <samuel@sholland.org>,
Andre Przywara <andre.przywara@arm.com>,
Hiago De Franco <hfranco@baylibre.com>,
E Shattow <e@freeshell.de>, Yixun Lan <dlan@kernel.org>,
Raymond Mao <raymond.mao@riscstar.com>,
u-boot@lists.u-boot-project.org
Subject: Re: [PATCH 0/4] riscv: consolidate the T-Head C9xx cache operations and CSRs
Date: Wed, 25 Nov 2026 17:23:47 +0000 [thread overview]
Message-ID: <awcZoxsOHvBdex9_@pie> (raw)
In-Reply-To: <20261124195237.692679-1-indrek.kruusa@gmail.com>
On Tue, Nov 24, 2026 at 09:52:33PM +0200, Indrek Kruusa wrote:
> This series consolidates the vendor-specific cache operations of the
> T-Head C9xx cores and the machine-mode CSRs those ports use, and
> implements the whole-cache operations. It is a prerequisite for the
> upcoming Allwinner D1/D1s support. However, no definitions have been
> added yet that only D1 would use.
>
> The series adds arch/riscv/include/asm/thead_csr.h, with the CSR numbers
> and bitfields the T-Head ports use today. It also adds
> arch/riscv/lib/thead_cache.c: the renamed thead_cmo.c, with the enable and
> disable functions taken from arch/riscv/cpu/th1520/cache.c, which is
> removed.
This isn't what I'd expect. I'd prefer to have separate thead_cmo.c and
thead_cache.c, and also separate Kconfig options, where the earlier
defines operations based on XTheadCMO, and the latter implements
machine-mode-only cache management operations through CSR.
A strong reason to separate them is that Xuantie cores with these cache
CSRs available might not use XTheadCMO, iirc Xuantie C908 is such an
example.
[...]
--
Thanks,
Yao Zi
Meow-mrrp-mrow, I'm a cat.
prev parent reply other threads:[~2026-11-25 17:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 19:52 [PATCH 0/4] riscv: consolidate the T-Head C9xx cache operations and CSRs Indrek Kruusa
2026-11-24 19:52 ` [PATCH 1/4] riscv: thead: add a common header for the C9xx CSRs Indrek Kruusa
2026-11-25 15:00 ` Junhui Liu
2026-11-24 19:52 ` [PATCH 2/4] riscv: th1520: use the common C9xx CSR definitions Indrek Kruusa
2026-11-24 19:52 ` [PATCH 3/4] riscv: lib: rename thead_cmo.c to thead_cache.c Indrek Kruusa
2026-11-24 19:52 ` [PATCH 4/4] riscv: lib: add the whole-cache and enable operations Indrek Kruusa
2026-11-25 17:23 ` Yao Zi [this message]
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=awcZoxsOHvBdex9_@pie \
--to=me@ziyao.cc \
--cc=andre.przywara@arm.com \
--cc=dlan@kernel.org \
--cc=e@freeshell.de \
--cc=gaohan@iscas.ac.cn \
--cc=hfranco@baylibre.com \
--cc=indrek.kruusa@gmail.com \
--cc=junhui.liu@pigmoral.tech \
--cc=leo.liang@sifive.com \
--cc=raymond.mao@riscstar.com \
--cc=samuel@sholland.org \
--cc=seashell11234455@gmail.com \
--cc=tim609@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
/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