]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/arm-smmu-v3: Don't disable SMMU in kdump kernel
authorWill Deacon <will.deacon@arm.com>
Tue, 23 Apr 2019 10:59:36 +0000 (11:59 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 23 Apr 2019 11:23:15 +0000 (12:23 +0100)
commit3f54c447df34ff9efac7809a4a80fd3208efc619
tree451b72a5be9c0ddc96d6de375709e7ae2f88e616
parentb2fc9b4b7ff4e6d237b0118e98573c9153363ecd
iommu/arm-smmu-v3: Don't disable SMMU in kdump kernel

Disabling the SMMU when probing from within a kdump kernel so that all
incoming transactions are terminated can prevent the core of the crashed
kernel from being transferred off the machine if all I/O devices are
behind the SMMU.

Instead, continue to probe the SMMU after it is disabled so that we can
reinitialise it entirely and re-attach the DMA masters as they are reset.
Since the kdump kernel may not have drivers for all of the active DMA
masters, we suppress fault reporting to avoid spamming the console and
swamping the IRQ threads.

Reported-by: "Leizhen (ThunderTown)" <thunder.leizhen@huawei.com>
Tested-by: "Leizhen (ThunderTown)" <thunder.leizhen@huawei.com>
Tested-by: Bhupesh Sharma <bhsharma@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c