Re: [PATCH resend] powernv/iommu: disable IOMMU bypass with param iommu=nobypass

2015-01-22 Thread cascardo
On Thu, Jan 22, 2015 at 12:05:31PM +1100, Michael Ellerman wrote: > On Wed, 2015-01-21 at 13:23 -0200, Thadeu Lima de Souza Cascardo wrote: > > When IOMMU bypass is enabled, a PCI device can read and write memory > > that was not mapped by the driver without causing an EEH. That might > > cause mem

[PATCH v3 2/2] powerpc/corenet: Enable muxing MDIO buses via FPGA

2015-01-22 Thread Emil Medve
From: Shruti Kanetkar Change-Id: I00c521664573808af4f9a9c06a97665db470b49a Signed-off-by: Andy Fleming Signed-off-by: Shaohui Xie Signed-off-by: Shruti Kanetkar --- v3: Spearated from the FMan MDIO dt/binding patchset http://patchwork.ozlabs.org/patch/370873 Also supersedes http:

[PATCH v3 1/2] powerpc/corenet: Enable muxing MDIO buses via GPIO

2015-01-22 Thread Emil Medve
From: Andy Fleming Change-Id: I4489db79957ad533f4ba3f04fe7d5bcb3288e981 Signed-off-by: Andy Fleming Signed-off-by: Shaohui Xie Signed-off-by: Shruti Kanetkar --- v3: Spearated from the FMan MDIO dt/binding patchset http://patchwork.ozlabs.org/patch/370871 Also supersedes http://p

Re: [PATCH V3] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug

2015-01-22 Thread Thomas Gleixner
On Thu, 22 Jan 2015, Preeti U Murthy wrote: > On 01/21/2015 05:16 PM, Thomas Gleixner wrote: > How about when the cpu that is going offline receives a timer interrupt > just before setting its state to CPU_DEAD ? That is still possible right > given that its clock devices may not have been shutdown

Re: [PATCH 1/2] oprofile: Add HAVE_OPROFILE_NMI_TIMER

2015-01-22 Thread Anton Blanchard
Hi Robert, > I also don't see a reason, why you don't want to support oprofile NMI > timer. Is there any? I couldn't come up with a case where it would be a benefit to us. We roll out PMU support for a new CPU early so that the kernel and tools support it when we GA. On the other hand adding opro

Re: [PATCH v2 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-22 Thread Pranith Kumar
On Thu, Jan 22, 2015 at 12:19 AM, Michael Ellerman wrote: > On Wed, 2015-01-21 at 21:26 -0500, Pranith Kumar wrote: >> When CONFIG_PRINTK=n, log_buf_addr_get() returns NULL and log_buf_len_get() >> return 0. Check for these return values and skip registering the dump buffer. >> >> Signed-off-by: P

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-01-22 Thread Ulrich Weigand
Michael Neuling wrote on 22.01.2015 00:39:57: > On Thu, 2015-01-01 at 13:38 +0530, Anshuman Khandual wrote: > > On 12/20/2014 12:58 AM, Edjunior Barbosa Machado wrote: > > > The patchset seems to change the "original" ptrace requests (i.e. > > > PTRACE_GETREGS/GETFPREGS/GETVRREGS...) to return the

Re: [PATCH 2/2] MAINTAINERS: ibmvfc driver maintainer change

2015-01-22 Thread Brian King
On 01/18/2015 09:27 AM, Christoph Hellwig wrote: > Brian, can you ACK this one? Acked-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listi

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-22 Thread Kim Phillips
On Thu, 22 Jan 2015 10:45:51 +0900 Joonsoo Kim wrote: > On Wed, Jan 21, 2015 at 09:57:59PM +0900, Akinobu Mita wrote: > > 2015-01-21 9:07 GMT+09:00 Andrew Morton : > > > On Tue, 20 Jan 2015 15:01:50 -0800 j...@joshtriplett.org wrote: > > > > > >> On Tue, Jan 20, 2015 at 02:02:00PM -0600, Kim Phil

Re: [PATCH V2] cpuidle: Add missing checks to the exit condition of cpu_idle_poll()

2015-01-22 Thread Thomas Gleixner
On Wed, 21 Jan 2015, Preeti U Murthy wrote: > cpu_idle_poll() is entered into when either the cpu_idle_force_poll is set or > tick_check_broadcast_expired() returns true. The exit condition from > cpu_idle_poll() is tif_need_resched(). > > However this does not take into account scenarios where c

Re: [PATCH 00/16] PCI generic configuration space accessors

2015-01-22 Thread Bjorn Helgaas
On Fri, Jan 09, 2015 at 08:34:34PM -0600, Rob Herring wrote: > This series adds common accessor functions for PCI configuration space > accesses. This supports most PCI hosts with memory mapped configuration > space like ECAM or hosts with memory mapped address/data registers. ECAM > is not generic

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-01-22 Thread Michael Neuling
> > > Inside transaction both running and check pointed values can be > > > probed independently. > > > > Yep, that's the idea, although setting the running values won't change > > anything since the the translation is already doomed and will abort once > > the cpu starts executing it. > > So this

Re: [PATCH v2 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-22 Thread Stewart Smith
Pranith Kumar writes: > On Thu, Jan 22, 2015 at 12:19 AM, Michael Ellerman > wrote: >> On Wed, 2015-01-21 at 21:26 -0500, Pranith Kumar wrote: >>> When CONFIG_PRINTK=n, log_buf_addr_get() returns NULL and log_buf_len_get() >>> return 0. Check for these return values and skip registering the dump

Re: [PATCH 00/16] PCI generic configuration space accessors

2015-01-22 Thread Rob Herring
On Thu, Jan 22, 2015 at 3:03 PM, Bjorn Helgaas wrote: > On Fri, Jan 09, 2015 at 08:34:34PM -0600, Rob Herring wrote: >> This series adds common accessor functions for PCI configuration space >> accesses. This supports most PCI hosts with memory mapped configuration >> space like ECAM or hosts with

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-22 Thread Akinobu Mita
2015-01-23 5:41 GMT+09:00 Kim Phillips : > On Thu, 22 Jan 2015 10:45:51 +0900 > Joonsoo Kim wrote: > >> On Wed, Jan 21, 2015 at 09:57:59PM +0900, Akinobu Mita wrote: >> > 2015-01-21 9:07 GMT+09:00 Andrew Morton : >> > > On Tue, 20 Jan 2015 15:01:50 -0800 j...@joshtriplett.org wrote: >> > > >> > >>

Re: [alsa-devel][PATCH 2/3] ASoC: fsl_sai: Add support for tdm slots operation

2015-01-22 Thread Nicolin Chen
On Thu, Jan 22, 2015 at 02:20:06PM +0800, Zidan Wang wrote: > > > > > @@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct > > > > > snd_pcm_substream *substream, > > > > > u32 word_width = snd_pcm_format_width(params_format(params)); > > > > > u32 val_cr4 = 0, val_cr5 = 0; > > >

Re: [PATCH] powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN

2015-01-22 Thread Kim Phillips
On Wed, 21 Jan 2015 21:02:27 -0600 Scott Wood wrote: > On Wed, 2015-01-21 at 20:48 -0600, Kim Phillips wrote: > > On Tue, 20 Jan 2015 18:31:32 -0600 > > Scott Wood wrote: > > > > > On Tue, 2015-01-20 at 14:03 -0600, Kim Phillips wrote: > > > > Fix this: > > > > > > > > CC arch/powerpc/s

Re: [PATCH] powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN

2015-01-22 Thread Scott Wood
On Thu, 2015-01-22 at 18:20 -0600, Kim Phillips wrote: > On Wed, 21 Jan 2015 21:02:27 -0600 > Scott Wood wrote: > > > On Wed, 2015-01-21 at 20:48 -0600, Kim Phillips wrote: > > > fake_pci_bus()' version is static, so it's not on the stack. > > > > > > given that, maybe fsl_pcie_check_link()'s sh

Re: [PATCH] powerpc/kernel: Avoid memory corruption at early stage

2015-01-22 Thread Michael Ellerman
On Thu, 2015-01-22 at 17:40 +1100, Gavin Shan wrote: > On Thu, Jan 22, 2015 at 05:21:22PM +1100, Michael Ellerman wrote: > >On Thu, 2015-01-08 at 16:40 +1100, Gavin Shan wrote: > >> When calling to early_setup(), we picks "boot_paca" up for the > >> master CPU and initialize that with initialise_pa

[PATCH v2] powerpc/fsl_pci: Fix pci stack build bug with FRAME_WARN

2015-01-22 Thread Kim Phillips
Fix this: CC arch/powerpc/sysdev/fsl_pci.o arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pcie_check_link': arch/powerpc/sysdev/fsl_pci.c:91:1: error: the frame size of 1360 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] when configuring FRAME_WARN, by refactoring indirect_

Re: [PATCH] powerpc/pseries: fix endian problems with LE migration

2015-01-22 Thread Michael Ellerman
On Thu, 2015-01-22 at 16:37 +1100, Cyril Bur wrote: > On Wed, 2015-01-21 at 14:33 +1100, Michael Ellerman wrote: > > On Wed, 2015-01-21 at 13:32 +1100, Cyril Bur wrote: > > > The need to handle ibm,suspend_me specially from within ppc_rtas has left > > > an > > > endian bug exposed as rtas_ibm_sus

Re: [PATCH resend] powernv/iommu: disable IOMMU bypass with param iommu=nobypass

2015-01-22 Thread Michael Ellerman
On Wed, 2015-01-21 at 13:23 -0200, Thadeu Lima de Souza Cascardo wrote: > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c > b/arch/powerpc/platforms/powernv/pci-ioda.c > index fac88ed..f942a19 100644 > --- a/arch/powerpc/platforms/powernv/pci-ioda.c > +++ b/arch/powerpc/platforms/powernv/pc

Re: [PATCH v2 1/1] powerpc: refresh mpc85xx_defconfig using "make savedefconfig"

2015-01-22 Thread Michael Ellerman
On Mon, 2015-01-19 at 09:10 +0100, Alessio Igor Bogani wrote: > Signed-off-by: Alessio Igor Bogani > --- > > v1 -> v2 > Rebased on v3.19-rc5 In the end I did do a bulk update of all configs, which I think means this is obsolete. https://git.kernel.org/cgit/linux/kernel/git/mpe/linux.gi

Re: [PATCH v2 1/2] powerpc: Add helpers for LPCR PECE1 operations

2015-01-22 Thread Michael Ellerman
On Mon, 2015-01-19 at 13:35 +0530, Shreyas B. Prabhu wrote: > PECE1 bit in LPCR is used to control whether decrementer can cause exit > from powersaving states. PECE1 bit is cleared before entering fastsleep > or deeper powersaving state and it is set on waking up. Since both > cpuidle and cpu offl

Re: [alsa-devel][PATCH 2/3] ASoC: fsl_sai: Add support for tdm slots operation

2015-01-22 Thread Zidan Wang
On Thu, Jan 22, 2015 at 03:50:20PM -0800, Nicolin Chen wrote: > On Thu, Jan 22, 2015 at 02:20:06PM +0800, Zidan Wang wrote: > > > > > > @@ -369,10 +380,25 @@ static int fsl_sai_hw_params(struct > > > > > > snd_pcm_substream *substream, > > > > > > u32 word_width = snd_pcm_format_width(params_f

[PATCH v2 1/2] powerpc/powernv: Separate function for OPAL IRQ setup

2015-01-22 Thread Gavin Shan
The patch put the OPAL interrupt setup logic in opal_init() into seperate function opal_irq_init() for easier code maintaining. The patch doesn't introduce logic changes except: * Rename variable names. * Release virtual IRQ upon error from request_irq(). * Don't cache the virtual IRQ to

[PATCH v2 2/2] powerpc/powernv: Don't alloc IRQ map if necessary

2015-01-22 Thread Gavin Shan
On PowerNV platform, the OPAL interrupts are exported by firmware through device-node property (/ibm,opal::opal-interrupts). Under some extreme circumstances (e.g. simulator), we don't have this property found from the device tree. For that case, we shouldn't allocate the interrupt map. Otherwise,

Re: [PATCH v2 1/2] powerpc: Add helpers for LPCR PECE1 operations

2015-01-22 Thread Shreyas B Prabhu
On Friday 23 January 2015 08:36 AM, Michael Ellerman wrote: > On Mon, 2015-01-19 at 13:35 +0530, Shreyas B. Prabhu wrote: >> PECE1 bit in LPCR is used to control whether decrementer can cause exit >> from powersaving states. PECE1 bit is cleared before entering fastsleep >> or deeper powersaving

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-22 Thread Gavin Shan
On Wed, Jan 21, 2015 at 10:53:38AM +1100, Gavin Shan wrote: >On Wed, Jan 21, 2015 at 09:56:07AM +1100, Gavin Shan wrote: >>On Tue, Jan 20, 2015 at 10:28:16AM +0100, Benjamin Herrenschmidt wrote: >>>On Mon, 2015-01-19 at 09:47 +1100, Gavin Shan wrote: On pseries platform, the EEH reset backend

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-22 Thread Kim Phillips
On Fri, 23 Jan 2015 08:49:36 +0900 Akinobu Mita wrote: > 2015-01-23 5:41 GMT+09:00 Kim Phillips : > > Thanks. Now I get this: > > > > LD init/built-in.o > > mm/built-in.o: In function `kernel_map_pages': > > include/linux/mm.h:2076: undefined reference to `.__kernel_map_pages' > > include/

[PATCH] powerpc/eeh: Drop delay in pcibios_set_pcie_reset_state()

2015-01-22 Thread Gavin Shan
pcibios_set_pcie_reset_state(), implemented based on platform's EEH reset backends, helps to reset PCI adapters. IPR driver might call this function in timer handler and it's hard to make reset assertion and settlement delays with msleep() in the atomic context. The issue was caused by commit 26833

Re: [PATCH v2 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-22 Thread Pranith Kumar
On Thu, Jan 22, 2015 at 5:35 PM, Stewart Smith wrote: > Pranith Kumar writes: >> On Thu, Jan 22, 2015 at 12:19 AM, Michael Ellerman >> wrote: >>> On Wed, 2015-01-21 at 21:26 -0500, Pranith Kumar wrote: When CONFIG_PRINTK=n, log_buf_addr_get() returns NULL and log_buf_len_get() return

Re: [PATCH v2 2/2] powerpc/powernv: Skip registering log region when CONFIG_PRINTK=n

2015-01-22 Thread Michael Ellerman
On Thu, 2015-01-22 at 23:03 -0500, Pranith Kumar wrote: > On Thu, Jan 22, 2015 at 5:35 PM, Stewart Smith > wrote: > > Pranith Kumar writes: > >> On Thu, Jan 22, 2015 at 12:19 AM, Michael Ellerman > >> wrote: > >>> On Wed, 2015-01-21 at 21:26 -0500, Pranith Kumar wrote: > When CONFIG_PRINTK

Re: [PATCH v2 1/2] powerpc: Add helpers for LPCR PECE1 operations

2015-01-22 Thread Michael Ellerman
On Fri, 2015-01-23 at 09:16 +0530, Shreyas B Prabhu wrote: > > On Friday 23 January 2015 08:36 AM, Michael Ellerman wrote: > > On Mon, 2015-01-19 at 13:35 +0530, Shreyas B. Prabhu wrote: > >> PECE1 bit in LPCR is used to control whether decrementer can cause exit > >> from powersaving states. PECE

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-22 Thread Michael Ellerman
On Thu, 2015-01-22 at 21:20 -0600, Kim Phillips wrote: > On Fri, 23 Jan 2015 08:49:36 +0900 > Akinobu Mita wrote: > > > 2015-01-23 5:41 GMT+09:00 Kim Phillips : > > > Thanks. Now I get this: > > > > > > LD init/built-in.o > > > mm/built-in.o: In function `kernel_map_pages': > > > include/l

Re: cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-01-22 Thread Michael Ellerman
On Tue, 2015-20-01 at 11:26:49 UTC, Preeti U Murthy wrote: > @@ -177,34 +178,39 @@ static int powernv_add_idle_states(void) > return nr_idle_states; > } > > - idle_state_latency = of_get_property(power_mgt, > - "ibm,cpu-idle-state-latencies-ns", NULL);

Re: [PATCH v6 1/7] perf: provide sysfs_show for struct perf_pmu_events_attr

2015-01-22 Thread Sukadev Bhattiprolu
Jiri, Arnaldo, Can you please review/ack this and the next (i.e patches 1 and 2) of this set ? Since other patches in this set depend on these two, it maybe easier to have them all go through the ppc tree ? Thanks, Sukadev Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote: | From: Cody P S