Re: [1/3] cyrus: Add poweroff/reset support

2016-09-24 Thread Scott Wood
On Tue, Sep 06, 2016 at 02:11:57PM -0500, Andy Fleming wrote: > Cyrus uses GPIOs to complete board shutdown/reset. > Add nodes to indicate that support to the device tree. > > Signed-off-by: Andy Fleming > --- > arch/powerpc/boot/dts/fsl/cyrus_p5020.dts | 11 +++ > 1 file changed, 11 ins

Re: [PATCH 2/3] corenet: Support gpio power/reset for corenet

2016-09-24 Thread Scott Wood
On 09/16/2016 04:05 PM, Scott Wood wrote: I don't see any other platforms doing this. How do the nodes get probed for them? The answer is I don't know, but this is a common issue with adding new devices to the device tree in embedded powerpc. The only othe

Re: powerpc64: Enable CONFIG_E500 and CONFIG_PPC_E500MC for e5500/e6500

2016-09-24 Thread Scott Wood
On Mon, Aug 22, 2016 at 04:46:43PM +0200, David Engraf wrote: > The PowerPC e5500/e6500 architecture is based on the e500mc core. Enable > CONFIG_E500 and CONFIG_PPC_E500MC when e5500/e6500 is used. > > This will also fix using CONFIG_PPC_QEMU_E500 on PPC64. > > Signed-off-by: David Engraf > ---

Re: [v2] soc: fsl/qe: fix Oops on CPM1 (and likely CPM2)

2016-09-24 Thread Scott Wood
On Tue, Aug 16, 2016 at 08:26:20AM +0200, Christophe Leroy wrote: > fixes: 0e6e01ff694ee ("CPM/QE: use genalloc to manage CPM/QE muram") > Cc: sta...@vger.linux.org > Signed-off-by: Christophe Leroy [snip] > muram_pbase = of_translate_address(np, zero); > if (muram_pbase == (phys_addr_

Re: [v6,2/2] QE: remove PPCisms for QE

2016-09-24 Thread Scott Wood
On Sat, Sep 24, 2016 at 11:14:11PM -0500, Scott Wood wrote: > On Fri, Sep 23, 2016 at 10:20:32AM +0800, Zhao Qiang wrote: > > QE was supported on PowerPC, and dependent on PPC, > > Now it is supported on other platforms. so remove PPCisms. > > > > Signed-off-by: Zhao Qiang > > --- > > Changes for

Re: [v6,2/2] QE: remove PPCisms for QE

2016-09-24 Thread Scott Wood
On Fri, Sep 23, 2016 at 10:20:32AM +0800, Zhao Qiang wrote: > QE was supported on PowerPC, and dependent on PPC, > Now it is supported on other platforms. so remove PPCisms. > > Signed-off-by: Zhao Qiang > --- > Changes for v2: > - na > Changes for v3: > - add NO_IRQ > Changes for v4:

Re: powernv/pci: Fix m64 checks for SR-IOV and window alignment

2016-09-24 Thread Michael Ellerman
On Wed, 2016-14-09 at 06:37:17 UTC, Russell Currey wrote: > Commit 5958d19a143e checks for prefetchable m64 BARs by comparing the > addresses instead of using resource flags. This broke SR-IOV as the m64 > check in pnv_pci_ioda_fixup_iov_resources() fails. > > The condition in pnv_pci_window_alig

[GIT PULL] Please pull powerpc/linux.git powerpc-4.8-7 tag

2016-09-24 Thread Michael Ellerman
Hi Linus, Please pull one more powerpc fix for 4.8: The following changes since commit ed7d9a1d7da6fe7b1c7477dc70e95051583fd60c: powerpc/powernv/pci: Fix missed TCE invalidations that should fallback to OPAL (2016-09-15 17:05:11 +1000) are available in the git repository at: git://git.ker

Re: powerpc/32: Remove CLR_TOP32

2016-09-24 Thread Michael Ellerman
On Fri, 2016-05-08 at 11:27:59 UTC, Christophe Leroy wrote: > CLR_TOP32() is defined as blank. Last useful instance of CLR_TOP32() > was removed by commit 40ef8cbc6d360 ("powerpc: Get 64-bit configs to > compile with ARCH=powerpc") > > Signed-off-by: Christophe Leroy Applied to powerpc next, tha

Re: powerpc: Remove all usages of NO_IRQ

2016-09-24 Thread Michael Ellerman
On Tue, 2016-06-09 at 11:53:24 UTC, Michael Ellerman wrote: > NO_IRQ has been == 0 on powerpc for just over ten years (since commit > 0ebfff1491ef ("[POWERPC] Add new interrupt mapping core and change > platforms to use it")). It's also 0 on most other arches. > > Although it's fairly harmless, ev

Re: [v2] powerpc: fix usage of _PAGE_RO in hugepage

2016-09-24 Thread Michael Ellerman
On Mon, 2016-19-09 at 10:58:54 UTC, Christophe Leroy wrote: > On some CPUs like the 8xx, _PAGE_RW hence _PAGE_WRITE is defined > as 0 and _PAGE_RO has to be set when a page is not writable > > _PAGE_RO is defined by default in pte-common.h, however BOOK3S/64 > doesn't include that file so _PAGE_RO

Re: [v2] powerpc: Clean up tm_abort duplication in hash_utils_64.c

2016-09-24 Thread Michael Ellerman
On Fri, 2016-02-09 at 06:17:26 UTC, Rui Teng wrote: > The same logic appears twice and should probably be pulled out into a > function. > > Suggested-by: Michael Ellerman > Signed-off-by: Rui Teng Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/f1a55ce0544251746d9b52fb85 ch

Re: [v3] powernv/pci: Add PHB register dump debugfs handle

2016-09-24 Thread Michael Ellerman
On Thu, 2016-28-07 at 05:05:03 UTC, Russell Currey wrote: > On EEH events the kernel will print a dump of relevant registers. > If EEH is unavailable (i.e. CONFIG_EEH is disabled, a new platform > doesn't have EEH support, etc) this information isn't readily available. > > Add a new debugfs handle

Re: [V3] powerpc/mm: Add radix flush all with IS=3

2016-09-24 Thread Michael Ellerman
On Tue, 2016-23-08 at 10:57:48 UTC, "Aneesh Kumar K.V" wrote: > Signed-off-by: Aneesh Kumar K.V Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/be34d300597a7a4fb38c6e3f99 cheers

Re: [2/8] powerpc/pseries: syscall remove trampoline

2016-09-24 Thread Michael Ellerman
On Tue, 2016-13-09 at 03:08:40 UTC, Nicholas Piggin wrote: > The syscall trampoline is not required, remove it. > > Signed-off-by: Nicholas Piggin Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/a24553dd02dc6c7d2912af0b4b I rewrote the change log to be: powerpc/pseries: R

Re: [1/8] powerpc/pseries: hypervisor facility unavailable use correct handler

2016-09-24 Thread Michael Ellerman
On Tue, 2016-13-09 at 03:08:39 UTC, Nicholas Piggin wrote: > The 0xf80 hv_facility_unavailable trampoline branches to the 0xf60 > handler. This works because they both do the same thing, but it should > be fixed. > > Signed-off-by: Nicholas Piggin Applied to powerpc next, thanks. https://git.ke

Re: [V2, 1/5] powerpc/64/kexec: NULL check "clear_all" in kexec_sequence

2016-09-24 Thread Michael Ellerman
On Fri, 2016-19-08 at 08:52:35 UTC, "Aneesh Kumar K.V" wrote: > From: Benjamin Herrenschmidt > > With Radix, it can be NULL even on !BOOKE these days so replace > the ifdef with a NULL check which is cleaner anyway. > > Signed-off-by: Benjamin Herrenschmidt > Signed-off-by: Aneesh Kumar K.V >

Re: [1/3] powerpc/eeh: Null check uses of eeh_pe_bus_get

2016-09-24 Thread Michael Ellerman
On Mon, 2016-12-09 at 04:17:22 UTC, Russell Currey wrote: > eeh_pe_bus_get() can return NULL if a PCI bus isn't found for a given PE. > Some callers don't check this, and can cause a null pointer dereference > under certain circumstances. > > Fix this by checking NULL everywhere eeh_pe_bus_get() i

Re: [RFC,1/3] powerpc/powernv: fix comment style and spelling

2016-09-24 Thread Michael Ellerman
On Fri, 2016-16-09 at 10:39:44 UTC, Andrew Donnellan wrote: > Signed-off-by: Andrew Donnellan Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6060e9ea8d2b69fff8fc70ed6a cheers

Re: [RFC] fs: add userspace critical mounts event support

2016-09-24 Thread Dmitry Torokhov
On Fri, Sep 23, 2016 at 6:37 PM, Herbert, Marc wrote: > On 03/09/2016 11:10, Dmitry Torokhov wrote: >> I was thinking if we kernel could post >> "conditions" (maybe simple stings) that it waits for, and userspace >> could unlock these "conditions". One of them might be "firmware >> available". > >

Re: [PATCH 2/3] bpf powerpc: implement support for tail calls

2016-09-24 Thread Alexei Starovoitov
On Sat, Sep 24, 2016 at 12:33:54AM +0200, Daniel Borkmann wrote: > On 09/23/2016 10:35 PM, Naveen N. Rao wrote: > >Tail calls allow JIT'ed eBPF programs to call into other JIT'ed eBPF > >programs. This can be achieved either by: > >(1) retaining the stack setup by the first eBPF program and having

Re: [PATCH 2/2] bpf samples: update tracex5 sample to use __seccomp_filter

2016-09-24 Thread Alexei Starovoitov
On Sat, Sep 24, 2016 at 02:10:05AM +0530, Naveen N. Rao wrote: > seccomp_phase1() does not exist anymore. Instead, update sample to use > __seccomp_filter(). While at it, set max locked memory to unlimited. > > Signed-off-by: Naveen N. Rao Acked-by: Alexei Starovoitov

Re: [PATCH 1/2] bpf samples: fix compiler errors with sockex2 and sockex3

2016-09-24 Thread Alexei Starovoitov
On Sat, Sep 24, 2016 at 02:10:04AM +0530, Naveen N. Rao wrote: > These samples fail to compile as 'struct flow_keys' conflicts with > definition in net/flow_dissector.h. Fix the same by renaming the > structure used in the sample. > > Signed-off-by: Naveen N. Rao Thanks for the fix. Acked-by: Al