Re: powerpc/mpc5xxx: Use of_get_next_parent to simplify code

2015-10-13 Thread Michael Ellerman
On Sun, 2015-11-10 at 20:27:40 UTC, Christophe Jaillet wrote: > of_get_next_parent can be used to simplify the while() loop and > avoid the need of a temp variable. > > Signed-off-by: Christophe JAILLET > --- > arch/powerpc/sysdev/mpc5xxx_clocks.c | 5 + > 1 file changed, 1 insertion(+), 4 d

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 04:04:27PM +0100, Will Deacon wrote: > On Tue, Oct 13, 2015 at 10:58:30PM +0800, Boqun Feng wrote: > > On Tue, Oct 13, 2015 at 03:43:33PM +0100, Will Deacon wrote: > > > Putting a barrier in the middle of that critical section is probably a > > > terrible idea, and that's wh

Re: [PATCH v2 2/8] powerpc/eeh: More relexed hotplug criterion

2015-10-13 Thread Gavin Shan
On Wed, Oct 14, 2015 at 10:48:15AM +1100, Daniel Axtens wrote: >Gavin Shan writes: >> I think you're talking about the situation reported from the bug. It's >> CAN_RECOVER instead of NONE returned from error_detected(). With the >> CAN_RECOVER, the driver hopes the EEH core to enable the IO path s

Re: [PATCH V5 2/6] powerpc/powernv: simplify the calculation of iov resource alignment

2015-10-13 Thread Gavin Shan
On Tue, Oct 13, 2015 at 11:56:43AM +0800, Wei Yang wrote: >On Tue, Oct 13, 2015 at 02:27:52PM +1100, Gavin Shan wrote: >>On Tue, Oct 13, 2015 at 10:45:45AM +0800, Wei Yang wrote: >>>On Tue, Oct 13, 2015 at 11:13:50AM +1100, Gavin Shan wrote: On Fri, Oct 09, 2015 at 10:46:52AM +0800, Wei Yang wr

Re: [PATCH V5 3/6] powerpc/powernv: use one M64 BAR in Single PE mode for one VF BAR

2015-10-13 Thread Gavin Shan
On Tue, Oct 13, 2015 at 01:29:44PM +0800, Wei Yang wrote: >On Tue, Oct 13, 2015 at 02:32:49PM +1100, Gavin Shan wrote: >>On Tue, Oct 13, 2015 at 10:50:42AM +0800, Wei Yang wrote: >>>On Tue, Oct 13, 2015 at 10:55:27AM +1100, Gavin Shan wrote: On Fri, Oct 09, 2015 at 10:46:53AM +0800, Wei Yang wr

Re: [PATCH v3 4/6] powerpc: atomic: Implement atomic{, 64}_*_return_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 09:35:54PM +0800, Boqun Feng wrote: > On Tue, Oct 13, 2015 at 02:21:32PM +0100, Will Deacon wrote: > > On Mon, Oct 12, 2015 at 10:14:04PM +0800, Boqun Feng wrote: > [snip] > > > +/* > > > + * Since {add,sub}_return_relaxed and xchg_relaxed are implemented with > > > + * a "b

Re: [PATCH RESEND v3 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-13 Thread Boqun Feng
On Wed, Oct 14, 2015 at 11:10:00AM +1100, Michael Ellerman wrote: > On Mon, 2015-10-12 at 22:30 +0800, Boqun Feng wrote: > > According to memory-barriers.txt, xchg, cmpxchg and their atomic{,64}_ > > versions all need to imply a full barrier, however they are now just > > RELEASE+ACQUIRE, which is

Re: [PATCH RESEND v3 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-13 Thread Michael Ellerman
On Mon, 2015-10-12 at 22:30 +0800, Boqun Feng wrote: > According to memory-barriers.txt, xchg, cmpxchg and their atomic{,64}_ > versions all need to imply a full barrier, however they are now just > RELEASE+ACQUIRE, which is not a full barrier. > > So replace PPC_RELEASE_BARRIER and PPC_ACQUIRE_BA

Re: [PATCH v2 2/8] powerpc/eeh: More relexed hotplug criterion

2015-10-13 Thread Daniel Axtens
Gavin Shan writes: > I think you're talking about the situation reported from the bug. It's > CAN_RECOVER instead of NONE returned from error_detected(). With the > CAN_RECOVER, the driver hopes the EEH core to enable the IO path so that > it can collect diag-data from IO space at late point. O

Re: [RFC, 1/2] scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target

2015-10-13 Thread Michael Ellerman
On Tue, 2015-10-13 at 14:02 -0700, Olof Johansson wrote: > On Fri, Oct 2, 2015 at 12:47 AM, Michael Ellerman wrote: > > On Wed, 2015-23-09 at 05:40:34 UTC, Michael Ellerman wrote: > >> Arch Makefiles can set KBUILD_DEFCONFIG to tell kbuild the name of the > >> defconfig that should be built by def

[PATCH] powerpc: Delete old orphaned PrPMC 280/2800 DTS and boot file.

2015-10-13 Thread Paul Gortmaker
In commit 3c8464a9b12bf83807b6e2c896d7e7b633e1cae7 ("powerpc: Delete old PrPMC 280/2800 support") we got rid of most of the C code, and the Makefile/Kconfig hooks, but it seems I left the platform's DTS file orphaned in the tree as well as the boot code. Here we get rid of them both. Cc: Benjamin

[PATCH] tty: disable unbind for old 74xx based serial/mpsc console port

2015-10-13 Thread Paul Gortmaker
We recently got rid of some modular code in this driver and also got rid of the unused ".remove" function at the same time. Thierry noted that it was however possible to force the remove through the bind/unbind interface. Since this is a console device used on 2005 vintage 74xx based powerpc embe

Re: [PATCH] scripts/tags.sh: Teach tags about some powerpc macros

2015-10-13 Thread Michael Ellerman
On Tue, 2015-10-13 at 13:54 +0200, Michal Marek wrote: > On 2015-10-13 07:18, Michael Ellerman wrote: > > On Tue, 2015-09-22 at 13:08 +1000, Michael Ellerman wrote: > >> The IO accessors on powerpc are generated using macro fu, ie. out_be32() > >> etc. Also there are some debugger related symbols t

Re: [RFC, 1/2] scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target

2015-10-13 Thread Olof Johansson
On Fri, Oct 2, 2015 at 12:47 AM, Michael Ellerman wrote: > On Wed, 2015-23-09 at 05:40:34 UTC, Michael Ellerman wrote: >> Arch Makefiles can set KBUILD_DEFCONFIG to tell kbuild the name of the >> defconfig that should be built by default. >> >> However currently there is an assumption that KBUILD_

Re: [PATCH] block-mq:Fix the null memory access while setting tags cpumask

2015-10-13 Thread Jeff Moyer
Raghavendra K T writes: > In nr_hw_queues >1 cases when certain number of cpus are onlined/or > offlined, that results change in request_queue map in block-mq layer, > we see the kernel dumping like: What version is that patch against? This problem should be fixed by the patch set from Akinobu

Re: [PATCH] block-mq:Fix the null memory access while setting tags cpumask

2015-10-13 Thread Raghavendra K T
On 10/13/2015 10:17 PM, Jeff Moyer wrote: Raghavendra K T writes: In nr_hw_queues >1 cases when certain number of cpus are onlined/or offlined, that results change in request_queue map in block-mq layer, we see the kernel dumping like: What version is that patch against? This problem should

Re: [PATCH v3 0/6] atomics: powerpc: Implement relaxed/acquire/release variants of some atomics

2015-10-13 Thread Paul E. McKenney
On Tue, Oct 13, 2015 at 02:27:13PM +0200, Peter Zijlstra wrote: > On Mon, Oct 12, 2015 at 10:14:00PM +0800, Boqun Feng wrote: > > > The patchset consists of 6 parts: > > > > 1. Make xchg, cmpxchg and their atomic_ versions a full barrier > > > > 2. Add trivial tests for the new variants in lib

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 04:04:27PM +0100, Will Deacon wrote: > On Tue, Oct 13, 2015 at 10:58:30PM +0800, Boqun Feng wrote: > > On Tue, Oct 13, 2015 at 03:43:33PM +0100, Will Deacon wrote: > > > Putting a barrier in the middle of that critical section is probably a > > > terrible idea, and that's wh

Re: [PATCH v2 12/13] powerpc: enable building of all dtbs

2015-10-13 Thread Rob Herring
On Mon, Oct 12, 2015 at 5:26 AM, Michael Ellerman wrote: > On Thu, 2015-10-08 at 12:53 -0500, Rob Herring wrote: >> Enable building all dtb files when CONFIG_OF_ALL_DTBS is enabled. The dtbs >> are not really dependent on a platform being enabled or any other kernel >> config, so for testing cover

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Will Deacon
On Tue, Oct 13, 2015 at 10:58:30PM +0800, Boqun Feng wrote: > On Tue, Oct 13, 2015 at 03:43:33PM +0100, Will Deacon wrote: > > Putting a barrier in the middle of that critical section is probably a > > terrible idea, and that's why I thought you were avoiding it (hence my > > The fact is that I ha

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 10:32:59PM +0800, Boqun Feng wrote: > On Tue, Oct 13, 2015 at 02:24:04PM +0100, Will Deacon wrote: > > On Mon, Oct 12, 2015 at 10:14:06PM +0800, Boqun Feng wrote: > > > Implement cmpxchg{,64}_relaxed and atomic{,64}_cmpxchg_relaxed, based on > > > which _release variants can

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 03:43:33PM +0100, Will Deacon wrote: > On Tue, Oct 13, 2015 at 10:32:59PM +0800, Boqun Feng wrote: [snip] > > > > Mostly because of the comments in include/linux/atomic.h: > > > > * For compound atomics performing both a load and a store, ACQUIRE > > * semantics apply on

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Will Deacon
On Tue, Oct 13, 2015 at 10:32:59PM +0800, Boqun Feng wrote: > On Tue, Oct 13, 2015 at 02:24:04PM +0100, Will Deacon wrote: > > On Mon, Oct 12, 2015 at 10:14:06PM +0800, Boqun Feng wrote: > > > Implement cmpxchg{,64}_relaxed and atomic{,64}_cmpxchg_relaxed, based on > > > which _release variants can

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 02:24:04PM +0100, Will Deacon wrote: > On Mon, Oct 12, 2015 at 10:14:06PM +0800, Boqun Feng wrote: > > Implement cmpxchg{,64}_relaxed and atomic{,64}_cmpxchg_relaxed, based on > > which _release variants can be built. > > > > To avoid superfluous barriers in _acquire varian

Re: [PATCH v3 4/6] powerpc: atomic: Implement atomic{, 64}_*_return_* variants

2015-10-13 Thread Boqun Feng
On Tue, Oct 13, 2015 at 02:21:32PM +0100, Will Deacon wrote: > On Mon, Oct 12, 2015 at 10:14:04PM +0800, Boqun Feng wrote: [snip] > > +/* > > + * Since {add,sub}_return_relaxed and xchg_relaxed are implemented with > > + * a "bne-" instruction at the end, so an isync is enough as a acquire > > bar

Re: [PATCH v3 6/6] powerpc: atomic: Implement cmpxchg{,64}_* and atomic{,64}_cmpxchg_* variants

2015-10-13 Thread Will Deacon
On Mon, Oct 12, 2015 at 10:14:06PM +0800, Boqun Feng wrote: > Implement cmpxchg{,64}_relaxed and atomic{,64}_cmpxchg_relaxed, based on > which _release variants can be built. > > To avoid superfluous barriers in _acquire variants, we implement these > operations with assembly code rather use __ato

Re: [PATCH v3 4/6] powerpc: atomic: Implement atomic{, 64}_*_return_* variants

2015-10-13 Thread Will Deacon
On Mon, Oct 12, 2015 at 10:14:04PM +0800, Boqun Feng wrote: > On powerpc, acquire and release semantics can be achieved with > lightweight barriers("lwsync" and "ctrl+isync"), which can be used to > implement __atomic_op_{acquire,release}. > > For release semantics, since we only need to ensure al

Re: [PATCH v3 0/6] atomics: powerpc: Implement relaxed/acquire/release variants of some atomics

2015-10-13 Thread Peter Zijlstra
On Mon, Oct 12, 2015 at 10:14:00PM +0800, Boqun Feng wrote: > The patchset consists of 6 parts: > > 1.Make xchg, cmpxchg and their atomic_ versions a full barrier > > 2.Add trivial tests for the new variants in lib/atomic64_test.c > > 3.Allow architectures to define their own __ato

[PATCH 2/2] powerpc/85xx: Add PCIe controller support for bsc9132qds

2015-10-13 Thread Zhiqiang Hou
From: Harninder Rai 1. Use machine_arch_initcall to hook mpc85xx_common_publish_devices This can ensure before pcibios_init() is called, pci controllers have been probed and added to the hose_list. 2. Add a workaround for errata A-005434 For the BSC9132, PEX_PEXIWARn[TRGT] for all windows default

[PATCH 1/2] powerpc/fsl: Add PCI node in device tree of bsc9132qds

2015-10-13 Thread Zhiqiang Hou
From: Harninder Rai Signed-off-by: Harninder Rai Signed-off-by: Minghuan Lian Change-Id: I4355add4a92d1fcf514843aea5ecadd2e2517969 Reviewed-on: http://git.am.freescale.net:8181/2454 Reviewed-by: Zang Tiefei-R61911 Reviewed-by: Kushwaha Prabhakar-B32579 Reviewed-by: Fleming Andrew-AFLEMING Te

Re: [PATCH 1/6] powerpc/kconfig: Move NR_IRQS into "Kernel Options"

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 11:28:06 Michael Ellerman wrote: > On Mon, 2015-10-12 at 13:50 +0200, Arnd Bergmann wrote: > > On Monday 12 October 2015 22:07:45 Michael Ellerman wrote: > > > Yeah, this builds and boots at least on pseries KVM. > > > > > > diff --git a/arch/powerpc/include/asm/irq.h >

Re: [PATCH] scripts/tags.sh: Teach tags about some powerpc macros

2015-10-13 Thread Michal Marek
On 2015-10-13 07:18, Michael Ellerman wrote: > On Tue, 2015-09-22 at 13:08 +1000, Michael Ellerman wrote: >> The IO accessors on powerpc are generated using macro fu, ie. out_be32() >> etc. Also there are some debugger related symbols that are macro >> generated. Teach scripts/tags.sh about both. >

Re: [v2,1/1] powerpc: Individual System V IPC system calls

2015-10-13 Thread Arnd Bergmann
On Tuesday 13 October 2015 20:38:42 Michael Ellerman wrote: > On Tue, 2015-13-10 at 01:49:28 UTC, Sam bobroff wrote: > > This patch provides individual system call numbers for the following > > System V IPC system calls, on PowerPC, so that they do not need to be > > multiplexed: > > * semop, semge

Re: [PATCH v2 2/2] net/fsl_pq_mdio: fix computed address for the TBI register

2015-10-13 Thread David Miller
From: Gerlando Falauto Date: Mon, 12 Oct 2015 09:18:41 +0200 > commit afae5ad78b342f401c28b0bb1adb3cd494cb125a > "net/fsl_pq_mdio: streamline probing of MDIO nodes" > > added support for different types of MDIO devices: > 1) Gianfar MDIO nodes that only map the MII registers > 2) Gianfar MDIO

Re: [PATCH v2 1/2] net/fsl_pq_mdio: check TBI address for consistency with mapped range

2015-10-13 Thread David Miller
From: Gerlando Falauto Date: Mon, 12 Oct 2015 09:18:40 +0200 > When configuring the MDIO subsystem it is also necessary to configure > the TBI register. Make sure the TBI is contained within the mapped > register range in order to: > a) make sure the address is computed correctly > b) make users

Re: [v7,58/60] PCI: Introduce resource_disabled()

2015-10-13 Thread Michael Ellerman
On Thu, 2015-08-10 at 21:39:17 UTC, Yinghai Lu wrote: > Current is using !flags, and we are going to use > IORESOURCE_DISABLED instead of clearing resource flags. > > Let's convert all !flags to helper function resource_disabled(). > resource_disabled will check !flags and IORESOURCE_DISABLED both

Re: [v7,51/60] PCI: Unify skip_ioresource_align()

2015-10-13 Thread Michael Ellerman
On Thu, 2015-08-10 at 21:39:10 UTC, Yinghai Lu wrote: > There are powerpc generic version and x86 local version for > skip_ioresource_align(). > > Move the powerpc version to setup-bus.c, and kill x86 local version. > > Also kill dummy version in microblaze. > > Cc: Michal Simek > Cc: Paul Mack

Re: [v2,1/1] powerpc: Individual System V IPC system calls

2015-10-13 Thread Michael Ellerman
On Tue, 2015-13-10 at 01:49:28 UTC, Sam bobroff wrote: > This patch provides individual system call numbers for the following > System V IPC system calls, on PowerPC, so that they do not need to be > multiplexed: > * semop, semget, semctl, semtimedop > * msgsnd, msgrcv, msgget, msgctl > * shmat, sh

Re: [PATCH v3 10/31] powerpc/mm: Don't use pmd_val,pud_val and pgd_val as lvalue

2015-10-13 Thread Michael Ellerman
On Tue, 2015-10-13 at 10:53 +0530, Aneesh Kumar K.V wrote: > Michael Ellerman writes: > > > On Tue, 2015-10-13 at 00:09 +0530, Aneesh Kumar K.V wrote: > >> We convert them static inline function here as we did with pte_val in > >> the previous patch > > > > This breaks ppc40x_defconfig & 40x/ep40

[PATCH] powerpc/cell: Drop CONFIG_TUNE_CELL in favour of CONFIG_CELL_CPU

2015-10-13 Thread Michael Ellerman
The TUNE_CELL option allows you to build a kernel that runs on multiple CPUs but is tuned (ie. optimised) to run on Cell CPUs. Now days no one is building a distro in that fashion, and any users who are building custom kernels for their Cell machines are better off building with CONFIG_CELL_CPU, wh