]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: TCE invalidation for PHB3
authorGavin Shan <shangw@linux.vnet.ibm.com>
Thu, 25 Apr 2013 19:21:00 +0000 (19:21 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Apr 2013 06:09:59 +0000 (16:09 +1000)
commit30104b91ab8486b99efccb2a92e7698f4a87fab0
treee7c8e24087a508c7288954a8d4da2d65f9f62d19
parentb160669e67d87e2fc75bbdfea2f079b4d2116bf7
powerpc/powernv: TCE invalidation for PHB3

The TCE should be invalidated while it's created or free'd. The
approach to do that for IODA1 and IODA2 compliant PHBs are different.
So the patch differentiate them with different functions called to
do that for IODA1 and IODA2 compliant PHBs. It's notable that the
PCI address is used to invalidate the corresponding TCE on IODA2
compliant PHB3.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/pci.h