Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2340875pxb; Sun, 30 Jan 2022 12:50:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGY2CDNX3JIErcGZ8Uzkk7wjyRfYdZXZVwkvb+g0AgKCjma1U+MwdsNjNyxvg4RA5I1dnr X-Received: by 2002:a17:906:7948:: with SMTP id l8mr15021312ejo.752.1643575802363; Sun, 30 Jan 2022 12:50:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643575802; cv=none; d=google.com; s=arc-20160816; b=gb/bKfp6fSQ1e0p3H/KQzZR/gxrgB1EZtSY1D7ezi2bT+LpMmAvLAvYWz+8Mx28t1J RAwu71pbegqol80/65temz+7+RbY6q2NQmXf/vxMGO8AmKk2aHtfXtdUNvNAIM+HEv6e dGccHjU2hMI0qFZPf9s8oP/JuzgCJjq8K8kM9WnEAfQjo1u44dvJGuvsVKTzT0gB2Ban 0K2KWBSgB//RfXF2Y7ETiCCp0XEVzNLElUnUkEPJoTZATy6yrsTqZT+A4/PoRrNgD6Os nP73hBlTzAvrNcTecBHypdOJw3qK43PSDqrn/XWbuTVAs6VVuYeMwKTdtJ/IWyWnFfYz Adlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Dze7wt28YPAAaCe10txAbmwJLx83+LPJCi8C4F01Z70=; b=LweKwEy+IMuAeMNZpBLh2tl1NR2RjKjDId47IrZYmMiusQnEBLzlO1yKTqYwaQbCZM EAqtGkcBv2Rbf8xbAe3nN8UffgKVZY7Fz1MbBSERLwEfuRiZ9z4amUGOwjUv2aiiWBrN xz1poVs4DpE2I0mj3PP1IKd8UB92q22TpmNGWKKmVcv29OKBVF+IieZQ1readeixHri1 uymBHu6pPg4/eKh62Ceg1djmwWcEQx4DoCoFTC47Dp5rEYxWoGxFRAI9d/pNJNfi4gsU iCMmXez3/fvJxqQ4P+H2cpySgMekkMa6YRJE/N7ErBmJDUjNtKJ/nHayP2UBtN1na51p V5iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si3164726ejs.226.2022.01.30.12.49.37; Sun, 30 Jan 2022 12:50:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347661AbiA1JjO (ORCPT + 99 others); Fri, 28 Jan 2022 04:39:14 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:37408 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235076AbiA1JjN (ORCPT ); Fri, 28 Jan 2022 04:39:13 -0500 X-UUID: e9dc301affb34158a208a53be4e13ed2-20220128 X-UUID: e9dc301affb34158a208a53be4e13ed2-20220128 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 506976823; Fri, 28 Jan 2022 17:39:09 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Fri, 28 Jan 2022 17:39:08 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 28 Jan 2022 17:39:07 +0800 Message-ID: <01cc69cdf7773962140c01fe37b12ab2c9491c25.camel@mediatek.com> Subject: Re: [PATCH 2/2] iommu/mediatek: Add mt8186 iommu support From: Yong Wu To: AngeloGioacchino Del Regno CC: Robin Murphy , Krzysztof Kozlowski , Tomasz Figa , , , , , , , Hsin-Yi Wang , , , , , , , , , Joerg Roedel , Rob Herring , "Matthias Brugger" , Will Deacon Date: Fri, 28 Jan 2022 17:39:06 +0800 In-Reply-To: References: <20220125093244.18230-1-yong.wu@mediatek.com> <20220125093244.18230-3-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-01-27 at 12:28 +0100, AngeloGioacchino Del Regno wrote: > Il 25/01/22 10:32, Yong Wu ha scritto: > > Add mt8186 iommu supports. > > > > Signed-off-by: Anan Sun > > Signed-off-by: Yong Wu > > --- > > drivers/iommu/mtk_iommu.c | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) [snip] > > static const struct mtk_iommu_plat_data mt8192_data = { > > .m4u_plat = M4U_MT8192, > > .flags = HAS_BCLK | HAS_SUB_COMM_2BITS | > > OUT_ORDER_WR_EN | > > @@ -1470,6 +1486,7 @@ static const struct of_device_id > > mtk_iommu_of_ids[] = { > > { .compatible = "mediatek,mt8167-m4u", .data = &mt8167_data}, > > { .compatible = "mediatek,mt8173-m4u", .data = &mt8173_data}, > > { .compatible = "mediatek,mt8183-m4u", .data = &mt8183_data}, > > + { .compatible = "mediatek,mt8186-iommu-mm", .data = > > &mt8186_data_mm}, > > Hello! > > Is there any particular reason why this compatible is not > "mediatek,mt8186-m4u"? There is no special reason. In the previous SoC, We only support MM IOMMU, it was called by "m4u". In the lastest SoC, We have the other types IOMMU, like for INFRA masters and APU, thus they are called "mm iommu", "infra iommu" and "apu iommu". Of course, "m4u" means "mm iommu". > > Thanks, > Angelo > > > { .compatible = "mediatek,mt8192-m4u", .data = &mt8192_data}, > > { .compatible = "mediatek,mt8195-iommu-infra", .data = > > &mt8195_data_infra}, > > { .compatible = "mediatek,mt8195-iommu-vdo", .data = > > &mt8195_data_vdo}, > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek