Re: [PATCH v2 00/19] riscv: andes: make the LLC driver and cache errata generic

From: Conor Dooley

Date: Fri Nov 13 2026 - 11:58:33 EST


On Fri, Nov 13, 2026 at 03:11:24PM +0800, Mina Hui-Min Chou wrote:
> The Andes last level cache (LLC) driver and the Andes cache errata were
> written for the AX45MP core in the Renesas RZ/Five. Other Andes cores use
> the same LLC controller and need the same CCTL-based cache maintenance,
> but the driver, its binding and the errata only handle AX45MP.
>
> This series makes them generic, in preparation for the Allwinner V821
> SoC [1][2], which uses the Andes A27L2 core [3]. The A27L2 has neither
> IOCP nor Zicbom, so it relies on the LLC driver for DMA cache
> maintenance.
>
> The series is organized as follows:
>
> - Patches 2-6 rename the AX45MP and L2 identifiers to generic Andes and
> LLC names, move the Andes CSR definitions to a shared header, and
> rename ax45mp_cache.c to andes_llcache.c. No functional change.
>
> - Patches 1, 7 and 8 are small cleanups. No functional change.
>
> - Patches 9-11 fix issues that do not show up on RZ/Five but affect
> other Andes platforms:
> - write the full physical address to the 64-bit CCTL registers,
> - register the CCTL cache ops only when the errata asks for them, so
> that they do not override Zicbom CMO,
> - index the per-core CCTL registers by hart ID, not logical CPU
> number.
>
> - Patches 12-15 add andestech,llcache as a generic compatible, keep
> andestech,ax45mp-cache for existing devicetrees, and add a
> MAINTAINERS entry for the driver.
>
> - Patches 16-18 make the Andes cache errata usable on any Andes SoC:
> ERRATA_ANDES_CMO no longer depends on ARCH_R9A07G043, Andes cores
> other than AX45MP use the CCTL ops when they do not implement Zicbom,
> and the SBI-based IOCP check is limited to RZ/Five.

> - Patch 19 adds the andestech,a27l2 CPU compatible. The V821 devicetree
> will be submitted separately by Allwinner.

This patch is missing.

Attachment: signature.asc
Description: PGP signature