Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B3D3C2D0E4 for ; Tue, 17 Nov 2020 15:50:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EE0A24655 for ; Tue, 17 Nov 2020 15:50:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Ca7Efyqf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EE0A24655 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D830F1734; Tue, 17 Nov 2020 16:50:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D830F1734 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1605628250; bh=5+nIbkYbhzkRqN60Y9TgQAzehdvb8IcMXIuYLyxbSbc=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Ca7Efyqf64uWi05SyrHVa5/ecj8Nlm7dOT6xRWHUwoEPMsFPvE1V4Zkocl5GR4SF6 3+QJCxgg9uOKiXVdCCq7XzkdzhTcBSF06cSdBZ3qbHjLg8V4MM6OXyNcgxsQwHS2B7 uQ+zXzzsnWcrqyIz4yb1BrAiuxsb2yJHs9/sSHj8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5912AF800E2; Tue, 17 Nov 2020 16:50:00 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 30AA7F801F5; Tue, 17 Nov 2020 16:49:57 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BB036F8010A for ; Tue, 17 Nov 2020 16:49:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BB036F8010A IronPort-SDR: 9wh+93C6cl2DmtWHKf2ZsphyLDodce2/in6Y+2IzGURJ3ky+77X54tenaAuUowiGGEhZPfWEUj jZsuNHUQw/BA== X-IronPort-AV: E=McAfee;i="6000,8403,9808"; a="157977182" X-IronPort-AV: E=Sophos;i="5.77,485,1596524400"; d="scan'208";a="157977182" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2020 07:49:39 -0800 IronPort-SDR: DB6VKKE5nQTxBaYQ7AHm6dGkLlr3L4Be76/B1jvjW8x8L/IoStokm45BV62toind2MTA6WPkfR Qv3vjIGYxnyQ== X-IronPort-AV: E=Sophos;i="5.77,485,1596524400"; d="scan'208";a="330116334" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2020 07:49:36 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kf3Fe-007MHw-Is; Tue, 17 Nov 2020 17:50:38 +0200 Date: Tue, 17 Nov 2020 17:50:38 +0200 From: Andy Shevchenko To: Michael Sit Wei Hong Subject: Re: [RFC PATCH 2/4] ASoC: soc-generic-dmaengine-pcm: Add custom prepare and submit function Message-ID: <20201117155038.GO4077@smile.fi.intel.com> References: <20201117080354.4309-1-michael.wei.hong.sit@intel.com> <20201117080354.4309-4-michael.wei.hong.sit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117080354.4309-4-michael.wei.hong.sit@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: pierre-louis.bossart@linux.intel.com, cezary.rojewski@intel.com, lars@metafoo.de, alsa-devel@alsa-project.org, jee.heng.sia@intel.com, tiwai@suse.com, liam.r.girdwood@linux.intel.com, vkoul@kernel.org, broonie@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, Nov 17, 2020 at 04:03:48PM +0800, Michael Sit Wei Hong wrote: > Enabling custom prepare and submit function to overcome DMA limitation. > > In the Intel KeemBay solution, the DW AXI-based DMA has a limitation on > the number of DMA blocks per transfer. In the case of 16 bit audio ASoC > would allocate blocks exceeding the DMA block limitation. I'm still not sure the hardware has such a limitation. The Synopsys IP supports linked list (LLI) transfers and I hardly can imagine the list has any limitation. Even though, one can always emulate LLI in software how it's done in the DesignWare AHB DMA driver. I have briefly read chapter 4.6 "AXI_DMA" of Keem Bay TRM and didn't find any errata or limits like this. -- With Best Regards, Andy Shevchenko