From patchwork Wed Apr 5 14:08:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13201800 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71E21C76188 for ; Wed, 5 Apr 2023 14:10:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238346AbjDEOKg (ORCPT ); Wed, 5 Apr 2023 10:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238709AbjDEOKR (ORCPT ); Wed, 5 Apr 2023 10:10:17 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 749706A4E; Wed, 5 Apr 2023 07:09:41 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.98,319,1673881200"; d="scan'208";a="158393591" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 05 Apr 2023 23:08:55 +0900 Received: from localhost.localdomain (unknown [10.226.93.81]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 9CFC442D7816; Wed, 5 Apr 2023 23:08:53 +0900 (JST) From: Biju Das To: Vinod Koul Cc: Biju Das , Lad Prabhakar , Geert Uytterhoeven , dmaengine@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 0/5] RZ/G2L DMAC enhancements Date: Wed, 5 Apr 2023 15:08:37 +0100 Message-Id: <20230405140842.201883-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org This patch series aims to add enhancement to RZ/G2L DMAC driver. It is basically for supporting SCIF DMA. It is based on a patch in the BSP by Long Luu which is similar to rcar-dmac implementation. v1->v2: * Updated commit description for patch#{1,2,3} * Introduced rz_dmac_invalidate_lmdesc(), so that same code is shared between rz_dmac_free_chan_resources() and rz_dmac_terminate_all() for invalidating hardware descriptors. * Replaced the loop for->for_each_sg and dropped sgl and sg_len variables from calculate_total_bytes_in_vd(). * Added resume callback(). * Added patch#4 trivial code clean-ups for rz_dmac_lmdesc_recycle() and rz_dmac_prep_slave_sg(). * Added patch#5 for rz_dmac_prepare_descs_for_slave_sg() improvements. Tested audio, RSPI and scifa with these changes. 14: 67366 0 GICv3 157 Edge 11820000.dma-controller:0 15: 67410 0 GICv3 158 Edge 11820000.dma-controller:1 16: 56353 0 GICv3 159 Edge 11820000.dma-controller:2 17: 56353 0 GICv3 160 Edge 11820000.dma-controller:3 18: 8192 0 GICv3 161 Edge 11820000.dma-controller:4 19: 5952 0 GICv3 162 Edge 11820000.dma-controller:5 20: 0 0 GICv3 163 Edge 11820000.dma-controller:6 21: 0 0 GICv3 164 Edge 11820000.dma-controller:7 22: 0 0 GICv3 165 Edge 11820000.dma-controller:8 23: 0 0 GICv3 166 Edge 11820000.dma-controller:9 24: 0 0 GICv3 167 Edge 11820000.dma-controller:10 25: 0 0 GICv3 168 Edge 11820000.dma-controller:11 26: 0 0 GICv3 169 Edge 11820000.dma-controller:12 27: 0 0 GICv3 170 Edge 11820000.dma-controller:13 28: 0 0 GICv3 171 Edge 11820000.dma-controller:14 29: 0 0 GICv3 172 Edge 11820000.dma-controller:15 Biju Das (5): dmaengine: sh: rz-dmac: Add rz_dmac_invalidate_lmdesc() dmaengine: sh: rz-dmac: Add device_tx_status() callback dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks dmaengine: sh: rz-dmac: Trivial code clean-ups dmaengine: sh: rz-dmac: rz_dmac_prepare_descs_for_slave_sg() improvements drivers/dma/sh/rz-dmac.c | 246 +++++++++++++++++++++++++++++++++++---- 1 file changed, 222 insertions(+), 24 deletions(-)