Skip to content

MIPS: improve BMIPS support

Jonas Gorski linux-mips 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/213 patches 0 repliesNew
  2. v2 posting 1/21 patch 5 repliesSuperseded
  3. v110 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* dropped the compilation fix (a different fix was already comitted)
* rebased on the cpu-type cleanup patches
* used the cpu-type cleanup effects to remove the macros and replace them with normal switch-cases.
* Let BCM47XX_SSB also select BMIPS32_3300

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13MIPS: BCM63XX: disable SMP also on BCM3368arch/mips/bcm63xx/prom.c+4 -40 replies
2/13MIPS: allow asm/cpu.h to be included from assemblyarch/mips/include/asm/cpu.h+3 -00 replies
3/13MIPS: BMIPS: change compile time checks to runtime checksarch/mips/bcm63xx/prom.c arch/mips/include/asm/bmips.h arch/mips/kernel/bmips_vec.S +1 more+235 -1370 replies
4/13MIPS: BMIPS: merge CPU options into one optionarch/mips/Kconfig+39 -410 replies
5/13MIPS: BMIPS: select CPU_SUPPORTS_HIGHMEMarch/mips/Kconfig+1 -10 replies
6/13MIPS: BMIPS: select CPU_HAS_PREFETCHarch/mips/Kconfig+1 -00 replies
7/13MIPS: BMIPS: extend BMIPS3300 to include BMIPS32arch/mips/Kconfig+4 -40 replies
8/13MIPS: BMIPS: add a smp ops registration helperarch/mips/Kconfig arch/mips/bcm63xx/prom.c arch/mips/include/asm/bmips.h+28 -10 replies
9/13MIPS: BCM63XX: always register bmips smp opsarch/mips/bcm63xx/prom.c+2 -40 replies
10/13MIPS: BCM63XX: let the individual SoCs select the appropriate CPUsarch/mips/Kconfig arch/mips/bcm63xx/Kconfig+8 -10 replies
11/13MIPS: BCM47XX: select BMIPS CPUs for BCM47XX_SSBarch/mips/bcm47xx/Kconfig+1 -00 replies
12/13MIPS: cpu-type: guard BMIPS variants with SYS_HAS_CPU_BMIPS*arch/mips/include/asm/cpu-type.h+10 -30 replies
13/13MIPS: BCM63XX: drop SYS_HAS_CPU_MIPS32R1arch/mips/Kconfig+0 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 00/13] MIPS: improve BMIPS support

This patchset aims at unifying the different BMIPS support code to allow building a kernel that runs on multiple BCM63XX SoCs which might have different BMIPS flavours on them, regardless of SMP support enabled in the kernel.

The first few patches clean up BMIPS itself and prepare it for multi-cpu support, while the latter add support to BCM63XX for running a SMP kernel with support for all SoCs, even those that do not have a SMP capable CPU.

This patchset is runtime tested on BCM6348, BCM6328 and BCM6368, to verify that it actually does what it claims it does.

Lacking hardware, it is only build tested for BMIPS4380 and BMIPS5000.

Changes V1 -> V2:
* dropped the compilation fix (a different fix was already comitted)
* rebased on the cpu-type cleanup patches
* used the cpu-type cleanup effects to remove the macros and replace them with normal switch-cases.
* Let BCM47XX_SSB also select BMIPS32_3300

Jonas Gorski (13):
MIPS: BCM63XX: disable SMP also on BCM3368
MIPS: allow asm/cpu.h to be included from assembly
MIPS: BMIPS: change compile time checks to runtime checks
MIPS: BMIPS: merge CPU options into one option
MIPS: BMIPS: select CPU_SUPPORTS_HIGHMEM
MIPS: BMIPS: select CPU_HAS_PREFETCH
MIPS: BMIPS: extend BMIPS3300 to include BMIPS32
MIPS: BMIPS: add a smp ops registration helper
MIPS: BCM63XX: always register bmips smp ops
MIPS: BCM63XX: let the individual SoCs select the appropriate CPUs
MIPS: BCM47XX: select BMIPS CPUs for BCM47XX_SSB
MIPS: cpu-type: guard BMIPS variants with SYS_HAS_CPU_BMIPS*
MIPS: BCM63XX: drop SYS_HAS_CPU_MIPS32R1

 arch/mips/Kconfig                |  84 +++++------
 arch/mips/bcm47xx/Kconfig        |   1 +
 arch/mips/bcm63xx/Kconfig        |   8 +
 arch/mips/bcm63xx/prom.c         |  14 +-
 arch/mips/include/asm/bmips.h    |  29 +++-
 arch/mips/include/asm/cpu-type.h |  13 +-
 arch/mips/include/asm/cpu.h      |   3 +
 arch/mips/kernel/bmips_vec.S     |  55 +++++--
 arch/mips/kernel/smp-bmips.c     | 312 ++++++++++++++++++++++++---------------
 9 files changed, 329 insertions(+), 190 deletions(-)
Signature · 1 line
1.8.5.1