]> git.karo-electronics.de Git - mv-sheeva.git/commit
amd-iommu: flush domain tlb when attaching a new device
authorChris Wright <chrisw@sous-sol.org>
Mon, 15 Jun 2009 13:42:00 +0000 (15:42 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 15 Jun 2009 13:42:00 +0000 (15:42 +0200)
commit42a49f965a8d24ed92af04f5b564d63f17fd9c56
tree0c09b8dfe5f541b942c4196bbe6ddd8e431dd8da
parent61d047be99757fd9b0af900d7abce9a13a337488
amd-iommu: flush domain tlb when attaching a new device

When kexec'ing to a new kernel (for example, when crashing and launching
a kdump session), the AMD IOMMU may have cached translations.  The kexec'd
kernel, during initialization, will invalidate the IOMMU device table
entries, but not the domain translations.  These stale entries can cause
a device's DMA to fail, makes it rough to write a dump to disk when the
disk controller can't DMA ;-)

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c