Re: [PATCH v3 1/1] powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100

2013-11-04 Thread Geert Uytterhoeven
On Sun, Nov 3, 2013 at 10:07 PM, Stephen Chivers wrote: > +++ b/arch/powerpc/boot/dts/mvme5100.dts > @@ -0,0 +1,185 @@ > +/* > + * Device Tree Souce for Motorola/Emerson MVME5100. Source (unless this expresses your personal appreciation for device trees ;-) Gr{oetje,eeting}s,

[PATCH 2/2] powerpc/powernv: Reserve the correct PE number

2013-11-04 Thread Gavin Shan
We're assigning PE numbers after the completion of PCI probe. During the PCI probe, we had PE#0 as the super container to encompass all PCI devices. However, that's inappropriate since PELTM has ascending order of priority on search on P7IOC. So we need PE#127 takes the role that PE#0 has previousl

[PATCH 1/2] powerpc/powernv: Add PE to its own PELTV

2013-11-04 Thread Gavin Shan
We need add PE to its own PELTV. Otherwise, the errors originated from the PE might contribute to other PEs. In the result, we can't clear up the error successfully even we're checking and clearing errors during access to PCI config space. Cc: sta...@vger.kernel.org Reported-by: kalsh...@in.ibm.co

Re: perf events ring buffer memory barrier on powerpc

2013-11-04 Thread Peter Zijlstra
On Sat, Nov 02, 2013 at 08:20:48AM -0700, Paul E. McKenney wrote: > On Fri, Nov 01, 2013 at 11:30:17AM +0100, Peter Zijlstra wrote: > > Furthermore there's a gazillion parallel userspace programs. > > Most of which have very unaggressive concurrency designs. pthread_mutex_t A, B; char data_A[x];

[PATCH] powerpc: remove unused REDBOOT Kconfig parameter

2013-11-04 Thread Michael Opdenacker
This removes the REDBOOT Kconfig parameter, which was no longer used anywhere in the source code and Makefiles. Signed-off-by: Michael Opdenacker --- arch/powerpc/Kconfig| 3 --- arch/powerpc/platforms/83xx/Kconfig | 1 - arch/powerpc/platforms/8xx/Kconfig | 1 - 3 files changed

Re: perf events ring buffer memory barrier on powerpc

2013-11-04 Thread Paul E. McKenney
On Mon, Nov 04, 2013 at 10:07:44AM +0100, Peter Zijlstra wrote: > On Sat, Nov 02, 2013 at 08:20:48AM -0700, Paul E. McKenney wrote: > > On Fri, Nov 01, 2013 at 11:30:17AM +0100, Peter Zijlstra wrote: > > > Furthermore there's a gazillion parallel userspace programs. > > > > Most of which have very

RE: [PATCHv2 6/8] ASoC: fsl: add SGTL5000 based audio machine driver.

2013-11-04 Thread Li Xiubo
> > Conflicts: > > sound/soc/fsl/Makefile > > Ahem. > This will be removed. > > +static int fsl_sgtl5000_remove(struct platform_device *pdev) { > > + snd_soc_unregister_card(&fsl_sgt1500_card); > > + > > + return 0; > > +} > > You're using snd_soc_unregister_card() so you don't need t

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Paul E. McKenney
On Sun, Nov 03, 2013 at 03:34:00PM -0800, Linus Torvalds wrote: > On Sun, Nov 3, 2013 at 2:42 PM, Paul E. McKenney > wrote: > > > > smp_storebuffer_mb() -- A barrier that enforces those orderings > > that do not invalidate the hardware store-buffer optimization. > > Ugh. Maybe. Can you gu

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Will Deacon
On Sun, Nov 03, 2013 at 11:34:00PM +, Linus Torvalds wrote: > So it would *kind* of act like a "smp_wmb() + smp_rmb()", but the > problem is that a "smp_rmb()" doesn't really "attach" to the preceding > write. Agreed. > This is analogous to a "acquire" operation: you cannot make an > "acquire

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Peter Zijlstra
On Mon, Nov 04, 2013 at 02:51:00AM -0800, Paul E. McKenney wrote: > OK, something like this for the definitions (though PowerPC might want > to locally abstract the lwsync expansion): > > #define smp_store_with_release_semantics(p, v) /* x86, s390, etc. */ \ > do { \ > ba

Re: [V2 PATCH 3/3] powerpc: Fix Unaligned LE Floating Point Loads and Stores

2013-11-04 Thread Tom Musta
On 11/3/2013 8:34 PM, Benjamin Herrenschmidt wrote: > On Thu, 2013-10-31 at 13:38 -0500, Tom wrote: >> From: Tom Musta >> >> This patch addresses unaligned single precision floating point loads >> and stores in the single-step code. The old implementation >> improperly treated an 8 byte structure

Re: [PATCHv2 1/8] ALSA: Add SAI SoC Digital Audio Interface driver.

2013-11-04 Thread Mark Brown
On Mon, Nov 04, 2013 at 07:35:12AM +, Li Xiubo wrote: > From the ASoC subsystem comments we can see that: > ++ > Configures the clock dividers. This is used to derive the best DAI bit and > frame clocks from the system or master clock. It's best to set the DAI bit > and frame clocks as low

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Paul E. McKenney
On Mon, Nov 04, 2013 at 12:22:54PM +0100, Peter Zijlstra wrote: > On Mon, Nov 04, 2013 at 02:51:00AM -0800, Paul E. McKenney wrote: > > OK, something like this for the definitions (though PowerPC might want > > to locally abstract the lwsync expansion): > > > > #define smp_store_with_release_s

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Peter Zijlstra
On Mon, Nov 04, 2013 at 08:27:32AM -0800, Paul E. McKenney wrote: > > > > > > /* > > * One important detail is that the kbuf part and the kbuf_writer() are > > * strictly per cpu and we can thus rely on program order for those. > > * > > * Only the userspace consumer can possibly run on anoth

[PATCH 2/6] powerpc: fix e500 SPE float rounding inexactness detection

2013-11-04 Thread Joseph S. Myers
From: Joseph Myers The e500 SPE floating-point emulation code for the rounding modes rounding to positive or negative infinity (which may not be implemented in hardware) tries to avoid emulating rounding if the result was inexact. However, it tests inexactness using the sticky bit with the cumul

[PATCH 3/6] math-emu: fix floating-point to integer unsigned saturation

2013-11-04 Thread Joseph S. Myers
From: Joseph Myers The math-emu macros _FP_TO_INT and _FP_TO_INT_ROUND are supposed to saturate their results for out-of-range arguments, except in the case rsigned == 2 (when instead the low bits of the result are taken). However, in the case rsigned == 0 (converting to unsigned integers), they

[PATCH 0/6] powerpc/math-emu: e500 SPE float emulation fixes

2013-11-04 Thread Joseph S. Myers
This patch series fixes various problems with the floating-point emulation code for powerpc e500 SPE (some being issues with the e500-specific emulation code, some with the generic math-emu headers). All six patches were sent individually last month as the issues were identified and fixed in the co

[PATCH 4/6] math-emu: fix floating-point to integer overflow detection

2013-11-04 Thread Joseph S. Myers
From: Joseph Myers On overflow, the math-emu macro _FP_TO_INT_ROUND tries to saturate its result (subject to the value of rsigned specifying the desired overflow semantics). However, if the rounding step has the effect of increasing the exponent so as to cause overflow (if the rounded result is

[PATCH 5/6] powerpc: fix e500 SPE float to integer and fixed-point conversions

2013-11-04 Thread Joseph S. Myers
From: Joseph Myers The e500 SPE floating-point emulation code has several problems in how it handles conversions to integer and fixed-point fractional types. There are the following 20 relevant instructions. These can convert to signed or unsigned 32-bit integers, either rounding towards zero (

[PATCH 6/6] powerpc: fix e500 SPE float SIGFPE generation

2013-11-04 Thread Joseph S. Myers
From: Joseph Myers The e500 SPE floating-point emulation code is called from SPEFloatingPointException and SPEFloatingPointRoundException in arch/powerpc/kernel/traps.c. Those functions have support for generating SIGFPE, but do_spe_mathemu and speround_handler don't generate a return value to i

[PATCH 1/6] powerpc: fix exception clearing in e500 SPE float emulation

2013-11-04 Thread Joseph S. Myers
From: Joseph Myers The e500 SPE floating-point emulation code clears existing exceptions (__FPU_FPSCR &= ~FP_EX_MASK;) before ORing in the exceptions from the emulated operation. However, these exception bits are the "sticky", cumulative exception bits, and should only be cleared by the user pro

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Paul E. McKenney
On Mon, Nov 04, 2013 at 11:05:53AM +, Will Deacon wrote: > On Sun, Nov 03, 2013 at 11:34:00PM +, Linus Torvalds wrote: > > So it would *kind* of act like a "smp_wmb() + smp_rmb()", but the > > problem is that a "smp_rmb()" doesn't really "attach" to the preceding > > write. > > Agreed. >

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Peter Zijlstra
On Mon, Nov 04, 2013 at 08:27:32AM -0800, Paul E. McKenney wrote: > All this is leading me to suggest the following shortenings of names: > > smp_load_with_acquire_semantics() -> smp_load_acquire() > > smp_store_with_release_semantics() -> smp_store_release() > > But names aside, the

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Peter Zijlstra
On Mon, Nov 04, 2013 at 08:11:27PM +0100, Peter Zijlstra wrote: > +#define smp_load_acquire(p, v) > \ I R idiot!! :-) --- arch/alpha/include/asm/barrier.h | 13 +++ arch/arc/include/asm/barrier.h| 13 +++ arch/arm/includ

Re: [PATCH v3 1/1] powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100

2013-11-04 Thread Stephen N Chivers
geert.uytterhoe...@gmail.com wrote on 11/04/2013 06:59:21 PM: > From: Geert Uytterhoeven > To: Stephen N Chivers/AUS/CSC@CSC > Cc: "linuxppc-dev@lists.ozlabs.org" > Date: 11/04/2013 06:59 PM > Subject: Re: [PATCH v3 1/1] powerpc/embedded6xx: Add support for > Motorola/Emerson MVME5100 > Sent by

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Paul E. McKenney
On Mon, Nov 04, 2013 at 08:11:27PM +0100, Peter Zijlstra wrote: > On Mon, Nov 04, 2013 at 08:27:32AM -0800, Paul E. McKenney wrote: > > All this is leading me to suggest the following shortenings of names: > > > > smp_load_with_acquire_semantics() -> smp_load_acquire() > > > > smp_store_w

Re: [RFC] arch: Introduce new TSO memory barrier smp_tmb()

2013-11-04 Thread Paul E. McKenney
On Mon, Nov 04, 2013 at 08:18:11PM +0100, Peter Zijlstra wrote: > On Mon, Nov 04, 2013 at 08:11:27PM +0100, Peter Zijlstra wrote: > > +#define smp_load_acquire(p, v) > > \ > > I R idiot!! :-) OK, I did miss this one as well... :-/

Re: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-11-04 Thread Scott Wood
On Sun, 2013-11-03 at 22:04 -0600, Wang Dongsheng-B40534 wrote: > > -Original Message- > > From: Wang Dongsheng-B40534 > > Sent: Monday, October 21, 2013 11:11 AM > > To: Wood Scott-B07421 > > Cc: Bhushan Bharat-R65777; linuxppc-dev@lists.ozlabs.org > > Subject: RE: [PATCH v5 4/4] powerpc/8

Re: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-11-04 Thread Scott Wood
On Sun, 2013-10-20 at 22:27 -0500, Wang Dongsheng-B40534 wrote: > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Saturday, October 19, 2013 3:23 AM > > To: Wang Dongsheng-B40534 > > Cc: Wood Scott-B07421; Bhushan Bharat-R65777; linuxppc- > > d...@lists.ozlabs.org > > Subject:

[PATCH] net: mv643xx_eth: Add missing phy_addr_set in DT mode

2013-11-04 Thread Jason Gunthorpe
Commit cc9d4598 'net: mv643xx_eth: use of_phy_connect if phy_node present' made the call to phy_scan optional, if the DT has a link to the phy node. However phy_scan has the side effect of calling phy_addr_set, which writes the phy MDIO address to the ethernet controller. If phy_addr_set is not ca

Re: [PATCH] net: mv643xx_eth: Add missing phy_addr_set in DT mode

2013-11-04 Thread Jason Cooper
Jason, On Mon, Nov 04, 2013 at 05:27:19PM -0700, Jason Gunthorpe wrote: > Commit cc9d4598 'net: mv643xx_eth: use of_phy_connect if phy_node fyi: set core.abbrev = 12 in your git config, according to Linus, 7/8 was a bad decision... > present' made the call to phy_scan optional, if the DT has a l

RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-11-04 Thread Dongsheng Wang
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, November 05, 2013 7:48 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Bhushan Bharat-R65777; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and > altivec idle >

Re: [PATCH v11 3/3] DMA: Freescale: update driver to support 8-channel DMA engine

2013-11-04 Thread Hongbo Zhang
Hi Vinod Koul and Dan Williams, Ping? On 10/17/2013 01:56 PM, Hongbo Zhang wrote: Hi Vinod, I have gotten ACK from Mark for both the 1/3 and 2/3 patches. Thanks. On 09/26/2013 05:33 PM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang This patch adds support to 8-channel DMA engine, th

RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec idle

2013-11-04 Thread Dongsheng Wang
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, November 05, 2013 5:52 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Bhushan Bharat-R65777; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and > altivec idle >

RE: [PATCHv2 1/8] ALSA: Add SAI SoC Digital Audio Interface driver.

2013-11-04 Thread Li Xiubo
> > From the ASoC subsystem comments we can see that: > > ++ > > Configures the clock dividers. This is used to derive the best DAI bit > > and frame clocks from the system or master clock. It's best to set the > > DAI bit and frame clocks as low as possible to save system power. > > -- >

RE: [PATCHv2 6/8] ASoC: fsl: add SGTL5000 based audio machine driver.

2013-11-04 Thread Li Xiubo
= > [...] > > diff --git a/sound/soc/fsl/fsl-sgtl5000-vf610.c b/sound/soc/fsl/fsl- > sgtl5000-vf610.c > > new file mode 100644 > > index 000..f535b42 > > --- /dev/null > > +++ b/sound/soc/fsl/fsl-sgtl5000-vf610.c > > @@ -0,0 +1,208 @@ > > +/* > > + * Freeacale ALSA SoC Audio using SGT1500 as c

RE: [PATCHv2 6/8] ASoC: fsl: add SGTL5000 based audio machine driver.

2013-11-04 Thread Li Xiubo
Hi Nicolin, > > This is the SGTL5000 codec based audio driver supported with both > > playback and capture dai link implemention. > > > > This implementation is only compatible with device tree definition. > > > > Signed-off-by: Alison Wang > Signed-off-by: Xiubo Li > > > > Conflicts: > > s

[PATCH 1/7] IBM Akebono: Add support to AHCI platform driver

2013-11-04 Thread Alistair Popple
The new IBM Akebono board has an AHCI compliant SATA controller. This patch adds a compatible property for the new board to the AHCI platform driver. Signed-off-by: Alistair Popple Cc: linux-...@vger.kernel.org --- drivers/ata/ahci_platform.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/7] IBM Akebono: Add a SDHCI platform driver

2013-11-04 Thread Alistair Popple
This patch adds a SDHCI platform driver for the new IBM Akebono board. Signed-off-by: Alistair Popple Cc: Chris Ball Cc: linux-...@vger.kernel.org --- drivers/mmc/host/Kconfig| 12 +++ drivers/mmc/host/Makefile |1 + drivers/mmc/host/sdhci-of-akebono.c | 60 +++

[PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-04 Thread Alistair Popple
The IBM Akebono board uses a different ethernet PHY that has wake on lan (WOL) support with the IBM emac. This patch adds suppot to the IBM emac driver for this new PHY. At this stage the wake on lan functionality has not been implemented. Signed-off-by: Alistair Popple Cc: "David S. Miller" Cc

[PATCH 4/7] IBM Akebono: Add support to the OHCI platform driver for Akebono

2013-11-04 Thread Alistair Popple
The IBM Akebono board has a OHCI compliant USB host interface. This patch adds support for it to the OHCI platform driver. As we use device tree to pass platform specific data instead of platform data we remove the check for platform data and instead provide reasonable defaults if no platform data

[PATCH 5/7] IBM Akebono: Add support to the EHCI platform driver for Akebono

2013-11-04 Thread Alistair Popple
The IBM Akebono board has an EHCI compliant USB host interface. This patch adds support for it to the EHCI platform driver. Signed-off-by: Alistair Popple Cc: Alan Stern Cc: linux-...@vger.kernel.org --- drivers/usb/host/ehci-platform.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 7/7] IBM Akebono: Add the Akebono platform

2013-11-04 Thread Alistair Popple
This patch adds support for the IBM Akebono board. Signed-off-by: Alistair Popple --- .../devicetree/bindings/powerpc/4xx/akebono.txt| 76 arch/powerpc/boot/Makefile |3 + arch/powerpc/boot/dcr.h|2 + arch/powerpc/boot/dts/ak

[PATCH 6/7] IBM Currituck: Clean up board specific code before adding Akebono code

2013-11-04 Thread Alistair Popple
The IBM Akebono code uses the same initialisation functions as the earlier Currituck board. Rather than create a copy of this code for Akebono we will instead integrate support for it into the same file as the Currituck code. This patch simply renames the file. Signed-off-by: Alistair Popple ---

[PATCH] powerpc: Fix fatal SLB miss when restoring PPR

2013-11-04 Thread Benjamin Herrenschmidt
When restoring the PPR value, we incorrectly access the thread structure at a time where MSR:RI is clear, which means we cannot recover from nested faults. However the thread structure isn't covered by the "bolted" SLB entries and thus accessing can fault. This fixes it by splitting the code so th

RE: [PATCHv2 6/8] ASoC: fsl: add SGTL5000 based audio machine driver.

2013-11-04 Thread Li Xiubo
> > > sound/soc/fsl/fsl-sgtl5000-vf610.c | 208 > > > + > > > > I just doubt if this file naming is appropriate. Even if we might not > > have rigor rule for the file names, according to existing ones, they > > are all in a same pattern: [SoC name]-[codec name].

[PATCH 2/3] powerpc/kvm: fix rare but potential deadlock scene

2013-11-04 Thread Liu Ping Fan
Since kvmppc_hv_find_lock_hpte() is called from both virtmode and realmode, so it can trigger the deadlock. Suppose the following scene: Two physical cpuM, cpuN, two VM instances A, B, each VM has a group of vcpus. If on cpuM, vcpu_A_1 holds bitlock X (HPTE_V_HVLOCK), then is switched out, and o

[PATCH 1/3] powerpc/kvm: simplify the entering logic for secondary thread

2013-11-04 Thread Liu Ping Fan
After the primary vcpu changes vcore_state to VCORE_RUNNING, there is very little chance to schedule to secondary vcpu. So if we change the code sequence around set vcore_state to VCORE_RUNNING and disable preemption, we lost little. But we simplify the entering logi, based on the fact that if prim

[PATCH 3/3] powerpc/kvm: remove redundant assignment

2013-11-04 Thread Liu Ping Fan
Signed-off-by: Liu Ping Fan --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index 28160ac..7682837 100644 --- a/arch/powerpc/kvm/book3s_64_mmu_hv.c +++ b/arch/powerpc/kvm/book3s_6