Message ID | 20230526192210.3146896-3-bhupesh.sharma@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp707449vqr; Fri, 26 May 2023 12:35:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Fy5U/mqAUiR3y9ruOnfJHlnEgUibCSBC4zDtjOcLM3ZtEZg8OvmsT2zcb7j19W+Dqj2aq X-Received: by 2002:a17:902:ec88:b0:1ac:3d1c:83c9 with SMTP id x8-20020a170902ec8800b001ac3d1c83c9mr4682829plg.13.1685129738087; Fri, 26 May 2023 12:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685129738; cv=none; d=google.com; s=arc-20160816; b=f1ywkuf5tWQDcbOe8+jUpkhdV9CcCOZZ835PS3ncMCCEqIK0rucD2I5F3XPv4y8J6S 3l0VY2UcSllhawWxBqHDpRHoq+RcdDCamGJVARWK99DlpRItYFPYh/yMzZRLhXsGR11B yuW2dy0Rt1n7TxyJXHZy7wYYpxegdEvSBxwsDDJXP4Oc9vqUWKmAjlMco66+IwpaUo8c Bu3+MBVCmjb5lOor183OBTOy9XqDSDeDDh9RNZ5C8i0R5xACrD13bvhMbxKd+2T6Jjsv Trww97e4NPcncfN5T2YmD31bQ2Mp5Xs67Uh3SS+CiExIp1CasDaTgwyUD5yOuqSflaMJ 2SYQ== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=EeTyHFbJy5rhBfWD0hnvFzbXupDmLYxqq1Exk7EAP/w=; b=JNI1jxf8w/4a/G/hYO7wklJzhohsFVQd/tB4FrISrVvB3UshQ0A5XFaK09ls0OEsIu UkUUSAusQrkqMmNiAuvFnmOFI53sm96K+0jKQUK2U5+b+D2EybPIRnaRhX8urjnWFiFr JUqhaw0i2o/Vj6T9p4Ed08Dn5nNPgdavqDKLF+pi3IKGBV27jdUWzqM4Wetp1O8TIKDO bd273rB1dcCHKxpiQMGP30qMsfzNDcPnQaGr9VGsD6Vx17uw6ZjvnwGS8Gaad5F5lJbE 9S5KwJleceww07BUxwVgRtYnFNFC2PjDTmLKD0MUMz7U1abtfEc2FAycv4aZNTz0PV6g 1PZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZL28kT6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170903110400b001ab23cbe13bsi1265814plh.104.2023.05.26.12.35.03; Fri, 26 May 2023 12:35:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZL28kT6g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243280AbjEZTWw (ORCPT <rfc822;syz17693488234@gmail.com> + 99 others); Fri, 26 May 2023 15:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbjEZTWp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 26 May 2023 15:22:45 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B97D19A for <linux-kernel@vger.kernel.org>; Fri, 26 May 2023 12:22:43 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1ae615d5018so8439935ad.1 for <linux-kernel@vger.kernel.org>; Fri, 26 May 2023 12:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128962; x=1687720962; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EeTyHFbJy5rhBfWD0hnvFzbXupDmLYxqq1Exk7EAP/w=; b=ZL28kT6giCxmUR4KbNlszsaCvOIkmmxXrArlq9gzG28NUSNGZS0d060fkS8h/yG2ob p67OqTG14X94RPFNbEQn5uPRCkkt5MhdTtvGDmXiuk5Qt0Fj2LiBn8NvhQv3MIT4oBUb qIubhaxXsg1Jn1S73vFLcdu9T7jdRv3uer6F8L9M5juE9aLNe77K+5p5VcdfD+AbB3Gp F7RNCjOD+/hhf1jzqhPERjSpJOSwiOeLQf5Sk66YcUcK+mxx/u1BEAfnEulwx76XDmFQ CuK/OSB8BLs+/ToXrZI27HU7Y4S/4aT6Ae5DuE+mYQf0LXDW9Ea10iZgwKYjZKLFkzPR OT0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128962; x=1687720962; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EeTyHFbJy5rhBfWD0hnvFzbXupDmLYxqq1Exk7EAP/w=; b=gTOmSGZ40kSCIlP4CHtBwhsbplFJNev8j+Y1O/p4AfKeTVjZ9r8B34KOfXi8J7QwVn PHujkHe+uV0/Bij0Ky0UqyfhT7pZfy/dYCPntCNIwaQgPbvzU8u900/r8GLBH9tcM4Nm PF/J6/3CJUz9KI3IANks2dUWRy1g41F0/CRSJ20/1iIbgYIbytCQP8j2hibkK+che7i8 LJzMRAvFW3PWJ4RQjl3SfDYtPbaZzW1FC2mVVTnSlE+oi6yN4Xxu+wwnID82uXuB9I9Y HaDb133/7CPSytjmjH7gk+oLpBdRbn6xre6P6by7GQdfJPDQ38O4U2enIcDsCVK374vg 5hKw== X-Gm-Message-State: AC+VfDyu8SdPmSgCs0CrJIJPsXTumOJgrZO/YN/ql7+m7jtsa+0CmqXp yOdaAdQeZE6vHl3tK+ke7dk6Mg== X-Received: by 2002:a17:902:c1c4:b0:1ac:b4db:6a62 with SMTP id c4-20020a170902c1c400b001acb4db6a62mr3794057plc.65.1685128962376; Fri, 26 May 2023 12:22:42 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:22:42 -0700 (PDT) From: Bhupesh Sharma <bhupesh.sharma@linaro.org> To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org, djakov@kernel.org, stephan@gerhold.net, Anders Roxell <anders.roxell@linaro.org>, Linux Kernel Functional Testing <lkft@linaro.org> Subject: [PATCH v8 02/11] dt-bindings: dma: Increase iommu maxItems for BAM DMA Date: Sat, 27 May 2023 00:52:01 +0530 Message-Id: <20230526192210.3146896-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766986600285640621?= X-GMAIL-MSGID: =?utf-8?q?1766986600285640621?= |
Series |
arm64: qcom: Enable Crypto Engine for a few Qualcomm SoCs
|
|
Commit Message
Bhupesh Sharma
May 26, 2023, 7:22 p.m. UTC
Since SM8450 BAM DMA engine supports five iommu entries, increase the maxItems in the iommu property section, without which 'dtbs_check' reports the following error: arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dtb: dma-controller@1dc4000: iommus: is too long Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Tested-by: Anders Roxell <anders.roxell@linaro.org> Tested-by: Linux Kernel Functional Testing <lkft@linaro.org> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> --- Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 26/05/2023 21:22, Bhupesh Sharma wrote: > Since SM8450 BAM DMA engine supports five iommu entries, > increase the maxItems in the iommu property section, without > which 'dtbs_check' reports the following error: > > arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dtb: > dma-controller@1dc4000: iommus: is too long > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Tested-by: Anders Roxell <anders.roxell@linaro.org> > Tested-by: Linux Kernel Functional Testing <lkft@linaro.org> > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > --- > Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml > index c663b6102f50..5636d38f712a 100644 > --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml > +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml > @@ -44,7 +44,7 @@ properties: > > iommus: > minItems: 1 > - maxItems: 4 > + maxItems: 5 This needs at least 6 (sm8250). Best regards, Krzysztof
On 26/05/2023 21:22, Bhupesh Sharma wrote: > Since SM8450 BAM DMA engine supports five iommu entries, > increase the maxItems in the iommu property section, without > which 'dtbs_check' reports the following error: > > arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dtb: > dma-controller@1dc4000: iommus: is too long Also, please drop error message, because it is not true. The files do not have such device node, so you cannot have such warning. Please rewrite the commit msg to explain that certain devices, e.g. sm8250, use more iommus. Best regards, Krzysztof
Hi Krzysztof, On 6/18/23 2:09 PM, Krzysztof Kozlowski wrote: > On 26/05/2023 21:22, Bhupesh Sharma wrote: >> Since SM8450 BAM DMA engine supports five iommu entries, >> increase the maxItems in the iommu property section, without >> which 'dtbs_check' reports the following error: >> >> arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dtb: >> dma-controller@1dc4000: iommus: is too long > > Also, please drop error message, because it is not true. The files do > not have such device node, so you cannot have such warning. > > Please rewrite the commit msg to explain that certain devices, e.g. > sm8250, use more iommus. I have sent a v9 (which can be seen here: <https://lore.kernel.org/linux-arm-msm/20230630082230.2264698-1-bhupesh.sharma@linaro.org/>), which addresses your review comments shared on v8. Please help review. Thanks, Bhupesh
diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index c663b6102f50..5636d38f712a 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -44,7 +44,7 @@ properties: iommus: minItems: 1 - maxItems: 4 + maxItems: 5 num-channels: $ref: /schemas/types.yaml#/definitions/uint32