Re: [v8, 6/7] MAINTAINERS: add entry for Freescale SoC specific driver

2016-04-22 Thread Scott Wood
On Fri, 2016-04-22 at 14:27 +0800, Yangbo Lu wrote: > Add maintainer entry for Freescale SoC specific driver including > the QE library and the GUTS driver. Also add entry for GUTS driver > and add maintainer for QE library. > > Signed-off-by: Yangbo Lu > --- > Changes for v8:

Re: [PATCH v2 2/2] cpufreq: powernv: Ramp-down global pstate slower than local-pstate

2016-04-22 Thread Akshay Adiga
Hi Stewart, On 04/20/2016 03:41 AM, Stewart Smith wrote: Akshay Adiga writes: Iozone results show fairly consistent performance boost. YCSB on redis shows improved Max latencies in most cases. What about power consumption? Iozone write/rewite test were made

radeonhd and xorg issues on powerpc p5020 and G5

2016-04-22 Thread luigi burdo
Hello devs, during my testing on ppc hardware im facing issue with xorgs and radeon hd on varisys/Aeon Cyrus+ P5020 machine and on Quad G5 hardware too. On Quad G5 with 2 video boards if i set radeon.modeset=1 nouveau.modeset=1 Xorg -configure dont found at all the video boards if i set

Re: [PATCH v5 4/4] printk/nmi: flush NMI messages on the system panic

2016-04-22 Thread Sergey Senozhatsky
Hello Petr, On (04/21/16 13:48), Petr Mladek wrote: > extern void printk_nmi_flush(void); > +extern void printk_nmi_flush_on_panic(void); > #else > static inline void printk_nmi_flush(void) { } > +static inline void printk_nmi_flush_on_panic(void) { } [..] > +void

Re: [PATCH 2/2] cxl: Poll for outstanding IRQs when detaching a context

2016-04-22 Thread Vaibhav Jain
Michael Neuling writes: > When detaching contexts, we may still have interrupts in the system > which are yet to be delivered to any CPU and be acked in the PSL. > This can result in a subsequent unrelated process getting an spurious > IRQ or an interrupt for a non-existent

[v8, 4/7] dt: move guts devicetree doc out of powerpc directory

2016-04-22 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Scott Wood Acked-by: Rob Herring

[v8, 5/7] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-04-22 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu Acked-by: Wolfram Sang Acked-by: Stephen Boyd

[v8, 0/7] Fix eSDHC host version register bug

2016-04-22 Thread Yangbo Lu
This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To get the SoC version and revision, it's needed to add the GUTS driver to access the global utilities registers. So, the first four patches are to add the GUTS driver. The following patches except

Re: [PATCH 1/3] powerpc/eeh: Ignore error handlers in eeh_pe_reset_and_recover()

2016-04-22 Thread Russell Currey
On Thu, 2016-04-21 at 21:53 +1000, Gavin Shan wrote: > The function eeh_pe_reset_and_recover() is used to recover EEH > error when the passthrou device are transferred to guest and "passthrou" should be "passthrough" > backwords, meaning the device's driver is vfio-pci or none. "backwords"

Re: [PATCH V2 40/68] powerpc/mm/radix: Add MMU_FTR_RADIX

2016-04-22 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > We are going to add asm changes in the follow up patches. Add the > feature bit now so that we can get it all build. We will enable radix > in the last patch using cpu table. > > Signed-off-by: Aneesh Kumar K.V > ---

[v8, 6/7] MAINTAINERS: add entry for Freescale SoC specific driver

2016-04-22 Thread Yangbo Lu
Add maintainer entry for Freescale SoC specific driver including the QE library and the GUTS driver. Also add entry for GUTS driver and add maintainer for QE library. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch --- MAINTAINERS | 16 +++-

Re: [PATCH 2/3] powerpc/eeh: Restore config from edev in eeh_pe_reset_and_recover()

2016-04-22 Thread Russell Currey
On Thu, 2016-04-21 at 21:53 +1000, Gavin Shan wrote: > The function eeh_pe_reset_and_recover() is used to recover EEH > error when the passthrou device are transferred to guest and > backwords. The content in the device's config space will be lost Spelling, as before :) > on PE reset issued in

Re: [PATCH 1/2] cxl: Keep IRQ mappings on context teardown

2016-04-22 Thread Vaibhav Jain
Michael Neuling writes: > Keep IRQ mappings on context teardown. This won't leak IRQs as if we > allocate the mapping again, the generic code will give the same > mapping used last time. > > Doing this works around a race in the generic code. Masking the > interrupt

Re: [PATCH V2 55/68] powerpc/mm: VMALLOC abstraction

2016-04-22 Thread Michael Neuling
Aneesh, I'm not sure why we need this patch. It seems to be moving the initialisation of some global variables into init functions from the definitions. And renames some things. > diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c > index 41503d7d53a1..3759df52bd67 100644

Re: [PATCH V2 41/68] powerpc/mm/radix: Use STD_MMU_64 to properly isolate hash related code

2016-04-22 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > We also use MMU_FTR_RADIX to branch out from code path specific to > hash. > > No functionality change. > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/kernel/entry_64.S | 7 +-- >

[v8, 2/7] ARM64: dts: ls2080a: add device configuration node

2016-04-22 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7:

[v8, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-04-22 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch --- Documentation/devicetree/bindings/arm/fsl.txt | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 3/3] powerpc/eeh: Drop unnecessary label in eeh_pe_change_owner()

2016-04-22 Thread Russell Currey
On Thu, 2016-04-21 at 21:53 +1000, Gavin Shan wrote: > The label "reset" in eeh_pe_change_owner() is used only for once. > No need to keep it and just drop it. No logicial changes introduced. "logicial" should be "logical".  I found something to be pedantic about on each patch! :) > >

[v8, 7/7] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-04-22 Thread Yangbo Lu
The eSDHC of T4240-R1.0-R2.0 has incorrect vender version and spec version. Acturally the right version numbers should be VVN=0x13 and SVN = 0x1. This patch adds the GUTS driver support for eSDHC driver to get SVR(System version register). And fix host version to avoid that incorrect version

Re: [PATCH V2 36/68] powerpc/mm/radix: Add mmu context handling callback for radix

2016-04-22 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/include/asm/mmu_context.h | 4 > arch/powerpc/mm/mmu_context_hash64.c | 42 > +++--- > 2 files changed, 38 insertions(+), 8

[v8, 3/7] soc: fsl: add GUTS driver for QorIQ platforms

2016-04-22 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds GUTS driver to manage and access global utilities block. Signed-off-by: Yangbo Lu

Re: [PATCH V2 39/68] powerpc/mm/radix: Add tlbflush routines

2016-04-22 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > Core kernel don't track the page size of the va range that we are > invalidating. Hence we end up flushing tlb for the entire mm here. > Later patches will improve this. > > We also don't flush page walk cache separetly instead use RIC=2 when >

Re: [PATCH V2 44/68] powerpc/mm/radix: Limit paca allocation in radix

2016-04-22 Thread Balbir Singh
On 09/04/16 16:13, Aneesh Kumar K.V wrote: > On return from rtas we access the paca variables and we have 64 bit > disabled. This requires us to limit paca in 32 bit range. > > Fix this by setting ppc64_rma_size to first_memblock_size/1G range. > > Signed-off-by: Aneesh Kumar K.V

RE: [PATCH v1 08/23] ata: sata_dwc_460ex: don't call ata_sff_qc_issue() on DMA commands

2016-04-22 Thread David Laight
From: Andy Shevchenko > Sent: 21 April 2016 19:15 > ata_sff_qc_issue() can't handle DMA commands and thus we have to avoid it for > them. Do call ata_bmdma_qc_issue() instead for this case. > > Suggested-by: Christian Lamparter > Signed-off-by: Andy Shevchenko

Re: [PATCH v1 00/23] ata: sata_dwc_460ex: make it working again

2016-04-22 Thread Christian Lamparter via Linuxppc-dev
On Friday, April 22, 2016 06:50:44 AM Julian Margetson wrote: > On 4/21/2016 4:25 PM, Christian Lamparter wrote: > > On Thursday, April 21, 2016 09:15:21 PM Andy Shevchenko wrote: > >> The last approach in the commit 8b3444852a2b ("sata_dwc_460ex: move to > >> generic > >> DMA driver") to switch

Re: [PATCH v1 08/23] ata: sata_dwc_460ex: don't call ata_sff_qc_issue() on DMA commands

2016-04-22 Thread Christian Lamparter via Linuxppc-dev
On Friday, April 22, 2016 11:32:00 AM David Laight wrote: > From: Andy Shevchenko > > Sent: 21 April 2016 19:15 > > ata_sff_qc_issue() can't handle DMA commands and thus we have to avoid it > > for > > them. Do call ata_bmdma_qc_issue() instead for this case. > > > > Suggested-by: Christian

Re: [PATCH v1 00/23] ata: sata_dwc_460ex: make it working again

2016-04-22 Thread Julian Margetson
On 4/21/2016 4:25 PM, Christian Lamparter wrote: On Thursday, April 21, 2016 09:15:21 PM Andy Shevchenko wrote: The last approach in the commit 8b3444852a2b ("sata_dwc_460ex: move to generic DMA driver") to switch to generic DMA engine API wasn't tested on bare metal. Besides that we expecting

Re: [v2,next] cxl: Allow initialization on timebase sync failures

2016-04-22 Thread Michael Ellerman
On Mon, 2016-21-03 at 19:32:48 UTC, Frederic Barrat wrote: > Failure to synchronize the PSL timebase currently prevents the > initialization of the cxl card, thus rendering the card useless. This > is too extreme for a feature which is rarely used, if at all. No > hardware AFUs or software is

[GIT PULL] Please pull powerpc/linux.git powerpc-4.6-3 tag

2016-04-22 Thread Michael Ellerman
Hi Linus, Please pull a few powerpc fixes for 4.6: The following changes since commit 71528d8bd7a8aa920cd69d4223c6c87d5849257d: powerpc: Correct used_vsr comment (2016-03-29 12:08:08 +1100) are available in the git repository at:

Re: [PATCH V2 04/68] powerpc/mm: Use big endian page table for book3s 64

2016-04-22 Thread Michael Ellerman
On Sat, 2016-04-09 at 11:43 +0530, Aneesh Kumar K.V wrote: > This enables us to share the same page table code for > both radix and hash. To be clear, only 64-bit hash. In theory there's no reason we can't *always* mark the page tables as BE, after all everything other than the new ppc64le

Re: cxl: Increase timeout for detection of AFU mmio hang

2016-04-22 Thread Michael Ellerman
On Tue, 2016-19-04 at 16:34:24 UTC, Frederic Barrat wrote: > PSL designers recommend a larger value for the mmio hang pulse, 256 us > instead of 1 us. The CAIA architecture states that it needs to be > smaller than 1/2 of the RTOS timeout set in the PHB for outbound > non-posted transactions,

[PATCH v2 3/3] powerpc/eeh: Drop unnecessary label in eeh_pe_change_owner()

2016-04-22 Thread Gavin Shan
The label "reset" in eeh_pe_change_owner() is used only for once. No need to keep it and just drop it. No logical changes introduced. Signed-off-by: Gavin Shan Reviewed-by: David Gibson Reviewed-by: Russell Currey ---

Re: [PATCH] i2c: cpm: Fix build break due to incompatible pointer types

2016-04-22 Thread Wolfram Sang
On Wed, Apr 13, 2016 at 01:59:14PM +1000, Michael Ellerman wrote: > Since commit ea8daa7b9784 ("kbuild: Add option to turn incompatible > pointer check into error"), assignments from an incompatible pointer > types have become a hard error, eg: > > drivers/i2c/busses/i2c-cpm.c:545:91: error:

Re: [PATCH 3/3] powerpc/eeh: Drop unnecessary label in eeh_pe_change_owner()

2016-04-22 Thread Gavin Shan
On Fri, Apr 22, 2016 at 04:38:45PM +1000, Russell Currey wrote: >On Thu, 2016-04-21 at 21:53 +1000, Gavin Shan wrote: >> The label "reset" in eeh_pe_change_owner() is used only for once. >> No need to keep it and just drop it. No logicial changes introduced. > >"logicial" should be "logical".  I

Re: [PATCH v1 03/23] ata: sata_dwc_460ex: set dma_boundary to 0x1fff

2016-04-22 Thread Sergei Shtylyov
Hello. On 04/21/2016 09:15 PM, Andy Shevchenko wrote: The original code states: Make sure a LLI block is not created that will span 8K max FIS boundary. If the block spans such a FIS boundary, there is a chance that a DMA burst will cross that boundary -- this results

[PATCH v2 2/3] powerpc/eeh: Restore config from edev in eeh_pe_reset_and_recover()

2016-04-22 Thread Gavin Shan
The function eeh_pe_reset_and_recover() is used to recover EEH error when the passthrou device are transferred to guest and backwards. The content in the device's config space will be lost on PE reset issued in the middle of the recovery. The function saves/restores it before/after the reset.

Re: [v8, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-04-22 Thread Mark Rutland
On Fri, Apr 22, 2016 at 02:27:38PM +0800, Yangbo Lu wrote: > Update Freescale DCFG compatible with 'fsl,-dcfg' instead > of 'fsl,ls1021a-dcfg' to include more chips. > > Signed-off-by: Yangbo Lu > --- > Changes for v8: > - Added this patch > --- >

Re: [PATCH 2/3] powerpc/eeh: Restore config from edev in eeh_pe_reset_and_recover()

2016-04-22 Thread Gavin Shan
On Fri, Apr 22, 2016 at 04:37:52PM +1000, Russell Currey wrote: >On Thu, 2016-04-21 at 21:53 +1000, Gavin Shan wrote: >> The function eeh_pe_reset_and_recover() is used to recover EEH >> error when the passthrou device are transferred to guest and >> backwords. The content in the device's config

[PATCH v2 1/3] powerpc/eeh: Ignore error handlers in eeh_pe_reset_and_recover()

2016-04-22 Thread Gavin Shan
The function eeh_pe_reset_and_recover() is used to recover EEH error when the passthrough device are transferred to guest and backwards, meaning the device's driver is vfio-pci or none. When the driver is vfio-pci that provides error_detected() error handler only, the handler simply stops the

[PATCH V2] cxl: Check periodically the coherent platform function's state

2016-04-22 Thread Christophe Lombard
In the PowerVM environment, the PHYP CoherentAccel component manages the state of the Coherent Accelerator Processor Interface adapter and virtualizes CAPI resources, handles CAPP, PSL, PSL Slice errors - and interrupts - and provides a new set of hcalls for the OS APIs to utilize Accelerator

Re: [PATCH V2] powerpc/infiniband: Use cache inhibitted and guarded mapping on powerpc

2016-04-22 Thread Jason Gunthorpe
On Fri, Apr 22, 2016 at 08:47:56AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2016-04-20 at 03:58 -0400, Aneesh Kumar K.V wrote: > > The driver was requesting for a writethrough mapping. But with thoses > > flags we will end up with a SAO mapping because we now have memory > > conherence