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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7868C3F6B0 for ; Thu, 4 Aug 2022 02:07:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238813AbiHDCHE (ORCPT ); Wed, 3 Aug 2022 22:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbiHDCHB (ORCPT ); Wed, 3 Aug 2022 22:07:01 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F97B58B5C; Wed, 3 Aug 2022 19:07:00 -0700 (PDT) X-UUID: 2c7844a7dea340588d92b79039ce462b-20220804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Zmsrh9X/3g/WCH83lm05EdCSEeqf+efWw7k7n+0nfG0=; b=LPsxH2RO+q84+3EsLEWIrbXsBfmmJlPvxHPdKddriMd9a90DQxnj4HgdqgI15Eayn6OLQYiCPk/nl8O862Wf7EKIqbEuiSX/2Mgn+c8wyoyEqctHEL9hkflqN5vV40EA+cCXciEUFYWFH8cgsF04piztSMpaxb9pDrUeZLr4zDQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:72e9a3c4-ea60-40fe-bf02-62777eb7328b,OB:20,L OB:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,RULE:Release_Ham,AC TION:release,TS:45 X-CID-INFO: VERSION:1.1.8,REQID:72e9a3c4-ea60-40fe-bf02-62777eb7328b,OB:20,LOB :0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:45 X-CID-META: VersionHash:0f94e32,CLOUDID:156e3bd0-a6cf-4fb6-be1b-c60094821ca2,C OID:9c5ba593ae66,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: 2c7844a7dea340588d92b79039ce462b-20220804 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1915268839; Thu, 04 Aug 2022 10:06:54 +0800 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; Thu, 4 Aug 2022 10:06:53 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 4 Aug 2022 10:06:53 +0800 Message-ID: Subject: Re: [PATCH v4 01/20] dt-bindings: iommu: mediatek: Increase max interrupt number From: Tinghan Shen To: Yong Wu , Joerg Roedel , "Will Deacon" , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Lee Jones , "Matthias Brugger" , AngeloGioacchino Del Regno , MandyJH Liu CC: , , , , , , Date: Thu, 4 Aug 2022 10:06:53 +0800 In-Reply-To: <0085fdd057687637ebd5a7688897a279e72e03f6.camel@mediatek.com> References: <20220729063208.16799-1-tinghan.shen@mediatek.com> <20220729063208.16799-2-tinghan.shen@mediatek.com> <0085fdd057687637ebd5a7688897a279e72e03f6.camel@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 Mon, 2022-08-01 at 20:04 +0800, Yong Wu wrote: > On Fri, 2022-07-29 at 14:31 +0800, Tinghan Shen wrote: > > mt8195 infra iommu uses 5 interrupts. > > > > Signed-off-by: Tinghan Shen > > Reviewed-by: Krzysztof Kozlowski > > --- > > .../bindings/iommu/mediatek,iommu.yaml | 18 > > +++++++++++++++++- > > 1 file changed, 17 insertions(+), 1 deletion(-) > > > > diff --git > > a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > index fee0241b50988..5afe2a0045330 100644 > > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > @@ -91,7 +91,8 @@ properties: > > maxItems: 1 > > > > interrupts: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 5 > > > > clocks: > > items: > > @@ -191,9 +192,24 @@ allOf: > > const: mediatek,mt8195-iommu-infra > > > > then: > > + properties: > > + interrupts: > > + maxItems: 1 > > + > > required: > > - mediatek,larbs > > > > + else: > > + properties: > > + interrupts: > > + description: The IOMMU has 5 banks. Each bank has its own > > interrupt. > > + items: > > + - description: The interrupt for IOMMU bank0 > > + - description: The interrupt for IOMMU bank1 > > + - description: The interrupt for IOMMU bank2 > > + - description: The interrupt for IOMMU bank3 > > + - description: The interrupt for IOMMU bank4 > > + > > Thanks for improving this. > > Before the meaning for this segment is that it require "mediatek,larbs" > if it is NOT infra iommu. Here we add a new block for infra iommu. > then we'd better to remove the "not". this should be more readable. > Something like below: > > if: > /* Remove the not here. */ > properties: > compatible: > contains: > const: mediatek,mt8195-iommu-infra > then: > xxx > else: > xx > Ok, I'll update in the next version. Thanks, TingHan 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 07E69C19F29 for ; Thu, 4 Aug 2022 02:38:37 +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:References:In-Reply-To: Date:CC:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=F712E4H+6TDXL7gjJRBeHJeg0nrGna5hI3VUly6LLMs=; b=aRmtvbazUIMt1X IV04TWkcQ3qS5/WYiAkWujgoZg36xbVAZ/D5Ij9UkPPDV1mhhuDExc8nFVp1IbtT8R2jDVyveW/ew gAVb/BeUODijfJBN4gHVp6zovaoTdVaN+Je5JAHOmY2H3XFG/Cp09rNNo7ccZqiweHvkuX5XAlrqv c3bVm5gUDeGOehcfg2p3mR9qwkbDBvwYt5r76+DMyRGrTPQ4mJNFBQUDLqrLZzKIFF+NeomWO71vZ 9aAnkkbrvY1jXsIk0AvtUXtLV2xBuVhVuaUAxw8E7QbtZtxQt16xTWKtwnGer15iVEqvjQwMIJsNM 4v80ROx8OKcXxvFtfVXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJQjx-00EQVL-Jb; Thu, 04 Aug 2022 02:37:37 +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 1oJQjt-00EQPy-C0; Thu, 04 Aug 2022 02:37:34 +0000 X-UUID: 05125789ee904e2190d87846df6b036c-20220803 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:d4496ed2-1d2f-468e-b876-7a0653db5481,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:60723cd0-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: 05125789ee904e2190d87846df6b036c-20220803 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 1028039004; Wed, 03 Aug 2022 19:37:28 -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; Thu, 4 Aug 2022 10:06:53 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 4 Aug 2022 10:06:53 +0800 Message-ID: Subject: Re: [PATCH v4 01/20] dt-bindings: iommu: mediatek: Increase max interrupt number From: Tinghan Shen To: Yong Wu , Joerg Roedel , "Will Deacon" , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Lee Jones , "Matthias Brugger" , AngeloGioacchino Del Regno , MandyJH Liu CC: , , , , , , Date: Thu, 4 Aug 2022 10:06:53 +0800 In-Reply-To: <0085fdd057687637ebd5a7688897a279e72e03f6.camel@mediatek.com> References: <20220729063208.16799-1-tinghan.shen@mediatek.com> <20220729063208.16799-2-tinghan.shen@mediatek.com> <0085fdd057687637ebd5a7688897a279e72e03f6.camel@mediatek.com> X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220803_193733_437897_F666CBB6 X-CRM114-Status: GOOD ( 19.02 ) 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 Mon, 2022-08-01 at 20:04 +0800, Yong Wu wrote: > On Fri, 2022-07-29 at 14:31 +0800, Tinghan Shen wrote: > > mt8195 infra iommu uses 5 interrupts. > > > > Signed-off-by: Tinghan Shen > > Reviewed-by: Krzysztof Kozlowski > > --- > > .../bindings/iommu/mediatek,iommu.yaml | 18 > > +++++++++++++++++- > > 1 file changed, 17 insertions(+), 1 deletion(-) > > > > diff --git > > a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > index fee0241b50988..5afe2a0045330 100644 > > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml > > @@ -91,7 +91,8 @@ properties: > > maxItems: 1 > > > > interrupts: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 5 > > > > clocks: > > items: > > @@ -191,9 +192,24 @@ allOf: > > const: mediatek,mt8195-iommu-infra > > > > then: > > + properties: > > + interrupts: > > + maxItems: 1 > > + > > required: > > - mediatek,larbs > > > > + else: > > + properties: > > + interrupts: > > + description: The IOMMU has 5 banks. Each bank has its own > > interrupt. > > + items: > > + - description: The interrupt for IOMMU bank0 > > + - description: The interrupt for IOMMU bank1 > > + - description: The interrupt for IOMMU bank2 > > + - description: The interrupt for IOMMU bank3 > > + - description: The interrupt for IOMMU bank4 > > + > > Thanks for improving this. > > Before the meaning for this segment is that it require "mediatek,larbs" > if it is NOT infra iommu. Here we add a new block for infra iommu. > then we'd better to remove the "not". this should be more readable. > Something like below: > > if: > /* Remove the not here. */ > properties: > compatible: > contains: > const: mediatek,mt8195-iommu-infra > then: > xxx > else: > xx > Ok, I'll update in the next version. Thanks, TingHan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel