Message ID | 20230512141445.2026660-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 b10csp5149152vqo; Fri, 12 May 2023 07:26:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6s0mTc+CVhaGOnpVz6f6wMwcHBT/CohZZrOrZAJMv9r3Ya4YK2at9zOotl7sF0XhX+ZB5M X-Received: by 2002:a17:90a:730a:b0:24e:33c6:9ef3 with SMTP id m10-20020a17090a730a00b0024e33c69ef3mr25054485pjk.3.1683901611442; Fri, 12 May 2023 07:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683901611; cv=none; d=google.com; s=arc-20160816; b=kjgjL0xezr5IbbNhwr6je638NMbJd3aZ8qk2tEYFAFOInm8yrZm5HQPtUH6MCz3Dvy R4Zdpa4wa/HL2jZ9K61k9cfofLSi1Bw51WkjWvLOChY1UIN37r1j7C/hkqTH4EHJz3g+ SbkGFv0Jwotz0lhzEZfVRA/hGKlprdVp+dumDLzJXzpjfs67OYroONIES7wYNKf9/W2r h/9xZewJpsDNDSHYtypXZ2WNFWHUHWF+H9ioDk/MSoGjHwlFU/M+dE6JPd8dfA2PgYv1 LzsvF34TTqq6tkeLJK4jBaQBpqOsemOdzw/8Cxa0s1L7E/IPOimmLGf6YmTOFRXE376a xM4w== 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=pngyL4TIzS1CvtXscbyCzirkbVA5epZcre6BdDz2Cu0=; b=FxSRQcrd8wiD2Tnrh6eaajmRG5QT2QpI3EHXSJiTLDDtXg18lIvvmr+41O4IzQ052l xvHoZIjWqXx1OJFiFBR6Sa18Ug8SuNJudUxZelTmmigmdUcygK2fkvTbnt7Qos7RPWED FLoCsmF9wExfZ4ujfDH7jnZXuheSBpFCGFsCWM1vREbGbJyNYEuFv5l1wdfvESN5bKGE 4dsqJbketj4GvO+lmxmY6GY+2/EjTf6OEEntAPPEBwt7YIBsISQzQqrVEd9Fmq/vW9JN ANJ02JZEpSzUzO8RfGJNt1lpUBvRQv9FUSEqY0/OTO/HKRmmu8gjXA8toZcJJWDZ6OE5 YYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=qhhVHD5E; 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 mn16-20020a17090b189000b00246e9abad4bsi23069402pjb.85.2023.05.12.07.26.36; Fri, 12 May 2023 07:26:51 -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=qhhVHD5E; 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 S241274AbjELOPG (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Fri, 12 May 2023 10:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240231AbjELOPF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 12 May 2023 10:15:05 -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 DD48293F8 for <linux-kernel@vger.kernel.org>; Fri, 12 May 2023 07:15:02 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-559d8e22306so180186967b3.1 for <linux-kernel@vger.kernel.org>; Fri, 12 May 2023 07:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683900902; x=1686492902; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=pngyL4TIzS1CvtXscbyCzirkbVA5epZcre6BdDz2Cu0=; b=qhhVHD5EUz8QEdzS65D+tFOdCO3mGVQqdDkwiIO41/w6GP53SZC5Cgdd/8ySrnMp9u RMGjvWHNAYjRJoOGnOCu7tBUxru18cegsPab6aakHul2rIgQSVG+sL7xCf8RkYI8wsGM ZveQG3IqUWPBbEqGZTHTJ0V1Z0V6mkXuLY+A/XpYb7Hy8VuK5tj+aHKtxkt2FlafmXxG sazdsky50gbH7dz7PVWT7RJ9bHa6IFEGbuJYs6Il88+cuFUImCEhjQ9iVi10z22xxXTf rCEWSc9EHlXZCPiMbafqZhewdr1b5P/lzdtkS09oTCLFGyenu6maTqlSiiYPLx9lXoxY +2Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683900902; x=1686492902; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pngyL4TIzS1CvtXscbyCzirkbVA5epZcre6BdDz2Cu0=; b=LG/37K0uBD2bVVhsauRk7vZoQqsf3lF077LJXnP7wwDuyHZ5kr58uNzTsSuHYGd2xG ShRz0wwRjp+qoHM3VDz7bllBbS7WXjtl98X7SdrND9fjnv03mJfEs9Z9AuAw10dTP4qR Y5gsrH8YmSuGrniSent96Wc/KWIF+oZ9pITLkDWbjje5KUKDzOqcNhvp0r0eSXAhJYFr frU6bsq4zZhncfMkECqFPoGN9W9sh73V2b3JXzwNb/UcZz7Fki9Xa0qZQBRM0jj3WAga f1lrsLs1pZaaXpgLlah4Z3qMIJVLIsH7bOfnZNBVUrhcf2LLgEHVQMjPSBWu5vsjNy/y bD4w== X-Gm-Message-State: AC+VfDys3sfccGwYNW1fl4tm5v2k7hdHgadyc7PBpptyYfWupyNJacuM phcIV4voCURfUYmr6tr0N2FpKpS3PNq1xg== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a81:cf01:0:b0:55d:9f32:6a12 with SMTP id u1-20020a81cf01000000b0055d9f326a12mr15117610ywi.0.1683900902158; Fri, 12 May 2023 07:15:02 -0700 (PDT) Date: Fri, 12 May 2023 14:14:39 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.1.606.ga4b1b128d6-goog Message-ID: <20230512141445.2026660-1-joychakr@google.com> Subject: [PATCH v2 0/6] dmaengine: pl330: Updates and logical changes for peripheral usecases From: Joy Chakraborty <joychakr@google.com> To: Vinod Koul <vkoul@kernel.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?1765698815896244386?= X-GMAIL-MSGID: =?utf-8?q?1765698815896244386?= |
Series |
dmaengine: pl330: Updates and logical changes for peripheral usecases
|
|
Message
Joy Chakraborty
May 12, 2023, 2:14 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 logical changes in the last 2 patches: -Allow transactions towards memory to use the maximum possible bus width (AxSize) during a memory to peripheral dma usage or vise-versa. -Add logic to copy left over data after executing bursts to the peripheral in singles instead of bursts. --- V1->V2 Changes : Remove Quirk logic and update description texts. --- Joy Chakraborty (6): 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: Optimize AxSize for peripheral usecases dmaengine: pl330: Use dma singles for peripheral _dregs drivers/dma/pl330.c | 223 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 185 insertions(+), 38 deletions(-)