Skip to content

Commit 77d5133

Browse files
committed
Merge tag 'mips_5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS updates from Thomas Bogendoerfer: - removed get_fs/set_fs - removed broken/unmaintained MIPS KVM trap and emulate support - added support for Loongson-2K1000 - fixes and cleanups * tag 'mips_5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (107 commits) MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG. MIPS: select ARCH_KEEP_MEMBLOCK unconditionally mips: Do not include hi and lo in clobber list for R6 MIPS:DTS:Correct the license for Loongson-2K MIPS:DTS:Fix label name and interrupt number of ohci for Loongson-2K MIPS: Avoid handcoded DIVU in `__div64_32' altogether lib/math/test_div64: Correct the spelling of "dividend" lib/math/test_div64: Fix error message formatting mips/bootinfo:correct some comments of fw_arg MIPS: Avoid DIVU in `__div64_32' is result would be zero MIPS: Reinstate platform `__div64_32' handler div64: Correct inline documentation for `do_div' lib/math: Add a `do_div' test module MIPS: Makefile: Replace -pg with CC_FLAGS_FTRACE MIPS: pci-legacy: revert "use generic pci_enable_resources" MIPS: Loongson64: Add kexec/kdump support MIPS: pci-legacy: use generic pci_enable_resources MIPS: pci-legacy: remove busn_resource field MIPS: pci-legacy: remove redundant info messages MIPS: pci-legacy: stop using of_pci_range_to_resource ...
2 parents 3644286 + 7e9be67 commit 77d5133

File tree

152 files changed

+2690
-6030
lines changed

Some content is hidden

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

152 files changed

+2690
-6030
lines changed

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ examples:
4747
4848
spi-max-frequency = <3125000>;
4949
spi-3wire;
50-
spi-cs-high;
5150
5251
reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
5352

Documentation/devicetree/bindings/interrupt-controller/loongson,liointc.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ maintainers:
1010
- Jiaxun Yang <[email protected]>
1111

1212
description: |
13-
This interrupt controller is found in the Loongson-3 family of chips as the primary
14-
package interrupt controller which can route local I/O interrupt to interrupt lines
15-
of cores.
13+
This interrupt controller is found in the Loongson-3 family of chips and
14+
Loongson-2K1000 chip, as the primary package interrupt controller which
15+
can route local I/O interrupt to interrupt lines of cores.
1616
1717
allOf:
1818
- $ref: /schemas/interrupt-controller.yaml#
@@ -22,9 +22,17 @@ properties:
2222
oneOf:
2323
- const: loongson,liointc-1.0
2424
- const: loongson,liointc-1.0a
25+
- const: loongson,liointc-2.0
2526

2627
reg:
27-
maxItems: 1
28+
minItems: 1
29+
maxItems: 3
30+
31+
reg-names:
32+
items:
33+
- const: main
34+
- const: isr0
35+
- const: isr1
2836

2937
interrupt-controller: true
3038

@@ -69,6 +77,26 @@ required:
6977

7078
unevaluatedProperties: false
7179

80+
if:
81+
properties:
82+
compatible:
83+
contains:
84+
enum:
85+
- loongson,liointc-2.0
86+
87+
then:
88+
properties:
89+
reg:
90+
minItems: 3
91+
92+
required:
93+
- reg-names
94+
95+
else:
96+
properties:
97+
reg:
98+
maxItems: 1
99+
72100
examples:
73101
- |
74102
iointc: interrupt-controller@3ff01400 {

arch/mips/Kconfig

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ config MIPS
44
default y
55
select ARCH_32BIT_OFF_T if !64BIT
66
select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
7+
select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
78
select ARCH_HAS_FORTIFY_SOURCE
89
select ARCH_HAS_KCOV
10+
select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
911
select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
1012
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1113
select ARCH_HAS_UBSAN_SANITIZE_ALL
1214
select ARCH_HAS_GCOV_PROFILE_ALL
13-
select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL
15+
select ARCH_KEEP_MEMBLOCK
1416
select ARCH_SUPPORTS_UPROBES
1517
select ARCH_USE_BUILTIN_BSWAP
1618
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
@@ -26,6 +28,7 @@ config MIPS
2628
select GENERIC_ATOMIC64 if !64BIT
2729
select GENERIC_CMOS_UPDATE
2830
select GENERIC_CPU_AUTOPROBE
31+
select GENERIC_FIND_FIRST_BIT
2932
select GENERIC_GETTIMEOFDAY
3033
select GENERIC_IOMAP
3134
select GENERIC_IRQ_PROBE
@@ -91,7 +94,6 @@ config MIPS
9194
select PERF_USE_VMALLOC
9295
select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
9396
select RTC_LIB
94-
select SET_FS
9597
select SYSCTL_EXCEPTION_TRACE
9698
select VIRT_TO_BUS
9799
select ARCH_HAS_ELFCORE_COMPAT
@@ -712,6 +714,7 @@ config SGI_IP27
712714
select ARC_CMDLINE_ONLY
713715
select BOOT_ELF64
714716
select DEFAULT_SGI_PARTITION
717+
select FORCE_PCI
715718
select SYS_HAS_EARLY_PRINTK
716719
select HAVE_PCI
717720
select IRQ_MIPS_CPU
@@ -774,6 +777,7 @@ config SGI_IP30
774777
select BOOT_ELF64
775778
select CEVT_R4K
776779
select CSRC_R4K
780+
select FORCE_PCI
777781
select SYNC_R4K if SMP
778782
select ZONE_DMA32
779783
select HAVE_PCI
@@ -998,6 +1002,7 @@ config CAVIUM_OCTEON_SOC
9981002
select NR_CPUS_DEFAULT_64
9991003
select MIPS_NR_CPU_NR_MAP_1024
10001004
select BUILTIN_DTB
1005+
select MTD
10011006
select MTD_COMPLEX_MAPPINGS
10021007
select SWIOTLB
10031008
select SYS_SUPPORTS_RELOCATABLE
@@ -2118,7 +2123,7 @@ config CPU_MIPS32
21182123
config CPU_MIPS64
21192124
bool
21202125
default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
2121-
CPU_MIPS64_R6
2126+
CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
21222127

21232128
#
21242129
# These indicate the revision of the architecture
@@ -2185,7 +2190,8 @@ config CPU_SUPPORTS_HUGEPAGES
21852190
depends on !(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA))
21862191
config MIPS_PGD_C0_CONTEXT
21872192
bool
2188-
default y if 64BIT && (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP
2193+
depends on 64BIT
2194+
default y if (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP
21892195

21902196
#
21912197
# Set to y for ptrace access to watch registers.
@@ -2219,23 +2225,6 @@ config 64BIT
22192225

22202226
endchoice
22212227

2222-
config KVM_GUEST
2223-
bool "KVM Guest Kernel"
2224-
depends on CPU_MIPS32_R2
2225-
depends on !64BIT && BROKEN_ON_SMP
2226-
help
2227-
Select this option if building a guest kernel for KVM (Trap & Emulate)
2228-
mode.
2229-
2230-
config KVM_GUEST_TIMER_FREQ
2231-
int "Count/Compare Timer Frequency (MHz)"
2232-
depends on KVM_GUEST
2233-
default 100
2234-
help
2235-
Set this to non-zero if building a guest kernel for KVM to skip RTC
2236-
emulation when determining guest CPU Frequency. Instead, the guest's
2237-
timer frequency is specified directly.
2238-
22392228
config MIPS_VA_BITS_48
22402229
bool "48 bits virtual memory"
22412230
depends on 64BIT

arch/mips/Kconfig.debug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ config CMDLINE_OVERRIDE
7777
config SB1XXX_CORELIS
7878
bool "Corelis Debugger"
7979
depends on SIBYTE_SB1xxx_SOC
80+
select DEBUG_KERNEL if !COMPILE_TEST
8081
select DEBUG_INFO if !COMPILE_TEST
8182
help
8283
Select compile flags that produce code that can be processed by the

arch/mips/alchemy/common/clock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static struct clk_aliastable {
111111
/* access locks to SYS_FREQCTRL0/1 and SYS_CLKSRC registers */
112112
static spinlock_t alchemy_clk_fg0_lock;
113113
static spinlock_t alchemy_clk_fg1_lock;
114-
static spinlock_t alchemy_clk_csrc_lock;
114+
static DEFINE_SPINLOCK(alchemy_clk_csrc_lock);
115115

116116
/* CPU Core clock *****************************************************/
117117

@@ -996,7 +996,6 @@ static int __init alchemy_clk_setup_imux(int ctype)
996996
if (!a)
997997
return -ENOMEM;
998998

999-
spin_lock_init(&alchemy_clk_csrc_lock);
1000999
ret = 0;
10011000

10021001
for (i = 0; i < 6; i++) {

arch/mips/bcm63xx/clk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static struct clk clk_enet_misc = {
7676
};
7777

7878
/*
79-
* Ethernet MAC clocks: only revelant on 6358, silently enable misc
79+
* Ethernet MAC clocks: only relevant on 6358, silently enable misc
8080
* clocks
8181
*/
8282
static void enetx_set(struct clk *clk, int enable)

arch/mips/bcm63xx/gpio.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ static void bcm63xx_gpio_set(struct gpio_chip *chip,
4343
u32 *v;
4444
unsigned long flags;
4545

46-
if (gpio >= chip->ngpio)
47-
BUG();
46+
BUG_ON(gpio >= chip->ngpio);
4847

4948
if (gpio < 32) {
5049
reg = gpio_out_low_reg;
@@ -70,8 +69,7 @@ static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio)
7069
u32 reg;
7170
u32 mask;
7271

73-
if (gpio >= chip->ngpio)
74-
BUG();
72+
BUG_ON(gpio >= chip->ngpio);
7573

7674
if (gpio < 32) {
7775
reg = gpio_out_low_reg;
@@ -92,8 +90,7 @@ static int bcm63xx_gpio_set_direction(struct gpio_chip *chip,
9290
u32 tmp;
9391
unsigned long flags;
9492

95-
if (gpio >= chip->ngpio)
96-
BUG();
93+
BUG_ON(gpio >= chip->ngpio);
9794

9895
if (gpio < 32) {
9996
reg = GPIO_CTL_LO_REG;

arch/mips/bmips/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <linux/device.h>
1212
#include <linux/dma-direction.h>
13-
#include <linux/dma-mapping.h>
13+
#include <linux/dma-direct.h>
1414
#include <linux/init.h>
1515
#include <linux/io.h>
1616
#include <linux/of.h>

arch/mips/boot/compressed/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include $(srctree)/arch/mips/Kbuild.platforms
1818
BOOT_HEAP_SIZE := 0x400000
1919

2020
# Disable Function Tracer
21-
KBUILD_CFLAGS := $(filter-out -pg, $(KBUILD_CFLAGS))
21+
KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_FTRACE), $(KBUILD_CFLAGS))
2222

2323
KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS))
2424

arch/mips/boot/dts/brcm/bcm3368-netgear-cvg834g.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/dts-v1/;
33

4-
/include/ "bcm3368.dtsi"
4+
#include "bcm3368.dtsi"
55

66
/ {
77
compatible = "netgear,cvg834g", "brcm,bcm3368";

0 commit comments

Comments
 (0)