Re: [v5][PATCH 1/6] powerpc/book3e: load critical/machine/debug exception stack

2013-10-18 Thread Scott Wood
On Thu, 2013-06-20 at 18:28 +0800, Tiejun Chen wrote: > We always alloc critical/machine/debug check exceptions. This is > different from the normal exception. So we should load these exception > stack properly like we did for booke. > > Signed-off-by: Tiejun Chen > --- > arch/powerpc/kernel/exc

Re: [v5][PATCH 6/6] book3e/kgdb: Fix a single stgep case of lazy IRQ

2013-10-18 Thread Scott Wood
On Thu, 2013-06-20 at 18:28 +0800, Tiejun Chen wrote: > When we're in kgdb_singlestep(), we have to work around to get > thread_info by copying from the kernel stack before calling > kgdb_handle_exception(), then copying it back afterwards. > > But for PPC64, we have a lazy interrupt implementatio

Re: [v5][PATCH 4/6] powerpc/book3e: support kgdb for kernel space

2013-10-18 Thread Scott Wood
On Thu, 2013-06-20 at 18:28 +0800, Tiejun Chen wrote: > Currently we need to skip this for supporting KGDB. Does it need to depend on CONFIG_KGDB? Either you've fixed the "can't quite save properly" part, or you haven't. -Scott > > Signed-off-by: Tiejun Chen > --- > arch/powerpc/kernel/excep

Re: [v5][PATCH 3/6] book3e/kgdb: update thread's dbcr0

2013-10-18 Thread Scott Wood
On Thu, 2013-06-20 at 18:28 +0800, Tiejun Chen wrote: > gdb always need to generate a single step properly to invoke > a kgdb state. But with lazy interrupt, book3e can't always > trigger a debug exception with a single step since the current > is blocked for handling those pending exception, then

Re: [v5][PATCH 2/6] powerpc/book3e: store critical/machine/debug exception thread info

2013-10-18 Thread Scott Wood
On Thu, 2013-06-20 at 18:28 +0800, Tiejun Chen wrote: > We need to store thread info to these exception thread info like something > we already did for PPC32. > > Signed-off-by: Tiejun Chen > --- > arch/powerpc/kernel/exceptions-64e.S | 15 +++ > 1 file changed, 15 insertions(+) >

Re: [v5][PATCH 1/6] powerpc/book3e: load critical/machine/debug exception stack

2013-10-18 Thread Scott Wood
On Thu, 2013-06-20 at 18:28 +0800, Tiejun Chen wrote: > We always alloc critical/machine/debug check exceptions. This is > different from the normal exception. So we should load these exception > stack properly like we did for booke. This is "booke". Do you mean like "like we did for 32-bit"? An

RE: [alsa-devel] [PATCHv1 1/8] ALSA: Add SAI SoC Digital Audio Interface driver.

2013-10-18 Thread Xiubo Li-B47053
> > > I understand that, but I'm trying to figure out why of_iomap() is > > > okay for hundreds of other drivers, but not this one. I've used it > > > dozens of times myself, without ever worrying about overlapping > regions. > > > The driver would work fine with just of_iomap(). But the resourc

RE: [PATCHv1 8/8] Documentation: Add device tree bindings for Freescale VF610 sound.

2013-10-18 Thread Xiubo Li-B47053
Hi, > > Documentation/devicetree/bindings/sound/fsl-sgtl5000.txt > > > > diff --git a/Documentation/devicetree/bindings/sound/fsl-sgtl5000.txt > > b/Documentation/devicetree/bindings/sound/fsl-sgtl5000.txt > > new file mode 100644 > > index 000..43e350f > > --- /dev/null > > +++ b/Documentat

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

2013-10-18 Thread Xiubo Li-B47053
Hi, > > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > + sai->base = devm_ioremap_resource(&pdev->dev, res); > > + if (IS_ERR(sai->base)) { > > + ret = PTR_ERR(sai->base); > > + return ret; > > > could be: > return PTR_ERR(sai->base); > Yes,Thi

Re: [PATCHv1 8/8] Documentation: Add device tree bindings for Freescale VF610 sound.

2013-10-18 Thread Lucas Stach
Am Donnerstag, den 17.10.2013, 17:01 +0800 schrieb Xiubo Li: > This adds the Document for Freescale VF610 sound driver under > Documentation/devicetree/bindings/sound/. > > Signed-off-by: Xiubo Li > --- > .../devicetree/bindings/sound/fsl-sgtl5000.txt | 52 > ++ > 1 file

[PATCHv1 8/8] Documentation: Add device tree bindings for Freescale VF610 sound.

2013-10-18 Thread Xiubo Li
This adds the Document for Freescale VF610 sound driver under Documentation/devicetree/bindings/sound/. Signed-off-by: Xiubo Li --- .../devicetree/bindings/sound/fsl-sgtl5000.txt | 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCHv1 7/8] ARM: dts: Enable SGT15000 codec based audio driver node for VF610.

2013-10-18 Thread Xiubo Li
This patch add and enable SGT15000 codec support, and also specified the corresponding SAI node. Signed-off-by: Xiubo Li Signed-off-by: Alison Wang ; + audio-codec = <&codec>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic

[PATCHv1 6/8] ASoC: fsl: add SGT15000 based audio machine driver.

2013-10-18 Thread Xiubo Li
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 --- sound/soc/fsl/Kconfig| 10 +++ sound/soc/fsl/Makefile | 2 + sound/so

[PATCHv1 5/8] ASoC: sgtl5000: Revise the bugs about the sgt15000 codec.

2013-10-18 Thread Xiubo Li
When the CONFIG_REGULATOR is disabled there will be some warnings printed out. Signed-off-by: Xiubo Li --- sound/soc/codecs/sgtl5000.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 1f4093f..4e2e4c

[PATCHv1 3/8] ARM: dts: Enables SAI ALSA SoC DAI device for Vybrid VF610 TOWER board.

2013-10-18 Thread Xiubo Li
This patch add and enable SAI device. Signed-off-by: Xiubo Li --- arch/arm/boot/dts/vf610-twr.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index 1a58678..e4106dd 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/

[PATCHv1 4/8] Documentation: Add device tree bindings for Freescale SAI.

2013-10-18 Thread Xiubo Li
This adds the Document for Freescale SAI driver under Documentation/devicetree/bindings/sound/. Signed-off-by: Xiubo Li --- .../devicetree/bindings/sound/fsl-sai.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound

[PATCHv1 2/8] ARM: dts: Add Freescale SAI ALSA SoC Digital Audio Interface node for VF610.

2013-10-18 Thread Xiubo Li
This patch add the SAI's edma mux Tx and Rx support. Signed-off-by: Jingchang Lu Signed-off-by: Xiubo Li --- arch/arm/boot/dts/vf610.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index 18e3a4c..391f180 100

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

2013-10-18 Thread Xiubo Li
This adds Freescale SAI ASoC Audio support. This implementation is only compatible with device tree definition. Features: o Supports playback/capture o Supports 16/20/24 bit PCM o Supports 8k - 96k sample rates o Supports slave mode only. Signed-off-by: Alison Wang --- sound/soc/fsl/Kconfig

[PATCHv1 0/8] ALSA: Add SAI driver and enable SGT15000 codec.

2013-10-18 Thread Xiubo Li
This patch series is mostly Freescale's SAI SoC Digital Audio Interface driver implementation. And the implementation is only compatible with device tree definition. This patch series is based on linux-next and has been tested on Vybrid VF610 Tower board using device tree. Added in v1: - Add

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

2013-10-18 Thread 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 as an array of two 4 byte words, which is a classic little endian bug. Signed-off-by: Tom Musta --- arch/powerpc/lib/sstep.c |

[PATCH 2/3] powerpc: Fix Unaligned Loads and Stores

2013-10-18 Thread Tom Musta
This patch modifies the unaligned access routines of the sstep.c module so that it properly reverses the bytes of storage operands in the little endian kernel kernel. This is implemented by breaking an unaligned little endian access into a combination of single byte accesses plus an overal byte r

[PATCH 1/3] powerpc: Enable emulate_step In Little Endian Mode

2013-10-18 Thread Tom Musta
This patch modifies the endian chicken switch in the single step emulation code (emulate_step()). The old (big endian) code bailed early if a load or store instruction was to be emulated in little endian mode. The new code modifies the check and only bails in a cross-endian situation (LE mode in

[PATCH 0/3] powerpc: Fix Little Endian Bugs in Single Step Code

2013-10-18 Thread Tom Musta
This patch series addresses bugs in the PowerPC single-step emulation code (arch/powerpc/lib/sstep.c) pertaining to Little Endian. The existing code has a chicken switch for little endian. The first patch softens the restriction so that only cross-endian modes are not supported. There is a gener

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

2013-10-18 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, October 19, 2013 12:52 AM > To: Wang Dongsheng-B40534 > Cc: Bhushan Bharat-R65777; Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec > idle > >

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

2013-10-18 Thread Scott Wood
On Thu, 2013-10-17 at 21:36 -0500, Wang Dongsheng-B40534 wrote: > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Friday, October 18, 2013 12:52 AM > > To: Wang Dongsheng-B40534 > > Cc: Bhushan Bharat-R65777; Wood Scott-B07421; linuxppc- > > d...@lists.ozlabs.org > > Subject:

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

2013-10-18 Thread Scott Wood
On Thu, 2013-10-17 at 22:02 -0500, Wang Dongsheng-B40534 wrote: > > > -Original Message- > > From: Bhushan Bharat-R65777 > > Sent: Thursday, October 17, 2013 2:46 PM > > To: Wang Dongsheng-B40534; Wood Scott-B07421 > > Cc: linuxppc-dev@lists.ozlabs.org > > Subject: RE: [PATCH v5 4/4] power

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

2013-10-18 Thread Scott Wood
On Fri, 2013-10-18 at 12:49 -0500, Bhushan Bharat-R65777 wrote: > > > -Original Message- > > From: Wang Dongsheng-B40534 > > Sent: Friday, October 18, 2013 8:07 AM > > To: Wood Scott-B07421 > > Cc: Bhushan Bharat-R65777; linuxppc-dev@lists.ozlabs.org > > Subject: RE: [PATCH v5 4/4] powerpc

Re: [PATCH] [RFC] Emulate "lwsync" to run standard user land on e500 cores

2013-10-18 Thread Wolfgang Denk
Dear Scott, In message <1382114321.7979.840.ca...@snotra.buserror.net> you wrote: > > There's already been a patch posted for this: > http://patchwork.ozlabs.org/patch/256747/ > > I plan to apply it for my next pull request. Ah, cool. Thanks! Best regards, Wolfgang Denk -- DENX Software Eng

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

2013-10-18 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wang Dongsheng-B40534 > Sent: Friday, October 18, 2013 8:07 AM > To: Wood Scott-B07421 > Cc: Bhushan Bharat-R65777; linuxppc-dev@lists.ozlabs.org > Subject: RE: [PATCH v5 4/4] powerpc/85xx: add sysfs for pw20 state and altivec > idle > > > > > -Original

Re: [PATCHv1 6/8] ASoC: fsl: add SGT15000 based audio machine driver.

2013-10-18 Thread Mark Brown
On Thu, Oct 17, 2013 at 05:01:15PM +0800, Xiubo Li wrote: > + ret = snd_soc_register_card(&fsl_sgt1500_card); > + if (ret) { > + dev_err(&pdev->dev, "register soc sound card failed :%d\n", > + ret); > + return ret; > + } Use the newl

Re: [PATCHv1 8/8] Documentation: Add device tree bindings for Freescale VF610 sound.

2013-10-18 Thread Mark Brown
On Thu, Oct 17, 2013 at 05:01:17PM +0800, Xiubo Li wrote: > + -- Power supplies: > + * Mic Bias > + > + -- SGTL5000 pins: > + * MIC_IN > + * LINE_IN > + * HP_OUT > + * LINE_OUT Things that are part of the CODEC should be part of the CODEC binding and this binding should refe

Re: [PATCHv1 5/8] ASoC: sgtl5000: Revise the bugs about the sgt15000 codec.

2013-10-18 Thread Mark Brown
On Thu, Oct 17, 2013 at 05:01:14PM +0800, Xiubo Li wrote: > @@ -883,14 +883,19 @@ static int ldo_regulator_register(struct snd_soc_codec > *codec, > struct regulator_init_data *init_data, > int voltage) > { > +#ifdef CONFIG_SND_SOC_FSL_

[PATCH 2/2] powerpc: Enable Little Endian Alignment Handler for Float Pair Instructions

2013-10-18 Thread Tom Musta
This patch enables alignment handling for the load/store floating point pair instructions (lfdp, lfdpx, stfdp, stfdpx). The handler routine is properly coded and only needs to be enabled. Signed-off-by: Tom Musta --- arch/powerpc/kernel/align.c |6 -- 1 files changed, 0 insertions(+), 6

[PATCH 1/2] powerpc: Fix Handler of Unaligned Load/Store Strings

2013-10-18 Thread Tom Musta
The alignment handler is incorrect for unaligned string instructions in little endian mode. These instructions access data as arrays of bytes and thus are endian neutral. However, the routine also handles the load/store multiple instructions, which are NOT endian neutral. This patch toggles the

[PATCH 0/2] powerpc: Alignment Handler Fixes for Little Endian

2013-10-18 Thread Tom Musta
This patch series fixes two bugs in the PowerPC Little Endian alignment handler. Tom Musta (2): powerpc: Fix Handler of Unaligned Load/Store Strings powerpc: Enable Little Endian Alignment Handler for Float Pair Instructions arch/powerpc/kernel/align.c | 25 +++-- 1

Re: [PATCH] [RFC] Emulate "lwsync" to run standard user land on e500 cores

2013-10-18 Thread Scott Wood
On Fri, 2013-10-18 at 09:38 +0200, Wolfgang Denk wrote: > Default Debian PowerPC doesn't work on e500 because the code contains > "lwsync" instructions, which are unsupported on this core. As a > result, applications using this will crash with an "unhandled signal 4" > "Illegal instruction" error.

Re: [PATCH v5] powerpc/mpc85xx: Update the clock nodes in device tree

2013-10-18 Thread Scott Wood
On Thu, 2013-10-17 at 21:06 -0500, Tang Yuantian-B29983 wrote: > > On Wed, 2013-10-16 at 21:08 -0500, Tang Yuantian-B29983 wrote: > > > > > > That shows the dividers as being somewhere in between the PLL > > > > > > and the > > > > MUX. > > > > > > The MUX is where the divider is selected. There's

[PATCH] [RFC] Emulate "lwsync" to run standard user land on e500 cores

2013-10-18 Thread Wolfgang Denk
Default Debian PowerPC doesn't work on e500 because the code contains "lwsync" instructions, which are unsupported on this core. As a result, applications using this will crash with an "unhandled signal 4" "Illegal instruction" error. As a work around we add code to emulate this insn. This is ex

Re: [PATCH 5/7] jump_label: relax branch hinting restrictions

2013-10-18 Thread Radim Krčmář
2013-10-17 13:35-0400, Steven Rostedt: > On Thu, 17 Oct 2013 12:10:28 +0200 > Radim Krčmář wrote: > > > We implemented the optimized branch selection in higher levels of api. > > That made static_keys very unintuitive, so this patch introduces another > > element to jump_table, carrying one bit t