Message ID | 20230504145737.286444-1-joychakr@google.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp399151vqo; Thu, 4 May 2023 08:16:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YTuA6G8+e0ph4HJcwqvcTV1dItVkuxY2MvCVW6sf69WM7KG8I0ogDDsPSITBwnGd9k5P3 X-Received: by 2002:a17:90a:e38b:b0:24d:d50f:95d2 with SMTP id b11-20020a17090ae38b00b0024dd50f95d2mr2587672pjz.22.1683213412131; Thu, 04 May 2023 08:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683213412; cv=none; d=google.com; s=arc-20160816; b=HTglWJHILyP0BanOFJGuKMVxsjtMr6rmjZJDrFzGt3k6dt3BsQyX+y+yjMAmbvkG83 9+VKZM5tk0yWXQM0xapTAXQupO0/WQpRzuKeyinWzYU7CsJfuZlrkGUl6/xaS/mbiDK7 RECKQTSUMFB8aHb7R60WFk+zXh4b13p46F1HWxPvSsEHeQp+wcGUANIJ47RJ8xsFLvT4 NaFriqzJ8qxLpGsDRxruze4kOKbv00s3n9jddDkDzEo7AQw4LWAbSBnQRqmkRNuUIt03 Bvd/a5lekuXQ5+9XAlp4/em0qBT1Ta4sN8dHh3u8oHTHtTovpHiM5AawNvcFoT1IKXIZ R2cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=Pmr20K/ZpAJp2aUY+nQ3rpqyWCQwf4f5Z55uaqZkVDg=; b=Yhk0uDvwZQSYiWUnXei1mWJV0Vqum09+L2gHLnG52FOVw4+J7hW1X/VZcdeIIQfxnV 5T1DIboiuDv/L1ASZuN53JEQ7RyWG2vBPi8w+fq0Pmw4yIpQXj7QSP9LhTURcPJmzU0r AeLB0fYEz+35GWKq093R8kewgg4mw7cQiNZdDibueHUAq/46RiyoUtlHIZ468n0mw6jw M5pYDHSOQYynDihXPnL2/XFNclIanCRIfzXhM//ElOJPbDa+12X+/UXBqSWvf84xZql5 0Rgy9O22lzEubmTQZAm9KS0LlkwL9LKHUbyDrbSR+EN1UdwItLQvE376Yd1Pr6Q6qaFD 5qfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=d5nOMuVU; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a17090a298300b0024e01bbc60asi4240129pjd.117.2023.05.04.08.16.31; Thu, 04 May 2023 08:16:52 -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=d5nOMuVU; 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 S230493AbjEDO65 (ORCPT <rfc822;b08248@gmail.com> + 99 others); Thu, 4 May 2023 10:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjEDO6z (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 4 May 2023 10:58:55 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185E5271F for <linux-kernel@vger.kernel.org>; Thu, 4 May 2023 07:58:29 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-54f8a3f1961so5345797b3.0 for <linux-kernel@vger.kernel.org>; Thu, 04 May 2023 07:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683212280; x=1685804280; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Pmr20K/ZpAJp2aUY+nQ3rpqyWCQwf4f5Z55uaqZkVDg=; b=d5nOMuVUoPh/72H5jZh/xG5/fBi5V7QuTVqSDZsMrp5GT247BnmNs3NUq3wcupBlgJ N4MIqimTMl/+z8Me0peUqI+WsyCBulGuu4WfXTYuTtqiTHzp3AaniQjH0rRh+XgaTeQs Jm63crjVuAP8HXzGLiKmHukaFvmZkOHSNd94UjGUNJJy6kZq+vvHlUX+wkRySg97IOD2 bObXR3pBOq2xbbAvA39eZt94JSPnWXg4NrTb7Liq110611hjdJZD6lmGOVM0ssjhp5fX cp4GH0iFqMhHsgIB1e+HdMDAKy/Jc5K1qz5dhHFH3SHS89Aai2t/Px4K7pwdh998c8KK +z/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683212280; x=1685804280; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Pmr20K/ZpAJp2aUY+nQ3rpqyWCQwf4f5Z55uaqZkVDg=; b=XPdpQN975FSdrnL6EktPWynMTBjyC3mvN93DcdxpObsPZPjRX6OgCLluRVSFW2diug 3gPPMDahaGqWodkdMRtqr/UyeKDchoIaFF0yKdRLURIhoVRpfhtxW256/SVD1vcWNMSu wiysR8z2wSUUQV6MiR72OuLZMEUq4IoxpMOjrRlGDe9Xy6grMSeSV3FIIP8/556GiHL9 W6VUO4eLx34tbSsgSGUU6pbT0WmtuZQHhqi5KnfcFHHCARBeZ6NPeeeLztk0SiiDEdil nOlyREBH+ZoBPTp60bYaXP1/yuYnppBqatMNdzWkX8+8gb+n2C+ZOhU4Yvx5es2HVPeR LmAg== X-Gm-Message-State: AC+VfDzaxw4HOb20dPQvndRk7cEw8xjNdodJ5+yhvFyEXMCwrGVz7Hpo VFbkYpcQ7PVYkPrtR1dY4aUyNP8Do6am6w== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a81:c404:0:b0:543:bbdb:8c2b with SMTP id j4-20020a81c404000000b00543bbdb8c2bmr1445314ywi.10.1683212280489; Thu, 04 May 2023 07:58:00 -0700 (PDT) Date: Thu, 4 May 2023 14:57:30 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog Message-ID: <20230504145737.286444-1-joychakr@google.com> Subject: [PATCH 0/7] dmaengine: pl330: Updates and new quirks for peripheral usecases From: Joy Chakraborty <joychakr@google.com> To: Vinod Koul <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, manugautam@google.com, danielmentz@google.com, sjadavani@google.com, Joy Chakraborty <joychakr@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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: <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?1764977187005886041?= X-GMAIL-MSGID: =?utf-8?q?1764977187005886041?= |
Series |
dmaengine: pl330: Updates and new quirks for peripheral usecases
|
|
Message
Joy Chakraborty
May 4, 2023, 2:57 p.m. UTC
This patch series makes some initial minor and cosmetic changes: -Add variables and logic to handle separate source and destination AxSize and AxLen. -Use __ffs to calculate AxSize for consistency in the driver -Use switch-case in prep_slave_sg() for consistency -Change args get_burst_len() to remove redundant "len" and add burst_size so that it can be used in multiple places. to majorly enable addition of 2 quirks in the last 2 patches: -Addition of a quirk to allow transactions towards memory to use the maximum possible bus width (AxSize) during a memory to peripheral dma usage or vise-versa. -Addition of a quirk which makes PL330 copy left over data after executing bursts to the peripheral in singles instead of bursts. -Update dt-bindings to represent the quirks Quirks are explained further in the commit text. --- Joy Chakraborty (7): dmaengine: pl330: Separate SRC and DST burst size and len dmaengine: pl330: Use FFS to calculate burst size dmaengine: pl330: Change if-else to switch-case for consistency dmaengine: pl330: Change unused arg "len" from get_burst_len() dmaengine: pl330: Quirk to optimize AxSize for peripheral usecases dmaengine: pl330: Quirk to use DMA singles for peripheral _dregs dt-bindings: dmaengine: pl330: Add new quirks .../devicetree/bindings/dma/arm,pl330.yaml | 8 + drivers/dma/pl330.c | 245 +++++++++++++++--- 2 files changed, 213 insertions(+), 40 deletions(-)