Skip to content

Commit

Permalink
x86: disable IOMMUs on kernel crash
Browse files Browse the repository at this point in the history
If the IOMMUs are still enabled when the kexec kernel boots access to
the disk is not possible. This is bad for tools like kdump or anything
else which wants to use PCI devices.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Jun 15, 2009
1 parent 0975904 commit 61d047b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/x86/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <asm/cpu.h>
#include <asm/reboot.h>
#include <asm/virtext.h>
#include <asm/iommu.h>


#if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
Expand Down Expand Up @@ -103,5 +104,10 @@ void native_machine_crash_shutdown(struct pt_regs *regs)
#ifdef CONFIG_HPET_TIMER
hpet_disable();
#endif

#ifdef CONFIG_X86_64
pci_iommu_shutdown();
#endif

crash_save_cpu(regs, safe_smp_processor_id());
}

0 comments on commit 61d047b

Please sign in to comment.