Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp318168ybl; Tue, 28 Jan 2020 03:51:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyWzKxsrntak7be9nMEjM+LcX43pHAVoLrY5xE+Vl6dNat/xl0vv8lpGLVFe5R/TynoILxK X-Received: by 2002:a9d:ec1:: with SMTP id 59mr15535888otj.141.1580212279066; Tue, 28 Jan 2020 03:51:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580212279; cv=none; d=google.com; s=arc-20160816; b=U07jZGLPNkcWQIoXKFxcmeP8VEHibCmrbI6P7Kh8W70CSiHgDJ5pMFdFse99FJ2IIO 7kg5V0kv3oUsB6E5PfHq8HAUcm/UeyUBdN+4kFQKfQx6pjz2I585gnXNBVCdxgk9G1U+ KR8TkL/VLTbXgNqRrXd+PKdMiNilQXtQfJs/48khKL36z1y42RBvs6DNtxtoPF5QlMIk YhKojgCUk971pLKgwGBhuEARacQjcAZflDKnP9T2jyDxFl2ebK34wRCwzhWT6pN47S8V 1Hv4K9U02RkZipQ4CqYIE218nFThYiVEn0MIl4joZkzjfg9uH4JTjR3N06IIlkqxF4gD vxDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3ZxIVS+Wys131Xqb+Gkbr3U167lK3MnmkPfxxGANN58=; b=LsFm4DTbG2cPnrAysG5FSjf0FcQ4P2HM1jq2Idmezs7SMLof8R6DMilbSFU16XPU4y zdK+HWtfjdhKjOY9WXaHSdL4Eji3LqGPucH4z6b45cQgHzAxkpn5NrT9qdtNemhM44bH lbwfFXWMq/HDQkHG9EheS5wcPIjTS+xVrPlKY/GFn5pvg+5xzgkQwx59DvCgE+WJQCHs foZD58g2pWR6gbmvo/V1z7sxnWUjRodpYfwaQVSMz5AtqxBzUdG5BqSfdKpJ3qWctqwJ t6r9IgSkrFl9fZNJ5rYDo3Y+LaKcjTfMG3kTmqv5ZkUyXMlUwvQlPP3/ppMiM1bR4sb1 ztyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D2cb1Yug; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si7224922oth.312.2020.01.28.03.51.07; Tue, 28 Jan 2020 03:51:19 -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=@kernel.org header.s=default header.b=D2cb1Yug; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726024AbgA1LuL (ORCPT + 99 others); Tue, 28 Jan 2020 06:50:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:41048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbgA1LuL (ORCPT ); Tue, 28 Jan 2020 06:50:11 -0500 Received: from localhost (unknown [223.226.101.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14C9F214AF; Tue, 28 Jan 2020 11:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580212210; bh=jW6H9OlD/jgob7HlVx2GQo9Y2WJ5ofqdPX2DH4cN0ws=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D2cb1YugqwH2Kyc7TSXkHPyGqa4SajqkS1G/5EzKpQt0ER0jWrgg8B8kx41irg/+P BmEt88S8IfoSTGx/NcGkJg+nkUDwnlrAk26uaXIsT0nysYKSUK6RZBdYlykEVlKYRt KA1+RCXSefrCA4DP2Z8kNYqDDPctG8DwSf0SHbPk= Date: Tue, 28 Jan 2020 17:20:06 +0530 From: Vinod Koul To: Peter Ujfalusi Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, grygorii.strashko@ti.com, vigneshr@ti.com Subject: Re: [PATCH for-next 0/4] dmaengine: ti: k3-udma: Updates for next Message-ID: <20200128115006.GT2841@vkoul-mobl> References: <20200127132111.20464-1-peter.ujfalusi@ti.com> <41c53cc4-fa3e-1ab1-32b8-1d516cda7341@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41c53cc4-fa3e-1ab1-32b8-1d516cda7341@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28-01-20, 12:15, Peter Ujfalusi wrote: > Vinod, > > On 27/01/2020 15.21, Peter Ujfalusi wrote: > > Hi Vinod, > > > > Based on customer reports we have identified two issues with the UDMA driver: > > > > TX completion (1st patch): > > The scheduled work based workaround for checking for completion worked well for > > UART, but it had significant impact on SPI performance. > > The underlying issue is coming from the fact that we have split data movement > > architecture. > > In order to know that the transfer is really done we need to check the remote > > end's (PDMA) byte counter. > > > > RX channel teardown with stale data in PDMA (2nd patch): > > If we try to stop the RX DMA channel (teardown) then PDMA is trying to flush the > > data is might received from a peripheral, but if UDMA does not have a packet to > > use for this draining than it is going to push back on the PDMA and the flush > > will never completes. > > The workaround is to use a dummy descriptor for flush purposes when the channel > > is terminated and we did not have active transfer (no descriptor for UDMA). > > This allows UDMA to drain the data and the teardown can complete. > > > > The last two patch is to use common code to set up the TR parameters for > > slave_sg, cyclic and memcpy. The setup code is the same as we used for memcpy > > with the change we can handle 4.2GB sg elements and periods in case of cyclic. > > It is also nice that we have single function to do the configuration. > > I have marked these patches as for-next as 5.5 was not released yet. > Would it be possible to have these as fixes for 5.6? Sure but are they really fixes, why cant they go for next release :) They seem to improve things for sure, but do we want to call them as fixes..? -- ~Vinod