Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp812353pxb; Fri, 22 Apr 2022 11:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrBmUZjDpDqqTXU3E23RTUywQ+NPWLkO1RqfnOGRQcZ+ZgseeHq8tKROJSF6kywBegVOf3 X-Received: by 2002:a05:6a00:b87:b0:50a:5ff2:bb2d with SMTP id g7-20020a056a000b8700b0050a5ff2bb2dmr6319566pfj.68.1650652896698; Fri, 22 Apr 2022 11:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650652896; cv=none; d=google.com; s=arc-20160816; b=vjzS9C/x6lLAVqDdzjCoXNrEuXrN89yCZuPNXfgjwsBmYktHTJhoFEbKe0pdgvf7i4 AnIVFZtwA7AnWLKGZMGY9grJZ0PEom3xripGyN5P2K2L3M4lUzwZN7+kcsJ5vclswCW6 lye6ctam+/5uuTArYy4QRXbEDnC2JvzEwlvtRTp3gwZ0b+BFuYEVnIVBgDwlzlxr27Sv 9XF8B/n/FJcQeJz/8PQFhdPOjdFIS+6XfciyYNmsB4Ojcosn7CDyqhd78stv9Fckv4Xf paX/UyMLyPwS7AMZ8SRmlFD4gRw16bGyqkmtusVhaJvYjn9JoIUdTpnesSdo8+MUBhEN bl6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=P94H50ZarQqSfjwX6qGlCq6elP0Tf7lTSu8KGyKb+rY=; b=HSQ2p1yHtJyovUEa+TsUIfGHGT3+r1pWKyiDorxFJ7131gagxvjI8foo9Yk4QL93NS HdGNDwSvvUxwdyvQR4E4aj5U7Xs3jqyqgKGxEAYDusntHArdXf2ZhvSpvKnwDkA7NB2+ wdUhXuLRtupYL9JNWn9lWd9DrJle1GTkd1LWAzhnWGl6dqKM/quokAcAI52hnw+pXP/N HajojHMLx2a/M9Ss2nNiSxbvzmyd4B2OfBNywkFRto1Wn8F1zLWJ8hEmBp5iMcyFewHq wf8IDn5IsIIXB8Zg5CYmTmpLKnwkTjk28dXP0qofF+MFuIwGf7Fu4u68YQ7zvEebOR7J 2O8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=NmTYbo6m; 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 ip5-20020a17090b314500b001cd9c29e426si12763785pjb.96.2022.04.22.11.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:41:36 -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=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=NmTYbo6m; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E97C11244E; Fri, 22 Apr 2022 11:10:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383822AbiDUCwS (ORCPT + 99 others); Wed, 20 Apr 2022 22:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiDUCwQ (ORCPT ); Wed, 20 Apr 2022 22:52:16 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41AF8BF49 for ; Wed, 20 Apr 2022 19:49:28 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d15so3531958pll.10 for ; Wed, 20 Apr 2022 19:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=P94H50ZarQqSfjwX6qGlCq6elP0Tf7lTSu8KGyKb+rY=; b=NmTYbo6mbyC85rDGus5JqFccbJXfd2GmU3Z5l9EJZY3ikIpv8qzK4CJI1biwBjog68 uKCnx3g23B7HGglBH11l1vwC6RKGBI76JMUE6V3VmgwGsTvN/d3gM+Vrt2xbYbYfS0mA BOnEhCGcIxGV03jm/ELUziu49+6lf6Yev49wJcKMYtMD7pBcoITrNctKx77+8XMpqn8o EouXOnWTMnnI8frgbpNBP0F5xc6Uaof23VNi30CipucmraQ/6rbr6rtawk8L5exHiULk Bwrvr+QiZUbbUN9YUTsS5Y+LsQ5PyL5H+yztSyURyY/djpYFFEmyal8lzb13zRm6dMFa /PXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=P94H50ZarQqSfjwX6qGlCq6elP0Tf7lTSu8KGyKb+rY=; b=EQgZGwVHOpWyfwxZZ5dC/snvVHUQ5GHUfsbpYlK3c+c13xI+kCDpM7TtzMQd3l7BVO oMuDZu+flaTvQ/SxrkTMaGx+5+lXtGPMdl8SoS6LU7NRzz4R/+cb8ZNhs8n7uf45EY5f gu08KV5tSmY0WJkI3Jik3DaB8/n3gdM1H7Ao49uoIELYuQKbkx8YUV1iZU4enBFvBR2B 9CeO7xA6Z85YRoD6OGLIoa1T4rSs6R48v5u0RpIaXZaVW6HSlWvtPWrXF/zlrA+n6T6A N4qBo6nr/BFRpWTujMEaC82QEWL/Ceh/KTzP4ZwfjpXzGpMlUotKlewnUD6TgsRT92mO 3QUw== X-Gm-Message-State: AOAM533dUc085vhJ73hjYriSaKNHfN8neAjDHS9/cldnvGelNcdj2ltB Po6udeZGsmRgt7YB2zJ8C/rfew== X-Received: by 2002:a17:902:d303:b0:158:e38d:ca18 with SMTP id b3-20020a170902d30300b00158e38dca18mr22977358plc.167.1650509367634; Wed, 20 Apr 2022 19:49:27 -0700 (PDT) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id m13-20020a62a20d000000b004fe0ce6d7a1sm21685124pff.193.2022.04.20.19.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 19:49:27 -0700 (PDT) Date: Wed, 20 Apr 2022 19:49:27 -0700 (PDT) X-Google-Original-Date: Wed, 20 Apr 2022 19:49:25 PDT (-0700) Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property In-Reply-To: CC: zong.li@sifive.com, vkoul@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, conor.dooley@microchip.com, geert@linux-m68k.org, bin.meng@windriver.com, green.wan@sifive.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: robh+dt@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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, 20 Apr 2022 07:25:53 PDT (-0700), robh+dt@kernel.org 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: > > 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) Sorry about that, I cherry-picked them from my working repo which I assumed was the same but I guess had some nastiness (including the patch reordering). Then I also ran check in the wrong working repo, so I didn't notice the mess. This should all be fixed.