Skip to content

Commit 807249d

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 4.3 for MIPS. Here's the summary: Three fixes that didn't make 4.2-stable: - a -Os build might compile the kernel using the MIPS16 instruction set but the R2 optimized inline functions in <uapi/asm/swab.h> are implemented using 32-bit wide instructions which is invalid. - a build error in pgtable-bits.h for a particular kernel configuration. - accessing registers of the CM GCR might have been compiled to use 64 bit accesses but these registers are onl 32 bit wide. And also a few new bits: - move the ATH79 GPIO driver to drivers/gpio - the definition of IRQCHIP_DECLARE has moved to linux/irqchip.h, change ATH79 accordingly. - fix definition of pgprot_writecombine - add an implementation of dma_map_ops.mmap - fix alignment of quiet build output for vmlinuz link - BCM47xx: Use kmemdup rather than duplicating its implementation - Netlogic: Fix 0x0x prefixes of constants. - merge Bjorn Helgaas' series to remove most of the weak keywords from function declarations. - CP0 and CP1 registers are best considered treated as unsigned values to avoid large values from becoming negative values. - improve support for the MIPS GIC timer. - enable common clock framework for Malta and SEAD3. - a number of improvments and fixes to dump_tlb(). - document the MIPS TLB dump functionality in Magic SysRq. - Cavium Octeon CN68XX improvments. - NetLogic improvments. - irq: Use access helper irq_data_get_affinity_mask. - handle MSA unaligned accesses. - a number of R6-related math-emu fixes. - support for I6400. - improvments to MSA support. - add uprobes support. - move from deprecated __initcall to arch_initcall. - remove finish_arch_switch(). - IRQ cleanups by Thomas Gleixner. - migrate to new 'set-state' interface. - random small cleanups" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (148 commits) MIPS: UAPI: Fix unrecognized opcode WSBH/DSBH/DSHD when using MIPS16. MIPS: Fix alignment of quiet build output for vmlinuz link MIPS: math-emu: Remove unused handle_dsemul function declaration MIPS: math-emu: Add support for the MIPS R6 MAX{, A} FPU instruction MIPS: math-emu: Add support for the MIPS R6 MIN{, A} FPU instruction MIPS: math-emu: Add support for the MIPS R6 CLASS FPU instruction MIPS: math-emu: Add support for the MIPS R6 RINT FPU instruction MIPS: math-emu: Add support for the MIPS R6 MSUBF FPU instruction MIPS: math-emu: Add support for the MIPS R6 MADDF FPU instruction MIPS: math-emu: Add support for the MIPS R6 SELNEZ FPU instruction MIPS: math-emu: Add support for the MIPS R6 SELEQZ FPU instruction MIPS: math-emu: Add support for the CMP.condn.fmt R6 instruction MIPS: inst.h: Add new MIPS R6 FPU opcodes MIPS: Octeon: Fix management port MII address on Kontron S1901 MIPS: BCM47xx: Use kmemdup rather than duplicating its implementation STAGING: Octeon: Use common helpers for determining interface and port MIPS: Octeon: Support interfaces 4 and 5 MIPS: Octeon: Set up 1:1 mapping between CN68XX PKO queues and ports MIPS: Octeon: Initialize CN68XX PKO STAGING: Octeon: Support CN68XX style WQE ...
2 parents ff474e8 + 2db9704 commit 807249d

195 files changed

Lines changed: 6347 additions & 2101 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.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
* Pistachio general-purpose timer based clocksource
2+
3+
Required properties:
4+
- compatible: "img,pistachio-gptimer".
5+
- reg: Address range of the timer registers.
6+
- interrupts: An interrupt for each of the four timers
7+
- clocks: Should contain a clock specifier for each entry in clock-names
8+
- clock-names: Should contain the following entries:
9+
"sys", interface clock
10+
"slow", slow counter clock
11+
"fast", fast counter clock
12+
- img,cr-periph: Must contain a phandle to the peripheral control
13+
syscon node.
14+
15+
Example:
16+
timer: timer@18102000 {
17+
compatible = "img,pistachio-gptimer";
18+
reg = <0x18102000 0x100>;
19+
interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,
20+
<GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,
21+
<GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,
22+
<GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;
23+
clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
24+
<&clk_periph PERIPH_CLK_COUNTER_SLOW>,
25+
<&cr_periph SYS_CLK_TIMER>;
26+
clock-names = "fast", "slow", "sys";
27+
img,cr-periph = <&cr_periph>;
28+
};

‎Documentation/features/debug/uprobes/arch-support.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
| m68k: | TODO |
2323
| metag: | TODO |
2424
| microblaze: | TODO |
25-
| mips: | TODO |
25+
| mips: | ok |
2626
| mn10300: | TODO |
2727
| nios2: | TODO |
2828
| openrisc: | TODO |

‎Documentation/sysrq.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ On all - write a character to /proc/sysrq-trigger. e.g.:
119119

120120
'x' - Used by xmon interface on ppc/powerpc platforms.
121121
Show global PMU Registers on sparc64.
122+
Dump all TLB entries on MIPS.
122123

123124
'y' - Show global CPU Registers [SPARC-64 specific]
124125

‎arch/mips/Kconfig‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
config MIPS
22
bool
33
default y
4+
select ARCH_SUPPORTS_UPROBES
45
select ARCH_MIGHT_HAVE_PC_PARPORT
56
select ARCH_MIGHT_HAVE_PC_SERIO
7+
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
68
select HAVE_CONTEXT_TRACKING
79
select HAVE_GENERIC_DMA_COHERENT
810
select HAVE_IDE
@@ -13,7 +15,6 @@ config MIPS
1315
select HAVE_ARCH_SECCOMP_FILTER
1416
select HAVE_ARCH_TRACEHOOK
1517
select HAVE_BPF_JIT if !CPU_MICROMIPS
16-
select ARCH_HAVE_CUSTOM_GPIO_H
1718
select HAVE_FUNCTION_TRACER
1819
select HAVE_DYNAMIC_FTRACE
1920
select HAVE_FTRACE_MCOUNT_RECORD
@@ -409,6 +410,7 @@ config MIPS_MALTA
409410
select CEVT_R4K
410411
select CSRC_R4K
411412
select CLKSRC_MIPS_GIC
413+
select COMMON_CLK
412414
select DMA_MAYBE_COHERENT
413415
select GENERIC_ISA_DMA
414416
select HAVE_PCSPKR_PLATFORM
@@ -459,6 +461,7 @@ config MIPS_SEAD3
459461
select CEVT_R4K
460462
select CSRC_R4K
461463
select CLKSRC_MIPS_GIC
464+
select COMMON_CLK
462465
select CPU_MIPSR2_IRQ_VI
463466
select CPU_MIPSR2_IRQ_EI
464467
select DMA_NONCOHERENT
@@ -899,6 +902,7 @@ config NLM_XLP_BOARD
899902
select SYS_SUPPORTS_32BIT_KERNEL
900903
select SYS_SUPPORTS_64BIT_KERNEL
901904
select ARCH_PHYS_ADDR_T_64BIT
905+
select ARCH_REQUIRE_GPIOLIB
902906
select SYS_SUPPORTS_BIG_ENDIAN
903907
select SYS_SUPPORTS_LITTLE_ENDIAN
904908
select SYS_SUPPORTS_HIGHMEM
@@ -948,6 +952,7 @@ source "arch/mips/jazz/Kconfig"
948952
source "arch/mips/jz4740/Kconfig"
949953
source "arch/mips/lantiq/Kconfig"
950954
source "arch/mips/lasat/Kconfig"
955+
source "arch/mips/pistachio/Kconfig"
951956
source "arch/mips/pmcs-msp71xx/Kconfig"
952957
source "arch/mips/ralink/Kconfig"
953958
source "arch/mips/sgi-ip27/Kconfig"
@@ -1041,6 +1046,9 @@ config FW_CFE
10411046
config ARCH_DMA_ADDR_T_64BIT
10421047
def_bool (HIGHMEM && ARCH_PHYS_ADDR_T_64BIT) || 64BIT
10431048

1049+
config ARCH_SUPPORTS_UPROBES
1050+
bool
1051+
10441052
config DMA_MAYBE_COHERENT
10451053
select DMA_NONCOHERENT
10461054
bool
@@ -1364,7 +1372,7 @@ config CPU_MIPS32_R2
13641372
otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
13651373

13661374
config CPU_MIPS32_R6
1367-
bool "MIPS32 Release 6 (EXPERIMENTAL)"
1375+
bool "MIPS32 Release 6"
13681376
depends on SYS_HAS_CPU_MIPS32_R6
13691377
select CPU_HAS_PREFETCH
13701378
select CPU_SUPPORTS_32BIT_KERNEL
@@ -1415,7 +1423,7 @@ config CPU_MIPS64_R2
14151423
otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14161424

14171425
config CPU_MIPS64_R6
1418-
bool "MIPS64 Release 6 (EXPERIMENTAL)"
1426+
bool "MIPS64 Release 6"
14191427
depends on SYS_HAS_CPU_MIPS64_R6
14201428
select CPU_HAS_PREFETCH
14211429
select CPU_SUPPORTS_32BIT_KERNEL
@@ -1965,6 +1973,7 @@ config 32BIT
19651973
select TRAD_SIGNALS
19661974
help
19671975
Select this option if you want to build a 32-bit kernel.
1976+
19681977
config 64BIT
19691978
bool "64-bit kernel"
19701979
depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
@@ -2110,7 +2119,7 @@ config CPU_R4K_CACHE_TLB
21102119

21112120
config MIPS_MT_SMP
21122121
bool "MIPS MT SMP support (1 TC on each available VPE)"
2113-
depends on SYS_SUPPORTS_MULTITHREADING
2122+
depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6
21142123
select CPU_MIPSR2_IRQ_VI
21152124
select CPU_MIPSR2_IRQ_EI
21162125
select SYNC_R4K
@@ -2211,7 +2220,7 @@ config MIPS_VPE_APSP_API_MT
22112220

22122221
config MIPS_CMP
22132222
bool "MIPS CMP framework support (DEPRECATED)"
2214-
depends on SYS_SUPPORTS_MIPS_CMP
2223+
depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
22152224
select MIPS_GIC_IPI
22162225
select SMP
22172226
select SYNC_R4K
@@ -2228,7 +2237,7 @@ config MIPS_CMP
22282237

22292238
config MIPS_CPS
22302239
bool "MIPS Coherent Processing System support"
2231-
depends on SYS_SUPPORTS_MIPS_CPS
2240+
depends on SYS_SUPPORTS_MIPS_CPS && !CPU_MIPSR6
22322241
select MIPS_CM
22332242
select MIPS_CPC
22342243
select MIPS_CPS_PM if HOTPLUG_CPU
@@ -2303,7 +2312,7 @@ config CPU_MICROMIPS
23032312
endchoice
23042313

23052314
config CPU_HAS_MSA
2306-
bool "Support for the MIPS SIMD Architecture (EXPERIMENTAL)"
2315+
bool "Support for the MIPS SIMD Architecture"
23072316
depends on CPU_SUPPORTS_MSA
23082317
depends on 64BIT || MIPS_O32_FP64_SUPPORT
23092318
help
@@ -2643,7 +2652,7 @@ config SECCOMP
26432652
If unsure, say Y. Only embedded should say N here.
26442653

26452654
config MIPS_O32_FP64_SUPPORT
2646-
bool "Support for O32 binaries using 64-bit FP (EXPERIMENTAL)"
2655+
bool "Support for O32 binaries using 64-bit FP"
26472656
depends on 32BIT || MIPS32_O32
26482657
help
26492658
When this is enabled, the kernel will support use of 64-bit floating

‎arch/mips/Kconfig.debug‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,6 @@ config SB1XXX_CORELIS
8787
Select compile flags that produce code that can be processed by the
8888
Corelis mksym utility and UDB Emulator.
8989

90-
config RUNTIME_DEBUG
91-
bool "Enable run-time debugging"
92-
depends on DEBUG_KERNEL
93-
help
94-
If you say Y here, some debugging macros will do run-time checking.
95-
If you say N here, those macros will mostly turn to no-ops. See
96-
arch/mips/include/asm/debug.h for debugging macros.
97-
If unsure, say N.
98-
9990
config DEBUG_ZBOOT
10091
bool "Enable compressed kernel support debugging"
10192
depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT

‎arch/mips/alchemy/Kconfig‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ config ALCHEMY_GPIOINT_AU1000
66
config ALCHEMY_GPIOINT_AU1300
77
bool
88

9-
# select this in your board config if you don't want to use the gpio
10-
# namespace as documented in the manuals. In this case however you need
11-
# to create the necessary gpio_* functions in your board code/headers!
12-
# see arch/mips/include/asm/mach-au1x00/gpio.h for more information.
13-
config ALCHEMY_GPIO_INDIRECT
14-
def_bool n
15-
169
choice
1710
prompt "Machine type"
1811
depends on MIPS_ALCHEMY

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <asm/idle.h>
3535
#include <asm/reboot.h>
3636
#include <asm/mach-au1x00/au1000.h>
37+
#include <asm/mach-au1x00/gpio-au1000.h>
3738
#include <prom.h>
3839

3940
const char *get_system_type(void)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <asm/bootinfo.h>
3333
#include <asm/reboot.h>
3434
#include <asm/mach-au1x00/au1000.h>
35+
#include <asm/mach-au1x00/gpio-au1000.h>
3536
#include <asm/mach-au1x00/au1xxx_eth.h>
3637
#include <prom.h>
3738

‎arch/mips/alchemy/common/Makefile‎

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

8-
obj-y += prom.o time.o clock.o platform.o power.o \
8+
obj-y += prom.o time.o clock.o platform.o power.o gpiolib.o \
99
setup.o sleeper.o dma.o dbdma.o vss.o irq.o usb.o
10-
11-
# optional gpiolib support
12-
ifeq ($(CONFIG_ALCHEMY_GPIO_INDIRECT),)
13-
obj-$(CONFIG_GPIOLIB) += gpiolib.o
14-
endif

‎arch/mips/alchemy/common/irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ static int au1x_ic_settype(struct irq_data *d, unsigned int flow_type)
491491
default:
492492
ret = -EINVAL;
493493
}
494-
__irq_set_chip_handler_name_locked(d->irq, chip, handler, name);
494+
irq_set_chip_handler_name_locked(d, chip, handler, name);
495495

496496
wmb();
497497

@@ -703,7 +703,7 @@ static int au1300_gpic_settype(struct irq_data *d, unsigned int type)
703703
return -EINVAL;
704704
}
705705

706-
__irq_set_chip_handler_name_locked(d->irq, &au1300_gpic, hdl, name);
706+
irq_set_chip_handler_name_locked(d, &au1300_gpic, hdl, name);
707707

708708
au1300_gpic_chgcfg(d->irq - ALCHEMY_GPIC_INT_BASE, GPIC_CFG_IC_MASK, s);
709709

0 commit comments

Comments
 (0)