From: Joerg Roedel <joro@8bytes.org>
To: iommu@lists.linux-foundation.org
Cc: linux-kernel@vger.kernel.org, Joerg Roedel <joro@8bytes.org>
Subject: [PATCH 0/4] AMD IOMMU: Assign/de-assign complete alias groups
Date: Tue, 26 Aug 2014 11:36:10 +0200 [thread overview]
Message-ID: <1409045774-32000-1-git-send-email-joro@8bytes.org> (raw)
Hi,
Here is a patch-set to fix the following issue:
When a device is added to an iommu domain, the current amd
iommu code will add the device itself and the device it
aliases to to the domain. But this alias relation is
uni-directional.
If, for example, device 03:00.1 aliases to 03:00.0 and is
added to a domain, the iommu code will add both devices.
But if 03.00.0 is added, 03.00.1 will be not.
This is a problem with some broken devices that appear with
function 0 on the bus but use function 1 as the request-id.
These devices will not work with the current implementation.
This patch-set changes the behavior of the code by
introducing alias-groups (similar to iommu-groups, but
support non-existent pci devices) and always
assigns/de-assigns complete alias groups to/from a domain.
This makes the alias relation bi-directional and fixes the
issues with broken devices.
Thanks,
Joerg
Joerg Roedel (4):
iommu/amd: Move struct iommu_dev_data to amd_iommu.c
iommu/amd: Keep a list of devices in an alias group
iommu/amd: Attach and detach complete alias group
iommu/amd: Remove device binding reference count
drivers/iommu/amd_iommu.c | 74 +++++++++++++++++++++++++----------------
drivers/iommu/amd_iommu_types.h | 21 ------------
2 files changed, 46 insertions(+), 49 deletions(-)
--
1.9.1
next reply other threads:[~2014-08-26 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 9:36 Joerg Roedel [this message]
2014-08-26 9:36 ` [PATCH 1/4] iommu/amd: Move struct iommu_dev_data to amd_iommu.c Joerg Roedel
2014-08-26 9:36 ` [PATCH 2/4] iommu/amd: Keep a list of devices in an alias group Joerg Roedel
2014-08-26 9:36 ` [PATCH 3/4] iommu/amd: Attach and detach complete " Joerg Roedel
2014-08-26 9:36 ` [PATCH 4/4] iommu/amd: Remove device binding reference count Joerg Roedel
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=1409045774-32000-1-git-send-email-joro@8bytes.org \
--to=joro@8bytes.org \
--cc=iommu@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/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).