Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2763565ybc; Wed, 13 Nov 2019 21:35:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzQXJ+KTtjEov/J3vsOcx/rp4mAXtyf3nJ2B04UCDYIZllDbl4a2KqO/WUrBOGHfpdc+5ru X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr6653240ejh.333.1573709709547; Wed, 13 Nov 2019 21:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573709709; cv=none; d=google.com; s=arc-20160816; b=Mz7xAXhJ7mwe5G59613Hyff+l0lwFsk/pBhO/qPP6Tx6AvYVrOhe8uvtg5yRKCYAto q6QyFQrKmxnwd8MJJIJKzYT7yUN+F2yNGTWso8D3echIEh8kTlyuCGQLsNHXtXiJUHap tz7dWCBVNGb4FRR03/jdAVwHcftp66qH3AWX8FukrsEBL2I87AR+iow16/Evvxv/YU3U iHbP8CJ/6uyJNifRAMf6DjfzDNeWKJH/lhJ4jbmzcOc4Njjf5Imuc8F/wcHuHyZOehwo j9cJG10pXIjlnIpuimjWg8ZY2C05VDsiwYWmIvUgJGrIxCKW+wyQ6D3cpEShf4xcmpxp oh3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hlxXISlHgvgxQVX7a0oSoBMgtYJmQzfQCH804Ekjahk=; b=RIwowWaBmR6R1MixqaKNoknUcMFKSqcQtgr21PP4BX6d+FDiSzZ0I6BcOrjshxeG/V D7CZ88hJw1AHiWgtEf96Q1Rgh2OeUGAenqeq3UEtiMr437cfXFUnuuIIuHOGYY7HWl4T FfMN7NMIl+8SdmqU8qXde9Igj7n86fxCRGRQAJqjHO4q4svnWf808GIAcE6MgneN+u4A ojwZagTtRBKSA3a+Q2OHXCWkalmKGbVExQYmtyrJq8MKni0Y/TXH9pOvU7jVu9WOszRd fN6xZgAp6BHIv0MX2Qyo3hn0LORKaJlAZmLnqryEkTcgmEz0bHFNWc+ru/NUPJlc+AVo YgzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYEhuf0n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si2441887ejq.437.2019.11.13.21.34.45; Wed, 13 Nov 2019 21:35:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYEhuf0n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726986AbfKNFdo (ORCPT + 99 others); Thu, 14 Nov 2019 00:33:44 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:45651 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfKNFdn (ORCPT ); Thu, 14 Nov 2019 00:33:43 -0500 Received: by mail-lf1-f68.google.com with SMTP id v8so3911364lfa.12 for ; Wed, 13 Nov 2019 21:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hlxXISlHgvgxQVX7a0oSoBMgtYJmQzfQCH804Ekjahk=; b=RYEhuf0nlP1NnAjn+C3HFZXL6sWwN5JnPBpgOhvcpgRCjwaTt7S28+rHkH7G4mKjHF JwMvY6kO89ch9r47AxymeUt6gQlJ+yg7E/d7LCvxMyxWE40OcVLyarfEbKll1fx14pQs lTA6jvG+CpfB3XohLrpVemQnDe0qH535C2zBn0vY9sZLAVOljNVV/HwkX+oD1KeO306e dzOxAMdFqeqOAUNtpLsM1X8uOxQg8onk7++bbFtTwPBaj19qWEV4hn/miRc/Qzajd+Vf 4pXMvadiVlLODCx7bn/JAGcfmG+WREyR88ZAarkUKoYubgTI6ArIFy53RxoUrupwErRY sb/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hlxXISlHgvgxQVX7a0oSoBMgtYJmQzfQCH804Ekjahk=; b=mx4ziHhZJ/BWK6orUsuH1l46iY0YkiMS4d0RyHsYY/Dtf17PsNufxPmmeuq2plds35 76CfQBzRbNP5/iH5VpVWj0egeYOMnZyX4xs6ZwsQ8Yx/WuekxZftj825BoBmhOXQJG3q WrHoFwOtHn1bJQz/sOfAWGibTdaDBlV51GqCFdPidx+P0Jcebx2fgPV70zO48qC8YDhp pt5zMJr27sDbYlHZaEo060AKvnkE4gH+B0IbOPAW/wkuNaD5r7DAZ08iAPuo11yd3FUL hHplgr1p/qhiz0nEu6kpQ1jypLHCCuIeeEeqwdEDK53zUb1MeukzuzIOohWSA7oqgDRR tO/w== X-Gm-Message-State: APjAAAXgErTWJQbez5FVgIAdmiGQiOFtw8DP+GjSH82f8NFoCexju3vy viZq/El73M25NSjbMQbHPmPt+S+4RnQ3tBJ5GBBeFA== X-Received: by 2002:a19:f107:: with SMTP id p7mr5179412lfh.91.1573709621587; Wed, 13 Nov 2019 21:33:41 -0800 (PST) MIME-Version: 1.0 References: <85a5484bc1f3dd53ce6f92700ad8b35f30a0b096.1571812029.git.baolin.wang@linaro.org> <20191114045005.GI952516@vkoul-mobl> In-Reply-To: <20191114045005.GI952516@vkoul-mobl> From: "(Exiting) Baolin Wang" Date: Thu, 14 Nov 2019 13:33:30 +0800 Message-ID: Subject: Re: [PATCH] dmaengine: sprd: Add wrap address support for link-list mode To: Vinod Koul Cc: Orson Zhai , Chunyan Zhang , Dan Williams , LKML , dmaengine@vger.kernel.org, eric.long@unisoc.com, baolin.wang7@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Nov 2019 at 12:50, Vinod Koul wrote: > > On 23-10-19, 14:31, Baolin Wang wrote: > > From: Eric Long > > > > The Spreadtrum Audio compress offload mode will use 2-stage DMA transfer > > to save power. That means we can request 2 dma channels, one for source > > channel, and another one for destination channel. Once the source channel's > > transaction is done, it will trigger the destination channel's transaction > > automatically by hardware signal. > > > > In this case, the source channel will transfer data from IRAM buffer to > > the DSP fifo to decoding/encoding, once IRAM buffer is empty by transferring > > done, the destination channel will start to transfer data from DDR buffer > > to IRAM buffer. Since the destination channel will use link-list mode to > > fill the IRAM data, and IRAM buffer is allocated by 32K, and DDR buffer > > is larger to 2M, that means we need lots of link-list nodes to do a cyclic > > transfer, instead wasting lots of link-list memory, we can use wrap address > > support to reduce link-list node number, which means when the transfer > > address reaches the wrap address, the transfer address will jump to the > > wrap_to address specified by wrap_to register, and only 2 link-list nodes > > can do a cyclic transfer to transfer data from DDR to IRAM. > > > > Thus this patch adds wrap address to support this case. > > This fails to apply, can you please rebase and resend! Sure, sorry for the trouble. Will rebase and resend. Thanks. -- Baolin Wang Best Regards