pseries/iommu: Fix iteration in DDW TCE clearrange
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Fri, 18 Jan 2013 09:16:24 +0000 (09:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 Jan 2013 00:35:08 +0000 (11:35 +1100)
commit22b382985a2e213e4ea0b4e436df24ab7228961d
treee5434ffb51de271a8711494016a776926ee58afd
parent4ae7ebe9522a9e3626e28b4d268dae712738573d
pseries/iommu: Fix iteration in DDW TCE clearrange

tce_clearrange_multi_pSeriesLP is attempting to iterate over all TCEs in
a given range. However, is it not advancing the dma_offset value passed
to plpar_tce_stuff via the next value. This prevents DLPAR from
completing, because TCEs are still present at slot isolation time.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/iommu.c