[PATCHv3] powerpc: convert relocs_check to a shell script using grep

2015-03-15 Thread Stephen Rothwell
This runs a bit faster and removes another use of perl from the kernel build. Signed-off-by: Stephen Rothwell --- v3: use $# instead of ${#*} (thanks David Laight) also added check on vmlinux and objdump v2: address ShellCheck comments from Michael arch/powerpc/Makefile| 4 +-- ar

Re: [PATCH 1/2] powerpc/eeh: Introduce eeh_pe_inject_err()

2015-03-15 Thread Gavin Shan
On Fri, Mar 13, 2015 at 02:28:33PM -0600, Alex Williamson wrote: >On Wed, 2015-03-11 at 17:34 +1100, Gavin Shan wrote: >> The patch defines PCI error types and functions in eeh.h and >> exports function eeh_pe_inject_err(), which will be called by >> VFIO driver to inject the specified PCI error to

Re: [PATCH 2/2] drivers/vfio: Support EEH error injection

2015-03-15 Thread Gavin Shan
On Fri, Mar 13, 2015 at 02:28:09PM -0600, Alex Williamson wrote: >On Thu, 2015-03-12 at 15:21 +1100, David Gibson wrote: >> On Thu, Mar 12, 2015 at 02:16:42PM +1100, Gavin Shan wrote: >> > On Thu, Mar 12, 2015 at 11:57:21AM +1100, David Gibson wrote: >> > >On Wed, Mar 11, 2015 at 05:34:11PM +1100,

Re: [PATCH 2/2] drivers/vfio: Support EEH error injection

2015-03-15 Thread Gavin Shan
On Fri, Mar 13, 2015 at 02:35:18PM -0600, Alex Williamson wrote: >On Wed, 2015-03-11 at 17:34 +1100, Gavin Shan wrote: >> The patch adds one more EEH sub-command (VFIO_EEH_PE_INJECT_ERR) >> to inject the specified EEH error, which is represented by >> (struct vfio_eeh_pe_err), to the indicated PE f

Re: [PATCH 1/2] powerpc: Add a proper syscall for switching endianness

2015-03-15 Thread Tony Breeds
On Fri, Mar 13, 2015 at 05:38:46PM +1100, Michael Ellerman wrote: > According to Paul there are no working implementations of LE on 32-bit cpus, > so > the syscall doesn't really make sense there. Ummm that doesn't sound right. I don't think there is an LE linux userspace but I'm pretty sure we

Re: [PATCHv3] powerpc: convert relocs_check to a shell script using grep

2015-03-15 Thread Tony Breeds
On Sun, Mar 15, 2015 at 10:08:47PM +1100, Stephen Rothwell wrote: > This runs a bit faster and removes another use of perl from > the kernel build. > > Signed-off-by: Stephen Rothwell I only wrote it in perl because ... lazy. Kill it with fire. Acked-By: Tony Breeds Yours Tony. pgpPjZcz7Lh

Re: [PATCH 1/2] powerpc: Add a proper syscall for switching endianness

2015-03-15 Thread Benjamin Herrenschmidt
On Mon, 2015-03-16 at 09:59 +1100, Tony Breeds wrote: > On Fri, Mar 13, 2015 at 05:38:46PM +1100, Michael Ellerman wrote: > > > According to Paul there are no working implementations of LE on 32-bit > > cpus, so > > the syscall doesn't really make sense there. > > Ummm that doesn't sound right.

Re: [RFC] powerpc: use ticket spin lock for !CONFIG_PPC_SPLPAR

2015-03-15 Thread Sam Bobroff
On 13/03/15 18:14, Benjamin Herrenschmidt wrote: > On Fri, 2015-03-13 at 18:09 +1100, Michael Ellerman wrote: >> On Thu, 2015-03-12 at 22:13 +1100, Benjamin Herrenschmidt wrote: >>> On Thu, 2015-03-12 at 18:55 +0800, Kevin Hao wrote: I know Torsten Duwe has tried to add the ticket spinlock for

Re: [PATCH 2/2] drivers/vfio: Support EEH error injection

2015-03-15 Thread David Gibson
On Fri, Mar 13, 2015 at 02:28:09PM -0600, Alex Williamson wrote: > On Thu, 2015-03-12 at 15:21 +1100, David Gibson wrote: > > On Thu, Mar 12, 2015 at 02:16:42PM +1100, Gavin Shan wrote: > > > On Thu, Mar 12, 2015 at 11:57:21AM +1100, David Gibson wrote: > > > >On Wed, Mar 11, 2015 at 05:34:11PM +11

Re: [PATCH 1/2] powerpc: Add a proper syscall for switching endianness

2015-03-15 Thread Michael Ellerman
On Mon, 2015-03-16 at 11:07 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2015-03-16 at 09:59 +1100, Tony Breeds wrote: > > On Fri, Mar 13, 2015 at 05:38:46PM +1100, Michael Ellerman wrote: > > > > > According to Paul there are no working implementations of LE on 32-bit > > > cpus, so > > > the

Re: [RFC v0 PATCH] kvm: powerpc: Allow reuse of vCPU object

2015-03-15 Thread Bharata B Rao
Any feedback on the below patch ? On Mon, Mar 9, 2015 at 11:00 AM, wrote: > From: Bharata B Rao > > Since KVM isn't equipped to handle closure of vcpu fd from userspace(QEMU) > correctly, certain work arounds have to be employed to allow reuse of > vcpu array slot in KVM during cpu hot plug/unp

linux panic on 4.0.0-rc4

2015-03-15 Thread Pranith Kumar
Hello, I have a power mac mini 32-bit system. I am getting a kernel panic with the latest rc kernel. The last kernel which worked on this which I remember booting was 3.19-rc5. You can see the panic message here: http://imgur.com/s1lH15g. (there is no log and I have no serial console). Let me k

Re: linux panic on 4.0.0-rc4

2015-03-15 Thread Pranith Kumar
On Mon, Mar 16, 2015 at 1:11 AM, Pranith Kumar wrote: > Hello, > > I have a power mac mini 32-bit system. > ... > You can see the panic message here: http://imgur.com/s1lH15g. (there > is no log and I have no serial console). There was some debug code in there when it hit. The actual hang seems t

[PATCH v3 1/2] powerpc: Add a proper syscall for switching endianness

2015-03-15 Thread Michael Ellerman
We currently have a "special" syscall for switching endianness. This is syscall number 0x1ebe, which is handled explicitly in the 64-bit syscall exception entry. That has a few problems, firstly the syscall number is outside of the usual range, which confuses various tools. For example strace does

[PATCH v3 2/2] selftests/powerpc: Add a test of the switch_endian() syscall

2015-03-15 Thread Michael Ellerman
This adds a test of the switch_endian() syscall we added in the previous commit. We test it by calling the endian switch syscall, and then executing some code in the other endian to check everything went as expected. That code checks registers we expect to be maintained are, and then writes to std