From: Mina Chou <minachou@andestech.com>
To: Conor Dooley <conor@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>, <pjw@kernel.org>,
<palmer@dabbelt.com>, <aou@eecs.berkeley.edu>, <alex@ghiti.fr>,
<jic23@kernel.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <geert+renesas@glider.be>,
<magnus.damm@gmail.com>,
<prabhakar.mahadev-lad.rj@bp.renesas.com>,
<linux-riscv@lists.infradead.org>, <devicetree@vger.kernel.org>,
<linux-renesas-soc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <randolph@andestech.com>,
<cyyang772@andestech.com>, <tim609@andestech.com>,
<az70021@gmail.com>
Subject: Re: [PATCH v2 12/19] dt-bindings: cache: andestech: update schema for generic LLC support
Date: Tue, 17 Nov 2026 17:20:49 +0800 [thread overview]
Message-ID: <avwcZfHRZvGMVMkB@atcsi01.andestech.com> (raw)
In-Reply-To: <20261116-deduct-emphasize-b2482186cfcb@spud>
On Mon, Nov 16, 2026 at 06:00:43PM +0000, Conor Dooley wrote:
> > > > select:
> > > > @@ -21,18 +22,23 @@ select:
> > > > contains:
> > > > enum:
> > > > - andestech,ax45mp-cache
> > > > + - andestech,llcache
> > > >
> > > > required:
> > > > - compatible
> > > >
> > > > properties:
> > > > compatible:
> > > > - items:
> > > > - - enum:
> > > > - - andestech,qilai-ax45mp-cache
> > > > - - renesas,r9a07g043f-ax45mp-cache
> > > > - - const: andestech,ax45mp-cache
> > > > - - const: cache
> > > > + oneOf:
> > > > + - items:
> > > > + - enum:
> > > > + - andestech,qilai-ax45mp-cache
> > > > + - renesas,r9a07g043f-ax45mp-cache
> > > > + - const: andestech,ax45mp-cache
> > > > + - const: cache
> >
> > Illogical split of patches. If this was to stay, then THIS commit is the
> > reason to rename so rename would happen here, not in some time in the
> > future. Same for everything you do.
> >
> > Organize your patches correctly, not doing things half-baked... but
> > anyway do not rename files just because you added one compatible.
Hi Krzysztof, Conor,
Thanks for the reviews.
My understanding is that the file should not be renamed at all, rather
than having the rename squashed into this patch, so I will keep
andestech,ax45mp-cache.yaml in v3. Please let me know if I misread
that.
> >
> >
> > > > + - items:
> > > > + - const: andestech,llcache
> > > > + - const: cache
> > >
> > > Device specific compatibles are mandatory. I would accept this patch
> > > with a
> > > - not: {}
> > > description: Need a SoC specific compatible
> > > like the safexcel eip binding.
> >
> > But why all others cannot use ax45mp as fallback? Is this really a
> > generic block among multiple generations of SoCs?
>
> I think it's fairly likely that it is.
> I do like having constraints that restrict cache-sets etc to what the
> device can actually do, but using ax45mp as a fallback doesn't prevent
> that, since the constraints are really set by the soc.
> >
> > What sort of arguments from contributors are to support that?
> >
> >
The L2 cache controllers of the Andes 25/27 series (A27L2, AX25MP, ...)
and of the 45 series are separate implementations, but they follow a
common Andes register interface: the configuration, control, error,
CCTL command, access line and status are at the same offsets and
behave the same way. The driver is written against this common
interface only. All the SoCs this series targets use it:
the AX45MP in RZ/Five and QiLai, and the A27L2 in Allwinner V821.
The A27L2 does not have the AX45MP's controller, so using
andestech,ax45mp-cache as its fallback would suggest that it does.
andestech,llcache is meant to describe the common interface instead,
and the driver only needs to match it.
Would it be fine to keep andestech,llcache if I add the "not: {}"
placeholder for the SoC specific compatible, as Conor suggested? If so,
I will do that in v3, and the V821 cache compatible will come with the
V821 devicetree series from Allwinner.
> > > >
> > > > reg:
> > > > maxItems: 1
> > > > @@ -44,13 +50,11 @@ properties:
> > > > const: 64
> > > >
> > > > cache-level:
> > > > - const: 2
> > > > + enum: [2, 3]
> > > >
> > > > - cache-sets:
> > > > - enum: [1024, 2048]
> > > > + cache-sets: true
> > > >
> > > > - cache-size:
> > > > - enum: [131072, 262144, 524288, 1048576, 2097152]
> > > > + cache-size: true
> >
> >
> > See writing bindings. Widest constraints stay here.
>
> I think how this should be done probably depends on just how much
> variance there is intended to be. How many more configurations do you
> envisage here Mina, and do they follow a similar scheme of being
> multiples of 128 KiB?
>
>
Yes, the cache size is configured per SoC as a power of two multiple of
128 KiB, up to 8 MiB on the AX45MP and up to 2 MiB on the A27L2, and
the number of sets ranges from 128 to 8192. So there is a fixed, small
set of configurations, and in v3 I will list these values at the top
level.
Best regards,
Mina
next prev parent reply other threads:[~2026-11-17 9:21 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 7:11 [PATCH v2 00/19] riscv: andes: make the LLC driver and cache errata generic Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 01/19] cache: ax45mp_cache: use __initconst for ax45mp_cmo_ops Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 02/19] cache: ax45mp_cache: rename AX45MP-specific identifiers to generic ANDES Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 03/19] cache: ax45mp_cache: rename L2 identifiers to LLC Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 04/19] cache: ax45mp_cache: add shared header for Andes CSRs Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 05/19] cache: ax45mp_cache: standardize macro naming for LLC and L1D registers Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 06/19] cache: ax45mp_cache: rename ax45mp_cache.c to andes_llcache.c Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 07/19] cache: andes_llcache: clean up cache inv/wback functions Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 08/19] cache: andes_llcache: use u32 and fix the cache-line-size error message Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 09/19] cache: andes_llcache: write the full physical address for CCTL Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 10/19] cache: andes_llcache: register cache ops only when the errata needs them Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 11/19] cache: andes_llcache: use the hart ID to index the CCTL registers Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 12/19] dt-bindings: cache: andestech: update schema for generic LLC support Mina Hui-Min Chou
2026-11-13 14:05 ` Conor Dooley
2026-11-16 12:05 ` Krzysztof Kozlowski
2026-11-16 18:00 ` Conor Dooley
2026-11-17 9:20 ` Mina Chou [this message]
2026-11-13 7:11 ` [PATCH v2 13/19] dt-bindings: cache: rename andestech,ax45mp-cache to andestech,llcache Mina Hui-Min Chou
2026-11-13 14:01 ` Conor Dooley
2026-11-16 12:01 ` Krzysztof Kozlowski
2026-11-13 7:11 ` [PATCH v2 14/19] cache: andes_llcache: add generic andestech,llcache compatible Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 15/19] MAINTAINERS: Add maintainer for Andes cache driver Mina Hui-Min Chou
2026-11-13 7:11 ` [PATCH v2 16/19] riscv: errata: andes: allow ERRATA_ANDES_CMO on all Andes SoCs Mina Hui-Min Chou
2026-11-13 14:00 ` Conor Dooley
2026-11-17 3:28 ` Mina Chou
2026-11-13 7:11 ` [PATCH v2 17/19] riscv: errata: andes: generalize cache errata for Andes cores Mina Hui-Min Chou
2026-11-13 13:59 ` Conor Dooley
2026-11-13 7:11 ` [PATCH v2 18/19] riscv: errata: andes: limit the IOCP workaround to RZ/Five Mina Hui-Min Chou
2026-11-13 13:53 ` Conor Dooley
2026-11-17 9:24 ` Mina Chou
2026-11-13 16:21 ` [PATCH v2 00/19] riscv: andes: make the LLC driver and cache errata generic Conor Dooley
2026-11-16 1:22 ` Mina Chou
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=avwcZfHRZvGMVMkB@atcsi01.andestech.com \
--to=minachou@andestech.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=az70021@gmail.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=cyyang772@andestech.com \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=magnus.damm@gmail.com \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=randolph@andestech.com \
--cc=robh@kernel.org \
--cc=tim609@andestech.com \
/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
all inboxes | Powered by JetHome®