From: Dave Young <dyoung@redhat.com>
To: kexec@lists.infradead.org, iommu@lists.linux-foundation.org,
vgoyal@redhat.com, linux-kernel@vger.kernel.org, luyu@redhat.com
Subject: [PATCH] intel-iommu:make identity_map default for crash dump
Date: Fri, 21 Oct 2011 20:31:54 +0800 [thread overview]
Message-ID: <20111021123154.GA5821@darkstar.nay.redhat.com> (raw)
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 <dyoung@redhat.com>
---
drivers/iommu/intel-iommu.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index c621c98..8ac3895 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -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
--
1.7.4.4
next reply other threads:[~2011-10-21 12:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-21 12:31 Dave Young [this message]
2011-10-22 1:08 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111021123154.GA5821@darkstar.nay.redhat.com \
--to=dyoung@redhat.com \
--cc=iommu@lists.linux-foundation.org \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luyu@redhat.com \
--cc=vgoyal@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®