Skip to content

refactor Andes cache driver for generic platform support

Hui Min Mina Chou linux-devicetree linux-renesas-soc linux-riscv lkml 1 version NAK

Status from this message: NAK, actual ABI break.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesNAK

Changes in this series from the cover letter

- Refactor the ax45mp_cache driver into a generic andes_llcache driver, introducing support for multiple Andes CPU cores and updating the compatible strings accordingly

- Improve initialization by centralizing cache operations

- Improve LLC operation performance by switching to relaxed I/O accessors and eliminating unnecessary fence instructions on I/O memory, leveraging the platform's point-to-point strongly ordered channel guarantee. Also fix hart ID mapping to use cpuid_to_hartid_map() for correct behavior in AMP setups

- Centralize cache operations and adopt native WBINVAL support, simplifying the cache flush/invalidate path

- Rename DT binding schema from andestech,ax45mp-cache to andestech,llcache and update all compatible strings in the RISC-V DTS files accordingly

- Add MAINTAINERS entry for the Andes cache driver

Patches in v1

#Subject and filesSizeRepliesApplied
1/7cache: ax45mp_cache: refactor cache driver for generic Andes platform supportarch/riscv/Kconfig.errata drivers/cache/Kconfig drivers/cache/Makefile +4 more+242 -2234 replies
2/7cache: andes_llcache: refactor initialization and cache operationsdrivers/cache/andes_llcache.c+29 -274 replies
3/7cache: andes_llcache: improve performance of LLC operationdrivers/cache/andes_llcache.c+14 -41 reply
4/7cache: andes_llcache: centralize cache ops and use native WBINVALdrivers/cache/andes_llcache.c+21 -420 replies
5/7dt-bindings: cache: ax45mp-cache: rename ax45mp-cache to llcacheDocumentation/devicetree/bindings/cache/andestech,andes-llcache.yaml+10 -104 replies
6/7dts: riscv: update cache compatible strings to LLCarch/riscv/boot/dts/andes/qilai.dtsi arch/riscv/boot/dts/renesas/r9a07g043f.dtsi+3 -31 reply
7/7MAINTAINERS: Add maintainers for Andes cache driverMAINTAINERS+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] refactor Andes cache driver for generic platform support

This series refactors the Andes cache driver from an AX45MP-specific implementation to a generic Last Level Cache (LLC) driver that supports a broader range of Andes CPU cores.

The main motivation is to decouple the driver from AX45MP-specific naming and assumptions, making it easier to support future Andes platforms without duplicating code.

Changes in this series:

- Refactor the ax45mp_cache driver into a generic andes_llcache driver, introducing support for multiple Andes CPU cores and updating the compatible strings accordingly

- Improve initialization by centralizing cache operations

- Improve LLC operation performance by switching to relaxed I/O accessors and eliminating unnecessary fence instructions on I/O memory, leveraging the platform's point-to-point strongly ordered channel guarantee. Also fix hart ID mapping to use cpuid_to_hartid_map() for correct behavior in AMP setups

- Centralize cache operations and adopt native WBINVAL support, simplifying the cache flush/invalidate path

- Rename DT binding schema from andestech,ax45mp-cache to andestech,llcache and update all compatible strings in the RISC-V DTS files accordingly

- Add MAINTAINERS entry for the Andes cache driver

Hui Min Mina Chou (7):
cache: ax45mp_cache: refactor cache driver for generic Andes platform
support
cache: andes_llcache: refactor initialization and cache operations
cache: andes_llcache: improve performance of LLC operation
cache: andes_llcache: centralize cache ops and use native WBINVAL
dt-bindings: cache: ax45mp-cache: rename ax45mp-cache to llcache
dts: riscv: update cache compatible strings to LLC
MAINTAINERS: Add maintainers for Andes cache driver

 ...ache.yaml => andestech,andes-llcache.yaml} |  20 +-
 MAINTAINERS                                   |   8 +
 arch/riscv/Kconfig.errata                     |   2 +-
 arch/riscv/boot/dts/andes/qilai.dtsi          |   4 +-
 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi   |   2 +-
 drivers/cache/Kconfig                         |   6 +-
 drivers/cache/Makefile                        |   2 +-
 drivers/cache/andes_llcache.c                 | 215 +++++++++++++++++
 drivers/cache/ax45mp_cache.c                  | 217 ------------------
 drivers/soc/renesas/Kconfig                   |   2 +-
 include/linux/soc/andes/csr.h                 |  12 +
 11 files changed, 254 insertions(+), 236 deletions(-)
 rename Documentation/devicetree/bindings/cache/{andestech,ax45mp-cache.yaml => andestech,andes-llcache.yaml} (76%)
 create mode 100644 drivers/cache/andes_llcache.c
 delete mode 100644 drivers/cache/ax45mp_cache.c
 create mode 100644 include/linux/soc/andes/csr.h
Signature · 7 lines
2.34.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv