Skip to content

IOMMU driver for Kirin 960/970

Mauro Carvalho Chehab linux-arm-kernel linux-devicetree linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16iommu: add support for HiSilicon Kirin 960/970 iommudrivers/staging/hikey9xx/hisi_smmu.h drivers/staging/hikey9xx/hisi_smmu_lpae.c include/linux/hisi/hisi-iommu.h+1040 -00 replies
2/16iommu: hisilicon: remove default iommu_map_sg handlerdrivers/staging/hikey9xx/hisi_smmu_lpae.c+0 -420 replies
3/16iommu: hisilicon: map and unmap ops gained new argumentsdrivers/staging/hikey9xx/hisi_smmu_lpae.c+6 -50 replies
4/16iommu: hisi_smmu_lpae: rebase it to work with upstreamdrivers/staging/hikey9xx/hisi_smmu.h drivers/staging/hikey9xx/hisi_smmu_lpae.c+74 -90 replies
5/16iommu: hisi_smmu: remove linux/hisi/hisi-iommu.hdrivers/staging/hikey9xx/hisi_smmu.h drivers/staging/hikey9xx/hisi_smmu_lpae.c include/linux/hisi/hisi-iommu.h+8 -140 replies
6/16iommu: hisilicon: cleanup its code styledrivers/staging/hikey9xx/hisi_smmu.h drivers/staging/hikey9xx/hisi_smmu_lpae.c+143 -1400 replies
7/16iommu: hisi_smmu_lpae: get rid of IOMMU_SEC and IOMMU_DEVICEdrivers/staging/hikey9xx/hisi_smmu_lpae.c+15 -260 replies
8/16iommu: get rid of map/unmap tile functionsdrivers/staging/hikey9xx/hisi_smmu_lpae.c+0 -2010 replies
9/16iommu: hisi_smmu_lpae: use the right code to get domain-priv datadrivers/staging/hikey9xx/hisi_smmu.h drivers/staging/hikey9xx/hisi_smmu_lpae.c+36 -190 replies
10/16iommu: hisi_smmu_lpae: convert it to probe_devicedrivers/staging/hikey9xx/hisi_smmu_lpae.c+6 -250 replies
11/16iommu: add Hisilicon Kirin970 iommu at the building systemdrivers/staging/hikey9xx/Kconfig drivers/staging/hikey9xx/Makefile+10 -00 replies
12/16iommu: hisi_smmu_lpae: cleanup printk macrosdrivers/staging/hikey9xx/hisi_smmu.h drivers/staging/hikey9xx/hisi_smmu_lpae.c+39 -420 replies
13/16iommu: hisi_smmu_lpae: make OF compatible more standarddrivers/staging/hikey9xx/hisi_smmu_lpae.c+1 -10 replies
14/16dt: add an spec for the Kirin36x0 SMMUDocumentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml+55 -00 replies
15/16dt: hi3670-hikey970.dts: load the SMMU driver on Hikey970arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts+3 -00 replies
16/16staging: hikey9xx: add an item about the iommu driverdrivers/staging/hikey9xx/TODO+1 -00 replies

Reviews trailers per patch

1 of 16 patches has a Reviewed-by or Acked-by.

PatchSuzhuangluan
1/16R-b
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/16] IOMMU driver for Kirin 960/970

Add a driver for the Kirin 960/970 iommu.

As on the past series, this starts from the original 4.9 driver from the 96boards tree:

	https://github.com/96boards-hikey/linux/tree/hikey970-v4.9

The remaining patches add SPDX headers and make it build and run with the upstream Kernel.

Chenfeng (1):
iommu: add support for HiSilicon Kirin 960/970 iommu

Mauro Carvalho Chehab (15):
iommu: hisilicon: remove default iommu_map_sg handler
iommu: hisilicon: map and unmap ops gained new arguments
iommu: hisi_smmu_lpae: rebase it to work with upstream
iommu: hisi_smmu: remove linux/hisi/hisi-iommu.h
iommu: hisilicon: cleanup its code style
iommu: hisi_smmu_lpae: get rid of IOMMU_SEC and IOMMU_DEVICE
iommu: get rid of map/unmap tile functions
iommu: hisi_smmu_lpae: use the right code to get domain-priv data
iommu: hisi_smmu_lpae: convert it to probe_device
iommu: add Hisilicon Kirin970 iommu at the building system
iommu: hisi_smmu_lpae: cleanup printk macros
iommu: hisi_smmu_lpae: make OF compatible more standard
dt: add an spec for the Kirin36x0 SMMU
dt: hi3670-hikey970.dts: load the SMMU driver on Hikey970
staging: hikey9xx: add an item about the iommu driver

 .../iommu/hisilicon,kirin36x0-smmu.yaml       |  55 ++
 .../boot/dts/hisilicon/hi3670-hikey970.dts    |   3 +
 drivers/staging/hikey9xx/Kconfig              |   9 +
 drivers/staging/hikey9xx/Makefile             |   1 +
 drivers/staging/hikey9xx/TODO                 |   1 +
 drivers/staging/hikey9xx/hisi_smmu.h          | 196 ++++++
 drivers/staging/hikey9xx/hisi_smmu_lpae.c     | 648 ++++++++++++++++++
 7 files changed, 913 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml
 create mode 100644 drivers/staging/hikey9xx/hisi_smmu.h
 create mode 100644 drivers/staging/hikey9xx/hisi_smmu_lpae.c
Signature · 1 line
2.26.2