From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABF4EC00140 for ; Mon, 1 Aug 2022 02:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HC5S2CStkWEKTclA7hBKhB+JG5xR1enmKLcANZWbptI=; b=RvC1XGdOBmb2cG N4Tvdm1QKnvgoHtNAeaBXI0o8ccqPe2X3jxNXgaI/yHMBhytyfShE/LFdPoNGq36ZkyfWHQYJS1ib kg+qr9RzCZs1ZHDZy0Og1+OqEUQr+Bjnrh/W5FYfFjw5n43/nGPVtGZUgfa+3i0e3FaD2MF/GDJ5+ fphIWQDaxlOWVNfZ1EaZECWF0Q3tZfJgj1xCHEfyV2/OOSG77MCgbx4lNYEYk+zMIEpktjb7Pst1X /5AguxOPuc381NR7fo9zLF/xtDKYG2++0iyR1YRaq1quk+XruOf4oIgWK545b3OFTQcfaVOahxlII MJqkjSN6wlABi5hmK3lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oILBo-000kw3-85; Mon, 01 Aug 2022 02:29:52 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oILBh-000ksP-Ek; Mon, 01 Aug 2022 02:29:46 +0000 X-UUID: 37de6ef1390e4ed2be8da3e2c80413db-20220731 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:e8295086-73f0-4c7c-8391-27dcc1f1cdcd,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:0f94e32,CLOUDID:eed5e6cf-a6cf-4fb6-be1b-c60094821ca2,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:nil,BEC:nil,COL:0 X-UUID: 37de6ef1390e4ed2be8da3e2c80413db-20220731 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1551527849; Sun, 31 Jul 2022 19:29:37 -0700 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 1 Aug 2022 10:19:02 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 1 Aug 2022 10:18:56 +0800 From: Chengci.Xu To: Yong Wu , Krzysztof Kozlowski , Rob Herring , "Matthias Brugger" CC: , , , , , , , , Chengci.Xu Subject: [PATCH v4 0/4] MT8188 SMI SUPPORT Date: Mon, 1 Aug 2022 10:18:47 +0800 Message-ID: <20220801021851.7169-1-chengci.xu@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220731_192945_532303_6DC29B14 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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