[PATCH] powerpc: Add lq/stq emulation

2014-03-28 Thread Anton Blanchard
Recent CPUs support quad word load and store instructions. Add support to the alignment handler for them. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/include/asm/emulated_ops.h === ---

Re: [PATCH 6/7] DMA: Freescale: use spin_lock_bh instead of spin_lock_irqsave

2014-03-28 Thread Hongbo Zhang
On 03/26/2014 03:01 PM, Vinod Koul wrote: On Thu, 2014-01-16 at 13:47 +0800, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@freescale.com The usage of spin_lock_irqsave() is a stronger locking mechanism than is required throughout the driver. The minimum locking required

[PATCH] powerpc/le: enable RTAS events support

2014-03-28 Thread Greg Kurz
The current kernel code assumes big endian and parses RTAS events all wrong. The most visible effect is that we cannot honor EPOW events, meaning, for example, we cannot shut down a guest properly from the hypervisor. This patch fixes that. Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com ---

RE: [PATCH] phy/at8031: enable at8031 to work on interrupt mode

2014-03-28 Thread qiang.z...@freescale.com
On Thursday, March 27, 2014 7:53 PM, Sergei Shtylyov wrote: -Original Message- From: Sergei Shtylyov [mailto:sergei.shtyl...@cogentembedded.com] Sent: Thursday, March 27, 2014 7:53 PM To: Zhao Qiang-B45475; linuxppc-dev@lists.ozlabs.org; net...@vger.kernel.org; Wood Scott-B07421 Cc:

[PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Dongsheng Wang
From: Wang Dongsheng dongsheng.w...@freescale.com If softirq use hardirq stack, we will get kernel painc when a hard irq coming again during __do_softirq enable local irq to deal with softirq action. So we need to switch satck into softirq stack when invoke soft irq. Task--- | Task

[PATCH v2] phy/at8031: enable at8031 to work on interrupt mode

2014-03-28 Thread Zhao Qiang
The at8031 can work on polling mode and interrupt mode. Add ack_interrupt and config intr funcs to enable interrupt mode for it. Signed-off-by: Zhao Qiang b45...@freescale.com --- changes for v2: - when interrupt is not enabled, write 0 to interrupt enbale register - delete a

Re: [PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Kevin Hao
On Fri, Mar 28, 2014 at 03:38:32PM +0800, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com If softirq use hardirq stack, we will get kernel painc when a hard irq coming again during __do_softirq enable local irq to deal with softirq action. So we need to switch

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-28 Thread Greg Kurz
On Fri, 28 Mar 2014 09:29:22 +0100 Laurent Dufour laurent.duf...@fr.ibm.com wrote: On 28/03/2014 08:33, Greg Kurz wrote: The current kernel code assumes big endian and parses RTAS events all wrong. The most visible effect is that we cannot honor EPOW events, meaning, for example, we cannot

RE: [PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread dongsheng.w...@freescale.com
Thanks Kevin. Your patch works normal. :) I still have some confused. I think when __do_softirq always get a interrupt, the hard stack will be run out, isn't it? Regards, -Dongsheng -Original Message- From: Kevin Hao [mailto:haoke...@gmail.com] Sent: Friday, March 28, 2014 4:18 PM

Re: [PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Kevin Hao
On Fri, Mar 28, 2014 at 09:00:13AM +, dongsheng.w...@freescale.com wrote: Thanks Kevin. Your patch works normal. :) I still have some confused. I think when __do_softirq always get a interrupt, the hard stack will be run out, isn't it? No, it won't. Please see the explanation in the

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-28 Thread Laurent Dufour
On 28/03/2014 08:33, Greg Kurz wrote: The current kernel code assumes big endian and parses RTAS events all wrong. The most visible effect is that we cannot honor EPOW events, meaning, for example, we cannot shut down a guest properly from the hypervisor. This patch fixes that.

[PATCH] ASoC: fsl_sai: Improve fsl_sai_isr()

2014-03-28 Thread Nicolin Chen
This patch improves fsl_sai_isr() in these ways: 1, Add comment for mask fetching code. 2, Return IRQ_NONE if the IRQ is not for the device. 3, Use regmap_write() instead of regmap_update_bits(). Signed-off-by: Nicolin Chen guangyu.c...@freescale.com --- sound/soc/fsl/fsl_sai.c | 64

Re: [PATCH] ASoC: fsl_sai: Improve fsl_sai_isr()

2014-03-28 Thread Mark Brown
On Fri, Mar 28, 2014 at 07:39:25PM +0800, Nicolin Chen wrote: This patch improves fsl_sai_isr() in these ways: 1, Add comment for mask fetching code. 2, Return IRQ_NONE if the IRQ is not for the device. 3, Use regmap_write() instead of regmap_update_bits(). Applied, thanks. It would have

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-28 Thread Nathan Fontenot
Greg, There is one more place that needs fixing up, in mobility_rtas_call(), and handle_rtas_event() in arch/powerpc/platforms/pseries/mobility.c. This relates to rtas event handling for PRRN notifications, we need to convert the scope variable (PRRN notifications re-use the extended log length

Re: [PATCH] phy/at8031: enable at8031 to work on interrupt mode

2014-03-28 Thread Sergei Shtylyov
Hello. On 03/28/2014 10:36 AM, qiang.z...@freescale.com wrote: The at8031 can work on polling mode and interrupt mode. Add ack_interrupt and config intr funcs to enable interrupt mode for it. Signed-off-by: Zhao Qiang b45...@freescale.com --- drivers/net/phy/at803x.c | 30

Re: [PATCH] powerpc/le: enable RTAS events support

2014-03-28 Thread Greg Kurz
On Fri, 28 Mar 2014 09:57:03 -0500 Nathan Fontenot nf...@linux.vnet.ibm.com wrote: Greg, There is one more place that needs fixing up, in mobility_rtas_call(), and handle_rtas_event() in arch/powerpc/platforms/pseries/mobility.c. This relates to rtas event handling for PRRN notifications,

Re: [PATCH 1/2] powerpc/powernv: Enable fetching of platform sensor data

2014-03-28 Thread Paul Gortmaker
On Fri, Mar 7, 2014 at 12:33 AM, Neelesh Gupta neele...@linux.vnet.ibm.com wrote: This patch enables fetching of various platform sensor data through OPAL and expects a sensor handle from the driver to pass to OPAL. Looks like a missing header, causing build failures on celleb_defconfig cc1:

[PATCH v5 0/3] powernv,cpufreq: Dynamic Frequency Scaling support

2014-03-28 Thread Gautham R. Shenoy
From: Gautham R. Shenoy e...@linux.vnet.ibm.com Hi, This is v5 of the patchset to enable dynamic frequency scaling on IBM PowerNV platforms. This patchset does address all the review comments obtained for v4 (which can be found at [1]). Changes from v4: * Created a separate patch to select

[PATCH v5 2/3] powernv, cpufreq: cpufreq driver for powernv platform

2014-03-28 Thread Gautham R. Shenoy
From: Vaidyanathan Srinivasan sva...@linux.vnet.ibm.com Backend driver to dynamically set voltage and frequency on IBM POWER non-virtualized platforms. Power management SPRs are used to set the required PState. This driver works in conjunction with cpufreq governors like 'ondemand' to provide a

[PATCH v5 1/3] powernv, cpufreq: Select CPUFreq related Kconfig options for powernv

2014-03-28 Thread Gautham R. Shenoy
From: Gautham R. Shenoy e...@linux.vnet.ibm.com Enable CPUFreq for PowerNV. Select performance, powersave, userspace and ondemand governors. Choose ondemand to be the default governor. Signed-off-by: Gautham R. Shenoy e...@linux.vnet.ibm.com Signed-off-by: Srivatsa S. Bhat

[PATCH v5 3/3] powernv, cpufreq: Use cpufreq_frequency_table.driver_data to store pstate ids

2014-03-28 Thread Gautham R. Shenoy
From: Gautham R. Shenoy e...@linux.vnet.ibm.com The .driver_data field in the cpufreq_frequency_table was supposed to be private to the drivers. However at some later point, it was being used to indicate if the particular frequency in the table is the BOOST_FREQUENCY. After patches [1] and [2],

Re: [PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Benjamin Herrenschmidt
On Fri, 2014-03-28 at 15:38 +0800, Dongsheng Wang wrote: From: Wang Dongsheng dongsheng.w...@freescale.com If softirq use hardirq stack, we will get kernel painc when a hard irq coming again during __do_softirq enable local irq to deal with softirq action. So we need to switch satck into

Re: [PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Benjamin Herrenschmidt
On Fri, 2014-03-28 at 16:18 +0800, Kevin Hao wrote: powerpc: Set the correct ksp_limit on ppc32 when switching to irq stack Kevin. It looks like it was applied to 3.14 and sent to 3.12 stable but not 3.13 ... can you fix that up ? Cheers, Ben. Guenter Roeck has got the following

Re: [RESEND][PATCH 0/2] Cleanup asm/scatterlist.h

2014-03-28 Thread Andrew Morton
On Sat, 22 Mar 2014 11:13:50 -0700 Laura Abbott lau...@codeaurora.org wrote: I haven't gotten many responses so I'm going to try sending again (this time with a cover letter which I probably should have done in the first place...) ARCH_HAS_SG_CHAIN is currently defined as needed in

Re: [PATCH] powerpc/irq: Remove HAVE_IRQ_EXIT_ON_IRQ_STACK feature at powerpc platform

2014-03-28 Thread Kevin Hao
On Sat, Mar 29, 2014 at 08:27:07AM +1100, Benjamin Herrenschmidt wrote: On Fri, 2014-03-28 at 16:18 +0800, Kevin Hao wrote: powerpc: Set the correct ksp_limit on ppc32 when switching to irq stack Kevin. It looks like it was applied to 3.14 and sent to 3.12 stable but not 3.13

[PATCH v2] powerpc/book3s: Recover from MC in opal on SCOM read via MMIO.

2014-03-28 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar mah...@linux.vnet.ibm.com Detect and recover from machine check when inside opal on a special scom load instructions. On specific SCOM read via MMIO we may get a machine check exception with SRR0 pointing inside opal. To recover from MC in this scenario, get a recovery

Re: Bug in reclaim logic with exhausted nodes?

2014-03-28 Thread Christoph Lameter
On Thu, 27 Mar 2014, Nishanth Aravamudan wrote: That looks to be the correct way to handle things. Maybe mark the node as offline or somehow not present so that the kernel ignores it. This is a SLUB condition: mm/slub.c::early_kmem_cache_node_alloc(): ... page =