Skip to content

MIPS: Loongson-3: Improve kernel functionality

Huacai Chen linux-mips 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/24 patches 4 repliesIn review
  2. v9 Latest7 patches 1 replyIn review
  3. v88 patches 11 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v78 patches2 repliesSuperseded
v68 patches3 repliesSuperseded
v57 patches3 repliesSuperseded
v46 patches5 repliesSuperseded
v35 patches2 repliesSuperseded
v2 posting 1/212 patches17 repliesApplied
v111 patches0 repliesSuperseded

Changes in v9 from the cover letter

1, Add two patches to fix hibernation bugs.
2, Add MODULE_LICENSE("GPL") in platform drivers.
3, Adjust Kconfig and Makefile in platform drivers.
4, Remove the 3rd~5th patches since they will be merged in gpio tree.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7MIPS: Hibernate: flush TLB entries earlierarch/mips/power/hibernate.S+2 -10 replies
2/7MIPS: Hibernate: Restructure files and functionsarch/mips/power/Makefile arch/mips/power/hibernate.S arch/mips/power/hibernate.c +1 more+72 -640 replies
3/7MIPS: Loongson: Introduce and use cpu_has_coherent_cache featurearch/mips/Kconfig arch/mips/include/asm/cpu-features.h arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h +1 more+28 -00 replies
4/7MIPS: perf: Add hardware perf events support for Loongson-3arch/mips/Kconfig arch/mips/kernel/perf_event_mipsxx.c+72 -10 replies
5/7MIPS: Loongson-3: Add CPU Hwmon platform driverarch/mips/include/asm/mach-loongson/loongson.h arch/mips/loongson/common/env.c drivers/platform/Kconfig +4 more+251 -00 replies
6/7MIPS: Loongson-3: Add chipset ACPI platform driverarch/mips/loongson/common/pci.c drivers/platform/mips/Makefile drivers/platform/mips/acpi_init.c+159 -01 reply
7/7MIPS: Loongson: Make CPUFreq usable for Loongson-3arch/mips/include/asm/mach-loongson/loongson.h arch/mips/kernel/smp.c arch/mips/loongson/Kconfig +6 more+462 -50 replies

Reviews trailers per patch

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

Read the v9 thread

Cover letter [PATCH V9 0/7] MIPS: Loongson-3: Improve kernel functionality

This patchset is prepared for the next 4.1 release for Linux/MIPS. In this series we promote Loongson-3's ISA level to MIPS64R1 since it is not fully compatible with MIPS64R2. Multi-node DMA and coherent cache features are both added here. LEFI firmware interface is improved to make the kernel more generic (machtypes can be dropped). Besides, we add some basic platform drivers (GPIO, CPU Hwmon, ACPI init, oprofile, HPET and CPUFreq) for Loongson-3.

V1 -> V2:
1, Add a patch to fix Loongson's CCA setting.
2, Rework the third patch.
3, Rebase the code for 3.19.

V2 -> V3:
1, Remove patches which have merged in upstream.
2, Moving GPIO driver from arch/mips to drivers/gpio directory. 3, Optimize cacheflush by moving cpu_has_coherent_cache checking from
local version to global version.

V3 -> V4:
1, Don't build CPU Hwmon driver unconditionally.
2, Split the 2nd patch (Loongson GPIO driver) to two patches.

V4 -> V5:
1, Cleanup Loongson-2F's GPIO driver before move to drivers/gpio.

V5 -> V6:
1, Add perf support for Loongson-3.
2, Rebase the code for 3.20.

V6 -> V7:
1, Rework the third and fifth patches.

V7 -> V8:
1, Improve the seventh patch (ACPI init).
2, Rebase the code for 4.1.

V8 -> V9:
1, Add two patches to fix hibernation bugs.
2, Add MODULE_LICENSE("GPL") in platform drivers.
3, Adjust Kconfig and Makefile in platform drivers.
4, Remove the 3rd~5th patches since they will be merged in gpio tree.

Huacai Chen(7):
MIPS: Hibernate: flush TLB entries earlier.
MIPS: Hibernate: Restructure files and functions.
MIPS: Loongson: Introduce and use cpu_has_coherent_cache feature.
MIPS: perf: Add hardware perf events support for Loongson-3.
MIPS: Loongson-3: Add CPU Hwmon platform driver.
MIPS: Loongson-3: Add chipset ACPI platform driver.
MIPS: Loongson: Make CPUFreq usable for Loongson-3.

---
 arch/mips/Kconfig                                  |    5 +-
 arch/mips/include/asm/cpu-features.h               |    3 +
 .../asm/mach-loongson/cpu-feature-overrides.h      |    1 +
 arch/mips/include/asm/mach-loongson/loongson.h     |    5 +
 arch/mips/kernel/perf_event_mipsxx.c               |   71 ++++++
 arch/mips/kernel/smp.c                             |    3 +-
 arch/mips/loongson/Kconfig                         |    1 +
 arch/mips/loongson/common/env.c                    |    9 +
 arch/mips/loongson/common/pci.c                    |    6 +
 arch/mips/loongson/common/platform.c               |   13 +-
 arch/mips/loongson/loongson-3/Makefile             |    2 +-
 arch/mips/loongson/loongson-3/clock.c              |  191 ++++++++++++++++
 arch/mips/mm/c-r4k.c                               |   21 ++
 arch/mips/power/Makefile                           |    2 +-
 arch/mips/power/hibernate.S                        |   62 -----
 arch/mips/power/hibernate.c                        |   10 +
 arch/mips/power/hibernate_asm.S                    |   61 +++++
 drivers/cpufreq/Kconfig                            |   15 ++
 drivers/cpufreq/Makefile                           |    1 +
 drivers/cpufreq/loongson3_cpufreq.c                |  240 ++++++++++++++++++++
 drivers/platform/Kconfig                           |    3 +
 drivers/platform/Makefile                          |    1 +
 drivers/platform/mips/Kconfig                      |   26 ++
 drivers/platform/mips/Makefile                     |    4 +
 drivers/platform/mips/acpi_init.c                  |  150 ++++++++++++
 drivers/platform/mips/cpu_hwmon.c                  |  207 +++++++++++++++++
 26 files changed, 1044 insertions(+), 69 deletions(-)
 create mode 100644 arch/mips/loongson/loongson-3/clock.c
 delete mode 100644 arch/mips/power/hibernate.S
 create mode 100644 arch/mips/power/hibernate.c
 create mode 100644 arch/mips/power/hibernate_asm.S
 create mode 100644 drivers/cpufreq/loongson3_cpufreq.c
 create mode 100644 drivers/platform/mips/Kconfig
 create mode 100644 drivers/platform/mips/Makefile
 create mode 100644 drivers/platform/mips/acpi_init.c
 create mode 100644 drivers/platform/mips/cpu_hwmon.c

--
1.7.7.3