Re: [PATCH v4] powerpc: kvm: fix rare but potential deadlock scene

2013-11-15 Thread Paul Mackerras
On Fri, Nov 15, 2013 at 04:35:00PM +0800, Liu Ping Fan wrote: > 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. > > I

Re: [PATCH v2] powerpc: kvm: optimize "sc 1" as fast return

2013-11-15 Thread Paul Mackerras
On Fri, Nov 15, 2013 at 04:35:01PM +0800, Liu Ping Fan wrote: > > +sc_1_fast_return: > + mtspr SPRN_SRR0,r10 > + mtspr SPRN_SRR1,r11 > + li r10, BOOK3S_INTERRUPT_SYSCALL > + li r11, (MSR_ME << 1) | 1 /* synthesize MSR_SF | MSR_ME */ > + rotldi r11, r11, 63 You

[PATCH v4] powerpc/85xx: Merge 85xx/p1023_defconfig into mpc85xx_smp_defconfig and mpc85xx_defconfig

2013-11-15 Thread Lijun Pan
mpc85xx_smp_defconfig and mpc85xx_defconfig already have CONFIG_P1023RDS=y. Merge CONFIG_P1023RDB=y and other relevant configurations into mpc85xx_smp_defconfig and mpc85_defconfig. Signed-off-by: Lijun Pan --- v4 only add CONFIG_P1023_RDB=y CONFIG_EEPROM_AT24=y CONFIG_RTC_DRV_DS1307=y to mpc

[PATCH] PPC64: Adding symbols in vmcoreinfo to facilitate dump filtering

2013-11-15 Thread Hari Bathini
When CONFIG_SPARSEMEM_VMEMMAP option is used in kernel, makedumpfile fails to filter vmcore dump as it fails to do vmemmap translations. So far dump filtering on ppc64 never had to deal with vmemmap addresses seperately as vmemmap regions where mapped in zone normal. But with the inclusion of CONFI

Re: [PATCH] powerpc: Add a vga alias node for P1022

2013-11-15 Thread Scott Wood
On Fri, 2013-11-15 at 14:06 +0800, Jason Jin wrote: > In u-boot, when set the video as console, the name 'vga' is used > as a general name for the video device, during the fdt_fixup_stdout > process, the 'vga' name is used to search in the dtb to setup the > 'linux,stdout-path' node. Though the P10

Re: [PATCH] PPC64: Adding symbols in vmcoreinfo to facilitate dump filtering

2013-11-15 Thread Mahesh Jagannath Salgaonkar
On 11/15/2013 11:01 PM, Hari Bathini wrote: > When CONFIG_SPARSEMEM_VMEMMAP option is used in kernel, makedumpfile fails > to filter vmcore dump as it fails to do vmemmap translations. So far > dump filtering on ppc64 never had to deal with vmemmap addresses seperately > as vmemmap regions where ma

Re: Problem reading and programming memory location...

2013-11-15 Thread neorf3k
Hello again, I’ve tried this code, but we are not able to change cs4 reg value… what could be? — #define MALab_DEVICE_NAME "MALab" #define MPC5xxx_MM_CS4_START(MBAR_BASE + 0x0024) #define MPC5xxx_MM_CS4_STOP (MBAR_BASE + 0x0028) #define MPC5xxx_MM_IPBI (MBAR_BASE + 0x0054) #defin

[PATCH v2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-11-15 Thread Nicolin Chen
The normal mode of SSI allows it to send/receive data to/from the first slot of each period. So we can use this normal mode to trick I2S signal by puting/getting data to/from the first slot only (the left channel) so as to support monaural audio playback and recording. Signed-off-by: Nicolin Chen

Re: [PATCH 16/51] DMA-API: ppc: vio.c: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-11-15 Thread Cedric Le Goater
Hi, On 09/19/2013 11:41 PM, Russell King wrote: > Replace the following sequence: > > dma_set_mask(dev, mask); > dma_set_coherent_mask(dev, mask); > > with a call to the new helper dma_set_mask_and_coherent(). > > Signed-off-by: Russell King > --- > arch/powerpc/kernel/vio.c |

Re: [PATCH 2/2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-11-15 Thread Nicolin Chen
On Fri, Nov 15, 2013 at 12:21:08PM +, Russell King - ARM Linux wrote: > > @@ -517,10 +517,12 @@ static int fsl_ssi_hw_params(struct snd_pcm_substream > > *substream, > > { > > struct fsl_ssi_private *ssi_private = snd_soc_dai_get_drvdata(cpu_dai); > > struct ccsr_ssi __iomem *ssi = ss

Re: [PATCH 2/2] ASoC: fsl_ssi: Add monaural audio support for non-ac97 interface

2013-11-15 Thread Russell King - ARM Linux
On Thu, Nov 14, 2013 at 07:07:10PM +0800, Nicolin Chen wrote: > The normal mode of SSI allows it to send/receive data to/from the first > slot of each period. So we can use this normal mode to trick I2S signal > by puting/getting data to/from the first slot only (the left channel) > so as to suppor

[PATCH 3/3] powerpc/fsl-booke: Enable T2080QDS board

2013-11-15 Thread Shengzhou Liu
Signed-off-by: Shengzhou Liu --- arch/powerpc/include/asm/mpc85xx.h| 2 ++ arch/powerpc/platforms/85xx/Kconfig | 2 +- arch/powerpc/platforms/85xx/corenet_generic.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/mpc85xx.h b/ar

[PATCH 1/3] powerpc/85xx/dts: add third elo3 dma component

2013-11-15 Thread Shengzhou Liu
Add elo3-dma-2.dtsi to support the third DMA controller. This is used on T2080, T4240, etc. Signed-off-by: Shengzhou Liu Signed-off-by: Liu Gang --- arch/powerpc/boot/dts/fsl/elo3-dma-2.dtsi | 82 +++ 1 file changed, 82 insertions(+) create mode 100644 arch/powerpc/

[PATCH 2/3] powerpc/fsl-booke: Add T2080QDS board support

2013-11-15 Thread Shengzhou Liu
Add support for Freescale T2080QDS Development System Board. The T2080QDS Development System is a high-performance computing, evaluation, and development platform that supports T2080 QorIQ Power Architecture processor, with following major features: - Four 64-bit dual-threaded e6500 cores up to 1

[PATCH v2] powerpc: kvm: optimize "sc 1" as fast return

2013-11-15 Thread Liu Ping Fan
In some scene, e.g openstack CI, PR guest can trigger "sc 1" frequently, this patch optimizes the path by directly delivering BOOK3S_INTERRUPT_SYSCALL to HV guest, so powernv can return to HV guest without heavy exit, i.e, no need to swap TLB, HTAB,.. etc Signed-off-by: Liu Ping Fan --- arch/pow

[PATCH v4] powerpc: kvm: fix rare but potential deadlock scene

2013-11-15 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] powerpc/gpio: Fix the wrong GPIO input data on MPC8572/MPC8536

2013-11-15 Thread Liu Gang
For MPC8572/MPC8536, the status of GPIOs defined as output cannot be determined by reading GPDAT register, so the code use shadow data register instead. But if the input pins are asserted high, they will always read high due to the shadow data, even if the pins are set to low. So the input pins sh