Skip to content

mips: Improve initial Octeon MIPS64 support

Stefan Roese u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Change mips_mach_early_init() as suggested by Daniel to make it easier to understand and smaller
- Drop CONFIG_BOARD_SIZE_LIMIT

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mips: Add CONFIG_MIPS_MACH_EARLY_INIT for very early mach init codearch/mips/Kconfig arch/mips/cpu/start.S+14 -00 replies
2/5mips: octeon: use mips_mach_early_init() to copy to L2 cachearch/mips/Kconfig arch/mips/mach-octeon/lowlevel_init.S+51 -00 replies
3/5mips: octeon: octeon_ebb7304: Change TEXT_BASE to L2 cacheconfigs/octeon_ebb7304_defconfig+2 -10 replies
4/5mips: cache: Make invalidate_dcache_range() weak to enable overwritearch/mips/lib/cache.c+1 -11 reply
4/5mips: cache: Make invalidate_dcache_range() weak to enable overwrite+0 -00 replies
5/5mips: octeon: Add empty invalidate_dcache_range()arch/mips/mach-octeon/cache.c+4 -00 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDaniel Schwierzeck
1/5R-b
2/5
3/5
4/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] mips: Improve initial Octeon MIPS64 support

This patchset improves the Octeon base support by adding a very early copy of the U-Boot image from bootspace (e.g. parallel NOR CFI flash) to the L2 cache and continue execution there.

This is done by introducing the optional hook mips_mach_early_init() to start.S for very early machine specific code. This code can be selected via the new Kconfig symbol CONFIG_MIPS_MACH_EARLY_INIT.

Additionally, the common invalidate_dcache_range() implementation is also changed to a weak function allowing Octeon to adds its own no-op cache function (Octeon is cache coherent).

This patchset is based on the base Octeon patchsert in v4.

Thanks,
Stefan

Changes in v2:
- Change mips_mach_early_init() as suggested by Daniel to make it easier to understand and smaller
- Drop CONFIG_BOARD_SIZE_LIMIT

Stefan Roese (5):
mips: Add CONFIG_MIPS_MACH_EARLY_INIT for very early mach init code
mips: octeon: use mips_mach_early_init() to copy to L2 cache
mips: octeon: octeon_ebb7304: Change TEXT_BASE to L2 cache
mips: cache: Make invalidate_dcache_range() weak to enable overwrite
mips: octeon: Add empty invalidate_dcache_range()

 arch/mips/Kconfig                     | 10 ++++++
 arch/mips/cpu/start.S                 |  5 +++
 arch/mips/lib/cache.c                 |  2 +-
 arch/mips/mach-octeon/cache.c         |  4 +++
 arch/mips/mach-octeon/lowlevel_init.S | 50 +++++++++++++++++++++++++++
 configs/octeon_ebb7304_defconfig      |  3 +-
 6 files changed, 72 insertions(+), 2 deletions(-)
Signature · 1 line
2.27.0