Skip to content

iommu/ipmmu-vmsa: r8a7795 support V5

Magnus Damm linux-iommu linux-renesas-soc lkml 5 versions – Applied

Status from this message: Applied to iommu/ipmmu-vmsa for v4.15. Thanks,

Get series with b4
b4 am 150815695455.32763.1660214306749693609.sendpatchset@little-apple

Versions newest first · linked by author and title

  1. v5 Latest9 patches 1 replyApplied
  2. v49 patches 2 repliesSuperseded
  3. v39 patches 12 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v211 patches4 repliesSuperseded
v110 patches1 replySuperseded

Changes in v5 from the cover letter

- Rebased on top of [PATCH v2 00/05] iommu/ipmmu-vmsa: 32-bit ARM update V2
- Reworked root device handling to make use of driver_for_each_device()
- Added deferred probing to make sure root device always is present

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/9iommu/ipmmu-vmsa: Introduce features, break out aliasdrivers/iommu/ipmmu-vmsa.c+24 -70 replies
2/9iommu/ipmmu-vmsa: Add optional root device featuredrivers/iommu/ipmmu-vmsa.c+73 -170 replies
3/9iommu/ipmmu-vmsa: Enable multi context supportdrivers/iommu/ipmmu-vmsa.c+22 -80 replies
4/9iommu/ipmmu-vmsa: Make use of IOMMU_OF_DECLARE()drivers/iommu/ipmmu-vmsa.c+41 -90 replies
5/9iommu/ipmmu-vmsa: IPMMU device is 40-bit bus masterdrivers/iommu/ipmmu-vmsa.c+1 -00 replies
6/9iommu/ipmmu-vmsa: Write IMCTR twicedrivers/iommu/ipmmu-vmsa.c+35 -210 replies
7/9iommu/ipmmu-vmsa: Make IMBUSCTR setup optionaldrivers/iommu/ipmmu-vmsa.c+6 -30 replies
8/9iommu/ipmmu-vmsa: Allow two bit SL0drivers/iommu/ipmmu-vmsa.c+13 -10 replies
9/9iommu/ipmmu-vmsa: Hook up r8a7795 DT matching codedrivers/iommu/ipmmu-vmsa.c+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 00/09] iommu/ipmmu-vmsa: r8a7795 support V5

iommu/ipmmu-vmsa: r8a7795 support V5

[PATCH v5 01/09] iommu/ipmmu-vmsa: Introduce features, break out alias [PATCH v5 02/09] iommu/ipmmu-vmsa: Add optional root device feature [PATCH v5 03/09] iommu/ipmmu-vmsa: Enable multi context support [PATCH v5 04/09] iommu/ipmmu-vmsa: Make use of IOMMU_OF_DECLARE() [PATCH v5 05/09] iommu/ipmmu-vmsa: IPMMU device is 40-bit bus master [PATCH v5 06/09] iommu/ipmmu-vmsa: Write IMCTR twice
[PATCH v5 07/09] iommu/ipmmu-vmsa: Make IMBUSCTR setup optional [PATCH v5 08/09] iommu/ipmmu-vmsa: Allow two bit SL0
[PATCH v5 09/09] iommu/ipmmu-vmsa: Hook up r8a7795 DT matching code

This is V5 of r8a7795 IPMMU driver where the series has been rebased and reworked to fit on next-20171013 that includes:
[PATCH v2 00/05] iommu/ipmmu-vmsa: 32-bit ARM update V2 [PATCH] iommu/ipmmu-vmsa: Use iommu_device_sysfs_add()/remove()

The major feature change is in patch 2/9 that now gets by without using a local list of registered IPMMU devices and instead relies on driver_for_each_device(). Thanks to Robin Murphy for his support.

The DT binding for r8a7795 has been accepted for upstream merge and this series implements support following such format:

d4e42e7 iommu/ipmmu-vmsa: Add r8a7795 DT binding

The r8a7795 IPMMU is almost register compatible with earlier devices like r8a7790-r8a7794, however some bitfields have been shifted slightly. On a grander scale topology has been added and interrupts have been reworked. So now there are several "cache" IPMMU units without interrupt that somehow communicate with IPMMU-MM that is the only instance that supports interrupts. The code refers to IPMMU-MM as a "root" device and the other ones as "leaf" nodes.

Changes since V4:
- Rebased on top of [PATCH v2 00/05] iommu/ipmmu-vmsa: 32-bit ARM update V2
- Reworked root device handling to make use of driver_for_each_device()
- Added deferred probing to make sure root device always is present

---

Developed on top of next-20171013
Also applies to renesas-drivers-2017-10-03-v4.14-rc3 Tested on top of renesas-drivers on r8a7796-m3ulcb using /dev/ttySC1
- [PATCH v4 0/3] iommu/ipmmu-vmsa: r8a7796 support V4
- local /dev/ttySC1 enablement for testing purpose
- local DTS changes to hook up SYS-DMAC and IPMMU DS0, DS1 and MM
- local whitelist code to enable "e7310000.dma-controller"

 drivers/iommu/ipmmu-vmsa.c |  310 ++++++++++++++++++++++++++++++++++----------
 1 file changed, 244 insertions(+), 66 deletions(-)