From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH 00/03] USB Host 2.0 and IOMMU trial on r8a7790 Lager
Date: Tue, 16 Sep 2014 11:20:01 +0000 [thread overview]
Message-ID: <20140916112001.14889.62059.sendpatchset@w520> (raw)
USB Host 2.0 and IOMMU trial on r8a7790 Lager
[PATCH 01/03] PCI: rcar: Use notifier to hook up IOMMU groups
[PATCH 02/03] iommu/ipmmu-vmsa: Create mapping via group notifier
[PATCH 03/03] ARM: shmobile: lager-reference: IOMMUSY1 and USB tests
This patch series modifies the R-Car Gen2 PCI driver and the IPMMU-VMSA
driver to coexist and assign one IOMMU group per PCI host controller.
The PCI host controllers and the IOMMU device are glued together via
prototype code that adds the IOMMU as a platform device and ties in
the 3 PCI host controllers to the IPMMUSY1 device. Patch 3/3 is not
intended for upstream merge, however patch 1/3 and 2/3 may be useful
with or without further fixes. Comments are very welcome.
The code in this series has been lightly tested on r8a7790 Lager using
USB1 on the CN5 connector. A USB smart card reader has been hot plugged
and notifications and IOMMU map/unmap operations have been verified.
IOMMU groups have been used to separate the PCI host controllers into
groups of devices that need to use the same UTLB number. Perhaps it
would make sense to also use per-device ASIDs somehow, but this needs
further discussions.
After bootup the OHCI and EHCI devices associated with the IOMMU groups
can be located like this:
# cd /sys/kernel/iommu_groups/
# ls */*
2/devices:
0000:02:02.0 0000:02:01.0 ee0d0000.pci
1/devices:
ee0b0000.pci 0000:01:02.0 0000:01:01.0
0/devices:
ee090000.pci 0000:00:02.0 0000:00:01.0
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---
Built on top of renesas-devel-20140911-v3.17-rc4
arch/arm/mach-shmobile/board-lager-reference.c | 30 +++++
drivers/iommu/ipmmu-vmsa.c | 121 ++++++++++++++----------
drivers/pci/host/pci-rcar-gen2.c | 52 ++++++++++
3 files changed, 157 insertions(+), 46 deletions(-)
next reply other threads:[~2014-09-16 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-16 11:20 Magnus Damm [this message]
2014-09-16 12:03 ` [PATCH 00/03] USB Host 2.0 and IOMMU trial on r8a7790 Lager Laurent Pinchart
2014-09-16 14:51 ` Magnus Damm
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=20140916112001.14889.62059.sendpatchset@w520 \
--to=magnus.damm@gmail.com \
--cc=linux-sh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.