Skip to content

MIPS cache code cleanup

Paul Burton u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v10 of 8 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8MIPS: avoid .set ISA for cache operationsarch/mips/cpu/mips32/cache.S arch/mips/cpu/mips32/cpu.c arch/mips/include/asm/cacheops.h+33 -380 replies
2/8MIPS: unify cache maintenance functionsarch/mips/cpu/mips32/cpu.c arch/mips/cpu/mips64/cpu.c arch/mips/lib/Makefile +1 more+119 -1670 replies
3/8MIPS: unify cache initialization codearch/mips/cpu/mips32/Makefile arch/mips/cpu/mips64/Makefile arch/mips/cpu/mips64/cache.S +2 more+15 -2240 replies
4/8MIPS: refactor L1 cache config reads to a macroarch/mips/lib/cache_init.S+41 -560 replies
5/8MIPS: refactor cache loops to a macroarch/mips/lib/cache_init.S+13 -170 replies
6/8MIPS: inline mips_init_[id]cache functionsarch/mips/lib/cache_init.S+28 -580 replies
7/8MIPS: allow systems to skip loads during cache initarch/mips/Kconfig arch/mips/lib/cache_init.S+19 -60 replies
8/8MIPS: clear TagLo select 2 during cache initarch/mips/lib/cache_init.S+8 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/8] MIPS cache code cleanup

This series cleans up the MIPS cache code somewhat, and unifies the mips32 & mips64 implementations of it. This is largely in preparation for further patches adding L2 cache support. The final patch of this series fixes a bug encountered with recent cores on Malta boards.

Paul Burton (8):
MIPS: avoid .set ISA for cache operations
MIPS: unify cache maintenance functions
MIPS: unify cache initialization code
MIPS: refactor L1 cache config reads to a macro
MIPS: refactor cache loops to a macro
MIPS: inline mips_init_[id]cache functions
MIPS: allow systems to skip loads during cache init
MIPS: clear TagLo select 2 during cache init

 arch/mips/Kconfig                                  |   6 +
 arch/mips/cpu/mips32/Makefile                      |   3 +-
 arch/mips/cpu/mips32/cpu.c                         | 119 -----------
 arch/mips/cpu/mips64/Makefile                      |   2 +-
 arch/mips/cpu/mips64/cache.S                       | 213 --------------------
 arch/mips/cpu/mips64/cpu.c                         |  58 ------
 arch/mips/include/asm/cacheops.h                   |  13 ++
 arch/mips/lib/Makefile                             |   2 +
 arch/mips/lib/cache.c                              | 118 +++++++++++
 arch/mips/{cpu/mips32/cache.S => lib/cache_init.S} | 222 +++++++++------------
 10 files changed, 232 insertions(+), 524 deletions(-)
 delete mode 100644 arch/mips/cpu/mips64/cache.S
 create mode 100644 arch/mips/lib/cache.c
 rename arch/mips/{cpu/mips32/cache.S => lib/cache_init.S} (59%)
Signature · 1 line
2.2.2