Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp657681pxb; Tue, 1 Feb 2022 07:51:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuwNKOr7taggo4k51pCjRKdmfUByjudFoDxyWQbWOKS4OWHgBA93cGHQ+0hHYMwV0vQDLy X-Received: by 2002:a17:90b:181:: with SMTP id t1mr2982457pjs.240.1643730697439; Tue, 01 Feb 2022 07:51:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643730697; cv=none; d=google.com; s=arc-20160816; b=vkwLhmOLzP8gCQ2THssR8AezEborSlVHsc19pYy+pNd0fbL3Jj5jObSQGsUiGBS4Ua yLzChiOrnb4mWD2wcTaZuwhoFGjjpi/dWlRlXDXCjYkNpk/yqVdKsa3qSlWpI/aLClqW srDq3AXfEfIdEorXcmgNH4yta0XCqxgCybA2Xd3kZK+ufqTRxt5zVOhzLSs0GQzKoHm4 cpb30M5UfQH2AyoOrelRB84INraMVVQTauQrmpSvX0GMn1ph3ctFQH9xAteA+yv6soBi zNFW2yfgOiW5gZ/A1QlOPOnvzF/J5nV8CbEMXcsNfDX0XV/alumeb/nrE5Kulg9nle3I OFEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qHr4WBI7ogALOUtazLLnVkZlwEHueCyvAPyIgxwQwy0=; b=oqmnF9VPJpwGNvXSJQd+Ps5Cppyf47aXrtkRzPsieWMPKvYfgjZhlWzD19dxmsOnJS 3Cn1ib0JYl6jqZDyQ6QNZKP3UJ796/V3EM3FplxzLAvF95u2BMkVXO1DPDuyaBANlZkd LpdlLjWXc4WOZJzveKKX3eJiuCZ14BC1spN7Q+h23t3aNIbhSkB+SoLtgfh/EY7UE1Gk YbLFKtBqFE3skIjQhIOmacmgLmdIfIbAeS7/VFrg4/i6cSeiSm+1+mdmVMQBjtPi/8/X KfuXJslbuZdc6fWHgaGGJUOhNDK87435/lWhFUC43anuB+bzwJcFMpTUGr16oTuTFIi9 3rQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=G+n3Skia; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si201647pgr.362.2022.02.01.07.51.24; Tue, 01 Feb 2022 07:51:37 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=G+n3Skia; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbiAaJZa (ORCPT + 99 others); Mon, 31 Jan 2022 04:25:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238664AbiAaJZS (ORCPT ); Mon, 31 Jan 2022 04:25:18 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5319C061714; Mon, 31 Jan 2022 01:25:17 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 9E96B1F42DBC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643621116; bh=fbIVeyjQyhAhoLY74piWBq3+1URHLKGzFfERXylZibQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=G+n3SkiadJcTl8Uqq2gHU6UPyYTCJCZe7c+k6nTg+Y+oZCIgkdqmSAHWpY8W0EiF6 pwJ3msh30uXexOLmgW47/hr852Sm3Vw4+/yofQhItYYCZrnECur6u/fmN6PaGZwCHQ 8eEauqSR4Pnd4VMg1PS3+j86GNhxWxjb9HSawRcZGw+YjGmMEEOO8Fkt9nORMLDVK6 46CeNecPN4m3tA8FfYAuf0mf70jC0f4ouz92sU4Tgp4Da4UAPXpbijXvjDyq2ju9Q5 mzWXxm5QVDoAioUeUE/hA3KfUBIQxowARZVsfux8Yqbz7P6kpN7cvAgYFEQF713KJ3 e9qABAggpKHAQ== Message-ID: <0e430d1e-ee25-1b3d-4a2c-8641db255adb@collabora.com> Date: Mon, 31 Jan 2022 10:25:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 2/2] iommu/mediatek: Add mt8186 iommu support Content-Language: en-US To: Yong Wu Cc: Robin Murphy , Krzysztof Kozlowski , Tomasz Figa , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, Hsin-Yi Wang , youlin.pei@mediatek.com, anan.sun@mediatek.com, xueqi.zhang@mediatek.com, yen-chang.chen@mediatek.com, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, libo.kang@mediatek.com, chengci.xu@mediatek.com, Joerg Roedel , Rob Herring , Matthias Brugger , Will Deacon References: <20220125093244.18230-1-yong.wu@mediatek.com> <20220125093244.18230-3-yong.wu@mediatek.com> <01cc69cdf7773962140c01fe37b12ab2c9491c25.camel@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <01cc69cdf7773962140c01fe37b12ab2c9491c25.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 28/01/22 10:39, Yong Wu ha scritto: > 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". > I suggest, at this point, to change it to "mediatek,mt8186-m4u" for naming consistency with the other bindings and to avoid any kind of confusion. Thank you! >> >> 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 >