Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp73885pxw; Fri, 8 Apr 2022 01:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+sQtAdkG/WMWlRzNx5Rp6JCSHwy2i1lRFBVmIuWad/mwdPGDa0sEIOKZuf1PUXaS4l1vq X-Received: by 2002:a17:902:b613:b0:156:7d82:c09b with SMTP id b19-20020a170902b61300b001567d82c09bmr18198877pls.80.1649405423451; Fri, 08 Apr 2022 01:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649405423; cv=none; d=google.com; s=arc-20160816; b=0nqktv7TIcf8Wrv1d1Uh+59tauanL4Q9jzP/WBd2CAEilYrCmECetX+7GVk5qBZ+c5 NpQOuSf/AzIusnPlQoWJBv6waSqAbUKQp7W/rl5iS7nsfK69j0HfPOX1aUY626wiyvq2 hen1I5S5oksEFqYBh8LRm1mBQwbPDOlb8vXbGUJcli93duoXrE1cI84uma8mFA+GFgOY iD8Jmzs4CsZoEIVuC6xGEIgcznJGTHuqz2ismt3RQOtKfiLkXtdnakw+pdNN8tfKpXgu k6mq9UkXTx6uxtDU5bSs2Mtsgza+udr28fimMQ4f7M1M/jJ+lRlYRZgJDa11vBQPnAzp QrFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J1QVpP3nerTWKa1cyXGMgzBZ9LJVJEdqC7pjfww4Eh0=; b=GN4IgD56ywgVA0RWWjhKgX/Fgj/0eV4rove6T0MHzsGHH6VSeaS/+e3jenJkv3mqZb XL1M0WlVl5uu3FHuhrkL1SgXqblzfzLkMA0Voj9lu7JTr092dNBtQC7paOzTp+QGiUhZ WlcJmRXaqCmNyHqO3p4tW5D5nGA5CNz8dtJORZxJgemTZ2Tbuxi9hqzScMCGD0JrjFxX 4xKJBm7zHbNhgZZ4LjvbHotrbjug4g+Cnw6356Gs6miOe1NRHtqbqVHqMufiBsGn2WEi PWhfyC5RXQ9VrIhjuBWyHs1/HOXZHeI9bIJFLpcFMvjH0e28LAOq4+CYrS/cdgSiVMdo YE/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=IeHertmL; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl14-20020a17090b384e00b001cb1ec219a2si3381087pjb.25.2022.04.08.01.10.11; Fri, 08 Apr 2022 01:10:23 -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=@sifive.com header.s=google header.b=IeHertmL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbiDHIFo (ORCPT + 99 others); Fri, 8 Apr 2022 04:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbiDHIFh (ORCPT ); Fri, 8 Apr 2022 04:05:37 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888821AF37 for ; Fri, 8 Apr 2022 01:03:34 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id bu29so13810107lfb.0 for ; Fri, 08 Apr 2022 01:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J1QVpP3nerTWKa1cyXGMgzBZ9LJVJEdqC7pjfww4Eh0=; b=IeHertmL2Qe+vuZ8bL1egILsY7UVK9i7WmMVBevq7VhIsjazs1pJ+Ube2AyCXTxyLx kPIMhbh0ndj9+nSc9CyU7BM9LpmGocVAs1rADnKyDy8c6JuYZ+cKpmbwwLq3sIQjW4xG 2WqhW5ZdCysAjQZtB6lo1phb0nqgzgv6uVjFnREhiOttLuIKWNk1mSvSPx061KIJJgVQ 9JDvEoyEJV5+YdTQPoficS4rT+6Rsd9Llr2uKJ7lwes/Nir2gNcr5XPsU8rc94bWOCHQ 4NSR1q6+Tenym6U0iGBZigdZPrnYdalm9sEJUnagjyHXi+oocrTVrRqx3TRq2Gkq/bSZ gEuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J1QVpP3nerTWKa1cyXGMgzBZ9LJVJEdqC7pjfww4Eh0=; b=Q/x1vwKRGe0vFAGuFWPd5WXHgEojhZb/REANMPdEa+6oDY6IsS69TtRwxzcmydCEYF 7k9Lk9OrRrMdI5BDRBH6vICnKDRCZegb8RMk4FFAIPBS7S3CpUSv853PmZkQ0jiSs1R9 Tjv2ogJt2VZQW9U9mMS+ThYsKAzlmXnnvequI0Xm/2Lqc9mmhsdRGM2v+ayqPCRYxYnY SzwXRv8zc2EIN6izCrwP3T6TGhajucF0WD1rWzTRmIPV6HoXJOWOepTkNTESqN2F7BSx +DZBqAjj+fhmyt7rdt/YdaeMKR99irlDrVMEa8Fu8W7jjx8pCUKV6Om8ZoVOrcXgZvnU sKjw== X-Gm-Message-State: AOAM530VHjvd15gUErJqc9ojJZ6O22ZkCk7wrwxIHCDxpfRNLkkxvmqI XDZD/jneDcWe2bw7hd1MRHaTySRT4TJctotgJc0W/w== X-Received: by 2002:ac2:4834:0:b0:45d:519d:933 with SMTP id 20-20020ac24834000000b0045d519d0933mr12035301lft.5.1649405012705; Fri, 08 Apr 2022 01:03:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zong Li Date: Fri, 8 Apr 2022 16:03:22 +0800 Message-ID: Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property To: Vinod Koul Cc: Palmer Dabbelt , Rob Herring , Paul Walmsley , Albert Ou , Conor Dooley , Geert Uytterhoeven , Bin Meng , Green Wan , dmaengine , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org List" , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, Mar 31, 2022 at 1:22 PM Vinod Koul wrote: > > On 30-03-22, 20:15, Palmer Dabbelt wrote: > > On Mon, 28 Mar 2022 02:52:21 PDT (-0700), zong.li@sifive.com wrote: > > > The PDMA driver currently assumes there are four channels by default, it > > > might cause the error if there is actually less than four channels. > > > Change that by getting number of channel dynamically from device tree. > > > For backwards-compatible, it uses the default value (i.e. 4) when there > > > is no 'dma-channels' information in dts. > > > > > > This patch set contains the dts and dt-bindings change. > > > > > > Changed in v8: > > > - Rebase on master > > > - Remove modification of microchip-mpfs.dtsi > > > - Rename DMA node name of fu540-c000.dtsi > > > > > > Changed in v7: > > > - Rebase on tag v5.17-rc7 > > > - Modify the subject of patch > > > > > > Changed in v6: > > > - Rebase on tag v5.17-rc6 > > > - Change sf_pdma.chans[] to a flexible array member. > > > > > > Changed in v5: > > > - Rebase on tag v5.17-rc3 > > > - Fix typo in dt-bindings and commit message > > > - Add PDMA versioning scheme for compatible > > > > > > Changed in v4: > > > - Remove cflags of debug use reported-by: kernel test robot > > > > > > Changed in v3: > > > - Fix allocating wrong size > > > - Return error if 'dma-channels' is larger than maximum > > > > > > Changed in v2: > > > - Rebase on tag v5.16 > > > - Use 4 as default value of dma-channels > > > > > > Zong Li (4): > > > dt-bindings: dma-engine: sifive,fu540: Add dma-channels property and > > > modify compatible > > > riscv: dts: Add dma-channels property and modify compatible > > > riscv: dts: rename the node name of dma > > > dmaengine: sf-pdma: Get number of channel by device tree > > > > > > .../bindings/dma/sifive,fu540-c000-pdma.yaml | 19 +++++++++++++-- > > > arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 5 ++-- > > > drivers/dma/sf-pdma/sf-pdma.c | 24 ++++++++++++------- > > > drivers/dma/sf-pdma/sf-pdma.h | 8 ++----- > > > 4 files changed, 38 insertions(+), 18 deletions(-) > > > > Thanks, these are on for-next. > > The drivers/dma/ should go thru dmaengine tree. During merge window I > dont apply the patches > > -- > ~Vinod Hi Vinod, Many thanks for considering this patchset :) Could I know if there is an opportunity to pick this into the following few -rc kernels?