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

2013-07-18 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 architectural

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

2013-07-18 Thread Michael Neuling
Anshuman Khandual khand...@linux.vnet.ibm.com 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

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

2013-07-18 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-divider.c @@

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

2013-07-18 Thread Sascha Hauer
On Thu, Jul 18, 2013 at 09:04:02AM +0200, Gerhard Sittig wrote: 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

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

2013-07-18 Thread Russell King - ARM Linux
On Thu, Jul 18, 2013 at 09:04:02AM +0200, Gerhard Sittig wrote: The common clock API assumes (it's part of the contract) that there are potentially expensive operations like get, put, prepare and unprepare, as well as swift and non-blocking operations like enable and disable. Let's get

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

2013-07-18 Thread Mark Brown
On Thu, Jul 18, 2013 at 10:06:57AM +0200, Sascha Hauer wrote: I think regmap has the potential to solve a number of issues like the hardcoded readl/writel in the common clock blocks, issues with i2c clocks and your endianess issue. The biggest question probably is how to get there without

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

2013-07-18 Thread Scott Wood
On 07/17/2013 09:30:45 PM, Zang Roy-R61911 wrote: -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

[PATCH v2 00/24] add COMMON_CLK support for PowerPC MPC512x

2013-07-18 Thread Gerhard Sittig
this series introduces support for the common clock framework (CCF, COMMON_CLK Kconfig option) in the PowerPC based MPC512x platform although the series does touch several subsystems -- serial, spi, net (can, fs_enet), mtd (nfc), usb, i2c, media (viu), and dts -- all of the patches are strictly

[PATCH v2 01/24] spi: mpc512x: cleanup clock API use

2013-07-18 Thread Gerhard Sittig
cleanup the MPC512x SoC's SPI master's use of the clock API - get, prepare, and enable the MCLK during probe; disable, unprepare and put the MCLK upon remove; hold a reference to the clock over the period of use - fetch MCLK rate (reference) once during probe and slightly reword BCLK

[PATCH v2 03/24] mtd: mpc5121_nfc: prepare clocks before enabling them

2013-07-18 Thread Gerhard Sittig
must prepare clocks before enabling them, unprepare after disable Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/mtd/nand/mpc5121_nfc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index

[PATCH v2 04/24] powerpc: mpc512x: array decl for MCLK registers in CCM

2013-07-18 Thread Gerhard Sittig
reword the clock control module's registers declaration such that the MCLK related registers form an array and get indexed by PSC number this change is in preparation to COMMON_CLK support for the MPC512x platform, the changed declaration remains neutral to existing code since the PSC and MSCAN

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

2013-07-18 Thread Gerhard Sittig
the common clock drivers were motivated/initiated by ARM development and apparently assume little endian peripherals wrap register/peripherals access in the common code (div, gate, mux) in preparation of adding COMMON_CLK support for other platforms Signed-off-by: Gerhard Sittig g...@denx.de ---

[PATCH v2 02/24] serial: mpc512x: cleanup clock API use

2013-07-18 Thread Gerhard Sittig
cleanup the clock API use of the UART driver which is shared among the MPC512x and the MPC5200 platforms - get, prepare, and enable the MCLK during port allocation; disable, unprepare and put the MCLK upon port release; hold a reference to the clock over the period of use; check for and

[PATCH v2 06/24] dts: mpc512x: prepare for preprocessor support

2013-07-18 Thread Gerhard Sittig
prepare C preprocessor support when processing MPC512x DTS files - switch from DTS syntax to CPP syntax for include specs - create a symlink such that DTS processing can reference includes Signed-off-by: Gerhard Sittig g...@denx.de --- arch/powerpc/boot/dts/ac14xx.dts |2 +-

[PATCH v2 07/24] dts: mpc512x: introduce dt-bindings/clock/ header

2013-07-18 Thread Gerhard Sittig
introduce a dt-bindings/ header file for MPC512x clocks, providing symbolic identifiers for those SoC clocks which clients will reference from their device tree nodes Signed-off-by: Gerhard Sittig g...@denx.de --- include/dt-bindings/clock/mpc512x-clock.h | 59 + 1

[PATCH v2 08/24] dts: mpc512x: add clock related device tree specs

2013-07-18 Thread Gerhard Sittig
this addresses the clock driver aka provider's side of clocks - prepare for future 'clks ID' phandle references for device tree based clock lookup in client drivers - introduce a 'clocks' subtree with an 'osc' node for the crystal or oscillator SoC input (fixed frequency) - provide default

[PATCH v2 09/24] clk: mpc512x: introduce COMMON_CLK for MPC512x

2013-07-18 Thread Gerhard Sittig
this change introduces a clock infrastructure implementation for the MPC512x PowerPC platform which follows the COMMON_CLK approach and uses common clock drivers shared with other platforms this driver implements the publicly announced set of clocks (which can get referenced by means of symbolic

[PATCH v2 11/24] spi: mpc512x: remove now obsolete clock lookup name

2013-07-18 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the PSC index, remove the psc%d_mclk template and unconditionally use mclk Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/spi/spi-mpc512x-psc.c |6 +- 1

[PATCH v2 12/24] serial: mpc512x: remove now obsolete clock lookup name

2013-07-18 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the PSC index, remove the psc%d_mclk template and unconditionally use mclk Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/tty/serial/mpc52xx_uart.c |8

[PATCH v2 13/24] clk: mpc512x: remove now obsolete clkdev registration

2013-07-18 Thread Gerhard Sittig
after the peripheral drivers for UART and SPI mode (both using the PSC controller) got converted to device tree based clock lookups, the platform clock driver need no longer provide the psc%d_mclk name which depends on the PSC index number -- remove the clk_register_clkdev() call Signed-off-by:

[PATCH v2 14/24] serial: mpc512x: setup the PSC FIFO clock as well

2013-07-18 Thread Gerhard Sittig
prepare and enable the FIFO clock upon PSC FIFO initialization, disable and unprepare the FIFO clock upon PSC FIFO uninitialization, remove the pre-enable workaround from the platform's clock driver Signed-off-by: Gerhard Sittig g...@denx.de --- arch/powerpc/platforms/512x/clock-commonclk.c |

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

2013-07-18 Thread Nicolas Pitre
On Thu, 18 Jul 2013, Russell King - ARM Linux wrote: 1. clk_get() and clk_put() are NOT part of the common clock API. They're separate - they're part of the clk API, and the infrastructure behind that is clkdev, which is a separately owned thing (by me.) 2. The contract of the clk API

[PATCH 13/76] perf tools: Make Power7 events available for perf

2013-07-18 Thread Arnaldo Carvalho de Melo
From: Runzhen Wang runz...@linux.vnet.ibm.com Power7 supports over 530 different perf events but only a small subset of these can be specified by name, for the remaining events, we must specify them by their raw code: perf stat -e r2003c application This patch makes all the POWER7

[GIT PULL 00/76] perf/core improvements and fixes

2013-07-18 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo a...@ghostprotocols.net Hi Ingo, Please consider pulling. There was a long delay in processing patches related to my vacations that took longer than antecipated to being addressed. With the recent acme/perf/urgent merge and this one I get

[PATCH v2 15/24] net: can: mscan: add a comment on reg to idx mapping

2013-07-18 Thread Gerhard Sittig
add a comment about the magic of deriving an MSCAN component index from the peripheral's physical address / register offset Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/net/can/mscan/mpc5xxx_can.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v2 17/24] powerpc/mpc512x: improve DIU related clock setup

2013-07-18 Thread Gerhard Sittig
adapt the DIU clock initialization to the COMMON_CLK approach: device tree based clock lookup, prepare and unprepare for clocks, work with frequencies not dividers, call the appropriate clk_*() routines and don't access CCM registers, remove the pre-enable workaround in the platform's clock driver

[PATCH v2 16/24] net: can: mscan: make mpc512x code use common clock

2013-07-18 Thread Gerhard Sittig
extend the mscan(4) driver with alternative support for the COMMON_CLK approach which is an option in the MPC512x platform, keep the existing clock support implementation in place since the driver is shared with other MPC5xxx SoCs which don't have common clock support one byproduct of this change

[PATCH v2 19/24] USB: fsl-mph-dr-of: OF clock lookup, prepare and enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup in the MPC512x initialization (lookup 'per' for register access), add error check in the clock setup, must prepare clocks before they can get enabled, unprepare after disable Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/usb/host/fsl-mph-dr-of.c | 24

[PATCH v2 18/24] i2c: mpc: OF clock lookup for MPC512x

2013-07-18 Thread Gerhard Sittig
make the MPC I2C driver prepare and enable the peripheral clock ('per' for register access) in the MPC512x setup routine, make this clock setup non-fatal to allow for a migration period, remove the pre-enabling hack in the platform's clock driver Signed-off-by: Gerhard Sittig g...@denx.de ---

[PATCH v2 20/24] fs_enet: OF clock lookup (non-fatal), prepare and enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup, must prepare clocks before enabling them, unprepare after disable, error check in the clock setup, remove the pre-enable workaround in the MPC512x platform's clock driver this change implements non-fatal clock lookup since not all platforms provide device tree

[PATCH v2 21/24] [media] fsl-viu: OF clock lookup, prepare before enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup, must prepare clocks before enabling them, unprepare after disable, error check in the clock setup Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/media/platform/fsl-viu.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH v2 23/24] clk: mpc512x: switch to COMMON_CLK, remove PPC_CLOCK

2013-07-18 Thread Gerhard Sittig
completely switch to, i.e. unconditionally use COMMON_CLK for the MPC512x platform, and retire the PPC_CLOCK implementation for that platform after the transition has completed Signed-off-by: Gerhard Sittig g...@denx.de --- arch/powerpc/platforms/512x/Kconfig | 14 +-

[PATCH v2 22/24] powerpc/fsl-pci: OF clock lookup, prepare before enable

2013-07-18 Thread Gerhard Sittig
device tree based clock lookup, must prepare clocks before enabling them, error check in the clock setup this change implements non-fatal clock lookup for compatibility with platforms that don't provide OF clock specs, but failure to enable a specified clock is considered fatal Signed-off-by:

[PATCH v2 24/24] net: can: mscan: remove MPC512x non-COMMON_CLK code path

2013-07-18 Thread Gerhard Sittig
transition to the COMMON_CLK framework has completed for the MPC512x platform, remove the now obsolete code path of the mpc5xxx mscan driver which accessed clock control module registers directly Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/net/can/mscan/mpc5xxx_can.c | 136

Re: [PATCH v2 18/24] i2c: mpc: OF clock lookup for MPC512x

2013-07-18 Thread Russell King - ARM Linux
On Thu, Jul 18, 2013 at 10:20:52PM +0200, Gerhard Sittig wrote: + /* enable clock for the I2C peripheral (non fatal) */ + clk = of_clk_get_by_name(node, per); + if (!IS_ERR(clk)) { + clk_prepare_enable(clk); + clk_put(clk); + } + This kind of hacked

Re: [PATCH v2 01/24] spi: mpc512x: cleanup clock API use

2013-07-18 Thread Mark Brown
On Thu, Jul 18, 2013 at 07:00:32PM +0200, Gerhard Sittig wrote: + psc_num = master-bus_num; + snprintf(clk_name, sizeof(clk_name), psc%d_mclk, psc_num); + mps-clk_mclk = clk_get(dev, clk_name); + if (IS_ERR(mps-clk_mclk)) + goto free_irq; Should be using

Re: Inbound PCI and Memory Corruption

2013-07-18 Thread Peter LaDow
We are still stumped on this one, but during a review of the system setup one thing came up that we aren't sure about is the device tree and the DMA engine. It does seem that for incoming PCI transactions the Freescale DMA engine is not used. And in our device tree we have the DMA engine

Re: Inbound PCI and Memory Corruption

2013-07-18 Thread Benjamin Herrenschmidt
On Thu, 2013-07-18 at 14:30 -0700, Peter LaDow wrote: We are still stumped on this one, but during a review of the system setup one thing came up that we aren't sure about is the device tree and the DMA engine. It does seem that for incoming PCI transactions the Freescale DMA engine is not

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

2013-07-18 Thread Zhang Haijun-B42677
Thanks. Regards Haijun. -Original Message- From: Wood Scott-B07421 Sent: Thursday, July 18, 2013 1:14 AM To: Zhang Haijun-B42677 Cc: linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; cbouatmai...@gmail.com; c...@laptop.org; Fleming Andy-AFLEMING; Zhang Haijun-B42677;

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

2013-07-18 Thread Zhang Haijun-B42677
Hi, all Expect your advice and any comments. Thanks. Regards Haijun. -Original Message- From: Zhang Haijun-B42677 Sent: Wednesday, July 17, 2013 6:11 PM To: linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Cc: cbouatmai...@gmail.com; c...@laptop.org; Wood Scott-B07421;

RE: [PATCH 1/4 V4] powerpc/85xx: Add support for 85xx cpu type detection

2013-07-18 Thread Zhang Haijun-B42677
Hi, scott I had update this patch, this is the newest version. If there is no other problem, can you help merge this patch? I hope to make sure the following patch don't need to rebuild due to the change of this patch. Thanks. Regards Haijun. -Original Message- From: Zhang

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

2013-07-18 Thread Haijun Zhang
Vender version and sdhc spec version of T4240-R1.0-R2.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-R2.0. Also share vvn and svr for public use. Signed-off-by: Haijun Zhang

Re: [PATCH 00/10 v6] KVM: PPC: IOMMU in-kernel handling

2013-07-18 Thread Alexey Kardashevskiy
On 07/16/2013 10:53 AM, Alexey Kardashevskiy wrote: The changes are: 1. rebased on v3.11-rc1 so the capability numbers changed again 2. fixed multiple comments from maintainers 3. KVM: PPC: Add support for IOMMU in-kernel handling is split into 2 patches, the new one is powerpc/iommu: rework