diff options
author | Joerg Roedel <jroedel@suse.de> | 2017-06-15 10:36:22 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-06-16 10:21:05 +0200 |
commit | 54bd63570484167cb13edf81e31fff107b879981 (patch) | |
tree | 28e5fe4889ba7e939a9f78c51c0b50d73a6e9092 /drivers/iommu/amd_iommu.c | |
parent | iommu/amd: Remove queue_release() function (diff) | |
download | linux-54bd63570484167cb13edf81e31fff107b879981.tar.xz linux-54bd63570484167cb13edf81e31fff107b879981.zip |
iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel
When booting into a kdump kernel, suppress IO_PAGE_FAULTs by
default for all devices. But allow the faults again when a
domain is assigned to a device.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 6498f5baa7ea..95ee360a5199 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -2078,7 +2078,8 @@ static void set_dte_entry(u16 devid, struct protection_domain *domain, bool ats) flags |= tmp; } - flags &= ~(0xffffUL); + + flags &= ~(DTE_FLAG_SA | 0xffffULL); flags |= domain->id; amd_iommu_dev_table[devid].data[1] = flags; |