Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp305746ybv; Tue, 18 Feb 2020 23:39:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzfNehzmLXZzQtxKRu3ZUcja1/JCxapq1B++FPTQIywS61WnVMT6TcYPcsbZqpcJqpfHsGT X-Received: by 2002:aca:f44a:: with SMTP id s71mr3818171oih.7.1582097997112; Tue, 18 Feb 2020 23:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582097997; cv=none; d=google.com; s=arc-20160816; b=eOYWKyyHus4M7bA8UFm6FevOBjqK36FC+DwzRQNYz6r6HMAhsE2KVBgKo+KZQJegFq 5vvOUpnLqpL4ApnnGbnH1P10Jt8PXIYFoG4+8b6zHSDoOtimBaKMjc44x3uIa/5hDWDq vD9cdr71uOmtU79vmJQTuXIuu2PTQWno1zXRkjeyisRKeUCV8UtA3kBFxw5lBILWyvuf waPt4/zIfN6ykqpaR3ISY89sIt/8EBJh1ofNJQXTUA00W+Tbk5ESIE8aMF9YMljkXaUO LQ9DQhk/7oRbT5NUOL+rn5qiP9Tx3p7Ow6oAd/DxcXpvYi5rCUjvkNQtFeIg35qCnquq hfXw== 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=9mwR66y8zsVZ/cDuRhyLz8za9Em8wqxo3RbR0By4aXk=; b=EmJ15Wp2SMdvOE1tY1Ig0WR/qumBHzBO6XG7MhIO7/LJqHlZnBPJX4gqUpKgC9TPcp ECwJELhfg2evlBF1QyQkUlgQ8iLrGyLgnJ/7GLHD5+Xk/tuZE30Xhji+hiCtNHFjif4Y Yu6aRpcFEaL90xJBl9HV78x5yo/UInWc15Uc/AweypksSXXELL3n/W6NnNXn+hQL7Pgu WuLrCpSN5FkupCXHmIvpyrtn2H0B+JTKC+zdcFqLZmQLosIu+pN+BdQwrANq/IxGwQ2z cCFLWgQsTEbpxsjnPvLWDIr60d2GFl0UATVgeo5And0/O4uARgjEFgtnIDiUZf0sn10w Dcfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WsZ+BCR8; 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 m19si726283otq.40.2020.02.18.23.39.45; Tue, 18 Feb 2020 23:39:57 -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=WsZ+BCR8; 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 S1726762AbgBSHjg (ORCPT + 99 others); Wed, 19 Feb 2020 02:39:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:54230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgBSHjg (ORCPT ); Wed, 19 Feb 2020 02:39:36 -0500 Received: from localhost (unknown [106.201.32.165]) (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 76E46208E4; Wed, 19 Feb 2020 07:39:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582097975; bh=KIEXxX4jEJNPFYhU5xWr7O+78iRlS7JsDPszV/HDTEg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WsZ+BCR82tcyYc4ynfONnsUmrFGHOqTp+kYKtG2Tc4RMtjWj4+egICQcQKhPZUXBl yWGt+REwNyTuwH57j7D97TIZ61cQknHNl+cscexYGXg+Dj2ePE/M5m+n5EWR4qDu39 JrRdJY1qO3wozgWOM6lF8XfvFflvqE/BIxT3L2l4= Date: Wed, 19 Feb 2020 13:09:30 +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 v2 0/6] dmaengine: ti: k3-udma: Fixes for 5.6 Message-ID: <20200219073930.GD2618@vkoul-mobl> References: <20200214091441.27535-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200214091441.27535-1-peter.ujfalusi@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-02-20, 11:14, Peter Ujfalusi wrote: > Hi Vinod, > > Recently we have uncovered silicon and driver issues which was not addressed in > the initial driver: > > 1. RX channel teardown will lock up the channel if we have stale data > in the DMA FIFOs and we don't have active transfer (no descriptor for UDMA). > The workaround is to use a dummy drain packet in these cases. > > 2. Early TX completion handling > The delayed work approach was not working efficiently causing the UART, SPI > performance to degrade, with the patch from Vignesh we see 10x performance > increase > > 3. TR setup for slave_sg > It was possible that the sg_len() was not multiple of 'burst * dev_width' and > because of this we ended up with incorrect TR setups. > Using a single function for TR setup makes things simpler and error prone among > slave_sg, cyclic and memcpy > > 4. Pause/Resume causes kernel crash > if it was called when we did not had active transfer the uc->desc was NULL. > > 5. The terminated cookie was never marked as completed > client will think that it is still in progress, which is not the case. > Also adding back the check for running channel in tx_status since if the channel > is not running then it implies that it has been terminated, so no transfer is > running. Applied to fixes Thanks -- ~Vinod