Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1216218pxb; Fri, 1 Apr 2022 07:37:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9AbMVUlxy0axGXBgBxa+6peVZp0vSarBXswayBcSqIa6CYLvNw+o0p7UBpOmfM3xTVwM1 X-Received: by 2002:a17:907:3e82:b0:6e1:3fe3:9b14 with SMTP id hs2-20020a1709073e8200b006e13fe39b14mr72641ejc.561.1648823846319; Fri, 01 Apr 2022 07:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648823846; cv=none; d=google.com; s=arc-20160816; b=FARq8Uz0jN9/iXQxmB9OBnUqo14HvxdLgGZQpzdZhoCisdSUeUZr2j8rvGB+wrbrwq bbBhY6AdYSV7dtB5zx/+bkSaaNrJ6OLQ2Apec7Ilj2bTw8m/l6lATPVnIus5XIk5KZx4 8xxSd2oh7K7iNLvAL9DsUezgKiptXumpJSMWA/wz/xkDqlMS65QfzK0xcYfGIGgdPQZ2 eIBqtob4uuKOj6DN8kYslvu3m7nK0fpaU79j4/ZD1Ik6zN7sliPCWhCPCfOcDj13XU9T NHt5USVc9mD/m3VAxo0R/vdlOU7dZc8LxY+TL1B8Py8WiHFtoYEI473BLhhMY1rzFtcm ilNg== 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=qA1v0A7dc3FV4RuMv5ZQV+qnRwKmp9V+QFkq5cmpENY=; b=KBodgC579qt/AeJYTsjUYdtH4BiIF/sCY/i1kKV8MZoD87T6yScrC5uyYpKk/ag72m 0p1UA5Sn7xnuXPpzSsQG2ytT/g6aQqFiKFUA3y6d7eVtBtUfPdofR5JHiyHhzrMCewO+ tGH2jbjkVxITiyxZxx3Vi32xphaOYJzyhttGP54ASBCoU7BGwpyw+x9YElJsW8pJw7SJ J3mywWdsBq5mUIB27gqa4bLLJAxC9IwhZPw93fridoSOMGqiz75exasacTTJzPnc1W5T JyiLFeOfqFrrr4yF+rUPud8bkG9ybbeEMpISxx/v3XwCqkiLWkvyDB+U+0kC+mOgHQtc vzEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=RMf4MzqP; 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 e13-20020a50becd000000b0041b539d34c5si1753510edk.160.2022.04.01.07.37.00; Fri, 01 Apr 2022 07:37:26 -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=RMf4MzqP; 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 S245197AbiDAFxD (ORCPT + 99 others); Fri, 1 Apr 2022 01:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237583AbiDAFwx (ORCPT ); Fri, 1 Apr 2022 01:52:53 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 941DD4E385 for ; Thu, 31 Mar 2022 22:51:03 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id t25so2914111lfg.7 for ; Thu, 31 Mar 2022 22:51:03 -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=qA1v0A7dc3FV4RuMv5ZQV+qnRwKmp9V+QFkq5cmpENY=; b=RMf4MzqPShODxLhq+sO4cUVTL3s/BrBvRG/EaMjOanqT3bAMiyKedu7D3sCrExpRdk nYKSZHJq3Y3KMEff96G8lFu3QcAjZT0UNIGroLdVSmjshBRp3CQ/VIgP+wZtFK73kk5Y 1Gr1qpQNLItoN5zU/4GjpZlzsKTMTduLnNfTxZ/F6Y2GOiQPkeb/5071tQGXYLH2e5iQ Hlps5YemK2FlkjzWe0fmiMtXBDFUpmwsCqVPY8oTlM8hFaIRi42+tbLBP68BWhiIf+kH 9pVGm4jItuyZf7pyIMruxC/4uuZSRvpMuGpySvAHCtN0fT58BvcfJQmUBmyG3Lls5Wml 93Gw== 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=qA1v0A7dc3FV4RuMv5ZQV+qnRwKmp9V+QFkq5cmpENY=; b=BpKkm4N3b1MtP22HPwfcpJ+WY8YB//NS+XdA9rvvDsLI46s5bs+iyhQmB56Kecj/qx LwiO0PJO4N8b0NmVUxSrWwurLJ1AHtKO5tceV62v1NHkZzRSgYCjFTrxyeZZSVwUWala T1DZYGITInxyJQSnPaCc1j+sznL2Q3LV4EM3wzvxwFVKlBesoK+GY+DvcjRky70YgQJv aF1903VkfL/KMc/b8YdW0Mv/vcAZTAGwZMpD6fdrQjJqxW5z1mQmzEUNVCOt1qJW6z+2 PofLFsx8U2uLLxbMPxHOaEoyUAWrOV+7DocVf6fTlbuRLADYsETKxUVkwo7gWAQ94M4V AMcw== X-Gm-Message-State: AOAM531GHcftGn3FvE6arNMFeoKVu9x90pWG6e6WQhhQc+KpWcE88c3t q35ubwqht8Q0REHasHwd0gMQgpWkjf54C0tr2SG1cA== X-Received: by 2002:a05:6512:1051:b0:44a:5dcb:3a74 with SMTP id c17-20020a056512105100b0044a5dcb3a74mr12761841lfb.51.1648792261524; Thu, 31 Mar 2022 22:51:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zong Li Date: Fri, 1 Apr 2022 13:50:50 +0800 Message-ID: Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property To: Palmer Dabbelt Cc: Vinod , Rob Herring , Paul Walmsley , Albert Ou , Krzysztof Kozlowski , 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 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 Fri, Apr 1, 2022 at 6:42 AM Palmer Dabbelt wrote: > > On Wed, 30 Mar 2022 22:54:47 PDT (-0700), Palmer Dabbelt wrote: > > On Wed, 30 Mar 2022 22:21:56 PDT (-0700), vkoul@kernel.org 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 > > > > OK, I can drop this from my tree if you'd like? > > Just to follow up from IRC: I'm dropping these from my tree. Hi Palmer and Vinod, Many thanks for your help. As all you suggested, let's go this patchset by the dmaengine tree. Thanks a lot!