[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250616025628.25454-1-xueqi.zhang@mediatek.com>
Date: Mon, 16 Jun 2025 10:56:06 +0800
From: Xueqi Zhang <xueqi.zhang@...iatek.com>
To: Yong Wu <yong.wu@...iatek.com>, Will Deacon <will@...nel.org>, Robin
Murphy <robin.murphy@....com>, Joerg Roedel <joro@...tes.org>, Rob Herring
<robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
CC: <Project_Global_Chrome_Upstream_Group@...iatek.com>, Ning li
<ning.li@...iatek.com>, <linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<devicetree@...r.kernel.org>, <iommu@...ts.linux.dev>, Xueqi Zhang
<xueqi.zhang@...iatek.com>
Subject: [RFC PATCH 0/8] Add mt8196 SMMU support
This patchset add mt8196 SMMU support.
1. Mediatek SMMU interrupt is low level active rather than the
standard edge. Process Mediatek SMMU wrapper interrupt and dump
detailed information when a translation fault occurs.
2. In some projects, Mediatek also have EL2 driver, so put the pm
operation in TFA(EL3), then all the kernel and EL2 could control
the pm. Thus implement rpm get/put function which send smc call to
TFA to get/put SMMU power.
Xueqi Zhang (8):
dt-bindings: iommu: mediatek: Add mt8196 support
iommu/arm-smmu-v3: Add SMMU implementation
iommu/arm-smmu-v3: Add implementation for MT8196 MM SMMU
iommu/arm-smmu-v3: Add implementation for MT8196 APU SMMU
iommu/arm-smmu-v3: Add IRQ handle for smmu impl
iommu/arm-smmu-v3: mediatek: Add wrapper handle for IRQ
iommu/arm-smmu-v3: Invoke rpm operation before accessing the hw
iommu/arm-smmu-v3: mediatek: Implement rpm get/put function
.../bindings/iommu/arm,smmu-v3.yaml | 24 +-
drivers/iommu/arm/Kconfig | 7 +
drivers/iommu/arm/arm-smmu-v3/Makefile | 3 +-
.../iommu/arm/arm-smmu-v3/arm-smmu-v3-impl.c | 16 +
.../arm/arm-smmu-v3/arm-smmu-v3-mediatek.c | 536 ++++++++++++++++++
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 96 +++-
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 14 +
7 files changed, 691 insertions(+), 5 deletions(-)
create mode 100644 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-impl.c
create mode 100644 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-mediatek.c
--
2.46.0
Powered by blists - more mailing lists