intel-iommu:make identity_map default for crash dump
Subsystems (3)
PATCH 1/1 intel-iommu:make identity_map default for crash dump
kdump kernel sometimes will get DMAR faults which
is caused by random in-flight dma from 1st kernel
Here make the identity_mapping as default for this case
Signed-off-by Dave Young <[email protected]>
--- drivers/iommu/intel-iommu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/iommu/intel-iommu.c +2 -1
@@ -40,6 +40,7 @@#include <linux/tboot.h> #include <linux/dmi.h> #include <linux/pci-ats.h> +#include <linux/crash_dump.h> #include <asm/cacheflush.h> #include <asm/iommu.h>
@@ -2481,7 +2482,7 @@ static int __init init_dmars(void) } } -if (iommu_pass_through) +if (iommu_pass_through ||is_kdump_kernel ()) iommu_identity_mapping |=IDENTMAP_ALL ;#ifdef CONFIG_DMAR_BROKEN_GFX_WA
Signature · 7 lines
1.7.4.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 4 lines · Dave Young
kdump kernel sometimes will get DMAR faults which
is caused by random in-flight dma from 1st kernelHere make the
identity_mappingas default for this case
This seems reasonable to me. Although I am curious to know what the side effects of using IDENTMAP_ALL might be.