Skip to content

MIPS: Loongson-3: Add NUMA and Loongson-3B support

Huacai Chen linux-mips 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 3 repliesIn review
  2. v28 patches 7 repliesSuperseded
  3. v19 patches 13 repliesSuperseded

Changes in v3 from the cover letter

1, Rebase the code for 3.17.
2, Reviewed by Andreas Herrmann.
3, Rework the patch "MIPS: Add NUMA support for Loongson-3".

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8MIPS: Support hard limit of cpu count (nr_cpu_ids)arch/mips/kernel/setup.c+20 -00 replies
2/8MIPS: Support CPU topology files in sysfsarch/mips/include/asm/cpu-info.h arch/mips/include/asm/smp.h arch/mips/kernel/proc.c +1 more+33 -10 replies
3/8MIPS: Loongson: Modify ChipConfig register definitionarch/mips/include/asm/mach-loongson/loongson.h arch/mips/loongson/common/env.c arch/mips/loongson/common/pm.c +4 more+28 -140 replies
4/8MIPS: Add NUMA support for Loongson-3arch/mips/include/asm/addrspace.h arch/mips/include/asm/mach-loongson/boot_param.h arch/mips/include/asm/mach-loongson/kernel-entry-init.h +10 more+445 -53 replies
5/8MIPS: Add numa api supportarch/mips/kernel/scall32-o32.S arch/mips/kernel/scall64-64.S arch/mips/kernel/scall64-n32.S +1 more+13 -130 replies
6/8MIPS: Add Loongson-3B supportarch/mips/include/asm/cpu.h arch/mips/include/asm/mach-loongson/boot_param.h arch/mips/include/asm/mach-loongson/loongson.h +5 more+372 -1220 replies
7/8MIPS: Loongson-3: Enable the COP2 usagearch/mips/include/asm/cop2.h arch/mips/loongson/loongson-3/Makefile arch/mips/loongson/loongson-3/cop2-ex.c+72 -10 replies
8/8MIPS: Loongson: Rename CONFIG_LEMOTE_MACH3A to CONFIG_LOONGSON_MACH3Xarch/mips/configs/loongson3_defconfig arch/mips/include/asm/mach-loongson/machine.h arch/mips/loongson/Kconfig +2 more+9 -90 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchAndreas Herrmann
1/8R-b
2/8R-b
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v3 thread

Cover letter [PATCH V3 0/8] MIPS: Loongson-3: Add NUMA and Loongson-3B support

This patchset is prepared for the next 3.17 release for Linux/MIPS. In this series we add NUMA and Loongson-3B support. Multiple Loongson-3A chips can be interconnected with HT0-bus. This is a CC-NUMA system that every chip (node) has its own local memory and cache coherency is maintained by hardware. Loongson-3B is a 8-cores processor which looks like there are two Loongson-3A integrated in one chip: 8 cores are separated into two groups (two NUMA node).

V1 -> V2:
1, Rework the first patch.
2, Use compat numa-related syscall for N32/O32 ABI. 3, Drop the patch "MIPS: Loongson: Make CPU name more clear".

V2 -> V3:
1, Rebase the code for 3.17.
2, Reviewed by Andreas Herrmann.
3, Rework the patch "MIPS: Add NUMA support for Loongson-3".

Huacai Chen(8):
MIPS: Support hard limit of cpu count (nr_cpu_ids).
MIPS: Support CPU topology files in sysfs.
MIPS: Loongson: Modify ChipConfig register definition.
MIPS: Add NUMA support for Loongson-3.
MIPS: Add numa api support.
MIPS: Add Loongson-3B support.
MIPS: Loongson-3: Enable the COP2 usage.
MIPS: Loongson: Rename CONFIG_LEMOTE_MACH3A to CONFIG_LOONGSON_MACH3X.

---
 arch/mips/configs/loongson3_defconfig              |    2 +-
 arch/mips/include/asm/addrspace.h                  |    2 +-
 arch/mips/include/asm/cop2.h                       |    8 +
 arch/mips/include/asm/cpu-info.h                   |    1 +
 arch/mips/include/asm/cpu.h                        |    2 +
 arch/mips/include/asm/mach-loongson/boot_param.h   |    4 +
 .../include/asm/mach-loongson/kernel-entry-init.h  |   52 +++
 arch/mips/include/asm/mach-loongson/loongson.h     |   11 +-
 arch/mips/include/asm/mach-loongson/machine.h      |    4 +-
 arch/mips/include/asm/mach-loongson/mmzone.h       |   53 +++
 arch/mips/include/asm/mach-loongson/topology.h     |   23 ++
 arch/mips/include/asm/smp.h                        |    6 +
 arch/mips/include/asm/sparsemem.h                  |    2 +-
 arch/mips/kernel/cpu-probe.c                       |    6 +
 arch/mips/kernel/proc.c                            |    1 +
 arch/mips/kernel/scall32-o32.S                     |    4 +-
 arch/mips/kernel/scall64-64.S                      |    4 +-
 arch/mips/kernel/scall64-n32.S                     |   10 +-
 arch/mips/kernel/scall64-o32.S                     |    8 +-
 arch/mips/kernel/setup.c                           |   22 +-
 arch/mips/kernel/smp.c                             |   26 ++-
 arch/mips/loongson/Kconfig                         |    9 +-
 arch/mips/loongson/Platform                        |    2 +-
 arch/mips/loongson/common/env.c                    |   49 +++-
 arch/mips/loongson/common/init.c                   |    4 +
 arch/mips/loongson/common/pm.c                     |    8 +-
 arch/mips/loongson/lemote-2f/clock.c               |    4 +-
 arch/mips/loongson/lemote-2f/reset.c               |    2 +-
 arch/mips/loongson/loongson-3/Makefile             |    4 +-
 arch/mips/loongson/loongson-3/cop2-ex.c            |   63 ++++
 arch/mips/loongson/loongson-3/irq.c                |   26 +-
 arch/mips/loongson/loongson-3/numa.c               |  291 +++++++++++++++
 arch/mips/loongson/loongson-3/smp.c                |  387 +++++++++++++++-----
 arch/mips/loongson/loongson-3/smp.h                |   37 +-
 arch/mips/pci/Makefile                             |    2 +-
 drivers/cpufreq/loongson2_cpufreq.c                |    6 +-
 36 files changed, 986 insertions(+), 159 deletions(-)
 create mode 100644 arch/mips/include/asm/mach-loongson/kernel-entry-init.h
 create mode 100644 arch/mips/include/asm/mach-loongson/mmzone.h
 create mode 100644 arch/mips/include/asm/mach-loongson/topology.h
 create mode 100644 arch/mips/loongson/loongson-3/cop2-ex.c
 create mode 100644 arch/mips/loongson/loongson-3/numa.c

--
1.7.7.3