]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/iommu: Remove ddw property when destroying window
authorMilton Miller <miltonm@bga.com>
Wed, 11 May 2011 12:24:58 +0000 (12:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 07:25:27 +0000 (17:25 +1000)
commit0adf2edc6d843a5645b68e5d981c4574ef279e2c
tree38aeb9991df02560909dae049e1ad791aa02ae61
parent4d4a594ffdb9d035ae95366222b97c05f0d8f2a6
powerpc/pseries/iommu: Remove ddw property when destroying window

If we destroy the window, we need to remove the property recording that
we setup the window.  Otherwise the next kernel we kexec will be
confused.

Also we should remove the property if even if we don't find the
ibm,ddw-applicable window or if one of the property sizes is unexpected;
presumably these came from a prior kernel via kexec, and we will not be
maintaining the window with respect to memory hotplug.

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