Re: [PATCH 1/2] KVM: PPC: Book3S HV: Cleanup kvmppc_load/save_fp

2014-08-18 Thread Michael Neuling
On Tue, 2014-08-19 at 15:24 +1000, Paul Mackerras wrote: > On Tue, Aug 19, 2014 at 02:59:29PM +1000, Michael Neuling wrote: > > This cleans up kvmppc_load/save_fp. It removes unnecessary isyncs. > > NAK - they are necessary on PPC970, which we (still) support. You > could put them in a feature s

Re: [PATCH 1/2] KVM: PPC: Book3S HV: Cleanup kvmppc_load/save_fp

2014-08-18 Thread Paul Mackerras
On Tue, Aug 19, 2014 at 02:59:29PM +1000, Michael Neuling wrote: > This cleans up kvmppc_load/save_fp. It removes unnecessary isyncs. NAK - they are necessary on PPC970, which we (still) support. You could put them in a feature section if they are really annoying you. > It also > removes the u

[PATCH 2/2] KVM: PPC: Book3S HV: Add register name when loading toc

2014-08-18 Thread Michael Neuling
Add 'r' to register name r2 in kvmppc_hv_enter. Also update comment at the top of kvmppc_hv_enter to indicate that R2/TOC is non-volatile. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 3 ++- 1 file changed, 2 insertions(+), 1 deleti

[PATCH 1/2] KVM: PPC: Book3S HV: Cleanup kvmppc_load/save_fp

2014-08-18 Thread Michael Neuling
This cleans up kvmppc_load/save_fp. It removes unnecessary isyncs. It also removes the unnecessary resetting of the MSR bits on exit of kvmppc_save_fp. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 -- 1 file changed, 2 deletions(

[PATCH 4/4] powerpc/powernv: Check OPAL dump calls exist before using

2014-08-18 Thread Michael Neuling
Check that the OPAL_DUMP_READ token exists before initalising the elog infrastructure. This avoids littering the OPAL console with: "OPAL: Called with bad token 91" Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-dump.c | 4 1 file changed, 4 insertions(+) diff --

[PATCH 3/4] powerpc/powernv: Check OPAL elog calls exist before using

2014-08-18 Thread Michael Neuling
Check that the OPAL_ELOG_READ token exists before initalising the elog infrastructure. This avoids littering the OPAL console with: "OPAL: Called with bad token 74" Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-elog.c | 4 1 file changed, 4 insertions(+) diff --

[PATCH 2/4] powerpc/powernv: Check OPAL RTC calls exists before using

2014-08-18 Thread Michael Neuling
Check that the OPAL_RTC_READ token exists before we use the OPAL RTC. Refactors the code a little to merge error paths. This avoids littering the OPAL console with: "OPAL: Called with bad token 3". Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-rtc.c | 15 ++--

[PATCH 1/4] powerpc/powernv: Add OPAL check token call

2014-08-18 Thread Michael Neuling
Currently there is no way to generically check if an OPAL call exists or not from the host kernel. This adds an OPAL call opal_check_token() which tells you if the given token is present in OPAL or not. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/opal.h| 7 ++

[PATCH v2] ppc: Fix build error with CONFIG_PCI=n

2014-08-18 Thread Pranith Kumar
Fix ppc 32 build failure as reported here: http://kisskb.ellerman.id.au/kisskb/buildresult/11663513/ The error is as follows: arch/powerpc/include/asm/floppy.h:142:20: error: 'isa_bridge_pcidev' undeclared (first use in this function) This is happening since floppy.o is enabled by BLK_DEV_FD wh

Re: [PATCH] powerpc: Fix build failure for PPC_32

2014-08-18 Thread Pranith Kumar
On Mon, Aug 18, 2014 at 4:57 PM, Geert Uytterhoeven wrote: > > Note that PowerPC supports multi-platform kernels. > A kernel with PPC_PSERIES and something else with PCI may still want to > have floppy support. OK, I tested with your change and it works. I needed to make one more change for it co

Re: [PATCH] powerpc: Fix build failure for PPC_32

2014-08-18 Thread Pranith Kumar
On Mon, Aug 18, 2014 at 3:28 PM, Geert Uytterhoeven wrote: > Hi Pranith, > > On Mon, Aug 18, 2014 at 9:01 PM, Pranith Kumar > wrote: > > Fix ppc 32 build failure as reported here: > > > > http://kisskb.ellerman.id.au/kisskb/buildresult/11663513/ > > | arch/powerpc/include/asm/floppy.h:142:20: er

[PATCH] powerpc: Fix build failure for PPC_32

2014-08-18 Thread Pranith Kumar
Fix ppc 32 build failure as reported here: http://kisskb.ellerman.id.au/kisskb/buildresult/11663513/ The error is that pci_32.o was not being built for PPC_32. Fix error by adding it in the Makefile. Tested using the ppc cross compiler. Signed-off-by: Pranith Kumar Reported-by: Geert Uytterhoev

[PATCH] powerpc/eeh: fix crashing when passing VF

2014-08-18 Thread Wei Yang
When doing vfio passthrough a VF, the kernel will crash with following message: [ 442.656459] Unable to handle kernel paging request for data at address 0x0060 [ 442.656593] Faulting instruction address: 0xc0038b88 [ 442.656706] Oops: Kernel access of bad area, sig: 11 [#1] [ 442.

Re: [PATCH] tools/perf/powerpc: Fix build break

2014-08-18 Thread Sukadev Bhattiprolu
I posted a patch for this to LKML last week: https://lkml.org/lkml/2014/8/7/77 Aneesh Kumar K.V [aneesh.ku...@linux.vnet.ibm.com] wrote: | CC arch/powerpc/util/skip-callchain-idx.o | arch/powerpc/util/skip-callchain-idx.c: In function ‘check_return_reg’: | arch/powerpc/util/skip-c

Re: [PATCH] powerpc: Fix build failure for PPC_32

2014-08-18 Thread Geert Uytterhoeven
Hi Pranith, On Mon, Aug 18, 2014 at 10:52 PM, Pranith Kumar wrote: > On Mon, Aug 18, 2014 at 3:28 PM, Geert Uytterhoeven > wrote: >> On Mon, Aug 18, 2014 at 9:01 PM, Pranith Kumar >> wrote: >> > Fix ppc 32 build failure as reported here: >> > >> > http://kisskb.ellerman.id.au/kisskb/buildresult

Re: [PATCH] powerpc: Fix build failure for PPC_32

2014-08-18 Thread Geert Uytterhoeven
Hi Pranith, On Mon, Aug 18, 2014 at 9:01 PM, Pranith Kumar wrote: > Fix ppc 32 build failure as reported here: > > http://kisskb.ellerman.id.au/kisskb/buildresult/11663513/ | arch/powerpc/include/asm/floppy.h:142:20: error: 'isa_bridge_pcidev' undeclared (first use in this function) | make[3]: *

Re: [alsa-devel] [PATCH V1 1/3] ASoC: fsl: Kconfig: remove dependence of SND_IMX_SOC for SND_SOC_IMX_PCM_DMA

2014-08-18 Thread Lars-Peter Clausen
On 08/18/2014 10:38 AM, Shengjiu Wang wrote: Build kernel with SND_SOC_IMC_PCM_DMA=m && SND_IMX_SOC=n leads the following error: sound/built-in.o: In function `fsl_sai_probe': fsl_sai.c:(.text+0x5f662): undefined reference to `imx_pcm_dma_init' sound/built-in.o: In function `fsl_esai_p

Re: [PATCH V1 3/3] ASoC: fsl: fsl-asoc-card: Select SND_SOC_IMX_AUDMUX

2014-08-18 Thread Mark Brown
On Mon, Aug 18, 2014 at 04:38:40PM +0800, Shengjiu Wang wrote: > Building kernel with SND_SOC_IMX_AUDMUX=n leads to the following error: Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozla

Re: [PATCH V1 2/3] ASoC: fsl-asoc-card: Fix build warning for maybe-uninitialized

2014-08-18 Thread Mark Brown
On Mon, Aug 18, 2014 at 04:38:39PM +0800, Shengjiu Wang wrote: > When build fsl-asoc-card as module, there is following error: Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org htt

[PATCH 3/3] powerpc: Implement emulation of string loads and stores

2014-08-18 Thread Paul Mackerras
The size field of the op.type word is now the total number of bytes to be loaded or stored. Signed-off-by: Paul Mackerras --- arch/powerpc/lib/sstep.c | 59 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/lib/sstep.c b

[PATCH 2/3] powerpc: Emulate icbi, mcrf and conditional-trap instructions

2014-08-18 Thread Paul Mackerras
This extends the instruction emulation done by analyse_instr() and emulate_step() to handle a few more instructions that are found in the kernel. Signed-off-by: Paul Mackerras --- arch/powerpc/include/asm/sstep.h | 1 + arch/powerpc/lib/sstep.c | 60 +

[PATCH 1/3] powerpc: Split out instruction analysis part of emulate_step()

2014-08-18 Thread Paul Mackerras
This splits out the instruction analysis part of emulate_step() into a separate analyse_instr() function, which decodes the instruction, but doesn't execute any load or store instructions. It does execute integer instructions and branches which can be executed purely by updating register values in

[PATCH 0/3] powerpc: Make sstep.c more generally useful

2014-08-18 Thread Paul Mackerras
This patch series modifies the code in arch/powerpc/lib/sstep.c so that it can be used by KVM in its instruction emulation, thereby reducing the number of different PowerPC instruction emulators that we have in the kernel. It does this by splitting the existing emulate_step() function into two: an

[PATCH V1 3/3] ASoC: fsl: fsl-asoc-card: Select SND_SOC_IMX_AUDMUX

2014-08-18 Thread Shengjiu Wang
Building kernel with SND_SOC_IMX_AUDMUX=n leads to the following error: sound/built-in.o: In function `fsl_asoc_card_probe': >> fsl-asoc-card.c:(.text+0x1467b5): undefined reference to >> `imx_audmux_v2_configure_port' >> fsl-asoc-card.c:(.text+0x1467d0): undefined reference to >> `imx_audmux

[PATCH V1 0/3] fix build error/warning in sound/soc/fsl

2014-08-18 Thread Shengjiu Wang
This series patch is for fixing build error/waring in sound/soc/fsl Shengjiu Wang (3): ASoC: fsl: Kconfig: remove dependence of SND_IMX_SOC for SND_SOC_IMX_PCM_DMA ASoC: fsl-asoc-card: Fix build warning for maybe-uninitialized ASoC: fsl: fsl-asoc-card: Select SND_SOC_IMX_AUDMUX sound/s

[PATCH V1 2/3] ASoC: fsl-asoc-card: Fix build warning for maybe-uninitialized

2014-08-18 Thread Shengjiu Wang
When build fsl-asoc-card as module, there is following error: sound/soc/fsl/fsl-asoc-card.c: In function 'fsl_asoc_card_probe': >> sound/soc/fsl/fsl-asoc-card.c:547:13: warning: 'asrc_np' may be used >> uninitialized in this function [-Wmaybe-uninitialized] of_node_put(asrc_np);

[PATCH V1 1/3] ASoC: fsl: Kconfig: remove dependence of SND_IMX_SOC for SND_SOC_IMX_PCM_DMA

2014-08-18 Thread Shengjiu Wang
Build kernel with SND_SOC_IMC_PCM_DMA=m && SND_IMX_SOC=n leads the following error: sound/built-in.o: In function `fsl_sai_probe': >> fsl_sai.c:(.text+0x5f662): undefined reference to `imx_pcm_dma_init' sound/built-in.o: In function `fsl_esai_probe': >> fsl_esai.c:(.text+0x6044b): undefined

Re: [GIT PULL 00/18] perf/core improvements and fixes

2014-08-18 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit f373da34282560c60f0c197690eecb1b2dc49fc0: > > Merge tag 'perf-core-for-mingo' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core

Re: [PATCH] cpufreq: powernv: Register the driver with reboot notifier

2014-08-18 Thread Viresh Kumar
On 14 August 2014 16:49, Shilpasri G Bhat wrote: > This patch ensures the cpus to kexec/reboot at nominal frequency. > Nominal frequency is the highest cpu frequency on PowerPC at > which the cores can run without getting throttled. > > If the host kernel had set the cpus to a low pstate and then