Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp806301rwr; Fri, 5 May 2023 05:26:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WR5yNPglk6mgAQVuxqWds9B2oKACalGx5lvOn/ty+OCdJSbsamcs1AfK+4z9cOf0nsG4i X-Received: by 2002:a17:902:680a:b0:1ab:1b9:c1eb with SMTP id h10-20020a170902680a00b001ab01b9c1ebmr1112728plk.27.1683289604466; Fri, 05 May 2023 05:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683289604; cv=none; d=google.com; s=arc-20160816; b=zCVi4wEIXcpDOIr21vDLgo0l2Ssp1NeIZj5G2sYiJne0AI/TtJEbxZWqzWm04PA1y8 SLI3HNzJJOl6O9PkGbkhznyfPUSC+uiqLw+RFK8wIybWuXV4kaFNcabAzF5q+mlePm/5 DwHsOyrFErpxJj6JYeLeyPXnuHV8EbatVTIilyyvvTZ7wQHfnItAFONzE2x2kkZ0h4z4 EQWPfWFOrVfyFCaxD5yUD4gEOkUc4ynoBouEqkphcfjaXaKtoaLek/6+yGsqasAgxT8k RzDXI3jU6uJrfOQOX69AfJPFx1ShJszyYXxibTUFM25RaD3XzFREaUul9T5JK++8HxX9 npSA== 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=1HOLYat53OzMdJvFHJRHOISwzlfpZ6pkm9SR4ZOQdmk=; b=OroBySICkwwFAFeJvua15F65gmz7fZFqsNkyc2yXhPQcQBthMCZPB6i5IjLAmDPmU1 6sKZKnlyCcPICQgxzOO4FiSqF3LbLcOlbgSjslurQmVB3AdQ0gKzOGoUPboU6SxT6n8z HOEKBgQLvU51fv0y4LtTm/4lKu10uDvQcZ9MZKlj60eugvG8FtvLahdkvcHBPNJUMmBl hizqCg88jtW6q9DZ4y2ztlAhUXoxztKi1qdrp50fQYewZkAMwuCxk92deB3hIDKu8MNg T1MnQlFKRLSnuzdDmS/EkqTkHH9eT6jgTo/IRz9p3nuubzAX4i1miDvecLH0nSF6TTzt mZjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=arXhWxR6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a170903111200b001aaecb74f86si1656568plh.569.2023.05.05.05.26.31; Fri, 05 May 2023 05:26:44 -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=arXhWxR6; 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 S232080AbjEEMX1 (ORCPT + 99 others); Fri, 5 May 2023 08:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbjEEMXZ (ORCPT ); Fri, 5 May 2023 08:23:25 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A37011AEF6 for ; Fri, 5 May 2023 05:23:23 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-50bc5197d33so3249729a12.1 for ; Fri, 05 May 2023 05:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683289402; x=1685881402; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1HOLYat53OzMdJvFHJRHOISwzlfpZ6pkm9SR4ZOQdmk=; b=arXhWxR6k7ZnyjSBCTJhnTuaTBWpGXt66C1xmvs0SgR7Cd7EgjK32zZXJnhck6k8NM XDC3AnhtJdPDzPXUOAcDe8Xqm5EbUT8orUHnkKlafZBBdr4yWseqzfZ70txIGEcuyBld C7e0y3acOHcGaVwZ0R+J9RIGDSlJ5i7AbcarubtJreyXb+BYjA2X9ttuhVa6MjE3Hih5 ZbVxZ4KQHFEeQKrYFkKV6niLVgrd3IzcASk9HOjRbPnL1k0rwXPj3fw1uA7LBAYB5d38 PTTX0JxLCi8cPF6saVKS2Xi/8q19Idx0voC2W9Qzzl/CDZxGHycf0fclvgKDUBt5xJYY iZzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683289402; x=1685881402; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1HOLYat53OzMdJvFHJRHOISwzlfpZ6pkm9SR4ZOQdmk=; b=MA/6R2XA7cXypTVjFLhThMKujkzLrsxWbJwD8m/kWgCJRE48l2nmOPb6eHxjfYiYLG nYwWnjQT30UJ0tN3YVPBRBpsGMuM62xqyDZRIZrktJqa9DHMkQVNmU4mBXRQnU3PEfQ5 OTVbpb6Z+sGQ+SwODBtTo+wPUDskoFMDKZ6/XUUlG2qV5X2crVw1bkjCVrdyakyh8RNt egbTH9ThDHFRF0QLdpEZiyNiQMfVnVZZIvuL5yFX2ScfUv8hyQEBZpwNOKZmb2G5AOAH n3fOoSkAq6S50AHSnKMHf7E6ztLHfZpSNAc91CANsHXqFs2iUoexwEWDtXRzRBsXBrTC vt4Q== X-Gm-Message-State: AC+VfDwmlcyBIusdDdEJIm3evaTxQyQtlYz0ZL5rDH6mrBTNhyAbyaSd pykany8mHkdllCatudrM7ReR/OYnx6EdN+M68TsOWg== X-Received: by 2002:a05:6402:1a27:b0:50b:d5e5:519d with SMTP id be7-20020a0564021a2700b0050bd5e5519dmr1315564edb.4.1683289402136; Fri, 05 May 2023 05:23:22 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:52e:24ce:bbc1:127d? ([2a02:810d:15c0:828:52e:24ce:bbc1:127d]) by smtp.gmail.com with ESMTPSA id x2-20020aa7d6c2000000b0050bd47f9073sm2906899edr.39.2023.05.05.05.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 05:23:21 -0700 (PDT) Message-ID: <3d9d545d-a620-85f6-b7bd-d57a8729f818@linaro.org> Date: Fri, 5 May 2023 14:23:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 7/7] dt-bindings: dmaengine: pl330: Add new quirks Content-Language: en-US To: Joy Chakraborty Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, manugautam@google.com, danielmentz@google.com, sjadavani@google.com References: <20230504145737.286444-1-joychakr@google.com> <20230504145737.286444-8-joychakr@google.com> <78616bc1-8d9e-4a1c-70d6-ad62c2cfa8a8@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On 05/05/2023 11:44, Joy Chakraborty wrote: > On Thu, May 4, 2023 at 8:38 PM Krzysztof Kozlowski > wrote: >> >> On 04/05/2023 16:57, Joy Chakraborty wrote: >>> Add 2 new quirks added to the driver "arm,pl330-optimize-dev2mem-axsize" >>> and "arm,pl330-periph-single-dregs" >> >> This we can see from the diff. You need to answer why? >> > > Sure will change it to: > " > Addition of following quirks : > - "arm,pl330-periph-use-diff-axsize" > AxSize of transactions to peripherals are limited by the peripheral > address width which inturn limits the AxSize used for transactions > towards memory. > This quirk will make transactions to memory use the maximum > possible bus width(AxSize), store data in MFIFO and use narrow > multi-beat transactions to move data to peripherals. > This only applies to transfers between memory and peripherals where > bus widths available are different for memory and the peripheral. > - "arm,pl330-periph-complete-with-singles" : > When transfer sizes are not a multiple of a block of burst > transfers (AxLen * AxSize configured at the peripheral), certain > peripherals might choose not to set the burst request at the > peripheral request interface of the DMA. > This quirk moves the remaining bytes to the peripheral using single > transactions. > " This does not answer why. You just copied again the patch contents. > >>> >>> Signed-off-by: Joy Chakraborty >>> --- >>> Documentation/devicetree/bindings/dma/arm,pl330.yaml | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/dma/arm,pl330.yaml b/Documentation/devicetree/bindings/dma/arm,pl330.yaml >>> index 4a3dd6f5309b..0499a7fba88d 100644 >>> --- a/Documentation/devicetree/bindings/dma/arm,pl330.yaml >>> +++ b/Documentation/devicetree/bindings/dma/arm,pl330.yaml >>> @@ -53,6 +53,14 @@ properties: >>> type: boolean >>> description: quirk for performing burst transfer only >>> >>> + arm,pl330-optimize-dev2mem-axsize: >>> + type: boolean >>> + description: quirk for optimizing AxSize used between dev<->mem >> >> This tells me nothing... Neither what it is about nor why this is >> property of a board or PL330 hardware implementation. Please describe >> hardware, not drivers. >> > > Will change the name to "arm,pl330-periph-use-diff-axsize" and add description: > " > Quirk to use different AxSize for bursts while accessing source and > destination when moving data between memory and peripheral. > Maximum possible bus width is used as AxSize for transactions towards > memory and transactions towards peripherals use AxSize as per > peripheral address width. > " Still no answer. Why this is property of a board or PL330 hardware implementation? I also asked to describe hardware but I still see "quirk to ...". We use "quirk" as concept in Linux driver. Describe the hardware, not Linux driver. > >>> + >>> + arm,pl330-periph-single-dregs: >>> + type: boolean >>> + description: quirk for using dma-singles for peripherals in _dregs() >> >> Same concerns. >> > > Will change the name to "arm,pl330-periph-complete-with-singles" and > add description: > " > Quirk to use dma singles n times instead of an n beat burst to > complete a transfer when the transfer size is not a multiple of the No, how you wrote it sounds like driver. Don't add driver quirks to DT. Best regards, Krzysztof