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 X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C22AC4338F for ; Tue, 17 Aug 2021 21:45:03 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BFA316102A for ; Tue, 17 Aug 2021 21:45:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BFA316102A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8C04660635; Tue, 17 Aug 2021 21:45:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fZyBrGa-dlrd; Tue, 17 Aug 2021 21:44:58 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 65C58605F8; Tue, 17 Aug 2021 21:44:58 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2460DC0010; Tue, 17 Aug 2021 21:44:58 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9B26EC000E for ; Tue, 17 Aug 2021 21:44:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9150A80D27 for ; Tue, 17 Aug 2021 21:44:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a7Qdx5YDpfOl for ; Tue, 17 Aug 2021 21:44:56 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) by smtp1.osuosl.org (Postfix) with ESMTPS id F0BBC80CAF for ; Tue, 17 Aug 2021 21:44:55 +0000 (UTC) Received: by mail-oo1-f53.google.com with SMTP id m11-20020a056820034b00b0028bb60b551fso83301ooe.5 for ; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tJbXJaO1S8CDBHolXnG0pNdqRsTOC5L9HS9uoBlFyko=; b=nb6cMU3vkm2PQ5bFsTdeszfr0yEO3z4pRA4OVDKWOwMjGqrxW+AzhdaNHAdM3uJ2Op dx8jKHQBU6RCoRTUkDr2yecalBhC5etk33OD6kG+Wld9tYvcHRPupB/FO2703wbyDaFI XotMdaQCXTImEhym451xtuYQvH5v4GjVRJSNbsQTM987oF1UOpvAx9nU9hfjTwMV1mMR 3HZtmq/JTm2LcXykG6yOEm1S1L7lchExeOSQGxMIEv8K6WgRKYOCq3Pv0Pkeww/W+kjx fGrpmdPGBGSEhadK4E2AqGnss/DJb5GgUyUzAZAaXYpsXRSulqbcGV2gkPK2dt5oVhcQ MRag== X-Gm-Message-State: AOAM533Xy4PtmxodHfpliat18/5LeCCZdEEcjA/at/bmrO15kUOlqKlO HBeuPXTHn90qWEOoEGWWag== X-Google-Smtp-Source: ABdhPJwR5dd5wQ/YDvk31PYwnhKCj+LV9fYj+okbAgVw5jhjaeHzx9gGBJxGwPQRMUTxP3PjUVi0XQ== X-Received: by 2002:a05:6820:61b:: with SMTP id e27mr4117053oow.68.1629236695061; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm668797oor.16.2021.08.17.14.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 14:44:54 -0700 (PDT) Received: (nullmailer pid 894487 invoked by uid 1000); Tue, 17 Aug 2021 21:44:53 -0000 Date: Tue, 17 Aug 2021 16:44:53 -0500 From: Rob Herring To: Yong Wu Subject: Re: [PATCH v2 02/29] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU Message-ID: References: <20210813065324.29220-1-yong.wu@mediatek.com> <20210813065324.29220-3-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210813065324.29220-3-yong.wu@mediatek.com> Cc: anan.sun@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat , srv_heupstream@mediatek.com, Krzysztof Kozlowski , devicetree@vger.kernel.org, Will Deacon , linux-kernel@vger.kernel.org, Evan Green , chao.hao@mediatek.com, iommu@lists.linux-foundation.org, Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , Tomasz Figa , Robin Murphy , linux-arm-kernel@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Fri, 13 Aug 2021 14:52:57 +0800, Yong Wu wrote: > In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters > mainly are PCIe and USB. Different with MM IOMMU, all these masters > connect with IOMMU directly, there is no mediatek,larbs property for > infra IOMMU. > > Another thing is about PCIe ports. currently the function > "of_iommu_configure_dev_id" only support the id number is 1, But our > PCIe have two ports, one is for reading and the other is for writing. > see more about the PCIe patch in this patchset. Thus, I only list > the reading id here and add the other id in our driver. > > Signed-off-by: Yong Wu > Acked-by: Krzysztof Kozlowski > --- > Change note: use "contains" commented from Rob. > --- > .../bindings/iommu/mediatek,iommu.yaml | 13 ++++++++++++- > .../dt-bindings/memory/mt8195-memory-port.h | 18 ++++++++++++++++++ > include/dt-bindings/memory/mtk-memory-port.h | 2 ++ > 3 files changed, 32 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu 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 X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DA39C4338F for ; Tue, 17 Aug 2021 21:45:28 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3DAEC61038 for ; Tue, 17 Aug 2021 21:45:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3DAEC61038 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MRSwu/W+RWyDDGy4alvXXKsckpfaJU38/ZtYCZEBLdA=; b=FQW3jA6rO9Hp29 b+x9P+OMPp615kaXyfNRuqvk6ecBf57pU82cjortSU8wf0uS2KYI2n/dl7nuVOvD/iyHh0thPyLL/ 3qqqAWc3GSJL5g0QZAm+xDHKlP2avC1anGDQ6UyoVdG9AVjbqmywl6me0Hk/OgFpnEhk8MKkXQ5CO vPaHyg9CqCybS6l0PLVtdD3UkiEF9t1hLdqLn9iBCsptxYbAsy9sB8eoSEPNJj9kNGA67CRd9kWYQ Odv5GOJ5SeBie44k3E8LkaFsfiCR4lxFrwq3rrOyjqkK3rzB8l77KfNyMgLgU9SfZ9Eh6BD8+YvQE 304GCqhracpDCMG6fjHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG6tR-003Zsc-G4; Tue, 17 Aug 2021 21:45:09 +0000 Received: from mail-oo1-f42.google.com ([209.85.161.42]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG6tE-003Zpt-BP; Tue, 17 Aug 2021 21:44:57 +0000 Received: by mail-oo1-f42.google.com with SMTP id w2-20020a4a9e420000b02902859adadf0fso88819ook.1; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tJbXJaO1S8CDBHolXnG0pNdqRsTOC5L9HS9uoBlFyko=; b=gEBHQ59yZ3kqZS4Y4+15qyxA96Hn4Ho9ooG9I4BJoD6t6cQgWib5LB2fYNWGeoOF6m SDAfIdk0C9oZiuBFbOrbKuY4FLtOu+g0LjTrhgdhjzCpxqhOiYZxGbFMFyUQ384EqsFr Xiekz4eBH7IuPlQBr2l6bGrgRpCOmEGs5JqHL6ajslFuRMZvziccvW8UDL38T6sZI/79 44CXTkWX9R5UmJPXIlLKopRrOcGZUvjHNg1MPTJnVXC2F74jrZebY8lsi6cVgrVHTeAx JRYPaG5B7/APdD6X06IYY3093OJTDK+YQkTCDs7eAd+kDAgfWJvulGG1Qb8Vr5lBPSk8 k5eA== X-Gm-Message-State: AOAM532nMtc2YJIOwDNm/rV2W9XenefYGtucbUVQVdDqvFzPtVFWJq5w 35+Dn3bN46NFk9gA3bo9uw== X-Google-Smtp-Source: ABdhPJwR5dd5wQ/YDvk31PYwnhKCj+LV9fYj+okbAgVw5jhjaeHzx9gGBJxGwPQRMUTxP3PjUVi0XQ== X-Received: by 2002:a05:6820:61b:: with SMTP id e27mr4117053oow.68.1629236695061; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm668797oor.16.2021.08.17.14.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 14:44:54 -0700 (PDT) Received: (nullmailer pid 894487 invoked by uid 1000); Tue, 17 Aug 2021 21:44:53 -0000 Date: Tue, 17 Aug 2021 16:44:53 -0500 From: Rob Herring To: Yong Wu Cc: anan.sun@mediatek.com, Matthias Brugger , Nicolas Boichat , linux-arm-kernel@lists.infradead.org, chao.hao@mediatek.com, Krzysztof Kozlowski , Evan Green , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, srv_heupstream@mediatek.com, Rob Herring , Robin Murphy , devicetree@vger.kernel.org, Will Deacon , linux-mediatek@lists.infradead.org, Joerg Roedel , Tomasz Figa , Tomasz Figa Subject: Re: [PATCH v2 02/29] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU Message-ID: References: <20210813065324.29220-1-yong.wu@mediatek.com> <20210813065324.29220-3-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210813065324.29220-3-yong.wu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210817_144456_434641_E0436BE8 X-CRM114-Status: GOOD ( 16.65 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Fri, 13 Aug 2021 14:52:57 +0800, Yong Wu wrote: > In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters > mainly are PCIe and USB. Different with MM IOMMU, all these masters > connect with IOMMU directly, there is no mediatek,larbs property for > infra IOMMU. > > Another thing is about PCIe ports. currently the function > "of_iommu_configure_dev_id" only support the id number is 1, But our > PCIe have two ports, one is for reading and the other is for writing. > see more about the PCIe patch in this patchset. Thus, I only list > the reading id here and add the other id in our driver. > > Signed-off-by: Yong Wu > Acked-by: Krzysztof Kozlowski > --- > Change note: use "contains" commented from Rob. > --- > .../bindings/iommu/mediatek,iommu.yaml | 13 ++++++++++++- > .../dt-bindings/memory/mt8195-memory-port.h | 18 ++++++++++++++++++ > include/dt-bindings/memory/mtk-memory-port.h | 2 ++ > 3 files changed, 32 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek 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 X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40E99C4338F for ; Tue, 17 Aug 2021 21:46:55 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0530560F11 for ; Tue, 17 Aug 2021 21:46:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0530560F11 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7hkQsIexuGBBelMGgtJCn7POpCs8ZrJrc1NaF51ZOxY=; b=N5MT3OnUFvMPw6 Jbff+cGfLXUUG8GUPj103EttEceL9/DnS62KaXqa2UwhmOEApnBFbm+yJnt113KejNTWokqx4ATYd 2TfH6FUo852SIfcrSEVUfoaNrhAKb1S5+C2FAaUcS/jwgWxqaBXMKFqpJ/V+OsYhArR0bow94JV9x QPVqcBmvy7p4MrsF6u+524tHLlvyRjwwlkz66A7WFX8fTEfcKGABECXaziWb+1clPYSrPfPB1iCSo jYylq8IwDOd9CvavmdjTumuPjwboK9wqtCUxPNwefOScCWtHnVt1Rl2eSfXf+ccCSFZMapknC/57b cljsRagzC24lr3I/VvLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG6tH-003Zqb-Mn; Tue, 17 Aug 2021 21:44:59 +0000 Received: from mail-oo1-f42.google.com ([209.85.161.42]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mG6tE-003Zpt-BP; Tue, 17 Aug 2021 21:44:57 +0000 Received: by mail-oo1-f42.google.com with SMTP id w2-20020a4a9e420000b02902859adadf0fso88819ook.1; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tJbXJaO1S8CDBHolXnG0pNdqRsTOC5L9HS9uoBlFyko=; b=gEBHQ59yZ3kqZS4Y4+15qyxA96Hn4Ho9ooG9I4BJoD6t6cQgWib5LB2fYNWGeoOF6m SDAfIdk0C9oZiuBFbOrbKuY4FLtOu+g0LjTrhgdhjzCpxqhOiYZxGbFMFyUQ384EqsFr Xiekz4eBH7IuPlQBr2l6bGrgRpCOmEGs5JqHL6ajslFuRMZvziccvW8UDL38T6sZI/79 44CXTkWX9R5UmJPXIlLKopRrOcGZUvjHNg1MPTJnVXC2F74jrZebY8lsi6cVgrVHTeAx JRYPaG5B7/APdD6X06IYY3093OJTDK+YQkTCDs7eAd+kDAgfWJvulGG1Qb8Vr5lBPSk8 k5eA== X-Gm-Message-State: AOAM532nMtc2YJIOwDNm/rV2W9XenefYGtucbUVQVdDqvFzPtVFWJq5w 35+Dn3bN46NFk9gA3bo9uw== X-Google-Smtp-Source: ABdhPJwR5dd5wQ/YDvk31PYwnhKCj+LV9fYj+okbAgVw5jhjaeHzx9gGBJxGwPQRMUTxP3PjUVi0XQ== X-Received: by 2002:a05:6820:61b:: with SMTP id e27mr4117053oow.68.1629236695061; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm668797oor.16.2021.08.17.14.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 14:44:54 -0700 (PDT) Received: (nullmailer pid 894487 invoked by uid 1000); Tue, 17 Aug 2021 21:44:53 -0000 Date: Tue, 17 Aug 2021 16:44:53 -0500 From: Rob Herring To: Yong Wu Cc: anan.sun@mediatek.com, Matthias Brugger , Nicolas Boichat , linux-arm-kernel@lists.infradead.org, chao.hao@mediatek.com, Krzysztof Kozlowski , Evan Green , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, srv_heupstream@mediatek.com, Rob Herring , Robin Murphy , devicetree@vger.kernel.org, Will Deacon , linux-mediatek@lists.infradead.org, Joerg Roedel , Tomasz Figa , Tomasz Figa Subject: Re: [PATCH v2 02/29] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU Message-ID: References: <20210813065324.29220-1-yong.wu@mediatek.com> <20210813065324.29220-3-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210813065324.29220-3-yong.wu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210817_144456_434641_E0436BE8 X-CRM114-Status: GOOD ( 16.65 ) 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 On Fri, 13 Aug 2021 14:52:57 +0800, Yong Wu wrote: > In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters > mainly are PCIe and USB. Different with MM IOMMU, all these masters > connect with IOMMU directly, there is no mediatek,larbs property for > infra IOMMU. > > Another thing is about PCIe ports. currently the function > "of_iommu_configure_dev_id" only support the id number is 1, But our > PCIe have two ports, one is for reading and the other is for writing. > see more about the PCIe patch in this patchset. Thus, I only list > the reading id here and add the other id in our driver. > > Signed-off-by: Yong Wu > Acked-by: Krzysztof Kozlowski > --- > Change note: use "contains" commented from Rob. > --- > .../bindings/iommu/mediatek,iommu.yaml | 13 ++++++++++++- > .../dt-bindings/memory/mt8195-memory-port.h | 18 ++++++++++++++++++ > include/dt-bindings/memory/mtk-memory-port.h | 2 ++ > 3 files changed, 32 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C38FDC4338F for ; Tue, 17 Aug 2021 21:44:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A844661038 for ; Tue, 17 Aug 2021 21:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234444AbhHQVp3 (ORCPT ); Tue, 17 Aug 2021 17:45:29 -0400 Received: from mail-oo1-f48.google.com ([209.85.161.48]:36527 "EHLO mail-oo1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbhHQVp2 (ORCPT ); Tue, 17 Aug 2021 17:45:28 -0400 Received: by mail-oo1-f48.google.com with SMTP id z3-20020a4a98430000b029025f4693434bso86496ooi.3; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tJbXJaO1S8CDBHolXnG0pNdqRsTOC5L9HS9uoBlFyko=; b=k4SWAI+kjtMnXyp7vowkA0BhesRPDL2TRMJgIjC7GfUWAGbT3cHoPZPX9sX+Sgr8R4 Ijxpf0uliEUw2FTdfW06jCXbnWcA3U6BUzApCrE8aoCuZxoUew4heJrRh156dZICCpIa zxG1SHIMh91RAxu76/DqZGwZz1oZegir45JZVTND69AZkRtn1yZLag8AJ+8nwa1IYj31 ThaCToHk+8vhH+HS00iABQOqyee4VIqlrVFkcwlkqnLUAsbUkASa8wNsBq8N8/hZ1iO9 BYH89I6QLNO6vERCxZaFl7bxsEzvcgFR2czEN6ZgqgTK5gD6chG3oYIqRooBj1BsZFuo PEzA== X-Gm-Message-State: AOAM531PVtPia8MjNkIUxYS757YdbcIj+n/6uXbv7ZnAhanDbQ4xJF1l jRyo8JSZ9VNNnbTHuJZ/dA== X-Google-Smtp-Source: ABdhPJwR5dd5wQ/YDvk31PYwnhKCj+LV9fYj+okbAgVw5jhjaeHzx9gGBJxGwPQRMUTxP3PjUVi0XQ== X-Received: by 2002:a05:6820:61b:: with SMTP id e27mr4117053oow.68.1629236695061; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm668797oor.16.2021.08.17.14.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 14:44:54 -0700 (PDT) Received: (nullmailer pid 894487 invoked by uid 1000); Tue, 17 Aug 2021 21:44:53 -0000 Date: Tue, 17 Aug 2021 16:44:53 -0500 From: Rob Herring To: Yong Wu Cc: anan.sun@mediatek.com, Matthias Brugger , Nicolas Boichat , linux-arm-kernel@lists.infradead.org, chao.hao@mediatek.com, Krzysztof Kozlowski , Evan Green , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, srv_heupstream@mediatek.com, Rob Herring , Robin Murphy , devicetree@vger.kernel.org, Will Deacon , linux-mediatek@lists.infradead.org, Joerg Roedel , Tomasz Figa , Tomasz Figa Subject: Re: [PATCH v2 02/29] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU Message-ID: References: <20210813065324.29220-1-yong.wu@mediatek.com> <20210813065324.29220-3-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210813065324.29220-3-yong.wu@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Fri, 13 Aug 2021 14:52:57 +0800, Yong Wu wrote: > In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters > mainly are PCIe and USB. Different with MM IOMMU, all these masters > connect with IOMMU directly, there is no mediatek,larbs property for > infra IOMMU. > > Another thing is about PCIe ports. currently the function > "of_iommu_configure_dev_id" only support the id number is 1, But our > PCIe have two ports, one is for reading and the other is for writing. > see more about the PCIe patch in this patchset. Thus, I only list > the reading id here and add the other id in our driver. > > Signed-off-by: Yong Wu > Acked-by: Krzysztof Kozlowski > --- > Change note: use "contains" commented from Rob. > --- > .../bindings/iommu/mediatek,iommu.yaml | 13 ++++++++++++- > .../dt-bindings/memory/mt8195-memory-port.h | 18 ++++++++++++++++++ > include/dt-bindings/memory/mtk-memory-port.h | 2 ++ > 3 files changed, 32 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring