The mask cache must be initialised in the generic IRQ chip,
otherwise enabling one channel will actually enable all
channels when the empty mask cache is written.
Signed-off-by: Matt Redfearn matt.redfe...@imgtec.com
---
drivers/mfd/jz4740-adc.c | 3 ++-
1 file changed, 2 insertions(+), 1
on.
Fixes: a168b8f1cde6588ff7a67699fa11e01bc77a5ddd
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Cc: <sta...@vger.kernel.org> # 4.x-
---
arch/mips/mm/uasm-mips.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/mm/uasm-mips.c b/arch/mip
ereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing]
rel_type(ELF_R_TYPE(rel->r_info)),
^~~~
Fix them by making Elf64_Mips_Rela a union
Signed-off-by: Harvey Hunt <harvey.h...@imgtec.com>
Cc: Matt Redfearn <matt.redfe...@imgtec.com>
Cc: l
vium.com>
Signed-off-by: Aaron Williams <aaron.willi...@cavium.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
v5:
Incoroprate comments from review
http://patchwork.linux-mips.org/patch/9558/
- Use standard property instead of <cavium,bus-max-width>.
- Use stan
Hi David
On 10/02/16 18:02, David Daney wrote:
On 02/10/2016 09:36 AM, Matt Redfearn wrote:
From: Aleksey Makarov<aleksey.maka...@caviumnetworks.com>
The OCTEON MMC controller is currently found on cn61XX and cnf71XX
devices. Device parameters are configured from device tree data.
eMM
DT binding and the structure of the driver to more closely
resemble the atmel-mci driver, which has the same concept of one
controller, multiple slots.
Thanks,
Matt
On 10/02/16 20:07, David Daney wrote:
On 02/10/2016 11:01 AM, Ulf Hansson wrote:
On 10 February 2016 at 18:36, Matt Redfe
Hi Florian.
On 11/02/16 02:55, Florian Fainelli wrote:
Le 10/02/2016 16:32, David Daney a écrit :
On 02/10/2016 03:49 PM, Aaro Koskinen wrote:
Hi,
On Wed, Feb 10, 2016 at 10:02:23AM -0800, David Daney wrote:
On 02/10/2016 09:36 AM, Matt Redfearn wrote:
+pr_warn(FW_WARN "%s: L
Hi Rob,
On 12/02/16 15:39, Rob Herring wrote:
On Wed, Feb 10, 2016 at 05:36:15PM +, Matt Redfearn wrote:
From: Aleksey Makarov <aleksey.maka...@caviumnetworks.com>
The OCTEON MMC controller is currently found on cn61XX and cnf71XX
devices. Device parameters are configured from
the syscall return value when skipping,
since both would need to set the same register. Therefore modify that
test case to just detect the skipped test.
Tested on MIPS32r2 with an O32 userland where 48/48 tests now pass.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
tools/t
EAD3 platforms
Matt Redfearn (11):
MIPS: tools: Add relocs tool
MIPS: tools: Build relocs tool
MIPS: Reserve space for relocation table
MIPS: Generate relocation table when CONFIG_RELOCATABLE
MIPS: Kernel: Add relocate.c
MIPS: Call relocate_kernel if CONFIG_RELOCATABLE=y
MIPS: bootmem: Wh
files as is done when building a
64 bit kernel.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2:
- Added support for MIPSr6
arch/mips/boot/tools/Makefile | 8 +
arch/mips/boot/tools/relocs.c | 680 +
arch/mips/boot
Build the relocs tool as part of the kbuild
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index e78d60dbdffd..fa25d60bc717 100644
--- a/arc
is reserved within the elf by filling it with
0's, and an invalid entry is left at the start of the space such that
kernel relocation will be aborted if the table is empty.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/Kconfig
(4604K kernel code, 242K rwdata,
892K rodata, 1280K init, 183K bss, 8736K reserved, 0K cma-reserved)
The 16Mb offset is removed from the reserved region and added back to
the available region.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/s
-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2:
- Accept the "nokaslr" command line option
- Add a kernel panic notifier to print the relocation information
- Accept entropy via the /chosen/kaslr-seed property in device tree
- Tested on MIPS Malta, Boston and SEAD3
When debugging a relocated kernel, the addresses of the relocated
symbols and the offset applied is essential information. If the kernel
is compiled with debugging information, then print this information
during bootup using the same function as the panic notifer.
Signed-off-by: Matt Redfearn
a bunch of other stuff.
This patch adds plat_get_ftd() for IMG platforms.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/include/asm/bootinfo.h | 18 ++
arch/mips/mti-malta/malta-setup.c | 7 ++-
arch/mips/mti-sead3/sead3-setup.
remove
(mark as 0 length) the relocation sections added to vmlinux.
When vmlinux is passed to the boot makefile for conversion into a boot
image the now empty relocation sections will be removed and the
populated relocation table will be included in the binary image.
Signed-off-by: Matt Redfearn
If CONFIG_RELOCATABLE is enabled, call relocate_kernel.
This function will return the entry point of the relocated kernel if
copy/relocate is sucessful or the original entry point if not. The stack
pointer must then be pointed into the new image.
Signed-off-by: Matt Redfearn <matt.re
then the entry point of the new kernel
is returned, otherwise fall back to starting the kernel in place.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/Makefile | 2 +
arch/mips/kernel/relocate.c
Add option to KConfig to enable the kernel to relocate itself at
runtime.
Relocation is supported R2 and later of the MIPS architecture, 32bit
and 64bit. The platform is also required to provide support through
plat_get_fdt() added in a later patch.
Signed-off-by: Matt Redfearn <matt.re
On 30/03/16 06:06, Kees Cook wrote:
On Tue, Mar 29, 2016 at 1:35 AM, Matt Redfearn <matt.redfe...@imgtec.com> wrote:
These patches imporve seccomp support on MIPS.
Firstly support is added for building the seccomp_bpf self test for
MIPS. The
initial results of these tests were:
32bit
this information
during bootup using the same function as the panic notifer.
Notifier.
Fixed when merging.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/setup.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/arc
These values are constant and should be marked as such.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
kernel/seccomp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index b0082c14764f..9243d6
the syscall return value when skipping,
since both would need to set the same register. Therefore modify that
test case to just detect the skipped test.
Tested on MIPS32r2 / MIPS64r2 with O32, N32 and N64 userlands.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Acked-by: Kee
with O32 and N32 userlands.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Cc: Paul Burton <paul.bur...@imgtec.com>
Cc: linux-m...@linux-mips.org
---
Changes in v2: None
arch/mips/kernel/signal32.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/kernel/signa
-by: Paul Burton <paul.bur...@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/include/asm/seccomp.h | 47 +++--
1 file changed, 26 insertions(+), 21 deletions(-)
diff --git a/arch/mips/include/asm/secc
on additional platforms
- Replace __NR_syscall which isn't defined for N32 / N64 ABIs
Matt Redfearn (6):
selftests/seccomp: add MIPS self-test support
MIPS: Support sending SIG_SYS to 32bit userspace from 64bit kernel
MIPS: scall: Handle seccomp filters which redirect syscalls
seccomp: Get compat
consistent between ABIs with scall64-64.S being the reference.
With this patch in place, the seccomp_bpf self test now passes
TRACE_syscall.syscall_redirected and TRACE_syscall.syscall_dropped on
all MIPS ABIs.
Fixes: d218af78492a ("MIPS: scall: Always run the seccomp syscall filters")
Move retrieval of compat syscall numbers into inline function defined in
asm-generic header so that arches may override it.
Suggested-by: Paul Burton <paul.bur...@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
include/asm-generic/se
Make these functions return appropriate error codes when something goes
wrong.
There are currently no users of this function that would break from the
API change.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
include/linux/irqdomain.h | 5 ++---
kernel/irq/ipi.c
can be re-used.
The original behaviour is restored by passing the complete mask that the
IPI was created with.
There are currently no users of this function that would break from the
API change.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
include/linux/irqdomain.h | 2 +-
On Fri, Apr 22, 2016 at 05:35:46PM +0200, Thomas Gleixner wrote:
> On Fri, 22 Apr 2016, Matt Redfearn wrote:
>
> > Make these functions return appropriate error codes when something goes
> > wrong.
>
> And the reason for this change is?
Hi Thomas,
Mainly for irq_dest
in
4.6 and the number of existing call sites are low, changing the API now
has little impact on the code, while making it easier for these
functions to grow over time.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2:
- More descriptive commit message
include
can be re-used.
The original behaviour is restored by passing the complete mask that the
IPI was created with.
There are currently no users of this function that would break from the
API change.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
include
SF_IP7);
}
static void cps_smp_finish(void)
Hi Paul
Reviewed-by: Matt Redfearn <matt.redfe...@imgtec.com>
Tested-by: Matt Redfearn <matt.redfe...@imgtec.com>
Thanks,
Matt
n EIC mode */
gic_cpu_pin = 0;
timer_cpu_pin = gic_cpu_pin;
Hi Paul
Reviewed-by: Matt Redfearn <matt.redfe...@imgtec.com>
Tested-by: Matt Redfearn <matt.redfe...@imgtec.com>
Thanks,
Matt
us(ST0_IM);
+
arch_init_irq();
}
Hi Paul
Reviewed-by: Matt Redfearn <matt.redfe...@imgtec.com>
Tested-by: Matt Redfearn <matt.redfe...@imgtec.com>
i’:
kernel/irq/ipi.c:128:3: warning: ‘return’ with no value, in function returning
non-void [-Wreturn-type]
return;
^
Fixes: 7cec18a3906b ("genirq: Add error code reporting to
irq_{reserve,destroy}_ipi")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
kernel/irq/ip
Hi Paul,
On 18/05/16 23:34, Paul Burton wrote:
On Wed, May 18, 2016 at 05:12:36PM +0100, Matt Redfearn wrote:
When starting secondary VPEs which support EVA and the SegCtl registers,
copy the memory segmentation configuration from the running VPE to ensure
that all VPEs in the core have
the CM.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/kernel/cps-vec.S | 16
1 file changed, 16 insertions(+)
diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S
index ac81edd44563..07b3274c8ae1 100644
--- a/arch/mips/kernel/cps-vec.S
The SegCtl registers are standard for MIPSr3..MIPSr5. Add definitions of
these registers and use them rather than constants
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/include/asm/mach-malta/kernel-entry-init.h | 6 +++---
arch/mips/include/asm/mips
the CM.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2:
- Skip check for config3 existing - we know it must to be doing
multithreading
- Use a unique lable name in the function
arch/mips/kernel/cps-vec.S | 15 +++
1 file changed, 15 insertions(+)
diff
The SegCtl registers are standard for MIPSr3..MIPSr5. Add definitions of
these registers and use them rather than constants
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2: None
arch/mips/include/asm/mach-malta/kernel-entry-init.h | 6 +++---
arch/mips/inclu
On 18/05/16 16:04, Paul Burton wrote:
On Wed, May 18, 2016 at 03:45:22PM +0100, Matt Redfearn wrote:
When starting secondary VPEs which support EVA and the SegCtl registers,
copy the memory segmentation configuration from the running VPE to ensure
that all VPEs in the core have a consitent
a new generic IPI reservation code to
irq core")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
kernel/irq/ipi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/irq/ipi.c b/kernel/irq/ipi.c
index c37f34b00a11..14777af8e097 100644
--- a/kernel/irq/ipi.c
+++ b/
Allow KASLR to be selected on Pistachio based systems. Tested on a
Creator Ci40.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/Kconfig | 1 +
arch/mips/pistachio/init.c | 8 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/arc
Allow KASLR to be selected on Pistachio based systems. Tested on a
Creator Ci40.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: James Hogan <james.ho...@imgtec.com>
---
Changes in v2:
Add SYS_SUPPORTS_RELOCATABLE to Kconfig in alphabetical order
arch/
smp-mt.c.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
arch/mips/kernel/proc.c | 7 +++
arch/mips/kernel/smp-mt.c | 23 ---
2 files changed, 7 insertions(+), 23 deletions(-)
diff --git a/arch
Commit a2127e400edd ("libata: support AHCI on OCTEON platform") added a
driver for the OCTEON AHCI controller. Enable this driver in the OCTEON
defconfig.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/configs/cavium_octeon_defconfig | 2 ++
1 file chang
The KConfig option HOTPLUG_CPU should appear in the "Kernel Type"
submenu. Relocate it to where SMP support is configured.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/Kconfig | 20 ++--
1 file changed, 10 insertions(+), 10 deletion
-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
arch/mips/kernel/smp-cps.c | 32 +++-
1 file changed, 27 insertions(+), 5 deletions(-)
diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp
other VPs within the core are stopped before
bringing the core out of reset so that only the desired VP starts.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
arch/mips/kernel/smp-cps.c | 9 +
1 file changed, 5 inse
to move the CPU hotplug config option into the
Kernel type menu within menuconfig.
Based atop 4.7-rc6
Matt Redfearn (3):
MIPS: smp-cps: Allow booting of CPU other than VP0 within a core
MIPS: smp-cps: Add support for CPU hotplug of MIPSr6 processors
MIPS: Move CPU Hotplug config option
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/kernel/sync-r4k.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/kernel/sync-r4k.c b/arch/mips/kernel/sync-r4k.c
index 4472a7f98577..1df1160b6a47 100644
--- a/arch/mips/kernel/sync-r4k.c
+++ b/
Big endian CPUs require SWAP_IO_SPACE enabled to swap accesses to little
endian peripherals.
Without this patch, big endian kernels fail to communicate with little
endian periperals, such as PCI devices, on QEMU and FPGA based
platforms.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.
ux")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/Makefile.postlink | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Makefile.postlink b/arch/mips/Makefile.postlink
index b0ddf0701a31..4b7f5a648c79 100644
--- a/arch/mips/Makefil
jalr to
the vectored handler that has been set up. This is ok for many platforms
which set the vectored handler to plat_irq_dispatch anyway, but will
cause problems with platforms that use other handlers.
Fixes: dda45f701c9d ("MIPS: Switch to the irq_stack in interrupts")
Signed-off
Hi Bjorn,
Please could you review this driver?
Thanks,
Matt
On 11/01/17 15:34, Matt Redfearn wrote:
This driver allows a MIPS processor offlined from Linux to be used as a
remote processor. Firmware may be loaded via the sysfs interface and
changed at runtime, allowing the processor
On 17/01/17 10:10, Arvind Yadav wrote:
Hi Matt,
Please Acknowledge this.
Regards
Arvind Yadav
Hi Arvind,
Acked-by: Matt Redfearn <matt.redfe...@imgtec.com>
On Monday 09 January 2017 02:30 PM, Marc Zyngier wrote:
On 09/01/17 08:08, Arvind Yadav wrote:
Here, If ioremap_n
On 17/01/17 08:38, Thomas Gleixner wrote:
On Mon, 16 Jan 2017, Arvind Yadav wrote:
Cc'ing the MIPS folks.
Eliminating kernel panic due to NULL pointer dereferencing and
other failure in __gic_init.
Here, __gic_init can fail. This error check will avoid NULL pointer
dereference and kernel
inux-next
Matt Redfearn (4):
MIPS: Handle non word sized instructions when examining frame
MIPS: microMIPS: Fix decoding of addiusp instruction
MIPS: Stacktrace: Fix __usermode() of uninitialised regs
MIPS: microMIPS: Fix decoding of swsp16 instruction
arch/mips/include/asm/stacktrace.h
nding the
stack")
Suggested-by: Paul Burton <paul.bur...@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/include/uapi/asm/inst.h | 2 +-
arch/mips/kernel/process.c| 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch
the
stack.
Fix this by incrementing the instruction pointer based on the size of
the previously decoded instruction.
Fixes: b6c7a324df37 ("MIPS: Fix get_frame_info() handling of microMIPS function
size")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch
nterpreted by the existing code as
having manipulated the stack pointer by +1096.
Fix this by changing the order of decoding the immediate and applying
the left shift.
Fixes: 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com&
es instead of correctly walking the kernel
stack.
Fix this by initialising the contents of the saved status register in
prepare_frametrace().
Fixes: 81a76d7119f6 ("MIPS: Avoid using unwind_stack() with usermode")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mip
Hi Maciej
On 28/02/17 20:54, Maciej W. Rozycki wrote:
On Tue, 28 Feb 2017, Matt Redfearn wrote:
Since the instruction modifying the stack pointer is usually the first
in the function, that one is ususally handled correctly. But the
s/ususally/usually/
oops
diff --git a/arch/mips
es instead of correctly walking the kernel
stack.
Fix this by initialising the contents of the saved status register in
prepare_frametrace().
Fixes: 81a76d7119f6 ("MIPS: Avoid using unwind_stack() with usermode")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Chang
nterpreted by the existing code as
having manipulated the stack pointer by +1096.
Fix this by changing the order of decoding the immediate and applying
the left shift.
Fixes: 34c2f668d0f6 ("MIPS: microMIPS: Add unaligned access support.")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.c
r is
found. This reduces the amount of indentation required in
get_frame_info, and more closely matches the operation of
is_ra_save_ins.
Suggested-by: Maciej W. Rozycki <ma...@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2:
- Refactor is_sp_move_ins
the
stack.
Fix this by incrementing the instruction pointer based on the size of
the previously decoded instruction.
Fixes: b6c7a324df37 ("MIPS: Fix get_frame_info() handling of microMIPS function
size")
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Changes in v2
inux-next
Changes in v2:
- Keep locals in reverse christmas tree order
- Replace conditional with xor and subtract
- Refactor is_sp_move_ins to interpret immediate inline.
Matt Redfearn (5):
MIPS: Handle non word sized instructions when examining frame
MIPS: microMIPS: Fix decoding of add
Hi Maciej,
On 28/02/17 22:04, Maciej W. Rozycki wrote:
On Tue, 28 Feb 2017, Matt Redfearn wrote:
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 5b1e932ae973..6ba5b775579c 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -386,8 +386,9
Hi Marc,
Thanks for the review!
On 02/09/16 11:54, Marc Zyngier wrote:
Hi Matt,
On 02/09/16 10:59, Matt Redfearn wrote:
The MIPS remote processor driver allows non-Linux firmware to take
control of and execute on one of the systems VPEs. If that VPE is
brought back under Linux
.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/rb532/serial.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/mips/rb532/serial.c b/arch/mips/rb532/serial.c
index 70482540b3db..f0ea2de38840 100644
--- a/arch/mips/rb532/serial.c
+++ b/arch/mips
to fix the error.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/include/asm/mach-paravirt/kernel-entry-init.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/include/asm/mach-paravirt/kernel-entry-init.h
b/arch/mips/include/asm/mach-paravirt/kernel
-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/include/asm/smp.h | 14 +++
arch/mips/kernel/smp.c | 61 +++--
2 files changed, 67 insertions(+), 8 deletions(-)
diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h
On 02/09/16 10:59, Matt Redfearn wrote:
The MIPS remote processor driver allows non-Linux firmware to take
control of and execute on one of the systems VPEs. If that VPE is
brought back under Linux, it is necessary to ensure that all GIC
interrupts are routed and masked as Linux expects them
HI Sebastian,
On 06/09/16 18:04, Sebastian Andrzej Siewior wrote:
Install the callbacks via the state machine.
Cc: Ralf Baechle
Cc: linux-m...@linux-mips.org
Signed-off-by: Sebastian Andrzej Siewior
---
arch/mips/cavium-octeon/smp.c | 24
yield
to other VPs on the same core, so drop the MT ASE yield instruction.
3. To halt a MIPSr6 VP, the CPC VP_STOP register is used rather than the
MT ASE TCHalt CP0 register.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
All calls to mips_cpc_lock_other should be wrapped in
mips_cm_lock_other. This only matters if the system has CM3 and is using
cpu idle, since otherwise a) the CPC lock is sufficent for CM < 3 and b)
any systems with CM > 3 have not been able to use cpu idle until now.
Signed-off-by
-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2:
Add new patch to define standard MIPS barrier types
arch/mips/include/asm/barrier.h | 96 +
1 file changed, 96 insertions(+)
coherence.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
arch/mips/include/asm/mips-cm.h | 1 +
arch/mips/kernel/pm-cps.c | 31 ++-
2 files changed, 19 insertions(+),
Instead of selecting an implementation or vendor specific sync type for
the required sync operations, always use the architecturally mandated
sync types which previous patches have put in place. The selection of
special sync types is now redundant an can be removed.
Signed-off-by: Matt Redfearn
Checkpatch complains about use of bare unsigned type.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/mips-cpc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff
selecting CPU specific ones.
Matt Redfearn (12):
MIPS: CPC: Convert bare 'unsigned' to 'unsigned int'
MIPS: CPC: Avoid lock when MIPS CM >= 3 is present
MIPS: pm-cps: Change FSB workaround to CPU blacklist
MIPS: pm-cps: Update comments on barrier instructions
MIPS: Barrier: Add definiti
that loads / stores are gloablly completed, use the
defined standard sync stype.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/pm-cps.c | 12 +---
1 file changed, 5 insertions(+),
completion sync stype.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/pm-cps.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/mips/kernel/pm-cps.c
This code makes large use of barriers, which had quite vague
descriptions. Update the comments to make the choice of barrier and
reason for it more clear.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2:
Upd
of a
mips_cm_{lock,unlock}_other pair ensuring the correct CPC_OTHER region
will be accessed.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/mips-cpc.c | 13 -
1 file changed, 12 inse
the workaround can then be added to the blacklist.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
arch/mips/kernel/pm-cps.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/mi
Hi Sebastian
On 07/09/16 15:27, Sebastian Andrzej Siewior wrote:
On 2016-09-07 09:24:57 [+0100], Matt Redfearn wrote:
HI Sebastian,
Hi Matt,
--- a/include/linux/cpuhotplug.h
+++ b/include/linux/cpuhotplug.h
@@ -44,6 +44,7 @@ enum cpuhp_state {
CPUHP_SH_SH3X_PREPARE
protocol.
Signed-off-by: Lisa Parratt <lisa.parr...@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
Documentation/ABI/testing/sysfs-class-mips-rproc | 24 +
drivers/remoteproc/Kconfig | 11 +
drivers/remoteproc/Makefile
lisa.parr...@imgtec.com>
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/Kconfig | 7 ++
arch/mips/include/asm/smp-cps.h | 8 ++
arch/mips/include/asm/smp.h | 1 +
arch/mips/kernel/smp-cps.c | 162 ++--
arch
nux the
kernel exception handlers won't be reinstated properly.
[1]
http://wiki.prplfoundation.org/w/images/d/df/MIPS_OS_Remote_Processor_Driver_Whitepaper_1.0.9.pdf
[2] https://github.com/MIPS/mips-rproc-example
Lisa Parratt (1):
MIPS: CPS: Add VP(E) stealing
Matt Redfearn (5):
irqchip:
The MIPS remote processor driver (CONFIG_MIPS_RPROC) provides a more
standard mechanism for using one or more VPs as coprocessors running
separate firmware.
Here we deprecate this mechanism before it is removed.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/Kconf
of the Wired register. Therefore if
the TLB has any wired entries, fall back to iterating over the entries
rather than blasting them all using TLBINVF.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
arch/mips/mm/tlb-r4k.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff
is restored.
These functions will also be useful for restoring GIC context after a
suspend to RAM.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
---
drivers/irqchip/irq-mips-gic.c | 185 +++--
1 file changed, 178 insertions(+), 7 deletions(-)
This patch enables the MIPS CPS driver for MIPSr6 CPUs.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
Changes in v2: None
drivers/cpuidle/Kconfig.mips | 2 +-
drivers/cpuidle/cpuidle-cps.c | 2 +-
2 files changed,
the workaround can then be added to the blacklist.
Signed-off-by: Matt Redfearn <matt.redfe...@imgtec.com>
Reviewed-by: Paul Burton <paul.bur...@imgtec.com>
---
arch/mips/kernel/pm-cps.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/mips/kernel/pm-cps.c b/arch
1 - 100 of 927 matches
Mail list logo