]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: add real mode support for dma operations on powernv
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 28 Aug 2013 08:37:43 +0000 (18:37 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 06:24:40 +0000 (17:24 +1100)
commit8e0a1611cb891e72a9affc4a8ee4795c634896a6
tree05c7376a7be9a41de27ac60a6b412807c0f09adb
parent8e0861fa3c4edfc2f30dd4cf4d58d3929f7c1b23
powerpc: add real mode support for dma operations on powernv

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" instruction for TCE invalidation.

This new feature is going to be utilized by real mode support of VFIO.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/machdep.h
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/pci.h