Re: [PATCH] powerpc: Fix the corrupt r3 error during MCE handling.

2013-07-15 Thread Anshuman Khandual
On 07/15/2013 11:36 AM, Aneesh Kumar K.V wrote: Anshuman Khandual khand...@linux.vnet.ibm.com writes: On 07/10/2013 06:32 PM, Mahesh J Salgaonkar wrote: From: Mahesh Salgaonkar mah...@linux.vnet.ibm.com During Machine Check interrupt on pseries platform, R3 generally points to memory

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

2013-07-15 Thread Benjamin Herrenschmidt
On Mon, 2013-07-15 at 14:04 +1000, Anton Blanchard wrote: Module CRCs are implemented as absolute symbols that get resolved by a linker script. We build an intermediate .o that contains an unresolved symbol for each CRC. genksysms parses this .o, calculates the CRCs and writes a linker script

Re: [PATCH] powerpc/pseries: drop select HOTPLUG

2013-07-15 Thread Srivatsa S. Bhat
On 07/14/2013 04:32 PM, Paul Bolle wrote: The Kconfig symbol HOTPLUG was removed with commit 40b313608a (Finally eradicate CONFIG_HOTPLUG). But there's still one select statement for that symbol. It seems that select statement was added after the patch to remove CONFIG_HOTPLUG was submitted.

RE: [PATCH] powerpc/fsl-booke: Work around erratum A-006958

2013-07-15 Thread David Laight
+#define MFTB(dest, scratch1, scratch2) \ +90: mftbu scratch1; \ + mftbl dest; \ + mftbu scratch2; \ + cmpwscratch1,scratch2; \ + bne 90b;\ + rldimi dest,scratch1,32,0; Are the

[PATCH V6] powerpc/85xx: add the P1020RDB-PD DTS support

2013-07-15 Thread Haijun Zhang
Overview of P1020RDB-PD device: - DDR3 2GB - NOR flash 64MB - NAND flash 128MB - SPI flash 16MB - I2C EEPROM 256Kb - eTSEC1 (RGMII PHY) connected to VSC7385 L2 switch - eTSEC2 (SGMII PHY) - eTSEC3 (RGMII PHY) - SDHC - 1 USB ports - TDM ports - PCIe Signed-off-by: Haijun Zhang

Re: [PATCH] hashtable: add hash_for_each_possible_rcu_notrace()

2013-07-15 Thread Alexey Kardashevskiy
Anyone, ping? On 07/06/2013 02:16 PM, Alexey Kardashevskiy wrote: This adds hash_for_each_possible_rcu_notrace() which is basically a notrace clone of hash_for_each_possible_rcu() which cannot be used in real mode due to its tracing/debugging capability. Signed-off-by: Alexey Kardashevskiy

Re: [PATCH 00/12] dma: various minor clean ups for slave drivers

2013-07-15 Thread Vinod Koul
On Fri, May 31, 2013 at 05:09:51PM -0700, Dan Williams wrote: On Thu, May 30, 2013 at 10:47 AM, Vinod Koul vinod.k...@intel.com wrote: On Mon, May 27, 2013 at 03:14:30PM +0300, Andy Shevchenko wrote: Here is a set of small independent patches that clean up or fix minor things across DMA

Re: [PATCH 00/12] dma: various minor clean ups for slave drivers

2013-07-15 Thread Vinod Koul
On Thu, May 30, 2013 at 09:32:19PM +0300, Andy Shevchenko wrote: Here is a set of small independent patches that clean up or fix minor things across DMA slave drivers. Applied thanks -- ~Vinod ___ Linuxppc-dev mailing list

Re: [PATCH 00/12] dma: various minor clean ups for slave drivers

2013-07-15 Thread Andy Shevchenko
On Mon, 2013-07-15 at 15:07 +0530, Vinod Koul wrote: On Thu, May 30, 2013 at 09:32:19PM +0300, Andy Shevchenko wrote: Here is a set of small independent patches that clean up or fix minor things across DMA slave drivers. Applied thanks Thank you. You were faster than me, I was just

[PATCH v3 2/2] DMA: Freescale: update driver to support 8-channel DMA engine

2013-07-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com This patch adds support to 8-channel DMA engine, thus the driver works for both the new 8-channel and the legacy 4-channel DMA engines. Signed-off-by: Hongbo Zhang hongbo.zh...@freescale.com --- drivers/dma/Kconfig |9 +

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

2013-07-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com 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 hongbo.zh...@freescale.com --- .../devicetree/bindings/powerpc/fsl/dma.txt|8 +-

Re: [PATCH 00/12] dma: various minor clean ups for slave drivers

2013-07-15 Thread Vinod Koul
On Mon, Jul 15, 2013 at 01:21:17PM +0300, Andy Shevchenko wrote: On Mon, 2013-07-15 at 15:07 +0530, Vinod Koul wrote: On Thu, May 30, 2013 at 09:32:19PM +0300, Andy Shevchenko wrote: Here is a set of small independent patches that clean up or fix minor things across DMA slave

[PATCH v3 0/2] DMA: Freescale: Add support for 8-channel DMA engine

2013-07-15 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@freescale.com Hi Vinod, Dan, Leo and Scott, please have a look at these V2 patches. Freescale QorIQ T4 and B4 introduce new 8-channel DMA engines, this patch set adds support this DMA engine. V2-V3 changes: - edit

[PATCHv5 02/11] PCI: use weak functions for MSI arch-specific functions

2013-07-15 Thread Thomas Petazzoni
Until now, the MSI architecture-specific functions could be overloaded using a fairly complex set of #define and compile-time conditionals. In order to prepare for the introduction of the msi_chip infrastructure, it is desirable to switch all those functions to use the 'weak' mechanism. This

[PATCHv5 03/11] PCI: remove ARCH_SUPPORTS_MSI kconfig option

2013-07-15 Thread Thomas Petazzoni
Now that we have weak versions for each of the PCI MSI architecture functions, we can actually build the MSI support for all platforms, regardless of whether they provide or not architecture-specific versions of those functions. For this reason, the ARCH_SUPPORTS_MSI hidden kconfig boolean becomes

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

2013-07-15 Thread Kumar Gala
On Jul 5, 2013, at 1:27 AM, hongbo.zh...@freescale.com hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@freescale.com 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

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

2013-07-15 Thread Kumar Gala
On Jul 5, 2013, at 1:27 AM, hongbo.zh...@freescale.com hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@freescale.com 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

Re: [PATCH] powerpc/fsl-booke: Work around erratum A-006958

2013-07-15 Thread Scott Wood
On 07/15/2013 03:45:36 AM, David Laight wrote: +#define MFTB(dest, scratch1, scratch2)\ +90: mftbu scratch1; \ + mftbl dest; \ + mftbu scratch2; \ + cmpwscratch1,scratch2; \ + bne 90b;\ +

[PATCH 00/11] Add compression support to pstore

2013-07-15 Thread Aruna Balakrishnaiah
The patchset adds compression support to pstore. As the non-volatile storage space is limited, adding compression support results in capturing more data within limited space. Size of dmesg file in a powerpc/pseries box with nvram's oops partition (to store oops-log) size 4k: Without

Re: [PATCH] powerpc/fsl-booke: Work around erratum A-006958

2013-07-15 Thread Scott Wood
On 07/15/2013 01:03:22 AM, Aneesh Kumar K.V wrote: Scott Wood scottw...@freescale.com writes: diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index ae0aaea..7f0e2e5 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++

[PATCH 01/11] powerpc/pseries: Remove (de)compression in nvram with pstore enabled

2013-07-15 Thread Aruna Balakrishnaiah
(De)compression support is provided in pstore in subsequent patches which needs an additional argument 'compressed' to determine if the data is compressed or not. This patch will take care of removing (de)compression in nvram with pstore which was making use of 'hsize' argument in pstore write as

[PATCH 02/11] pstore: Add new argument 'compressed' in pstore write callback

2013-07-15 Thread Aruna Balakrishnaiah
Addition of new argument 'compressed' in the write call back will help the backend to know if the data passed from pstore is compressed or not (In case where compression fails.). If compressed, the backend can add a tag indicating the data is compressed while writing to persistent store.

[PATCH 03/11] pstore/Kconfig: Select ZLIB_DEFLATE and ZLIB_INFLATE when PSTORE is selected

2013-07-15 Thread Aruna Balakrishnaiah
Pstore will make use of deflate and inflate algorithm to compress and decompress the data. So when Pstore is enabled select zlib_deflate and zlib_inflate. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com --- fs/pstore/Kconfig |2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 05/11] pstore: Introduce new argument 'compressed' in the read callback

2013-07-15 Thread Aruna Balakrishnaiah
Backends will set the flag 'compressed' after reading the log from persistent store to indicate the data being returned to pstore is compressed or not. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com --- arch/powerpc/platforms/pseries/nvram.c |2 +- drivers/acpi/apei/erst.c

[PATCH 04/11] pstore: Add compression support to pstore

2013-07-15 Thread Aruna Balakrishnaiah
Add compression support to pstore which will help in capturing more data. Initially, pstore will make a call to kmsg_dump with a bigger buffer and will pass the size of bigger buffer to kmsg_dump and then compress the data to registered buffer of registered size. In case compression fails, pstore

[PATCH 07/11] pstore: Add file extension to pstore file if compressed

2013-07-15 Thread Aruna Balakrishnaiah
In case decompression fails, add a .enc.z to indicate the file has compressed data. This will help user space utilities to figure out the file contents. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com --- fs/pstore/inode.c|9 + fs/pstore/internal.h |5 +++--

[PATCH 06/11] pstore: Provide decompression support to pstore

2013-07-15 Thread Aruna Balakrishnaiah
Based on the flag 'compressed' set or not, pstore will decompress the data returning a plain text file. If decompression fails for a particular record it will have the compressed data in the file which can be decompressed with 'openssl' command line tool. Signed-off-by: Aruna Balakrishnaiah

[PATCH 08/11] powerpc/pseries: Read and write to the 'compressed' flag of pstore

2013-07-15 Thread Aruna Balakrishnaiah
If data returned from pstore is compressed, nvram's write callback will add a flag ERR_TYPE_KERNEL_PANIC_GZ indicating the data is compressed while writing to nvram. If the data read from nvram is compressed, nvram's read callback will set the flag 'compressed'. The patch adds backward

[PATCH 09/11] erst: Read and write to the 'compressed' flag of pstore

2013-07-15 Thread Aruna Balakrishnaiah
In pstore write, set the section type to CPER_SECTION_TYPE_DMESG_COMPR if the data is compressed. In pstore read, read the section type and update the 'compressed' flag accordingly. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com --- drivers/acpi/apei/erst.c | 13 - 1

[PATCH 10/11] efi-pstore: Read and write to the 'compressed' flag of pstore

2013-07-15 Thread Aruna Balakrishnaiah
In pstore write, Efi will add a character 'C'(compressed) or D'(decompressed) in its header while writing to persistent store. In pstore read, read the header and update the 'compressed' flag accordingly. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com ---

[PATCH 11/11] pstore/ram: Read and write to the 'compressed' flag of pstore

2013-07-15 Thread Aruna Balakrishnaiah
In pstore write, add character 'C'(compressed) or 'D'(decompressed) in the header while writing to Ram persistent buffer. In pstore read, read the header and update the 'compressed' flag accordingly. Signed-off-by: Aruna Balakrishnaiah ar...@linux.vnet.ibm.com --- fs/pstore/ram.c | 36

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

2013-07-15 Thread Scott Wood
On 07/15/2013 08:35:07 AM, Kumar Gala wrote: On Jul 5, 2013, at 1:27 AM, hongbo.zh...@freescale.com hongbo.zh...@freescale.com wrote: +dma0: dma@100300 { + #address-cells = 1; + #size-cells = 1; + compatible = fsl,elo3-dma; why does this require a new compatible? The binding has

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

2013-07-15 Thread Scott Wood
On 07/15/2013 05:34:58 AM, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@freescale.com 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 hongbo.zh...@freescale.com ---

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

2013-07-15 Thread Gerhard Sittig
clocks need to get prepared before they can get enabled, fix the MPC512x PSC SPI master's initialization Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/spi/spi-mpc512x-psc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-mpc512x-psc.c

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

2013-07-15 Thread Gerhard Sittig
this series introduces support for the common clock framework (CCF, COMMON_CLK Kconfig option) in the PowerPC based MPC512x platform, a resulting debugfs clk_summary is at the end of the message after the stats although the series does touch several subsystems -- serial, spi, net (can, fs_enet),

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

2013-07-15 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 v1 04/24] powerpc: mpc512x: array decl for MCLK registers in CCM

2013-07-15 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 v1 02/24] serial: mpc512x: prepare clocks before enabling them

2013-07-15 Thread Gerhard Sittig
clocks need to get prepared before they can get enabled, and after disabling them they can get unprepared Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/tty/serial/mpc52xx_uart.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/mpc52xx_uart.c

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

2013-07-15 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 v1 05/24] clk: wrap I/O access for improved portability

2013-07-15 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 v1 07/24] dts: mpc512x: introduce dt-bindings/clock/ header

2013-07-15 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 v1 08/24] dts: mpc512x: add clock related device tree specs

2013-07-15 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 v1 10/24] dts: mpc512x: add clock specs for client lookups

2013-07-15 Thread Gerhard Sittig
this addresses the client side of device tree based clock lookups: add clock specifiers to the mbx, nfc, mscan, sdhc, i2c, axe, diu, viu, mdio, fec, usb, pata, psc, psc fifo, and pci nodes in the shared mpc5121.dtsi include these specs map 'clock-names' encoded in drivers to their respective

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

2013-07-15 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 v1 11/24] net: can: mscan: add a comment on reg to idx mapping

2013-07-15 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 v1 13/24] spi: mpc512x: OF clock lookup, use the 'mclk' name

2013-07-15 Thread Gerhard Sittig
after PSC related clock specifiers were added to the device tree, the former 'psc%d_mclk' isn't needed any longer to lookup clock items Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/spi/spi-mpc512x-psc.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH v1 12/24] net: can: mscan: make mpc512x code use common clock

2013-07-15 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 v1 14/24] powerpc/mpc512x: improve DIU related clock setup

2013-07-15 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

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

2013-07-15 Thread Sascha Hauer
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 @@ -104,7 +104,7 @@ static unsigned long

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

2013-07-15 Thread Mark Brown
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 g...@denx.de --- drivers/spi/spi-mpc512x-psc.c |2 +- 1 file changed, 1 insertion(+), 1

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

2013-07-15 Thread Gerhard Sittig
with device tree based clock lookup, the MCLK name no longer depends on the PSC index Signed-off-by: Gerhard Sittig g...@denx.de --- drivers/tty/serial/mpc52xx_uart.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/mpc52xx_uart.c

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

2013-07-15 Thread Sascha Hauer
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 g...@denx.de --- drivers/tty/serial/mpc52xx_uart.c |8 ++-- 1 file changed, 2 insertions(+), 6

Re: [PATCH] powerpc/fsl-booke: Work around erratum A-006958

2013-07-15 Thread Scott Wood
On 07/15/2013 11:53:54 AM, Scott Wood wrote: On 07/15/2013 03:45:36 AM, David Laight wrote: Also, if the high word changes, there is no need to loop. Just return the second value with a low word of zero (the returned count happened while the function was active). That would be more

SMP on PPC750

2013-07-15 Thread Tal Ben-Eliezer
Hello- The Espresso CPU within the Nintendo Wii U is a PowerPC 750 based CPU with three cores. I was wondering if anyone knew of any way to enable CONFIG_SMP on the Linux kernel without preventing the kernel from booting. http://en.wikipedia.org/wiki/Espresso_(microprocessor)

Help on mpc5200b and 1:1 CPU:bus clock ratio

2013-07-15 Thread Neorf3k
Hello, this is our custom board's u-boot: U-Boot 2009.08 (Apr 19 2010 - 05:35:19) CPU: MPC5200B v2.2, Core v1.4 at 132 MHz Bus 132 MHz, IPB 132 MHz, PCI 66 MHz Board: Ran Controller Board I2C: 85 kHz, ready DRAM: 128 MB FLASH: 64 MB We have 1:1 CPU:bus

[PATCH 01/10] KVM: PPC: reserve a capability number for multitce support

2013-07-15 Thread Alexey Kardashevskiy
This is to reserve a capablity number for upcoming support of H_PUT_TCE_INDIRECT and H_STUFF_TCE pseries hypercalls which support mulptiple DMA map/unmap operations per one call. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: 2013/07/16: * changed the number Signed-off-by:

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

2013-07-15 Thread Alexey Kardashevskiy
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 to support realmode. 4. IOMMU_API is now always enabled

[PATCH 02/10] KVM: PPC: reserve a capability and ioctl numbers for realmode VFIO

2013-07-15 Thread Alexey Kardashevskiy
This is to reserve a capablity number for upcoming support of VFIO-IOMMU DMA operations in real mode. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- Changes: 2013/07/16: * changed the number 2013/07/11: * changed order in a file, added comment about a gap in ioctl number Signed-off-by:

[PATCH 04/10] powerpc: Prepare to support kernel handling of IOMMU map/unmap

2013-07-15 Thread Alexey Kardashevskiy
The current VFIO-on-POWER implementation supports only user mode driven mapping, i.e. QEMU is sending requests to map/unmap pages. However this approach is really slow, so we want to move that to KVM. Since H_PUT_TCE can be extremely performance sensitive (especially with network adapters where

[PATCH 03/10] vfio: add external user support

2013-07-15 Thread Alexey Kardashevskiy
VFIO is designed to be used via ioctls on file descriptors returned by VFIO. However in some situations support for an external user is required. The first user is KVM on PPC64 (SPAPR TCE protocol) which is going to use the existing VFIO groups for exclusive access in real/virtual mode on a host

[PATCH 05/10] powerpc: add real mode support for dma operations on powernv

2013-07-15 Thread Alexey Kardashevskiy
The existing TCE machine calls (tce_build and tce_free) only support virtual mode as they call __raw_writeq for TCE invalidation what fails in real mode. This introduces tce_build_rm and tce_free_rm real mode versions which do mostly the same but use Store Doubleword Caching Inhibited Indexed

[PATCH 07/10] KVM: PPC: Add support for multiple-TCE hcalls

2013-07-15 Thread Alexey Kardashevskiy
This adds real mode handlers for the H_PUT_TCE_INDIRECT and H_STUFF_TCE hypercalls for user space emulated devices such as IBMVIO devices or emulated PCI. These calls allow adding multiple entries (up to 512) into the TCE table in one call which saves time on transition to/from real mode. This

[PATCH 06/10] KVM: PPC: enable IOMMU_API for KVM_BOOK3S_64 permanently

2013-07-15 Thread Alexey Kardashevskiy
It does not make much sense to have KVM in book3s-64bit and not to have IOMMU bits for PCI pass through support as it costs little and allows VFIO to function on book3s-kvm. Having IOMMU_API enabled will make it unnecessary to have a lot of IOMMU_API enabled, those files only accelerate user

[PATCH 08/10] powerpc/iommu: rework to support realmode

2013-07-15 Thread Alexey Kardashevskiy
The TCE tables handling may differ for real and virtual modes so additional ppc_md.tce_build_rm/ppc_md.tce_free_rm/ppc_md.tce_flush_rm handlers were introduced earlier. So this adds the following: 1. support for the new ppc_md calls; 2. ability to iommu_tce_build to process mupltiple entries per

[PATCH 10/10] KVM: PPC: Add hugepage support for IOMMU in-kernel handling

2013-07-15 Thread Alexey Kardashevskiy
This adds special support for huge pages (16MB) in real mode. The reference counting cannot be easily done for such pages in real mode (when MMU is off) so we added a hash table of huge pages. It is populated in virtual mode and get_page is called just once per a huge page. Real mode handlers

[PATCH 09/10] KVM: PPC: Add support for IOMMU in-kernel handling

2013-07-15 Thread Alexey Kardashevskiy
This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT and H_STUFF_TCE requests targeted an IOMMU TCE table without passing them to user space which saves time on switching to user space and back. Both real and virtual modes are supported. The kernel tries to handle a TCE request in

Re: ABI defined register usage within function calls

2013-07-15 Thread JiveTalkin
Hi Ben. Thanks for the information. Your reply is eagerly awaited. Regards. On Jul 15, 2013 3:50 AM, Benjamin Herrenschmidt [via linuxppc] ml-node+s10917n7373...@n7.nabble.com wrote: On Fri, 2013-07-12 at 04:38 -0700, JiveTalkin wrote: Moderator..can you change the subject of this to

[v1][PATCH 1/1] powerpc/ppc64: rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE

2013-07-15 Thread Tiejun Chen
The SOFT_DISABLE_INTS seems an odd name for something that updates the software state to be consistent with interrupts being hard disabled, so rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE to avoid this confusion. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- Ben, Looks currently

RE: [PATCH 3/4 V2] mmc: esdhc: Add quirks to support T4240QDS board

2013-07-15 Thread Zhang Haijun-B42677
Hi, Anton You mean get voltage support from DTS? Or get voltage both from DTS and host capacity register? Thanks. Regards Haijun. -Original Message- From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- ow...@vger.kernel.org] On Behalf Of Anton Vorontsov Sent: Saturday, July

Re: [PATCH 3/4 V2] mmc: esdhc: Add quirks to support T4240QDS board

2013-07-15 Thread Anton Vorontsov
On Tue, Jul 16, 2013 at 03:11:47AM +, Zhang Haijun-B42677 wrote: Hi, Anton You mean get voltage support from DTS? Or get voltage both from DTS and host capacity register? The logic might be that you first check device-tree, if it specifies voltage ranges, assume that DTS knows better,