]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42b8f2b4184a563dcc0dae5dc969e586d18fdfec
treee5434ffb51de271a8711494016a776926ee58afd
parent55e3dc59b280910388330d07d93423aac4496f27
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