Re: [PATCH] powerpc: Add second POWER8 PVR entry

2013-07-17 Thread Michael Neuling
Anshuman Khandual wrote: > On 07/18/2013 07:01 AM, Michael Neuling wrote: > > POWER8 comes with two different PVRs. This patch enables the additional > > PVR in the cputable. > > > > The existing entry (PVR=0x4b) is renamed to POWER8E and the new entry > > (PVR=0x4d) is given POWER8. > > Hey M

Re: [PATCH] powerpc: Add second POWER8 PVR entry

2013-07-17 Thread Anshuman Khandual
On 07/18/2013 07:01 AM, Michael Neuling wrote: > POWER8 comes with two different PVRs. This patch enables the additional > PVR in the cputable. > > The existing entry (PVR=0x4b) is renamed to POWER8E and the new entry > (PVR=0x4d) is given POWER8. Hey Mikey, Is there any feature or architectura

Re: [PATCH] module: ppc64 module CRC relocation fix causes perf issues

2013-07-17 Thread Anton Blanchard
Hi Scott, > What specifically should I do to test it? Could you double check perf annotate works? I'm 99% sure it will but that is what was failing on ppc64. Anton ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/li

RE: [PATCH 3/4 V2] mmc: esdhc: Correct host version of T4240-R1.0

2013-07-17 Thread Zang Roy-R61911
> -Original Message- > From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- > ow...@vger.kernel.org] On Behalf Of Scott Wood > > On 07/17/2013 05:11:30 AM, Haijun Zhang wrote: > > Vender version and sdhc spec version of T4240-R1.0 is incorrect. > > The right value should be VVN=0x13,

[PATCH 10/10] powerpc/eeh: Fix unbalanced enable for IRQ

2013-07-17 Thread Gavin Shan
The patch fixes following issue: Unbalanced enable for IRQ 23 [ cut here ] WARNING: at kernel/irq/manage.c:437 : NIP [c016de8c] .__enable_irq+0x11c/0x140 LR [c016de88] .__enable_irq+0x118/0x140 Call Trace: [c03ea1f23880] [c016de88] .__enable_irq+

[PATCH 09/10] powerpc/eeh: Don't use pci_dev during BAR restore

2013-07-17 Thread Gavin Shan
While restoring BARs for one specific PCI device, the pci_dev instance should have been released. So it's not reliable to use the pci_dev instance on restoring BARs. However, we still need some information (e.g. PCIe capability position, header type) from the pci_dev instance. So we have to store t

[PATCH 08/10] powerpc/eeh: Support partial hotplug

2013-07-17 Thread Gavin Shan
When EEH error happens to one specific PE, some devices with drivers supporting EEH won't except hotplug on the deivce. However, there might have other deivces without driver, or with driver without EEH support. For the case, we need do partial hotplug in order to make sure that the PE becomes abso

[PATCH 05/10] powerpc/eeh: Keep PE during hotplug

2013-07-17 Thread Gavin Shan
When we do normal hotplug, the PE shouldn't be kept. However, we need the PE if the hotplug caused by EEH errors. Since we remove EEH device through the PCI hook pcibios_stop_dev(), the flag "purge_pe" passed to various functions is meaningless. So the patch removes the meaningless flag and introdu

[PATCH 06/10] powerpc/eeh: Tranverse EEH devices with safe mode

2013-07-17 Thread Gavin Shan
Currently, we're transversing EEH devices by list_for_each_entry(). That's not safe enough because the EEH devices might be removed from its parent PE while doing iteration. The patch replaces that with list_for_each_entry_safe(). Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/eeh.h |

[PATCH 03/10] powerpc/pci: Override pcibios_release_device()

2013-07-17 Thread Gavin Shan
The patch overrides pcibios_release_device() to release EEH resources (EEH cache, unbinding EEH device) for the indicated PCI device. Signed-off-by: Gavin Shan --- arch/powerpc/kernel/pci-hotplug.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/k

[PATCH 07/10] powerpc/pci: Partial hotplug support

2013-07-17 Thread Gavin Shan
When EEH error happens to one specific PE, the device drivers of its attached EEH devices (PCI devices) are checked to see the further action: reset with complete hotplug, or reset without hotplug. However, that's not enough for those PCI devices whose drivers can't support EEH, or those PCI device

[PATCH 04/10] PCI/hotplug: Needn't remove EEH cache again

2013-07-17 Thread Gavin Shan
Since pcibios_release_device() called by pci_stop_and_remove_bus_device() has removed the EEH cache, we needn't do that again. Acked-by: Bjorn Helgaas Signed-off-by: Gavin Shan --- drivers/pci/hotplug/rpadlpar_core.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drive

[PATCH 02/10] powerpc/eeh: Export functions for hotplug

2013-07-17 Thread Gavin Shan
Make some functions public in order to support hotplug on either specific PCI bus or PCI device in future. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/eeh.h |9 + arch/powerpc/kernel/eeh.c |6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/

[PATCH v2 0/10] EEH Followup Fixes (II)

2013-07-17 Thread Gavin Shan
The series of patches bases on linux-poerpc-next initially and intends to resolve the following problems: - On pSeries platform, the EEH doesn't work after PHB hotplug with "drmgr". The root cause is that the EEH resources ( EEH devices, EEH caches) aren't released co

[PATCH 01/10] powerpc/eeh: Remove reference to PCI device

2013-07-17 Thread Gavin Shan
We will rely on pcibios_release_device() to remove the EEH cache and unbind EEH device for the specific PCI device. So we shouldn't hold the reference to the PCI device from EEH cache and EEH device. Otherwise, pcibios_release_device() won't be called as we expected. The patch removes the reference

[PATCH] powerpc: Add second POWER8 PVR entry

2013-07-17 Thread Michael Neuling
POWER8 comes with two different PVRs. This patch enables the additional PVR in the cputable. The existing entry (PVR=0x4b) is renamed to POWER8E and the new entry (PVR=0x4d) is given POWER8. Signed-off-by: Michael Neuling diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/r

Re: [PATCH 4/4 V2] mmc: esdhc: Add broken timeout quirk for p4/p5 board

2013-07-17 Thread Scott Wood
On 07/17/2013 05:11:31 AM, Haijun Zhang wrote: Sometimes command can't be completed within the time give in eSDHC_SYSCTL[DTOCV]. So just give the max value 0x14 to avoid this issue. Signed-off-by: Haijun Zhang --- changes for v2: - Rebuild patch of eSDHC host need long time to generate

Re: [PATCH 3/4 V2] mmc: esdhc: Correct host version of T4240-R1.0

2013-07-17 Thread Scott Wood
On 07/17/2013 05:11:30 AM, Haijun Zhang wrote: Vender version and sdhc spec version of T4240-R1.0 is incorrect. The right value should be VVN=0x13, SVN = 0x1. The wrong version number will break down the ADMA data transfer. This defect only exist in T4240-R1.0. Will be fixed in T4240-R2.0. Also s

Re: [PATCH v1 01/24] spi: mpc512x: prepare clocks before enabling them

2013-07-17 Thread Mark Brown
On Wed, Jul 17, 2013 at 04:26:28PM +0200, Gerhard Sittig wrote: > On Wed, Jul 17, 2013 at 13:07 +0100, Mark Brown wrote: > > This is a pretty long e-mail. It'd probably have taken less time to > > fix the issues than to reply to the e-mail... but anyway. > Not quite. Please consider that caref

[PATCH] KVM: PPC: Book3S PR: return appropriate error when allocation fails

2013-07-17 Thread Thadeu Lima de Souza Cascardo
err was overwritten by a previous function call, and checked to be 0. If the following page allocation fails, 0 is going to be returned instead of -ENOMEM. Signed-off-by: Thadeu Lima de Souza Cascardo --- arch/powerpc/kvm/book3s_pr.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)

Re: [PATCH v1 01/24] spi: mpc512x: prepare clocks before enabling them

2013-07-17 Thread Gerhard Sittig
On Wed, Jul 17, 2013 at 13:07 +0100, Mark Brown wrote: > > On Wed, Jul 17, 2013 at 01:22:29PM +0200, Gerhard Sittig wrote: > > On Mon, Jul 15, 2013 at 21:17 +0100, Mark Brown wrote: > > > On Mon, Jul 15, 2013 at 08:47:30PM +0200, Gerhard Sittig wrote: > > > > > sprintf(name, "psc%d_mclk", maste

Re: [PATCH v1 01/24] spi: mpc512x: prepare clocks before enabling them

2013-07-17 Thread Mark Brown
On Wed, Jul 17, 2013 at 01:22:29PM +0200, Gerhard Sittig wrote: > On Mon, Jul 15, 2013 at 21:17 +0100, Mark Brown wrote: > > On Mon, Jul 15, 2013 at 08:47:30PM +0200, Gerhard Sittig wrote: > > > sprintf(name, "psc%d_mclk", master->bus_num); > > > spiclk = clk_get(&master->dev, name); > > > - c

Re: [PATCH v1 05/24] clk: wrap I/O access for improved portability

2013-07-17 Thread Gerhard Sittig
On Mon, Jul 15, 2013 at 21:38 +0200, Sascha Hauer wrote: > > On Mon, Jul 15, 2013 at 08:47:34PM +0200, Gerhard Sittig wrote: > > diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c > > index 6d55eb2..2c07061 100644 > > --- a/drivers/clk/clk-divider.c > > +++ b/drivers/clk/clk-divide

Re: [PATCH v1 15/24] serial: mpc512x: OF clock lookup, use the 'mclk' name

2013-07-17 Thread Gerhard Sittig
On Mon, Jul 15, 2013 at 23:54 +0200, Sascha Hauer wrote: > > On Mon, Jul 15, 2013 at 11:46:01PM +0200, Gerhard Sittig wrote: > > with device tree based clock lookup, the MCLK name no longer > > depends on the PSC index > > > > Signed-off-by: Gerhard Sittig > > --- > > drivers/tty/serial/mpc52xx

Re: [PATCH v1 01/24] spi: mpc512x: prepare clocks before enabling them

2013-07-17 Thread Gerhard Sittig
On Mon, Jul 15, 2013 at 21:17 +0100, Mark Brown wrote: > > On Mon, Jul 15, 2013 at 08:47:30PM +0200, Gerhard Sittig wrote: > > clocks need to get prepared before they can get enabled, > > fix the MPC512x PSC SPI master's initialization > > > Signed-off-by: Gerhard Sittig > > --- > > drivers/spi

[PATCH 4/4 V2] mmc: esdhc: Add broken timeout quirk for p4/p5 board

2013-07-17 Thread Haijun Zhang
Sometimes command can't be completed within the time give in eSDHC_SYSCTL[DTOCV]. So just give the max value 0x14 to avoid this issue. Signed-off-by: Haijun Zhang --- changes for v2: - Rebuild patch of eSDHC host need long time to generate command interrupt drivers/mmc/host/sdh

[PATCH 3/4 V2] mmc: esdhc: Correct host version of T4240-R1.0

2013-07-17 Thread Haijun Zhang
Vender version and sdhc spec version of T4240-R1.0 is incorrect. The right value should be VVN=0x13, SVN = 0x1. The wrong version number will break down the ADMA data transfer. This defect only exist in T4240-R1.0. Will be fixed in T4240-R2.0. Also share vvn and svr for public use. Signed-off-by:

[PATCH 2/4 V2] mmc: esdhc: workaround for dma err in the last system transaction

2013-07-17 Thread Haijun Zhang
A-004388: eSDHC DMA might not stop if error occurs on system transaction eSDHC DMA(SDMA/ADMA) might not stop if an error occurs in the last system transaction. It may continue initiating additional transactions until software reset for data/all is issued during error recovery. There is not any dat

Re: [PATCH RFC v2 2/5] dma: mpc512x: add support for peripheral transfers

2013-07-17 Thread Gerhard Sittig
On Tue, Jul 16, 2013 at 12:37 +0200, Lars-Peter Clausen wrote: > > On 07/14/2013 02:01 PM, Gerhard Sittig wrote: > > From: Alexander Popov > > > > introduce support for slave s/g transfer preparation and the associated > > device control callback in the MPC512x DMA controller driver, which adds

Re: [V2 2/2] powerpc/512x: add LocalPlus Bus FIFO device driver

2013-07-17 Thread Gerhard Sittig
On Fri, Jul 12, 2013 at 14:42 +0400, Alexander Popov wrote: > > 2013/7/10 Gerhard Sittig : > > On Wed, Jul 10, 2013 at 14:21 +0400, Alexander Popov wrote: > >> > >> + > >> +struct mpc512x_lpbfifo_request { > >> + unsigned int cs; > >> + phys_addr_t bus_phys; /* physical address of some

Re: [PATCH V2 1/2] DMA: Freescale: Add new 8-channel DMA engine device tree nodes

2013-07-17 Thread Hongbo Zhang
On 07/15/2013 09:31 PM, Kumar Gala wrote: On Jul 5, 2013, at 1:27 AM, wrote: From: Hongbo Zhang Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch add the device tree nodes for them. Signed-off-by: Hongbo Zhang --- arch/powerpc/boot/dts/fsl/elo3-dma-0.dtsi | 90