powerpc/pseries/iommu: Find windows after kexec during boot
authorMilton Miller <miltonm@bga.com>
Wed, 11 May 2011 12:24:59 +0000 (12:24 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 07:25:28 +0000 (17:25 +1000)
commitc85667802bb5093c4054f8a887a90dd0acf82d3e
tree739b32c42b8a83e142cd64b48d6723ac666ddc22
parent2573f6842201a00f139237e4b42ab16711b582af
powerpc/pseries/iommu: Find windows after kexec during boot

Move the discovery of windows previously setup from when the pci driver
calls set_dma_mask to an arch_initcall.

When kexecing into a kernel with dynamic dma windows allocated, we need
to find the windows early so that memory hot remove will be able to
delete the tces mapping the to be removed memory and memory hotplug add
will map the new memory into the window.  We should not wait for the
driver to be loaded and the device to be probed.  The iommu init hooks
are before kmalloc is setup, so defer to arch_initcall.

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
This page took 0.027657 seconds and 5 git commands to generate.