From: Krishna Reddy <vdumpa@nvidia.com>
To: will.deacon@arm.com, robin.murphy@arm.com, joro@8bytes.org
Cc: linux-arm-kernel@lists.infradead.org,
iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org,
linux-tegra@vger.kernel.org, treding@nvidia.com, yhsu@nvidia.com,
snikam@nvidia.com, praithatha@nvidia.com, talho@nvidia.com,
avanbrunt@nvidia.com, thomasz@nvidia.com, olof@lixom.net,
jtukkinen@nvidia.com, mperttunen@nvidia.com,
Krishna Reddy <vdumpa@nvidia.com>
Subject: [PATCH v3 0/5] Add Tegra194 Dual ARM SMMU driver
Date: Mon, 3 Dec 2018 17:36:48 -0800 [thread overview]
Message-ID: <1543887414-18209-1-git-send-email-vdumpa@nvidia.com> (raw)
NVIDIA's Xavier (Tegra194) SOC has two ARM SMMU(MMU-500) instances, which
are used as one SMMU device in HW. The IOVA accesses from HW devices are
interleaved across these two SMMU instances and need to be programmed identical.
The existing ARM SMMU driver can't be used in its current form for programming
the two SMMU instances identically. But, Most of the code can be shared between
ARM SMMU driver and Tegra194 SMMU driver. To allow sharing the code, Created
a libray based on the current ARM SMMU driver and added suppport to program
multiple ARM SMMU Instances identically. Upated Current ARM SMMU driver and
Tegra194 SMMU driver to use the library functions.
Please review the patches and provide feedback.
Changes in v2:
* Added CONFIG_ARM_SMMU_TEGRA to protect Tegra194 SMMU driver compilation
* Enabled CONFIG_ARM_SMMU_TEGRA in defconfig
* Added SMMU nodes in Tegra194 device tree
Changes in v3:
* Created library for ARM SMMU based on arm-smmu.c
* Added support to program multiple ARM SMMU instances identically
* Updated arm-smmu.c/tegra194-smmu.c to use ARM SMMU library functions
Krishna Reddy (6):
iommu/arm-smmu: create library for ARM SMMU
iommu/arm-smmu: Add support to program multiple ARM SMMU's identically
iommu/arm-smmu: update arm-smmu.c to use ARM SMMU library
iommu/tegra194_smmu: Add Tegra194 SMMU driver
arm64: defconfig: Enable ARM_SMMU_TEGRA
arm64: tegra: Add SMMU nodes to Tegra194 device tree
arch/arm64/boot/dts/nvidia/tegra194.dtsi | 148 +++
arch/arm64/configs/defconfig | 1 +
drivers/iommu/Kconfig | 11 +
drivers/iommu/Makefile | 2 +
drivers/iommu/arm-smmu.c | 1709 +----------------------------
drivers/iommu/lib-arm-smmu.c | 1768 ++++++++++++++++++++++++++++++
drivers/iommu/lib-arm-smmu.h | 161 +++
drivers/iommu/tegra194-smmu.c | 394 +++++++
8 files changed, 2496 insertions(+), 1698 deletions(-)
create mode 100644 drivers/iommu/lib-arm-smmu.c
create mode 100644 drivers/iommu/lib-arm-smmu.h
create mode 100644 drivers/iommu/tegra194-smmu.c
--
2.1.4
next reply other threads:[~2018-12-04 1:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 1:36 Krishna Reddy [this message]
2018-12-04 1:36 ` [PATCH v3 1/6] iommu/arm-smmu: create library for ARM SMMU Krishna Reddy
2018-12-04 1:36 ` [PATCH v3 2/6] iommu/arm-smmu: Add support to program multiple ARM SMMU's identically Krishna Reddy
2018-12-19 18:07 ` Robin Murphy
[not found] ` <5e1b242c-d2d5-9478-6726-2921bea9f3dc-5wv7dgnIgG8@public.gmane.org>
2018-12-19 20:36 ` Krishna Reddy
2018-12-04 1:36 ` [PATCH v3 3/6] iommu/arm-smmu: update arm-smmu.c to use ARM SMMU library Krishna Reddy
2018-12-04 1:36 ` [PATCH v3 4/6] iommu/tegra194_smmu: Add Tegra194 SMMU driver Krishna Reddy
2018-12-04 1:36 ` [PATCH v3 5/6] arm64: defconfig: Enable ARM_SMMU_TEGRA Krishna Reddy
2018-12-04 1:36 ` [PATCH v3 6/6] arm64: tegra: Add SMMU nodes to Tegra194 device tree Krishna Reddy
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=1543887414-18209-1-git-send-email-vdumpa@nvidia.com \
--to=vdumpa@nvidia.com \
--cc=avanbrunt@nvidia.com \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=jtukkinen@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mperttunen@nvidia.com \
--cc=olof@lixom.net \
--cc=praithatha@nvidia.com \
--cc=robin.murphy@arm.com \
--cc=snikam@nvidia.com \
--cc=talho@nvidia.com \
--cc=thomasz@nvidia.com \
--cc=treding@nvidia.com \
--cc=will.deacon@arm.com \
--cc=yhsu@nvidia.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