From: Chengci.Xu <chengci.xu@mediatek.com>
To: Yong Wu <yong.wu@mediatek.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>
Cc: <linux-mediatek@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
<yi.kuo@mediatek.com>, <anthony.huang@mediatek.com>,
<wendy-st.lin@mediatek.com>, Chengci.Xu <chengci.xu@mediatek.com>
Subject: [PATCH v4 0/4] MT8188 SMI SUPPORT
Date: Mon, 1 Aug 2022 10:18:47 +0800 [thread overview]
Message-ID: <20220801021851.7169-1-chengci.xu@mediatek.com> (raw)
This patchset adds MT8188 SMI support.
MT8188, similar to mt8195, there are two SMI-common HW, one is for
VDO(video output), the other is for VPP(video processing pipe). They
connect with different SMI-larbs, then some setting(bus_sel) is
different.
The connection between SMI and MM IOMMU could be something like this:
IOMMU(VDO) IOMMU(VPP)
| |
SMI_COMMON_VDO SMI_COMMON_VPP
---------------- ----------------
| | ... | | ...
larb0 larb2 ... larb1 larb3 ...
Another change is that the register about enable/disable iommu is in
security world. We add some SMC command to set it. And we add a return
value for configure port function because SMC call may fail.
changes since v4:
- base on tag: next-20220728.
- new patch[2/4] to add return value for all config port function.
- rename enum IOMMU_ATF_CMD to a lower case: iommu_atf_cmd.
- rename MTK_SMI_FLAG_SEC_REG to MTK_SMI_FLAG_CFG_PORT_SEC_CTL.
- rename IOMMU_ATF_CMD_COUNT to IOMMU_ATF_CMD_MAX.
- add some comment for why still need write SMI_LARB_NONSEC_CON.
- return an error(-EINVAL) when enable iommu failed by SMC call.
- put enum iommu_atf_cmd inside the macro CONFIG_MTK_SMI.
changes since v3:
- base on tag: next-20220726.
- No code change just remove the change-id in patch [2/3].
changes since v2:
- base on tag: next-20220722.
- Move some included header to the source file that use them.
changes since v1:
- base on tag: next-20220720.
- adds MT8188 SMI support.
Chengci.Xu (4):
dt-bindings: memory: mediatek: Add mt8188 smi binding
memory: mtk-smi: Add return value for configure port function
memory: mtk-smi: Add enable IOMMU SMC command for MM master
memory: mtk-smi: mt8188: Add SMI Support
.../mediatek,smi-common.yaml | 4 +-
.../memory-controllers/mediatek,smi-larb.yaml | 3 +
drivers/memory/mtk-smi.c | 108 +++++++++++++++++-
include/linux/soc/mediatek/mtk_sip_svc.h | 3 +
include/soc/mediatek/smi.h | 5 +
5 files changed, 116 insertions(+), 7 deletions(-)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-08-01 2:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-01 2:18 Chengci.Xu [this message]
2022-08-01 2:18 ` [PATCH v4 1/4] dt-bindings: memory: mediatek: Add mt8188 smi binding Chengci.Xu
2022-08-01 2:18 ` [PATCH v4 2/4] memory: mtk-smi: Add return value for configure port function Chengci.Xu
2022-08-09 5:58 ` Yong Wu
2022-08-01 2:18 ` [PATCH v4 3/4] memory: mtk-smi: Add enable IOMMU SMC command for MM master Chengci.Xu
2022-08-09 5:58 ` Yong Wu
2022-08-17 12:43 ` Chengci.Xu
2022-08-01 2:18 ` [PATCH v4 4/4] memory: mtk-smi: mt8188: Add SMI Support Chengci.Xu
2022-08-09 5:58 ` 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=20220801021851.7169-1-chengci.xu@mediatek.com \
--to=chengci.xu@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=anthony.huang@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@linaro.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+dt@kernel.org \
--cc=wendy-st.lin@mediatek.com \
--cc=yi.kuo@mediatek.com \
--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).