Skip to content

Commit e669830

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle: "This is the main pull request for 3.17. It contains: - misc Cavium Octeon, BCM47xx, BCM63xx and Alchemy updates - MIPS ptrace updates and cleanups - various fixes that will also go to -stable - a number of cleanups and small non-critical fixes. - NUMA support for the Loongson 3. - more support for MSA - support for MAAR - various FP enhancements and fixes" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (139 commits) MIPS: jz4740: remove unnecessary null test before debugfs_remove MIPS: Octeon: remove unnecessary null test before debugfs_remove_recursive MIPS: ZBOOT: implement stack protector in compressed boot phase MIPS: mipsreg: remove duplicate MIPS_CONF4_FTLBSETS_SHIFT MIPS: Bonito64: remove a duplicate define MIPS: Malta: initialise MAARs MIPS: Initialise MAARs MIPS: detect presence of MAARs MIPS: define MAAR register accessors & bits MIPS: mark MSA experimental MIPS: Don't build MSA support unless it can be used MIPS: consistently clear MSA flags when starting & copying threads MIPS: 16 byte align MSA vector context MIPS: disable preemption whilst initialising MSA MIPS: ensure MSA gets disabled during boot MIPS: fix read_msa_* & write_msa_* functions on non-MSA toolchains MIPS: fix MSA context for tasks which don't use FP first MIPS: init upper 64b of vector registers when MSA is first used MIPS: save/disable MSA in lose_fpu MIPS: preserve scalar FP CSR when switching vector context ...
2 parents ebb067d + 475d592 commit e669830

156 files changed

Lines changed: 5979 additions & 3529 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/kernel-parameters.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
571571
trust validation.
572572
format: { id:<keyid> | builtin }
573573

574+
cca= [MIPS] Override the kernel pages' cache coherency
575+
algorithm. Accepted values range from 0 to 7
576+
inclusive. See arch/mips/include/asm/pgtable-bits.h
577+
for platform specific values (SB1, Loongson3 and
578+
others).
579+
574580
ccw_timeout_log [S390]
575581
See Documentation/s390/CommonIO for details.
576582

‎arch/mips/Kconfig‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ config MIPS_ALCHEMY
7171
select SYS_SUPPORTS_APM_EMULATION
7272
select ARCH_REQUIRE_GPIOLIB
7373
select SYS_SUPPORTS_ZBOOT
74+
select COMMON_CLK
7475

7576
config AR7
7677
bool "Texas Instruments AR7"
@@ -129,6 +130,8 @@ config BCM47XX
129130
select SYS_SUPPORTS_MIPS16
130131
select SYS_HAS_EARLY_PRINTK
131132
select USE_GENERIC_EARLY_PRINTK_8250
133+
select GPIOLIB
134+
select LEDS_GPIO_REGISTER
132135
help
133136
Support for BCM47XX based boards
134137

@@ -137,6 +140,7 @@ config BCM63XX
137140
select BOOT_RAW
138141
select CEVT_R4K
139142
select CSRC_R4K
143+
select SYNC_R4K
140144
select DMA_NONCOHERENT
141145
select IRQ_CPU
142146
select SYS_SUPPORTS_32BIT_KERNEL
@@ -2056,6 +2060,7 @@ config MIPS_CPS
20562060
support is unavailable.
20572061

20582062
config MIPS_CPS_PM
2063+
select MIPS_CPC
20592064
bool
20602065

20612066
config MIPS_GIC_IPI
@@ -2109,9 +2114,9 @@ config CPU_MICROMIPS
21092114
microMIPS ISA
21102115

21112116
config CPU_HAS_MSA
2112-
bool "Support for the MIPS SIMD Architecture"
2117+
bool "Support for the MIPS SIMD Architecture (EXPERIMENTAL)"
21132118
depends on CPU_SUPPORTS_MSA
2114-
default y
2119+
depends on 64BIT || MIPS_O32_FP64_SUPPORT
21152120
help
21162121
MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
21172122
and a set of SIMD instructions to operate on them. When this option

‎arch/mips/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ cflags-$(CONFIG_CPU_NEVADA) += $(call cc-option,-march=rm5200,-march=r5000) \
151151
-Wa,--trap
152152
cflags-$(CONFIG_CPU_RM7000) += $(call cc-option,-march=rm7000,-march=r5000) \
153153
-Wa,--trap
154-
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1 -mno-mdmx -mno-mips3d,-march=r5000) \
154+
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=r5000) \
155155
-Wa,--trap
156+
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mdmx)
157+
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mips3d)
156158
cflags-$(CONFIG_CPU_R8000) += -march=r8000 -Wa,--trap
157159
cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \
158160
-Wa,--trap

‎arch/mips/alchemy/board-mtx1.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ void __init board_setup(void)
8585
#endif /* IS_ENABLED(CONFIG_USB_OHCI_HCD) */
8686

8787
/* Initialize sys_pinfunc */
88-
au_writel(SYS_PF_NI2, SYS_PINFUNC);
88+
alchemy_wrsys(SYS_PF_NI2, AU1000_SYS_PINFUNC);
8989

9090
/* Initialize GPIO */
91-
au_writel(~0, KSEG1ADDR(AU1000_SYS_PHYS_ADDR) + SYS_TRIOUTCLR);
91+
alchemy_wrsys(~0, AU1000_SYS_TRIOUTCLR);
9292
alchemy_gpio_direction_output(0, 0); /* Disable M66EN (PCI 66MHz) */
9393
alchemy_gpio_direction_output(3, 1); /* Disable PCI CLKRUN# */
9494
alchemy_gpio_direction_output(1, 1); /* Enable EXT_IO3 */

‎arch/mips/alchemy/board-xxs1500.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ void __init board_setup(void)
8787
alchemy_gpio2_enable();
8888

8989
/* Set multiple use pins (UART3/GPIO) to UART (it's used as UART too) */
90-
pin_func = au_readl(SYS_PINFUNC) & ~SYS_PF_UR3;
90+
pin_func = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PF_UR3;
9191
pin_func |= SYS_PF_UR3;
92-
au_writel(pin_func, SYS_PINFUNC);
92+
alchemy_wrsys(pin_func, AU1000_SYS_PINFUNC);
9393

9494
/* Enable UART */
9595
alchemy_uart_enable(AU1000_UART3_PHYS_ADDR);

‎arch/mips/alchemy/common/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# Makefile for the Alchemy Au1xx0 CPUs, generic files.
66
#
77

8-
obj-y += prom.o time.o clocks.o platform.o power.o setup.o \
9-
sleeper.o dma.o dbdma.o vss.o irq.o usb.o
8+
obj-y += prom.o time.o clock.o platform.o power.o \
9+
setup.o sleeper.o dma.o dbdma.o vss.o irq.o usb.o
1010

1111
# optional gpiolib support
1212
ifeq ($(CONFIG_ALCHEMY_GPIO_INDIRECT),)

0 commit comments

Comments
 (0)