[PATCH v2] powerpc: add real mode support for dma operations on powernv

2013-07-07 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" in

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

2013-07-07 Thread Haijun Zhang
Add this file to help detect cpu type in runtime. These macros and inline routines will be more favorable for driver to apply errata and workaround to specified cpu type. Signed-off-by: Haijun Zhang Signed-off-by: Zhao Chenhui --- arch/powerpc/include/asm/mpc85xx.h | 96

[PATCH 4/4] mmc: eSDHC: Some eSDHC host need long time to generate command interrupt

2013-07-07 Thread Haijun Zhang
Command complete interrupt not always generate within 10 * HZ. Sometimes 500 * HZ or more. So enlarge this detecting value to ensure the host had sufficient time to generate command complete interrupt. Signed-off-by: Haijun Zhang --- drivers/mmc/host/sdhci-of-esdhc.c | 3 +++ drivers/mmc/host/s

[PATCH 3/4] mmc: esdhc: Add quirks to support T4240 board

2013-07-07 Thread Haijun Zhang
On T4240 board controllers has an unusable ADMA engine, so use SDMA instead. Also 3.0v is support on T4240 board even if the capacity detailed only 1.8v support. Without this quirk SD card will declare voltage not support and Signed-off-by: Haijun Zhang --- drivers/mmc/host/sdhci-pltfm.c | 5 +++

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

2013-07-07 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 4/8] powerpc: Prepare to support kernel handling of IOMMU map/unmap

2013-07-07 Thread Benjamin Herrenschmidt
On Sun, 2013-07-07 at 01:07 +1000, Alexey Kardashevskiy wrote: > 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 extr