]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pseries/iommu: Remove DDW on kexec
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Mon, 28 Jan 2013 16:03:58 +0000 (16:03 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 8 Feb 2013 03:05:49 +0000 (14:05 +1100)
commit14b6f00f8a4fdec5ccd45a0710284de301a61628
tree940d97aa5947396ad8d82155ca5cedec6164dee6
parenta1dabadebb5731a6222bd6073e2770f0d0d13b73
pseries/iommu: Remove DDW on kexec

pseries/iommu: remove DDW on kexec

We currently insert a property in the device-tree when we successfully
configure DDW for a given slot. This was meant to be an optimization to
speed up kexec/kdump, so that we don't need to make the RTAS calls again
to re-configured DDW in the new kernel.

However, we end up tripping a plpar_tce_stuff failure on kexec/kdump
because we unconditionally parse the ibm,dma-window property for the
node at bus/dev setup time. This property contains the 32-bit DMA window
LIOBN, which is distinct from the DDW window's. We pass that LIOBN (via
iommu_table_init -> iommu_table_clear -> tce_free ->
tce_freemulti_pSeriesLP) to plpar_tce_stuff, which fails because that
32-bit window is no longer present after
25ebc45b93452d0bc60271f178237123c4b26808 ("powerpc/pseries/iommu: remove
default window before attempting DDW manipulation").

I believe the simplest, easiest-to-maintain fix is to just change our
initcall to, rather than detecting and updating the new kernel's DDW
knowledge, just remove all DDW configurations. When the drivers
re-initialize, we will set everything back up as it was before.

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