Skip to content

Commit dab30d5

Browse files
committed
Merge tag 'mips_fixes_4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips
Pull MIPS fixes from James Hogan: "A selection of important MIPS fixes for 4.14, and some MAINTAINERS / email address updates: Maintainership updates: - imgtec.com -> mips.com email addresses (this trivially updates comments in quite a few files, as well as MAINTAINERS) - Pistachio SoC maintainership update Fixes: - NI 169445 build (new platform in 4.14) - EVA regression (4.14) - SMP-CPS build & preemption regressions (4.14) - SMP/hotplug deadlock & race (deadlock reintroduced 4.13) - ebpf_jit error return (4.13) - SMP-CMP build regressions (4.11 and 4.14) - bad UASM microMIPS encoding (3.16) - CM definitions (3.15)" [ I had taken the email address updates separately, because I didn't expect James to send a pull request, so those got applied twice. - Linus] * tag 'mips_fixes_4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips: MIPS: Update email address for Marcin Nowakowski MIPS: smp-cmp: Fix vpe_id build error MAINTAINERS: Update Pistachio platform maintainers MIPS: smp-cmp: Use right include for task_struct MIPS: Update Goldfish RTC driver maintainer email address MIPS: Update RINT emulation maintainer email address MIPS: CPS: Fix use of current_cpu_data in preemptible code MIPS: SMP: Fix deadlock & online race MIPS: bpf: Fix a typo in build_one_insn() MIPS: microMIPS: Fix incorrect mask in insn_table_MM MIPS: Fix CM region target definitions MIPS: generic: Fix compilation error from include asm/mips-cpc.h MIPS: Fix exception entry when CONFIG_EVA enabled MIPS: generic: Fix NI 169445 its build Update MIPS email addresses
2 parents e50f82f + ca208b5 commit dab30d5

13 files changed

Lines changed: 40 additions & 28 deletions

File tree

.mailmap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Adriana Reus <adi.reus@gmail.com> <adriana.reus@intel.com>
1515
Alan Cox <alan@lxorguk.ukuu.org.uk>
1616
Alan Cox <root@hraefn.swansea.linux.org.uk>
1717
Aleksey Gorelov <aleksey_gorelov@phoenix.com>
18+
Aleksandar Markovic <aleksandar.markovic@mips.com> <aleksandar.markovic@imgtec.com>
1819
Al Viro <viro@ftp.linux.org.uk>
1920
Al Viro <viro@zenIV.linux.org.uk>
2021
Andreas Herrmann <aherrman@de.ibm.com>
@@ -101,6 +102,7 @@ Leonid I Ananiev <leonid.i.ananiev@intel.com>
101102
Linas Vepstas <linas@austin.ibm.com>
102103
Linus Lüssing <linus.luessing@c0d3.blue> <linus.luessing@web.de>
103104
Linus Lüssing <linus.luessing@c0d3.blue> <linus.luessing@ascom.ch>
105+
Marcin Nowakowski <marcin.nowakowski@mips.com> <marcin.nowakowski@imgtec.com>
104106
Mark Brown <broonie@sirena.org.uk>
105107
Martin Kepplinger <martink@posteo.de> <martin.kepplinger@theobroma-systems.com>
106108
Martin Kepplinger <martink@posteo.de> <martin.kepplinger@ginzinger.com>
@@ -119,6 +121,7 @@ Matt Redfearn <matt.redfearn@mips.com> <matt.redfearn@imgtec.com>
119121
Mayuresh Janorkar <mayur@ti.com>
120122
Michael Buesch <m@bues.ch>
121123
Michel Dänzer <michel@tungstengraphics.com>
124+
Miodrag Dinic <miodrag.dinic@mips.com> <miodrag.dinic@imgtec.com>
122125
Mitesh shah <mshah@teja.com>
123126
Mohit Kumar <mohit.kumar@st.com> <mohit.kumar.dhaka@gmail.com>
124127
Morten Welinder <terra@gnome.org>

MAINTAINERS

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ F: drivers/android/
873873
F: drivers/staging/android/
874874

875875
ANDROID GOLDFISH RTC DRIVER
876-
M: Miodrag Dinic <miodrag.dinic@imgtec.com>
876+
M: Miodrag Dinic <miodrag.dinic@mips.com>
877877
S: Supported
878878
F: Documentation/devicetree/bindings/rtc/google,goldfish-rtc.txt
879879
F: drivers/rtc/rtc-goldfish.c
@@ -9019,7 +9019,7 @@ F: drivers/*/*loongson1*
90199019
F: drivers/*/*/*loongson1*
90209020

90219021
MIPS RINT INSTRUCTION EMULATION
9022-
M: Aleksandar Markovic <aleksandar.markovic@imgtec.com>
9022+
M: Aleksandar Markovic <aleksandar.markovic@mips.com>
90239023
L: linux-mips@linux-mips.org
90249024
S: Supported
90259025
F: arch/mips/math-emu/sp_rint.c
@@ -10683,10 +10683,9 @@ S: Maintained
1068310683
F: drivers/pinctrl/spear/
1068410684

1068510685
PISTACHIO SOC SUPPORT
10686-
M: James Hartley <james.hartley@imgtec.com>
10687-
M: Ionela Voinescu <ionela.voinescu@imgtec.com>
10686+
M: James Hartley <james.hartley@sondrel.com>
1068810687
L: linux-mips@linux-mips.org
10689-
S: Maintained
10688+
S: Odd Fixes
1069010689
F: arch/mips/pistachio/
1069110690
F: arch/mips/include/asm/mach-pistachio/
1069210691
F: arch/mips/boot/dts/img/pistachio*

arch/mips/generic/board-ni169445.its.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
/ {
22
images {
33
fdt@ni169445 {
44
description = "NI 169445 device tree";

arch/mips/generic/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <asm/fw/fw.h>
2121
#include <asm/irq_cpu.h>
2222
#include <asm/machine.h>
23-
#include <asm/mips-cpc.h>
23+
#include <asm/mips-cps.h>
2424
#include <asm/prom.h>
2525
#include <asm/smp-ops.h>
2626
#include <asm/time.h>

arch/mips/generic/kexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2016 Imagination Technologies
3-
* Author: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
3+
* Author: Marcin Nowakowski <marcin.nowakowski@mips.com>
44
*
55
* This program is free software; you can redistribute it and/or modify it
66
* under the terms of the GNU General Public License as published by the

arch/mips/include/asm/mips-cm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ GCR_ACCESSOR_RO(64, 0x000, config)
142142
GCR_ACCESSOR_RW(64, 0x008, base)
143143
#define CM_GCR_BASE_GCRBASE GENMASK_ULL(47, 15)
144144
#define CM_GCR_BASE_CMDEFTGT GENMASK(1, 0)
145-
#define CM_GCR_BASE_CMDEFTGT_DISABLED 0
146-
#define CM_GCR_BASE_CMDEFTGT_MEM 1
145+
#define CM_GCR_BASE_CMDEFTGT_MEM 0
146+
#define CM_GCR_BASE_CMDEFTGT_RESERVED 1
147147
#define CM_GCR_BASE_CMDEFTGT_IOCU0 2
148148
#define CM_GCR_BASE_CMDEFTGT_IOCU1 3
149149

arch/mips/include/asm/stackframe.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@
199199
sll k0, 3 /* extract cu0 bit */
200200
.set noreorder
201201
bltz k0, 8f
202+
move k0, sp
203+
.if \docfi
204+
.cfi_register sp, k0
205+
.endif
202206
#ifdef CONFIG_EVA
203207
/*
204208
* Flush interAptiv's Return Prediction Stack (RPS) by writing
@@ -225,10 +229,6 @@
225229
MTC0 k0, CP0_ENTRYHI
226230
#endif
227231
.set reorder
228-
move k0, sp
229-
.if \docfi
230-
.cfi_register sp, k0
231-
.endif
232232
/* Called from user mode, new stack. */
233233
get_saved_sp docfi=\docfi tosp=1
234234
8:

arch/mips/kernel/probes-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2016 Imagination Technologies
3-
* Author: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
3+
* Author: Marcin Nowakowski <marcin.nowakowski@mips.com>
44
*
55
* This program is free software; you can redistribute it and/or modify it
66
* under the terms of the GNU General Public License as published by the

arch/mips/kernel/smp-cmp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#undef DEBUG
2020

2121
#include <linux/kernel.h>
22-
#include <linux/sched.h>
22+
#include <linux/sched/task_stack.h>
2323
#include <linux/smp.h>
2424
#include <linux/cpumask.h>
2525
#include <linux/interrupt.h>
@@ -50,8 +50,8 @@ static void cmp_init_secondary(void)
5050

5151
#ifdef CONFIG_MIPS_MT_SMP
5252
if (cpu_has_mipsmt)
53-
c->vpe_id = (read_c0_tcbind() >> TCBIND_CURVPE_SHIFT) &
54-
TCBIND_CURVPE;
53+
cpu_set_vpe_id(c, (read_c0_tcbind() >> TCBIND_CURVPE_SHIFT) &
54+
TCBIND_CURVPE);
5555
#endif
5656
}
5757

arch/mips/kernel/smp-cps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static int cps_boot_secondary(int cpu, struct task_struct *idle)
306306
int err;
307307

308308
/* We don't yet support booting CPUs in other clusters */
309-
if (cpu_cluster(&cpu_data[cpu]) != cpu_cluster(&current_cpu_data))
309+
if (cpu_cluster(&cpu_data[cpu]) != cpu_cluster(&raw_current_cpu_data))
310310
return -ENOSYS;
311311

312312
vpe_cfg->pc = (unsigned long)&smp_bootstrap;

0 commit comments

Comments
 (0)