From: Kyung Min Park <kyung.min.park@intel.com>
To: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org
Cc: ravi.v.shankar@intel.com, kevin.tian@intel.com,
ashok.raj@intel.com, ricardo.neri@intel.com,
Kyung Min Park <kyung.min.park@intel.com>,
dwmw2@infradead.org
Subject: [PATCH 0/4] Audit Capability and Extended Capability among IOMMUs
Date: Tue, 22 Sep 2020 14:02:36 -0700 [thread overview]
Message-ID: <20200922210240.27178-1-kyung.min.park@intel.com> (raw)
Modern platforms have more than one IOMMU. Each IOMMU has its own
feature set. Some of these features must be consistent among IOMMUs.
Otherwise, these differences can lead to improper behavior in the system.
On the other hand, for some features, each IOMMU can have different
capacity values. So, different actions are required to deal with the
inconsistencies depending on the IOMMU features.
Currently, some inconsistencies are ignored by the IOMMU driver.
This patchset checks IOMMU capabilities and extended capabilities
centralizedly during boot and take different actions according to
the impacts caused by the mismatches.
For example:
1. Disable Shared Virtual Memory.
2. Use common capacity values (normally the lowest capacity value) for
all IOMMUs.
3. Report feature mismatches.
Detailed information on the IOMMU Capability / Extended Capability can
be found in Intel VT-d Specification.
Link: https://software.intel.com/sites/default/files/managed/c5/15/vt-directed-io-spec.pdf
Kyung Min Park (4):
iommu/vt-d: Disable SVM in the platform when IOMMUs have
inconsistencies
iommu/vt-d: Report out when IOMMU features have inconsistencies
iommu/vt-d: Audit IOMMUs for Interrupt Remapping features
iommu/vt-d: Scale capability to the lowest supported between the
IOMMUs
drivers/iommu/intel/Makefile | 4 +-
drivers/iommu/intel/audit.c | 193 ++++++++++++++++++++++++++++
drivers/iommu/intel/audit.h | 103 +++++++++++++++
drivers/iommu/intel/iommu.c | 12 +-
drivers/iommu/intel/irq_remapping.c | 8 ++
include/linux/intel-iommu.h | 3 +
6 files changed, 320 insertions(+), 3 deletions(-)
create mode 100644 drivers/iommu/intel/audit.c
create mode 100644 drivers/iommu/intel/audit.h
--
2.17.1
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
next reply other threads:[~2020-09-22 21:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 21:02 Kyung Min Park [this message]
2020-09-22 21:02 ` [PATCH 1/4] iommu/vt-d: Disable SVM in the platform when IOMMUs have inconsistencies Kyung Min Park
2020-09-22 21:02 ` [PATCH 2/4] iommu/vt-d: Report out when IOMMU features " Kyung Min Park
2020-09-22 21:02 ` [PATCH 3/4] iommu/vt-d: Audit IOMMUs for Interrupt Remapping features Kyung Min Park
2020-09-22 21:02 ` [PATCH 4/4] iommu/vt-d: Scale capability to the lowest supported between the IOMMUs Kyung Min Park
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=20200922210240.27178-1-kyung.min.park@intel.com \
--to=kyung.min.park@intel.com \
--cc=ashok.raj@intel.com \
--cc=dwmw2@infradead.org \
--cc=iommu@lists.linux-foundation.org \
--cc=kevin.tian@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ravi.v.shankar@intel.com \
--cc=ricardo.neri@intel.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;
as well as URLs for NNTP newsgroup(s).