Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp723486pxu; Mon, 23 Nov 2020 02:25:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwDZLXXxsRjDZzibF6/Ou38mlmyMXmEmRi6J/G0gVPvmboNnXVGGKheWh8rOYbY0sSg8Ij X-Received: by 2002:a17:906:e285:: with SMTP id gg5mr44363461ejb.7.1606127100472; Mon, 23 Nov 2020 02:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606127100; cv=none; d=google.com; s=arc-20160816; b=IEl+FeFKuR5SibVxNBIa//hn4B5RtwPjt/RbyVI15G960V/sMHDAIO0iiXKA6uj8GU tXvBmDVn1B+10WJ1XQpHq4F6GUSbVG/lUYbfmy2ttnbWyKZ2H0CxQNUtA5tQSt6ZuYwD rS5yujWWumv1LFFc19VsPEStj7acBbOFUvc8MBapzBEPlz9omcTX+qZayLtejo4sN6SK 4Id9WEjIuOUx0QkkUXjpq0lRXxCCOh/OQRoHz3ABAlWMCCXUVEsT8ix0Zw4W/IpjcG6X mQrudU3myNKeOOPq5VFHpZt4VWg+tVtBqaPRt7qLG1d0SByEW7mUtV1YWdR57W7OqC3m Yt7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=4aAoJO9NuKPec55zBYfNMKH1EPYQE6OA/FEduX7QXCc=; b=xm1LRYvwjClaXHT5HB6ofGVMRYHFL1wAMKm3ZTjsQ6YdBFGuIyhFW4jME33zBtnwYF gwPhPnT0Zr8UcBE5oQ6C0C4g5MT9F8mzbbeibBbl0wh68wB1dZ/amVPrTjSDZQK4mb3R B7oqfXemRMFASABbwQCCI7vyNQ0UdDQ+K8F1IrEb6IzFihP5qZUBi6g9YVbT8lJ7uODj PhCY9ToKm8i1gn12RxUTTYicbyFyloWpDUDeu7fqOy9hhOf4RZy9HPHKceugx0qc3sit 9OmIPMrkfZ4UxXtPKBOgiXCvs8l6lc/V87EOKmWrf6u0KyEP/K3pIjjTb3IrCRLVQLGS j5fA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si6453932ejb.560.2020.11.23.02.24.37; Mon, 23 Nov 2020 02:25:00 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728231AbgKWKV5 (ORCPT + 99 others); Mon, 23 Nov 2020 05:21:57 -0500 Received: from mga07.intel.com ([134.134.136.100]:13889 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728177AbgKWKV5 (ORCPT ); Mon, 23 Nov 2020 05:21:57 -0500 IronPort-SDR: aPE8N6gKOTojOmbxUxZrWrTVCOdt0EIESBgrA0I30BRHfp4JdxRnRtsjBZwup/GMhZt6HAL5BX chnnyBTF5U9w== X-IronPort-AV: E=McAfee;i="6000,8403,9813"; a="235879373" X-IronPort-AV: E=Sophos;i="5.78,363,1599548400"; d="scan'208";a="235879373" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2020 02:21:56 -0800 IronPort-SDR: bDYcC0KazFEg8m1ptN73iHBFmsa13wxflaQanQLsw0kHHkwlR1mXimKGt/uNf9/QIGiAh2fjlu dlnEAr6WbTPw== X-IronPort-AV: E=Sophos;i="5.78,363,1599548400"; d="scan'208";a="536051793" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2020 02:21:54 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kh8zo-0097fC-RX; Mon, 23 Nov 2020 12:22:56 +0200 Date: Mon, 23 Nov 2020 12:22:56 +0200 From: Andy Shevchenko To: Sia Jee Heng Cc: vkoul@kernel.org, Eugeniy.Paltsev@synopsys.com, robh+dt@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 16/16] dmaengine: dw-axi-dmac: Virtually split the linked-list Message-ID: <20201123102256.GV4077@smile.fi.intel.com> References: <20201123023452.7894-1-jee.heng.sia@intel.com> <20201123023452.7894-17-jee.heng.sia@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201123023452.7894-17-jee.heng.sia@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 10:34:52AM +0800, Sia Jee Heng wrote: > AxiDMA driver exposed the dma_set_max_seg_size() to the DMAENGINE. > It shall helps the DMA clients to create size-optimized linked-list > for the controller. > > However, there are certain situations where DMA client might not be > abled to benefit from the dma_get_max_seg_size() if the segment size > can't meet the nature of the DMA client's operation. > > In the case of ALSA operation, ALSA application and driver expecting > to run in a period of larger than 10ms regardless of the bit depth. > With this large period, there is a strong request to split the linked-list > in the AxiDMA driver. I'm wondering why ASoC generic code can't use DMA channel and device capabilities and prepare SG list with all limitations taken into account. -- With Best Regards, Andy Shevchenko