Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp286496ybg; Fri, 12 Jun 2020 01:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmjv/GrI1n3LWNDSdRii2q/4zLaD0m/GPmXMfm3fC4vTQWRrtpqlPZi5RUGOhvhnS70FBG X-Received: by 2002:a17:906:5e0a:: with SMTP id n10mr11681172eju.274.1591949678432; Fri, 12 Jun 2020 01:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591949678; cv=none; d=google.com; s=arc-20160816; b=LfsUkMpZzyq4T6VHrbN7zkBD/JgP7mTTlG/v99iCgg+IuLww4ccbzR1L9lfxDUwxmr r7n5JpcW+3wWoeu+jxa65fWTQDUQeXBAuNPZ8/+NQdD2uhL8FFJ32wMtYdKgzjCl3K8T LCDxPJlsIaOvMXju5KND4OPc8aI1ARmIDcd9RuY/5UdcsdvqoUassmgg/yTYiNgQV4PF e1y99WoIBQlzaE2zCULRtRCJ/A4F0etSaG48x5b8vDd9uxfFy3ic9qkYYTD2+FgMItPT NJMBohqVziByWA7yKdg8ONVNVub7XIhNadk4Z+jdmlLWluGiMs3dBIChjjK9FQiv0v7R yMVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FrBOISxwKyWg3yFgNawz44Si/Jo/mcOoYEJcWJFfVoU=; b=xTFC491e2paa325xDhNaqXsmWBheIMi0VczmrZTXrFtPbwIRaQjspc8vixymVYId7H vrOoE7PF8M4kvicGD3AtyErgG1n8P91rMvUzOzOzRMQ7OglQSf9aU5xYlt77GgDOtUup 3vZp3bAFnWd+8Qn66xzWj+Iy4I3e3tdPaGgtzhT/f/JHRbD8F+yW6Y0jGrnM68Lhhq8C 8/Ao9QasCvG62xMb0NkV31HHX9mkM8XqgAX8Q9hcP+kZJOaAIzUp6W8ugGxthscYTgkC aDzhFCAIN48RdlbqjAb+3OBW6f+IXzYWcsLLTQpYE7Dz66A+9QfBjXs8F+KNVaZpmYAb 6qdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZK69Co/l"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si3436889ejj.300.2020.06.12.01.14.14; Fri, 12 Jun 2020 01:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZK69Co/l"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726364AbgFLIKL (ORCPT + 99 others); Fri, 12 Jun 2020 04:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbgFLIKK (ORCPT ); Fri, 12 Jun 2020 04:10:10 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7F9C03E96F for ; Fri, 12 Jun 2020 01:10:10 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id h95so3546879pje.4 for ; Fri, 12 Jun 2020 01:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FrBOISxwKyWg3yFgNawz44Si/Jo/mcOoYEJcWJFfVoU=; b=ZK69Co/lXBcRsFD7SUsxis7MvrrcFiGb9wXzfn7QAfqobBYK9JDAVVUXXpRpFHMLg0 bvEppJLtKU+QvKbxuYgo0rxwsXP9WiA9uF0rGQy43dpzucJAnjc2IyzVcZ1ElnYntB7l ATrDNsHmMMemgc2y/R9TU7A9JQ3Ve8RNKb8SnaShfdenzGbXzILlFzjWK9lvsREaci4G VYteP+8a1FKn/dMhPPSzX5EuZSXt2zkupMCmExVRxk+qmMa3SQ8qmPp74Y8Ln/IZJW5M g+BVoCzM2yWQoUraZtQxS5HGxkw+Jgl24vvTzDytIgPnaEyNS+OHC2lqEYxJlor1u0zK Q1Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FrBOISxwKyWg3yFgNawz44Si/Jo/mcOoYEJcWJFfVoU=; b=RvHMm+vBBcACqgn5EMhZYeESQ9FH9XnJdeeoe/sByGEVuuadPjnaStCnAf7E/5BQQE 5BOckRKngiF2FrvzirjU3SZibygFhHkreTRmxL9UVldWvArRutACDv6iAs7vOUlhVEh8 vt1sAmrdohwxaIRHLWnhKfajEUZaGSElepn5pLip9ce0yYragNJ6/SwaznOYlTiFOnzU 6OqlbsYJyrsF4Y3j/FkTSzC6ZUo7wFM7jxhdMTmNlqrVbdQ6+/eVlqX+byA2udJH3Pv3 QjCQkvLmxTQzXd3Zp+kAVtJ95+23pZ4PVv+TMLNwiZq1kkbjLyXzHlvi6gurofligxwg AmnA== X-Gm-Message-State: AOAM5329n64ymo2cUTT/EpSix9OJZLDFrE1zEB0zXHYEuhYHrFzb25HE J6ueJ1Buno3ge/KteRvYfE8= X-Received: by 2002:a17:902:bd09:: with SMTP id p9mr10817945pls.214.1591949409605; Fri, 12 Jun 2020 01:10:09 -0700 (PDT) Received: from Asurada-Nvidia (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id 191sm4484589pfz.30.2020.06.12.01.10.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jun 2020 01:10:09 -0700 (PDT) Date: Fri, 12 Jun 2020 01:10:00 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: lars@metafoo.de, perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH v3 4/4] ASoC: fsl_asrc_dma: Fix data copying speed issue with EDMA Message-ID: <20200612081000.GD22422@Asurada-Nvidia> References: <424ed6c249bafcbe30791c9de0352821c5ea67e2.1591947428.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <424ed6c249bafcbe30791c9de0352821c5ea67e2.1591947428.git.shengjiu.wang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 12, 2020 at 03:37:51PM +0800, Shengjiu Wang wrote: > With EDMA, there is two dma channels can be used for dev_to_dev, > one is from ASRC, one is from another peripheral (ESAI or SAI). > > If we select the dma channel of ASRC, there is an issue for ideal > ratio case, the speed of copy data is faster than sample > frequency, because ASRC output data is very fast in ideal ratio > mode. > > So it is reasonable to use the dma channel of Back-End peripheral. > then copying speed of DMA is controlled by data consumption > speed in the peripheral FIFO, > > Signed-off-by: Shengjiu Wang Reviewed-by: Nicolin Chen