• Nishanth Aravamudan's avatar
    powerpc: Fix kexec with dynamic dma windows · 76730334
    Nishanth Aravamudan authored
    When we kexec we look for a particular property added by the first
    kernel, "linux,direct64-ddr-window-info", per-device where we already
    have set up dynamic dma windows. The current code, though, wasn't
    initializing the size of this property and thus when we kexec'd, we
    would find the property but read uninitialized memory resulting in
    garbage ddw values for the kexec'd kernel and panics. Fix this by
    setting the size at enable_ddw() time and ensuring that the size of the
    found property is valid at dupe_ddw_if_kexec() time.
    Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    76730334
iommu.c 32.4 KB