Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp660527rwr; Fri, 5 May 2023 03:08:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lcenN4qOfbwLxschGF187iPLn0vLJ6CG1Eprm3iamY+to7vrLcwnhtW+VaM+UhruBfoYq X-Received: by 2002:a17:903:1cb:b0:1a6:f5d5:b7f6 with SMTP id e11-20020a17090301cb00b001a6f5d5b7f6mr7793944plh.10.1683281318649; Fri, 05 May 2023 03:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683281318; cv=none; d=google.com; s=arc-20160816; b=TM9j8FTTVFC+/Uy6MpyKxfcf8AoXLLGp7sYc+PL//1sLoRSuHF2gabFWh4JP0c08iO 1fHygnHTBIBV9YOj1XYK18oi4I+abuc9aB9iMlZBfqujS+CZ8iqCJm7eGpOoV0q9XaZH g/SSnUOP8Up/VYTT72/+stihSL1Mtl85OAhPSBiFoHtWieabtl5HviELvtnRRFKDnPZe El1j5UwRS8nNpeWqhnMqkzcDF3fAyCj06pvjoYYq2+K/env/4lTAu0EEg7CvfcTYpJVZ xIpRfKwfOf5Me3GWUCt8LdsoZKmDfdZCBEbE6fg7lXjDKm0wWPB+qZcIXtLA3ZnZau0i swhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GCZ5gOZGay01QN1wHjQAh8Ri+WPvgr7jsxXO0RRuS7o=; b=KqhLPLsZkYbeAOryttLr3yCXvpJ4DopeQAyNt3mz5MJGEz6GcxTKHL2NPEwXh18ds9 xiQX01OtFC6r8Z7rWQj6GcSqFtexIuWnTz0G24PE/oNDTQaZ0pO3/Epj290BAYMU5gKi 2xcvKaW2TCKLbSuXLZg3GKdajFuUZZ5Z4aEFoRZBSepaLevdXDj9saNBsPnvt18MnMCD 1zHoxl85POGAMqfpaRXR1IWMgPcXioQ89gxEQpz+J+AaG1/zLvczXIki3PoFuU73/5K4 AX4sevG2BuBP+zHhuOhfPj0mjO/6o0YlmmlfmCyV7HMP8VGD2kprP+rXSLl43wRLoKSF aXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="FD/WmZYV"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a170902be0a00b001ab02f505ffsi1362129pls.87.2023.05.05.03.08.20; Fri, 05 May 2023 03:08: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=@google.com header.s=20221208 header.b="FD/WmZYV"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231709AbjEEJpE (ORCPT + 99 others); Fri, 5 May 2023 05:45:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231517AbjEEJpB (ORCPT ); Fri, 5 May 2023 05:45:01 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 157A33C20 for ; Fri, 5 May 2023 02:44:59 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so13025533276.0 for ; Fri, 05 May 2023 02:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683279898; x=1685871898; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GCZ5gOZGay01QN1wHjQAh8Ri+WPvgr7jsxXO0RRuS7o=; b=FD/WmZYVUi3EMNZPPg/hdLHt9s+vJ0y0SFqPowwwpMxpVpug2hrEEUQFsWQjONS9kr 0F6oayVS2FiN9rO8qOeW4zKxcjfV8ijlNCKyyLfQCCErFAR87zdNYcL7q28xNDEJDSCD WrLx0PorpjnEsaEJUWxevDCk4FAKb/kjpWaJOK3PzZ9L3hIYS4ZIH+bPzNwvb22IOuxN RT6Ss4h3HeL6Q1q1pc69bBAeIVuxewV2w/zXUXeP94Cy7oCBCqyLbe5heXjDSYXBxMa/ VPGcBIsuZKQRi5ET18ViQWvc3nI/AZr3tOuDt6h6vgB6uXHB8xWzydu8sVTcD/2q+/4j 9Hdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683279898; x=1685871898; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GCZ5gOZGay01QN1wHjQAh8Ri+WPvgr7jsxXO0RRuS7o=; b=A1GpYTiesKSsPSXKSKEGnzOo3lJoCRp4aJIJZaV+56XohlnSokPAqsIGi+VgvMxZTs cQYEQldhGnlfwgDUdsm0GxL+xEl1B3oYejBw3VYGM3n23LHr0nAJQTxFO1SUNduZCAD4 lZ5y4Ea03Na+YPjsnjy9f+v6UwTATGXZF5T1O9RpMyHIqUgbYoQJL5+ZK5+6pT7Wa1WE 8SzzOQTpYyH8gx9n2THpa7r32EOWlDtueY190kFJ4wADkPw9Zz4SzwrFmhdttwXwoScD 7bn80Vvgcxo/wC4JeaBCvzs5Ydb8FGWujywz9e6TLK8ZaiBxaE0wJ/Y/kPJX3WkFG7Oc pzLg== X-Gm-Message-State: AC+VfDzQFQzP/bHfEUxpA0XLuOA/EZZy9G3f/EUtXgrhSFTKtsdojDFK GgB0zDpoZcuFNbFPb/10zy+Do7flttX/rnc+PlTdmA== X-Received: by 2002:a25:3287:0:b0:b98:c6bb:137b with SMTP id y129-20020a253287000000b00b98c6bb137bmr2814731yby.9.1683279898093; Fri, 05 May 2023 02:44:58 -0700 (PDT) MIME-Version: 1.0 References: <20230504145737.286444-1-joychakr@google.com> <20230504145737.286444-8-joychakr@google.com> <78616bc1-8d9e-4a1c-70d6-ad62c2cfa8a8@linaro.org> In-Reply-To: <78616bc1-8d9e-4a1c-70d6-ad62c2cfa8a8@linaro.org> From: Joy Chakraborty Date: Fri, 5 May 2023 15:14:45 +0530 Message-ID: Subject: Re: [PATCH 7/7] dt-bindings: dmaengine: pl330: Add new quirks To: Krzysztof Kozlowski 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 4, 2023 at 8:38=E2=80=AFPM 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. " > > > > 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/Doc= umentation/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 descript= ion: " 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. " > > + > > + 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 burst size and burst length configured at the peripheral. n being bytes left after the major chunk is transferred with peripheral configured burst transactions. " > > Best regards, > Krzysztof > Will update the patch series if this is satisfactory. Thanks Joy