Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp807606pxb; Fri, 22 Apr 2022 11:34:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDMjF/8ZpNmVPhKmiWz8m4UDM+uGsMDlNFNnnuegogh5cw6iGXZOsx8FqsC+WRGuoRNlWs X-Received: by 2002:a63:1e05:0:b0:39d:adee:a8a1 with SMTP id e5-20020a631e05000000b0039dadeea8a1mr5004978pge.412.1650652459918; Fri, 22 Apr 2022 11:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650652459; cv=none; d=google.com; s=arc-20160816; b=FdfKu/nC8IlfZZoZC6dhQenQJet18rxVs3IMUPYgODmTf2f5eYL1HObmoxZeff5R7X 4yaly/DudEur+6clbg8e4uBGuboIN+Dh1TBOW2X4EATK3A8Z+NeatlxoD7ySly2pB5zU sc7foxLQY0gVdX9BNNz95zDIR76nTYDaaMWJiwDP5jKmTNQ0z4mquIXhQcCRl70fQuz7 iUcnz6PQKY8TXde9ikdK1wvmt85LIpGYUboex9OQhoYWac13u1HjSdQmJr5s2d6DExKd c5G4LD2+l3XRTMNwKou4XIleCmIhgkg8E8LGsTySncQZhmeJ/N6iqMiW25Qe3ew33gHj uSxg== 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=PaUnbNt+lm1u9yE5wisBRk3m4mxTkfso+o7EcsoYb9U=; b=Zngt6oLiSg+/Aj4EcX85HSsbquxM3GM7U9akVQWS+m3UxdCtn3SO2sB9pWBPsbF64s QrCFrYVmdC1k5bGb5bFpP3xhHx3Y85X0MDxhYWjKQORpdTAN4Beurg2ouMwBvZQp60ib 6IjuznBMY7bKr9RIEyszaKurowQ/FuuI6zcpVTdOP4E59bSMGDiUFYv3Ju3FUKPgnwGf ee6QZResxvqWgdxcN5OGRAppZCBoB/SYfksw3U+248JG1FQocb9C3/E5gQweH2csT/mQ vEvBy6HIdxfnJfb6vA22prswLqua9TO5Ip0fCVK6Fn0YgyY/zuTG2PzBv8wUw4RGxACo h79w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=mMgyk5nz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n9-20020a170902f60900b0015979f9f1c0si5245990plg.512.2022.04.22.11.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:34:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=mMgyk5nz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96F25EB59F; Fri, 22 Apr 2022 11:02:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383563AbiDUBLC (ORCPT + 99 others); Wed, 20 Apr 2022 21:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377605AbiDUBLB (ORCPT ); Wed, 20 Apr 2022 21:11:01 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6624DC4 for ; Wed, 20 Apr 2022 18:08:12 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id h3so1279073lfu.8 for ; Wed, 20 Apr 2022 18:08:12 -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=PaUnbNt+lm1u9yE5wisBRk3m4mxTkfso+o7EcsoYb9U=; b=mMgyk5nz/Y8n1Lj6vrQUNd5iJAn2E+0233wITVfUWqbApNDLFv2P7b27+6eSzJoWDL t0nahvOc6wJ15MiIpsKeWs0NrqXR9RXJkkBDs3+5092owdZdTLhhNj+VLA8H1rGYQhNB lXc9cpxs8m5Z3IuIVwneY0LQqDwM8QSs17KSD3OaJ5Hkkhve7Yzrv8XLkplj9scNw0Mh op+UpykXWdb3gRwDuvNZCqSStJBVDMmlmxRoZdim+0kJtGzaUFQ7AOdKSmt9q22xGyfy hzxcH+ZtySQMf/xAuovtiEg2lwqVUhpujH0WofcH75OafGIP6rnLjPmoGN7EKHwffPF2 oQ/g== 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=PaUnbNt+lm1u9yE5wisBRk3m4mxTkfso+o7EcsoYb9U=; b=CBf1aFakPKnga2XFhoWgUkETVT1SR/niaYDaDNbo+AXUfA8LK7SynBkqxfTw0oVROn chbsd/K/lTVW2uXTckufu2qy6IY5uX7VdZVSDyLq58X2muIdtEdacMowAezttNuYaDx+ smaiYjDSpun4ITB7hhNE8n8zd1hUGPwbFsYVxBwWnQDfbw8V7P76KfqOWyngeiDflEVb tcGp6f/jFRHE+p71dS/W+Ej26Cyz1HxDKSLpo7D4ELqu2PgDozFJ//Y3HeAncST+a3I9 6G0kzQZzFYgjQw7rQ/WjMhsaQSHKkze+Czb2UHSHRXEFSUuEeFZ4CFJZu9TXUkOr+oXR xPNw== X-Gm-Message-State: AOAM532U+RLGj7zcEq7xMcpO+0QibYhJjK0c9VM2Efbl/Z0jeZxlkAiE FgNvQ6VFDoCCeM5c5KqFhjKP5HH1Rn5XK2tV3iMLdw== X-Received: by 2002:a05:6512:1155:b0:471:4c94:97c with SMTP id m21-20020a056512115500b004714c94097cmr13816995lfg.338.1650503291055; Wed, 20 Apr 2022 18:08:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zong Li Date: Thu, 21 Apr 2022 09:07:59 +0800 Message-ID: Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property To: Rob Herring Cc: Palmer Dabbelt , Vinod , Paul Walmsley , Albert Ou , Conor Dooley , Geert Uytterhoeven , Bin Meng , Green Wan , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Wed, Apr 20, 2022 at 10:26 PM Rob Herring wrote: > > On Tue, Apr 19, 2022 at 7:18 PM Palmer Dabbelt wrote: > > > > On Mon, 11 Apr 2022 04:43:35 PDT (-0700), zong.li@sifive.com wrote: > > > On Mon, Apr 11, 2022 at 6:48 PM Vinod Koul wrote: > > >> > > >> On 11-04-22, 10:51, Zong Li wrote: > > >> > On Fri, Apr 8, 2022 at 9:13 PM Vinod Koul wrote: > > >> > > > > >> > > On 28-03-22, 17:52, Zong Li 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. > > >> > > > > >> > > Applied patch 1 & 4 to dmaengine-next, thanks > > >> > > > >> > Hi Vinod, > > >> > Thanks for your help and review. For patch 2 and 3, does it mean that > > >> > we should go through the riscv tree? > > >> > > >> Yes > > >> > > > > > > Hi Palmer, > > > Could you please help me to pick up the patch 2 and 3. Thanks :) > > > > Sorry about that, I forgot about this one. I just put them on for-next, > > there was a minor merge conflict but it looks pretty simple. > > Looks like you applied patch 1 too which Vinod already applied to the > dmaengine tree. And you changed the 1st line removing the "# " before > the SPDX tag which results in: Hi Palmer, Many thanks for helping me to pick them into riscv-tree, It seems like we need to pick patch 2 and 3 in riscv tree, instead of patch 1 and 2. :) > > make[1]: *** Deleting file > 'Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.example.dts' > Traceback (most recent call last): > File "/usr/local/bin/dt-extract-example", line 52, in > binding = yaml.load(open(args.yamlfile, encoding='utf-8').read()) > File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", > line 434, in load > return constructor.get_single_data() > File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", > line 119, in get_single_data > node = self.composer.get_single_node() > File "_ruamel_yaml.pyx", line 718, in _ruamel_yaml.CParser.get_single_node > ruamel.yaml.composer.ComposerError: expected a single document in the stream > in "", line 1, column 1 > but found another document > in "", line 2, column 1 > make[1]: *** [Documentation/devicetree/bindings/Makefile:26: > Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.example.dts] > Error 1 > ./Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml:1:1: > [error] missing document start "---" (document-start) > > > Rob