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=-10.0 required=3.0 tests=BAYES_00,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 2C234C433E4 for ; Wed, 15 Jul 2020 20:51:27 +0000 (UTC) Received: from silver.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 EE95020672 for ; Wed, 15 Jul 2020 20:51:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE95020672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 96E6426EC8; Wed, 15 Jul 2020 20:51:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cMd47w9p6nr8; Wed, 15 Jul 2020 20:51:25 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id 5D3E0204D3; Wed, 15 Jul 2020 20:51:25 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3AB51C0891; Wed, 15 Jul 2020 20:51:25 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8E864C0733 for ; Wed, 15 Jul 2020 20:51:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7D30A882F6 for ; Wed, 15 Jul 2020 20:51:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GXEYdiuXaxWx for ; Wed, 15 Jul 2020 20:51:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id D69A088529 for ; Wed, 15 Jul 2020 20:51:22 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id k23so3723169iom.10 for ; Wed, 15 Jul 2020 13:51:22 -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=q9ACE8nvrxYAkV7UmkgZ6sY12qZMuGAXz/YkNp21cP8=; b=sPZGLtxwz0n+m0IxUC/RtyEJNLy8p/3pmmoCHLStY2WTQJFnE/g9RES2lXI0tjiO8x JXEvtKV4eJQb7/Fy55MssJV/7BRYzGjno4e1FgLuTLOpA0VU6LhgHfXS87oLPIUISbwp bi3TjyUfGN6K3tsRJ/VcBkMbjdFO5urvICaL1nLoa9Qed7q5GPt7poTnR1p9Psc5h59h FMDbjqYiRnUvD27tf6LAggHC1T1Wgy44Y8EwV5dLr5lqEs7jRTpeRqnpDe7nf0KVS6OR z1kTUg56glfcWCIFfF6EuhDPBmNDS9iaJvcqQ/8A64weYDF3alNzbz5hoMF0W2eR18Nu SxkA== X-Gm-Message-State: AOAM532R+0jUoC45cGcymvcJnxCMsgNovJCCeF8qIkAovTHTntKTd9OS /KB0TwKHVefgGFbhtaVXbg== X-Google-Smtp-Source: ABdhPJwJgZBHTochu4o5lfkCZewGDWCyBkruv1P6g3YXlsJ82fsfdRZEt+/xHnCbpv9RpaMjsjLcFw== X-Received: by 2002:a6b:4409:: with SMTP id r9mr1160938ioa.158.1594846282053; Wed, 15 Jul 2020 13:51:22 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id s18sm1576592ilj.63.2020.07.15.13.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:51:21 -0700 (PDT) Received: (nullmailer pid 795410 invoked by uid 1000); Wed, 15 Jul 2020 20:51:20 -0000 Date: Wed, 15 Jul 2020 14:51:20 -0600 From: Rob Herring To: Miles Chen Subject: Re: [PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle Message-ID: <20200715205120.GA778876@bogus> References: <20200702093721.6063-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200702093721.6063-1-miles.chen@mediatek.com> Cc: devicetree@vger.kernel.org, wsd_upstream@mediatek.com, linux-kernel@vger.kernel.org, Chao Hao , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Yingjoe Chen , 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 Thu, Jul 02, 2020 at 05:37:17PM +0800, Miles Chen wrote: > Add a description for mediatek,infracfg. We can check if 4GB mode > is enable by reading it instead of checking the unexported > symbol "max_pfn". > > This is a step towards building mtk_iommu as a kernel module. You determined this before without DT, so it is an OS problem and shouldn't need a DT update. I'd assume there's only one instance of the node mediatek,infracfg points to, so just search for it if you want to get the info from DT. > > Cc: Yong Wu > Signed-off-by: Miles Chen > --- > Documentation/devicetree/bindings/iommu/mediatek,iommu.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > index ce59a505f5a4..a7881deabcca 100644 > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > @@ -74,6 +74,8 @@ Required properties: > - mediatek,larbs : List of phandle to the local arbiters in the current Socs. > Refer to bindings/memory-controllers/mediatek,smi-larb.txt. It must sort > according to the local arbiter index, like larb0, larb1, larb2... > +- mediatek,infracfg: a phandle to infracfg. It is used to confirm if 4GB mode is set. > + It is an optional property, add it when the SoC have 4g mode. > - iommu-cells : must be 1. This is the mtk_m4u_id according to the HW. > Specifies the mtk_m4u_id as defined in > dt-binding/memory/mt2701-larb-port.h for mt2701, mt7623 > -- > 2.18.0 _______________________________________________ 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=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 1B246C433DF for ; Wed, 15 Jul 2020 20:51:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 D704820672 for ; Wed, 15 Jul 2020 20:51:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kot+Z9+o" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D704820672 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=Z2Jo+WqpoZBx5VWrvFIzq0qK8NAc/9dVYvKHPOr0FfA=; b=kot+Z9+oATo0mrR8Ut2ivFwJc Lec/GTVSgPMX76+hWCpfCwTOvYCpC+pwnywj5DcZf797EqJAtleDN2iw4f5djZl1CvmTew159DSYk bFVCg8BMx9Qzl1FRzbIqAFyMFjB7xhb5Rwmkt0faI4UVXICIYFTErmP7CIuWcmHbY9B8eK+itTaK+ MxTvml0tLmB7Q149osur6gu8jFscyBUgpJGmDR6Q37tYG7h8u8mLQD4nf3bWB+czfd1g4WKGU1sBa gGWiVe7m+Db+TtBh0om1dKbnETfl09g5oBPHFQOk3AmUA6yAeUrBZB8RvPlaFXMEclZsLarQ9sGid 2gWyiA+2Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvoNE-0002So-Lg; Wed, 15 Jul 2020 20:51:28 +0000 Received: from mail-io1-f68.google.com ([209.85.166.68]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvoN9-0002Qr-5R; Wed, 15 Jul 2020 20:51:24 +0000 Received: by mail-io1-f68.google.com with SMTP id l1so3743000ioh.5; Wed, 15 Jul 2020 13:51:22 -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=q9ACE8nvrxYAkV7UmkgZ6sY12qZMuGAXz/YkNp21cP8=; b=jz/ZpV7XiBmGuYnjOHaBTZReerEk9vXpm3A68Qjy3n79e1bNdrezC7pAY/Rkz+42cf 67d2f6lteevQFJ5a4uOTqBL735jwupyD4cNqWtHtA0YA+jTsESR7B9ixUaq4wnYnDjBk TyP8ziVVIaRqZ4ccl4jWQioW0JgwwUPVpklofSk5200gK2HeTVAwpQjr6qnwN7b1qGhV ZqZGtJZQ7I4+hJAdFPba5buAvRvQLxQ1SS+D0APESTWz1vf0kRAwDXTPUf1nYyNq+pwA X5lW/CT1FmlVdpnO13tdBS2BaoB0RCwsAhUVY4hegYjsBozmGXtRnVdRitKo2/use7Hr aBkQ== X-Gm-Message-State: AOAM533vL3PBX9LL8yoXWElRZUXK4Ov1CWsitFm0WxcZvwz7V9vK6t3k HhpmTODg2a868ufRBqLDLQ== X-Google-Smtp-Source: ABdhPJwJgZBHTochu4o5lfkCZewGDWCyBkruv1P6g3YXlsJ82fsfdRZEt+/xHnCbpv9RpaMjsjLcFw== X-Received: by 2002:a6b:4409:: with SMTP id r9mr1160938ioa.158.1594846282053; Wed, 15 Jul 2020 13:51:22 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id s18sm1576592ilj.63.2020.07.15.13.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:51:21 -0700 (PDT) Received: (nullmailer pid 795410 invoked by uid 1000); Wed, 15 Jul 2020 20:51:20 -0000 Date: Wed, 15 Jul 2020 14:51:20 -0600 From: Rob Herring To: Miles Chen Subject: Re: [PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle Message-ID: <20200715205120.GA778876@bogus> References: <20200702093721.6063-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200702093721.6063-1-miles.chen@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200715_165123_251804_D2F65500 X-CRM114-Status: GOOD ( 17.58 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, wsd_upstream@mediatek.com, Joerg Roedel , linux-kernel@vger.kernel.org, Chao Hao , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Yong Wu , Matthias Brugger , Yingjoe Chen , linux-arm-kernel@lists.infradead.org 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 Thu, Jul 02, 2020 at 05:37:17PM +0800, Miles Chen wrote: > Add a description for mediatek,infracfg. We can check if 4GB mode > is enable by reading it instead of checking the unexported > symbol "max_pfn". > > This is a step towards building mtk_iommu as a kernel module. You determined this before without DT, so it is an OS problem and shouldn't need a DT update. I'd assume there's only one instance of the node mediatek,infracfg points to, so just search for it if you want to get the info from DT. > > Cc: Yong Wu > Signed-off-by: Miles Chen > --- > Documentation/devicetree/bindings/iommu/mediatek,iommu.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > index ce59a505f5a4..a7881deabcca 100644 > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > @@ -74,6 +74,8 @@ Required properties: > - mediatek,larbs : List of phandle to the local arbiters in the current Socs. > Refer to bindings/memory-controllers/mediatek,smi-larb.txt. It must sort > according to the local arbiter index, like larb0, larb1, larb2... > +- mediatek,infracfg: a phandle to infracfg. It is used to confirm if 4GB mode is set. > + It is an optional property, add it when the SoC have 4g mode. > - iommu-cells : must be 1. This is the mtk_m4u_id according to the HW. > Specifies the mtk_m4u_id as defined in > dt-binding/memory/mt2701-larb-port.h for mt2701, mt7623 > -- > 2.18.0 _______________________________________________ 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=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 E21CFC433E0 for ; Wed, 15 Jul 2020 20:52:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 AF4AE2065D for ; Wed, 15 Jul 2020 20:52:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WCFdQuWP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF4AE2065D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=HrgF/zKT2cUxg7CNkDCinZbY+YtJ3teIkxx5Zx9dMrk=; b=WCFdQuWPovyn7NyivsrXEbWVq eKWNwDbVmaedYWm1GEQ13oOejrZD9b3f8tLcrPWu9fYQEGQQozMr5X0KiXcjO5tBQSyTlN23mtZ8Z RWYKwC9pPaQ2QJNf3r3SU38+QttBHISQb3OlE2pluXdMF+18XmiPfNSsNJQQ9M8IH7VjaVSsGvEH8 iws9xwlcbpO2Ua0FHHpyIbWvDogSuX7MEr4UOTPkNfGDHe0YtSauYLdqZf0jrYmRPKNC2DlEfto29 4ffEdOvBHsSlrC7yLDjgGpTO+55tSHqKtPzDh2yuEl6q4hORQ+NqlR8ht3L3P5CnR1un680/9H7uK tEz88HKBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvoNC-0002Ry-R9; Wed, 15 Jul 2020 20:51:26 +0000 Received: from mail-io1-f68.google.com ([209.85.166.68]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvoN9-0002Qr-5R; Wed, 15 Jul 2020 20:51:24 +0000 Received: by mail-io1-f68.google.com with SMTP id l1so3743000ioh.5; Wed, 15 Jul 2020 13:51:22 -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=q9ACE8nvrxYAkV7UmkgZ6sY12qZMuGAXz/YkNp21cP8=; b=jz/ZpV7XiBmGuYnjOHaBTZReerEk9vXpm3A68Qjy3n79e1bNdrezC7pAY/Rkz+42cf 67d2f6lteevQFJ5a4uOTqBL735jwupyD4cNqWtHtA0YA+jTsESR7B9ixUaq4wnYnDjBk TyP8ziVVIaRqZ4ccl4jWQioW0JgwwUPVpklofSk5200gK2HeTVAwpQjr6qnwN7b1qGhV ZqZGtJZQ7I4+hJAdFPba5buAvRvQLxQ1SS+D0APESTWz1vf0kRAwDXTPUf1nYyNq+pwA X5lW/CT1FmlVdpnO13tdBS2BaoB0RCwsAhUVY4hegYjsBozmGXtRnVdRitKo2/use7Hr aBkQ== X-Gm-Message-State: AOAM533vL3PBX9LL8yoXWElRZUXK4Ov1CWsitFm0WxcZvwz7V9vK6t3k HhpmTODg2a868ufRBqLDLQ== X-Google-Smtp-Source: ABdhPJwJgZBHTochu4o5lfkCZewGDWCyBkruv1P6g3YXlsJ82fsfdRZEt+/xHnCbpv9RpaMjsjLcFw== X-Received: by 2002:a6b:4409:: with SMTP id r9mr1160938ioa.158.1594846282053; Wed, 15 Jul 2020 13:51:22 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id s18sm1576592ilj.63.2020.07.15.13.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:51:21 -0700 (PDT) Received: (nullmailer pid 795410 invoked by uid 1000); Wed, 15 Jul 2020 20:51:20 -0000 Date: Wed, 15 Jul 2020 14:51:20 -0600 From: Rob Herring To: Miles Chen Subject: Re: [PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle Message-ID: <20200715205120.GA778876@bogus> References: <20200702093721.6063-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200702093721.6063-1-miles.chen@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200715_165123_251804_D2F65500 X-CRM114-Status: GOOD ( 17.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, wsd_upstream@mediatek.com, Joerg Roedel , linux-kernel@vger.kernel.org, Chao Hao , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Yong Wu , Matthias Brugger , Yingjoe Chen , linux-arm-kernel@lists.infradead.org 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 Thu, Jul 02, 2020 at 05:37:17PM +0800, Miles Chen wrote: > Add a description for mediatek,infracfg. We can check if 4GB mode > is enable by reading it instead of checking the unexported > symbol "max_pfn". > > This is a step towards building mtk_iommu as a kernel module. You determined this before without DT, so it is an OS problem and shouldn't need a DT update. I'd assume there's only one instance of the node mediatek,infracfg points to, so just search for it if you want to get the info from DT. > > Cc: Yong Wu > Signed-off-by: Miles Chen > --- > Documentation/devicetree/bindings/iommu/mediatek,iommu.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > index ce59a505f5a4..a7881deabcca 100644 > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > @@ -74,6 +74,8 @@ Required properties: > - mediatek,larbs : List of phandle to the local arbiters in the current Socs. > Refer to bindings/memory-controllers/mediatek,smi-larb.txt. It must sort > according to the local arbiter index, like larb0, larb1, larb2... > +- mediatek,infracfg: a phandle to infracfg. It is used to confirm if 4GB mode is set. > + It is an optional property, add it when the SoC have 4g mode. > - iommu-cells : must be 1. This is the mtk_m4u_id according to the HW. > Specifies the mtk_m4u_id as defined in > dt-binding/memory/mt2701-larb-port.h for mt2701, mt7623 > -- > 2.18.0 _______________________________________________ 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=-10.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 51E6CC433E2 for ; Wed, 15 Jul 2020 20:51:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 223772065D for ; Wed, 15 Jul 2020 20:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594846284; bh=7K2AKFplTVr819ofOXAFAyKxxpTCjfqstUP/bwMZbFw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=oCA5TLCkuUkxhnDw/3Ow5s8NW3rl1Pfol8JSKo75aImGqZx0kukFrympKijkwE+zU ebtQ0v8SNSr3C7pibhjj0DDXqtNq5IfOuytk+oHXt4OSOPk4LWznq2p6NLE7x6+i4L C/nHTLX2D9i1KeJe5NKsTViTL/jbMWxtDesm02To= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbgGOUvX (ORCPT ); Wed, 15 Jul 2020 16:51:23 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40700 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgGOUvX (ORCPT ); Wed, 15 Jul 2020 16:51:23 -0400 Received: by mail-io1-f66.google.com with SMTP id l17so3728614iok.7; Wed, 15 Jul 2020 13:51:22 -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=q9ACE8nvrxYAkV7UmkgZ6sY12qZMuGAXz/YkNp21cP8=; b=LpBQtXg04ocu1/Q8mGVkib+W0iU7MtYouSSSgQ/34Boyh+bpLQ7p/GovdOggOwulsU vhE6CIKFThZx+KzEpBGD3cSlpOeMrBXSF3AK8FcId3FyNiFZIFww/RDZ32ra1r5pLVj3 2PTRvBMJw2wyfVU51b14qX3xBIIRB8hwROwQq4QxQypIRV52Dq1pvHXRBX/XgQmXBEAp E5Pnfgd5Af078PGV7G5pZxAXt5dI5iYN/QIUBahTc/8EsAWVHf/WISeduP3npOhJUpQp LyA/nMH0jgL8LVOwLaGKkUsprr884+CoOCLgpz82HpZeyGeUXXXYlozhltIXoK41oOnB Hf4Q== X-Gm-Message-State: AOAM531xyvCulBgRrh5OYmx9dZ3QXvy9FynsAXHx4Kch5v3DlNEkbWhf iJYcL+Aglj4ys0Pb7cZvdFXp5ctCrg== X-Google-Smtp-Source: ABdhPJwJgZBHTochu4o5lfkCZewGDWCyBkruv1P6g3YXlsJ82fsfdRZEt+/xHnCbpv9RpaMjsjLcFw== X-Received: by 2002:a6b:4409:: with SMTP id r9mr1160938ioa.158.1594846282053; Wed, 15 Jul 2020 13:51:22 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id s18sm1576592ilj.63.2020.07.15.13.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:51:21 -0700 (PDT) Received: (nullmailer pid 795410 invoked by uid 1000); Wed, 15 Jul 2020 20:51:20 -0000 Date: Wed, 15 Jul 2020 14:51:20 -0600 From: Rob Herring To: Miles Chen Cc: Joerg Roedel , Matthias Brugger , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, Yong Wu , Chao Hao , Yingjoe Chen Subject: Re: [PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle Message-ID: <20200715205120.GA778876@bogus> References: <20200702093721.6063-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702093721.6063-1-miles.chen@mediatek.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, Jul 02, 2020 at 05:37:17PM +0800, Miles Chen wrote: > Add a description for mediatek,infracfg. We can check if 4GB mode > is enable by reading it instead of checking the unexported > symbol "max_pfn". > > This is a step towards building mtk_iommu as a kernel module. You determined this before without DT, so it is an OS problem and shouldn't need a DT update. I'd assume there's only one instance of the node mediatek,infracfg points to, so just search for it if you want to get the info from DT. > > Cc: Yong Wu > Signed-off-by: Miles Chen > --- > Documentation/devicetree/bindings/iommu/mediatek,iommu.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > index ce59a505f5a4..a7881deabcca 100644 > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > @@ -74,6 +74,8 @@ Required properties: > - mediatek,larbs : List of phandle to the local arbiters in the current Socs. > Refer to bindings/memory-controllers/mediatek,smi-larb.txt. It must sort > according to the local arbiter index, like larb0, larb1, larb2... > +- mediatek,infracfg: a phandle to infracfg. It is used to confirm if 4GB mode is set. > + It is an optional property, add it when the SoC have 4g mode. > - iommu-cells : must be 1. This is the mtk_m4u_id according to the HW. > Specifies the mtk_m4u_id as defined in > dt-binding/memory/mt2701-larb-port.h for mt2701, mt7623 > -- > 2.18.0