From: Zhengnan Chen <zhengnan.chen@mediatek.com>
To: Yong Wu <yong.wu@mediatek.com>, Joerg Roedel <joro@8bytes.org>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: <iommu@lists.linux.dev>, <linux-mediatek@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
Zhengnan Chen <zhengnan.chen@mediatek.com>
Subject: [PATCH v3 0/5] MT8189 IOMMU SUPPORT
Date: Wed, 15 Oct 2025 20:55:12 +0800 [thread overview]
Message-ID: <20251015125532.9041-1-zhengnan.chen@mediatek.com> (raw)
Based on tag: next-20251014, linux-next/master
This patchset adds MT8189 iommu support.
MT8189 have 3 IOMMU HWs. 1 IOMMU HW is for multimedia,
1 IOMMU HW is for apu(AI processer unit),
and 2 IOMMU HW is for infra-master, like PCIe/USB.
About the INFRA IOMMU, it don't have larbs, the master connects the
iommu directly. It use a independent pgtable, and these two
INFRA IOMMU HW share a pgtable.
In mt8189, the display connect with larb1 and larb2 at the same time.
Thus, we should add link between disp-dev with these two larbs.
The software solutions can be summarized as follows:
1. Add iommu support for mt8189
2. Add a flag DL_WITH_MULTI_LARB to support the HW which connect with
multiple larbs.
---
Changes in v3:
- Exclude the mediatek,larbs attribute of apu iommu in mediatek,iommu.yaml
- Link to v2:
https://lore.kernel.org/all/20251015032509.5057-1-zhengnan.chen@mediatek.com/
Changes in v2:
- Split mt8189 iommu support patch into three patches, namely APU IOMMU,
INFRA IOMMU and MM IOMMU
- Disable bank 4 of MM IOMMU
- Link to v1:
https://lore.kernel.org/all/20250807095756.11840-1-zhengnan.chen@mediatek.com/
---
Zhengnan Chen (5):
dt-bindings: mediatek: mt8189: Add bindings for MM & APU & INFRA IOMMU
iommu/mediatek: Add a flag DL_WITH_MULTI_LARB
iommu/mediatek: mt8189: Add APU IOMMUs support
iommu/mediatek: mt8189: Add INFRA IOMMUs support
iommu/mediatek: mt8189: Add MM IOMMUs support
.../bindings/iommu/mediatek,iommu.yaml | 8 +
drivers/iommu/mtk_iommu.c | 132 +++++++-
.../memory/mediatek,mt8189-memory-port.h | 283 ++++++++++++++++++
3 files changed, 410 insertions(+), 13 deletions(-)
create mode 100644 include/dt-bindings/memory/mediatek,mt8189-memory-port.h
--
2.46.0
next reply other threads:[~2025-10-15 12:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 12:55 Zhengnan Chen [this message]
2025-10-15 12:55 ` [PATCH v3 1/5] dt-bindings: mediatek: mt8189: Add bindings for MM & APU & INFRA IOMMU Zhengnan Chen
2025-10-20 6:57 ` Krzysztof Kozlowski
2025-10-15 12:55 ` [PATCH v3 2/5] iommu/mediatek: Add a flag DL_WITH_MULTI_LARB Zhengnan Chen
2025-10-15 12:55 ` [PATCH v3 3/5] iommu/mediatek: mt8189: Add APU IOMMUs support Zhengnan Chen
2025-10-18 2:28 ` Yong Wu (吴勇)
2025-10-18 13:04 ` Zhengnan Chen (陈征南)
2025-10-15 12:55 ` [PATCH v3 4/5] iommu/mediatek: mt8189: Add INFRA " Zhengnan Chen
2025-10-18 2:28 ` Yong Wu (吴勇)
2025-10-15 12:55 ` [PATCH v3 5/5] iommu/mediatek: mt8189: Add MM " Zhengnan Chen
2025-10-18 2:28 ` Yong Wu (吴勇)
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=20251015125532.9041-1-zhengnan.chen@mediatek.com \
--to=zhengnan.chen@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
--cc=yong.wu@mediatek.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;
as well as URLs for NNTP newsgroup(s).