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

2014-03-26 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 --- drivers/net/phy/at803x.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

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

2014-03-26 Thread Vinod Koul
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 should be used instead. Interrupts will be

Re: Build regressions/improvements in v3.14-rc8

2014-03-26 Thread Geert Uytterhoeven
On Wed, Mar 26, 2014 at 8:47 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v3.14-rc8[1] to v3.14-rc7[3], the summaries are: - build errors: +6/-1 + /scratch/kisskb/src/arch/powerpc/include/asm/io.h: error: 'virt_phys_offset' undeclared (first use in this

Re: [PATCH 10/33] powerpc: Ignore TOC relocations

2014-03-26 Thread Alan Modra
On Tue, Mar 25, 2014 at 10:44:16PM +1100, Anton Blanchard wrote: The linker fixes up TOC. relocations, so prom_init_check.sh should ignore them. Err, .TOC. you mean. Presumably something strips off the leading dot somewhere? -btext_setup_display +btext_setup_display TOC. -- Alan Modra

RE: [PATCH v4 09/11] powerpc/perf: add support for the hv 24x7 interface

2014-03-26 Thread David Laight
From: Cody P Schafer On 03/25/2014 03:43 AM, Anton Blanchard wrote: Hi Cody, hv-24x7: could not obtain capabilities, error 0x fffe, not enabling hv-gpci: could not obtain capabilities, error 0x fffe, not enabling + pr_info(could not obtain

Re: [PATCH 15/33] powerpc: Fix ABIv2 issues with stack offsets in assembly code

2014-03-26 Thread Alan Modra
On Tue, Mar 25, 2014 at 10:44:21PM +1100, Anton Blanchard wrote: Fix STK_PARAM and use it instead of hardcoding ABIv1 offsets. _GLOBAL(memcpy) BEGIN_FTR_SECTION - std r3,48(r1) /* save destination pointer for return value */ + std r3,STK_PARAM(R3)(r1)/* save

Re: [PATCH 15/33] powerpc: Fix ABIv2 issues with stack offsets in assembly code

2014-03-26 Thread Alan Modra
On Wed, Mar 26, 2014 at 08:34:49PM +1030, Alan Modra wrote: On Tue, Mar 25, 2014 at 10:44:21PM +1100, Anton Blanchard wrote: Fix STK_PARAM and use it instead of hardcoding ABIv1 offsets. _GLOBAL(memcpy) BEGIN_FTR_SECTION - std r3,48(r1) /* save destination pointer for

Re: [PATCH 27/33] powerpc: Handle new ELFv2 module relocations

2014-03-26 Thread Alan Modra
On Tue, Mar 25, 2014 at 10:44:33PM +1100, Anton Blanchard wrote: From: Rusty Russell ru...@rustcorp.com.au + case R_PPC64_REL16_HA: + /* Subtract location pointer */ + value -= (unsigned long)location; + value = ((value +

Re: [PATCH 00/33] Build ppc64le kernel using ABIv2

2014-03-26 Thread Anton Blanchard
Hi Uli, You probably should have two different macros _GLOBAL_TOC vs. _GLOBAL (or _GLOBAL vs. _GLOBAL_NOTOC), and use the variant that provides a global entry point setting up the TOC only with those functions that actually require a TOC. I was worried that we might introduce subtle bugs by

[PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Nicolin Chen
It's quite cricial to clear error flags because SAI might hang if getting FIFO underrun during playback (I haven't confirmed the same issue on Rx overflow though). So this patch enables those irq and adds isr() to clear the flags so as to keep playback entirely safe. Signed-off-by: Nicolin Chen

RE: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread David Laight
From: Nicolin Chen It's quite cricial to clear error flags because SAI might hang if getting FIFO underrun during playback (I haven't confirmed the same issue on Rx overflow though). So this patch enables those irq and adds isr() to clear the flags so as to keep playback entirely safe.

Re: [PATCH v2] powerpc/powernv: Platform dump interface

2014-03-26 Thread Vasant Hegde
On 03/25/2014 11:22 AM, Anton Blanchard wrote: Hi Vasant, On 02/09/2014 02:50 AM, Anton Blanchard wrote: Hi Vasant, +static void free_dump_sg_list(struct opal_sg_list *list) +{ + struct opal_sg_list *sg1; + while (list) { + sg1 = list-next; +

[PATCH] bootmem/powerpc: Unify bootmem initialization

2014-03-26 Thread Emil Medve
Unify the low/highmem code path from do_init_bootmem() by using (the) lowmem related variables/parameters even when the low/highmem split is not needed (64-bit) or configured. In such cases the lowmem variables/parameters continue to observe the definition by referring to memory directly mapped by

[RFC PATCH] hugetlb: ensure hugepage access is denied if hugepages are not supported

2014-03-26 Thread Nishanth Aravamudan
On 24.03.2014 [16:02:56 -0700], Nishanth Aravamudan wrote: In KVM guests on Power, if the guest is not backed by hugepages, we see the following in the guest: AnonHugePages: 0 kB HugePages_Total: 0 HugePages_Free:0 HugePages_Rsvd:0 HugePages_Surp:0

[PATCH v4] powernv: Dynamic Frequency Scaling Enablement

2014-03-26 Thread Gautham R. Shenoy
From: Gautham R. Shenoy e...@linux.vnet.ibm.com Hi, This is the v4 of the patchset to enable Dynamic Frequency Scaling on IBM PowerNV Platforms. I have incorporated the review comments from the previous version (can be found at [1]). In this version, * Multiple patches from the previous

[PATCH v4] powernv, cpufreq: cpufreq driver for powernv platform

2014-03-26 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

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

2014-03-26 Thread Scott Wood
On Wed, 2014-03-26 at 14:45 +0800, Zhao Qiang 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

[PATCH 1/2] video/fsl: make the diu driver work without platform hooks

2014-03-26 Thread Jason Jin
make the diu driver work without platform hooks. So far the DIU driver does not have a mechanism to do the board specific initialization. So on some platforms, such as P1022, 8610 and 5121, The board specific initialization is implmented in the platform file such p10222_ds. This board sepecific

[PATCH 2/2] video/fsl: Fix the sleep function for FSL DIU module

2014-03-26 Thread Jason Jin
For sleep, The diu module will power off and when wake up for initialization will need. Some platform such as the corenet plafrom does not provide the DIU board sepecific initialization, but rely on the DIU initializtion in u-boot. then the pixel clock resume will be an issuel on this platform,

Re: [PATCH 1/2] video/fsl: make the diu driver work without platform hooks

2014-03-26 Thread Timur Tabi
On 03/26/2014 12:41 PM, Jason Jin wrote: This board sepecific initialization mechanism is not feasible i for corenet platform as the corenet platform file is a abstraction of serveral platforms. You can't make it 100% abstract. The DIU driver requires some sort of board support. I think you

Re: [PATCH 2/2] video/fsl: Fix the sleep function for FSL DIU module

2014-03-26 Thread Timur Tabi
On 03/26/2014 12:41 PM, Jason Jin wrote: + if (!diu_ops.set_pixel_clock) { + data-saved_pixel_clock = 0; + if (of_address_to_resource(ofdev-dev.of_node, 1, res)) + pr_err(KERN_ERR No pixel clock set func and no pixel node!\n); +

Re: [PATCH 3/4] KVM: PPC: Alow kvmppc_get_last_inst() to fail

2014-03-26 Thread Scott Wood
On Thu, 2014-02-20 at 18:30 +0200, Mihai Caraman wrote: diff --git a/arch/powerpc/kvm/book3s_paired_singles.c b/arch/powerpc/kvm/book3s_paired_singles.c index a59a25a..80c533e 100644 --- a/arch/powerpc/kvm/book3s_paired_singles.c +++ b/arch/powerpc/kvm/book3s_paired_singles.c @@ -640,19

Re: [PATCH 4/4] KVM: PPC: Bookehv: Get vcpu's last instruction for emulation

2014-03-26 Thread Scott Wood
On Thu, 2014-02-20 at 18:30 +0200, Mihai Caraman wrote: Load external pid (lwepx) instruction faults (when called from KVM with guest context) needs to be handled by KVM. This implies additional code in DO_KVM macro to identify the source of the exception (which oiginate from KVM host rather

Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Mark Brown
On Wed, Mar 26, 2014 at 11:59:53AM +, David Laight wrote: From: Nicolin Chen + regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap, FSL_SAI_TCSR, xcsr); Assuming these are 'write to clear' bits, you might want to make the write (above) and all the traces (below)

RE: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread li.xi...@freescale.com
+ regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap, FSL_SAI_TCSR, xcsr); + + if (xcsr FSL_SAI_CSR_WSF) + dev_dbg(dev, isr: Start of Tx word detected\n); + + if (xcsr FSL_SAI_CSR_SEF) + dev_dbg(dev, isr: Tx Frame sync error

Re: [alsa-devel] [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Nicolin Chen
On Thu, Mar 27, 2014 at 01:14:24AM +, Mark Brown wrote: On Wed, Mar 26, 2014 at 11:59:53AM +, David Laight wrote: From: Nicolin Chen + regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap, FSL_SAI_TCSR, xcsr); Assuming these are 'write to clear' bits, you

Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Nicolin Chen
On Thu, Mar 27, 2014 at 10:13:48AM +0800, Xiubo Li-B47053 wrote: + regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap, FSL_SAI_TCSR, xcsr); + + if (xcsr FSL_SAI_CSR_WSF) + dev_dbg(dev, isr: Start of Tx word detected\n); + + if (xcsr

RE: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread li.xi...@freescale.com
On Thu, Mar 27, 2014 at 10:13:48AM +0800, Xiubo Li-B47053 wrote: + regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap, FSL_SAI_TCSR, xcsr); + + if (xcsr FSL_SAI_CSR_WSF) + dev_dbg(dev, isr: Start of Tx word detected\n); + + if (xcsr

Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Nicolin Chen
On Thu, Mar 27, 2014 at 10:53:50AM +0800, Xiubo Li-B47053 wrote: On Thu, Mar 27, 2014 at 10:13:48AM +0800, Xiubo Li-B47053 wrote: + regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap, FSL_SAI_TCSR, xcsr); + + if (xcsr FSL_SAI_CSR_WSF) +

Re: [PATCH 1/2] video/fsl: make the diu driver work without platform hooks

2014-03-26 Thread Timur Tabi
jason@freescale.com wrote: However, the DIU is already initialized in u-boot and we can rely on the settings in u-boot for corenet platform, I don't like that at all. [Jason Jin-R64188] What's the potential issue of this? Most of the IPs need the platform initialization in u-boot. For

RE: [PATCH 1/2] video/fsl: make the diu driver work without platform hooks

2014-03-26 Thread jason....@freescale.com
jason@freescale.com wrote: However, the DIU is already initialized in u-boot and we can rely on the settings in u-boot for corenet platform, I don't like that at all. [Jason Jin-R64188] What's the potential issue of this? Most of the IPs need the platform initialization in u-boot.

RE: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread li.xi...@freescale.com
Subject: Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag On Thu, Mar 27, 2014 at 10:53:50AM +0800, Xiubo Li-B47053 wrote: On Thu, Mar 27, 2014 at 10:13:48AM +0800, Xiubo Li-B47053 wrote: + regmap_read(sai-regmap, FSL_SAI_TCSR, xcsr); + regmap_write(sai-regmap,

RE: [PATCH 2/2] video/fsl: Fix the sleep function for FSL DIU module

2014-03-26 Thread jason....@freescale.com
On 03/26/2014 12:41 PM, Jason Jin wrote: + if (!diu_ops.set_pixel_clock) { + data-saved_pixel_clock = 0; + if (of_address_to_resource(ofdev-dev.of_node, 1, res)) + pr_err(KERN_ERR No pixel clock set func and no pixel node!\n); + else

RE: [PATCH 1/2] video/fsl: make the diu driver work without platform hooks

2014-03-26 Thread jason....@freescale.com
On 03/26/2014 12:41 PM, Jason Jin wrote: This board sepecific initialization mechanism is not feasible i for corenet platform as the corenet platform file is a abstraction of serveral platforms. You can't make it 100% abstract. The DIU driver requires some sort of board support. I

Re: [PATCH 2/2] video/fsl: Fix the sleep function for FSL DIU module

2014-03-26 Thread Timur Tabi
jason@freescale.com wrote: [Jason Jin-R64188] It's not hackish, we can provide the pixel clock register in the DIU node, I did not provide the dts update as this is only tested on T1040 platform. For other platforms such as p1022 and 8610, we still can use the pixel clock setting function

Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Nicolin Chen
On Thu, Mar 27, 2014 at 11:41:02AM +0800, Xiubo Li-B47053 wrote: Subject: Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag On Thu, Mar 27, 2014 at 10:53:50AM +0800, Xiubo Li-B47053 wrote: On Thu, Mar 27, 2014 at 10:13:48AM +0800, Xiubo Li-B47053 wrote: +

Re: [PATCH v4] powernv, cpufreq: cpufreq driver for powernv platform

2014-03-26 Thread Anton Blanchard
Hi Gautham, Backend driver to dynamically set voltage and frequency on IBM POWER non-virtualized platforms. Power management SPRs are used to set the required PState. I tested this version on ppc64le, it still looks good. I'm already a Signed-off-by on the patch, but feel free to add:

RE: [PATCH 2/2] video/fsl: Fix the sleep function for FSL DIU module

2014-03-26 Thread jason....@freescale.com
jason@freescale.com wrote: [Jason Jin-R64188] It's not hackish, we can provide the pixel clock register in the DIU node, I did not provide the dts update as this is only tested on T1040 platform. For other platforms such as p1022 and 8610, we still can use the pixel clock setting

RE: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread li.xi...@freescale.com
+ if (xcsr FSL_SAI_CSR_FWF) + dev_dbg(dev, isr: Enabled transmit FIFO is empty\n); + + if (xcsr FSL_SAI_CSR_FRF) + dev_dbg(dev, isr: Transmit FIFO watermark has been reached\n); + While are these ones really needed to clear

Re: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread Nicolin Chen
On Thu, Mar 27, 2014 at 12:06:53PM +0800, Xiubo Li-B47053 wrote: + if (xcsr FSL_SAI_CSR_FWF) + dev_dbg(dev, isr: Enabled transmit FIFO is empty\n); + + if (xcsr FSL_SAI_CSR_FRF) + dev_dbg(dev, isr: Transmit

RE: [PATCH] ASoC: fsl_sai: Add isr to deal with error flag

2014-03-26 Thread li.xi...@freescale.com
So let's just ignore the clearance of these bits in isr(). + SAI Transmit Control Register (I2S1_TCSR) : 32 : R/W : _h I'm talking about FWF and FRF bits, not TCSR as a register. - I have checked in the Vybrid and LS1 SoC datasheets, and they are all the Same

[PATCH 1/4] powerpc/powernv: Use uint64_t instead of size_t in OPAL APIs

2014-03-26 Thread Anton Blanchard
Using size_t in our APIs is asking for trouble, especially when some OPAL calls use size_t pointers. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/include/asm/opal.h === ---

[PATCH 2/4] powerpc/powernv: Remove some OPAL function declaration duplication

2014-03-26 Thread Anton Blanchard
We had some duplication of the internal OPAL functions. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/include/asm/opal.h === --- a/arch/powerpc/include/asm/opal.h +++ b/arch/powerpc/include/asm/opal.h @@

[PATCH 3/4] powerpc/powernv: Fix little endian issues with opal_do_notifier calls

2014-03-26 Thread Anton Blanchard
The bitmap in opal_poll_events and opal_handle_interrupt is big endian, so we need to byteswap it on little endian builds. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/platforms/powernv/opal.c === ---

[PATCH 4/4] powerpc/powernv: Fix little endian issues OPAL error log code

2014-03-26 Thread Anton Blanchard
Fix little endian issues with the OPAL error log code. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/platforms/powernv/opal-elog.c === --- a/arch/powerpc/platforms/powernv/opal-elog.c +++

Re: [PATCH v4] powernv: Dynamic Frequency Scaling Enablement

2014-03-26 Thread Viresh Kumar
On 26 March 2014 22:25, Gautham R. Shenoy e...@linux.vnet.ibm.com wrote: This is the v4 of the patchset to enable Dynamic Frequency Scaling on IBM PowerNV Platforms. I have incorporated the review comments from the previous version (can be found at [1]). I wouldn't have added a cover-letter if

Re: [PATCH 1/4] powerpc/powernv: Use uint64_t instead of size_t in OPAL APIs

2014-03-26 Thread Stewart Smith
Anton Blanchard an...@samba.org writes: Using size_t in our APIs is asking for trouble, especially when some OPAL calls use size_t pointers. Signed-off-by: Anton Blanchard an...@samba.org Reviewed-by: Stewart Smith stew...@linux.vnet.ibm.com --- Index: b/arch/powerpc/include/asm/opal.h