Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1246586lql; Tue, 12 Mar 2024 11:13:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJ1KY0jFlwreLmuquOPh+vnqKV1wvHcW2Po1HKDK2lo5CilfcgLgAK0fKcOFLnldByuFnzfCI95eC707ms+bp3UBJ3WuxlF44vC6ms+Q== X-Google-Smtp-Source: AGHT+IE82bXLZOf5PLz5JWg9YIJLMFk3Irhshb1uoWFpw1tuCRebEvpy7AW/bocGdxea7WsveD3E X-Received: by 2002:a05:6870:1603:b0:221:a881:dfb1 with SMTP id b3-20020a056870160300b00221a881dfb1mr11654380oae.33.1710267224832; Tue, 12 Mar 2024 11:13:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710267224; cv=pass; d=google.com; s=arc-20160816; b=PUT9GTyuVok3r8L9mtyp+EaaXg84KUj6v0ZjHzOg6KyQAEpSloryw3ip9M+FxYABr8 0rA2WmSA+Zo5LPPe7Y25tBR75R7Cv9OhJcoNkDJ1MCysTb+mZxIpneNaRDDNqSTFQcB/ ZYy+KIT94YQvobJGsBLujaClUZzeiXeAK31Llop0arX/jlO2NwhAVczKA2s2hc+I9CeN 9Hy5+YBB4tuQlh1WS/bYFzMvDOEG4/zS50gn9niFc1TiXtxgFsEX1OK5FOzVk6pSMAz6 LlxbmocuCd4NETnQzv8x6I7/2AKgdrYZqEP1DW4vg7f/e63Uux08T5zI6rWdgmXa7EbL s1eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=biCYnQaSdIzs0N3kKvy+q3IdU7pUealwzctrdSLzqsc=; fh=y2C3UftsOKjZ+oPOTxXFEQ27wiyilay9hDZogSX0N4s=; b=vCijiTJ57/PrBnAzbAMTMBCrneVEH6I6VcZ9Z5O6cRdCjmiH5qNiRMfUklTwGymHIA VZFrB/7qbCsucg6zhA4+koNf3A4r5bq2VMSluc5CnVUIyVf7bPsX1i8mXlZD5otTLq/u kRzVYKkY5MWS9cxH7i03+v4XWeghFjic1Kb8dio0SM7yRrL9HRLJnjFeSCd2wa7/CPSP UyFItzSykP+D7F5G/Pbin98XPm19X/drDhW5UarJpGAWI+onWKDLMCnw1xxE8Dq97mme Gf3VmnxQUVWvcbFiV1XJe14gIISmMAcGhlwj1vaIT8RCRI0Wik+eCUe8iVYBp9B/zSPs Qitw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=tPNTFeWN; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-100636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dz9-20020a05620a2b8900b00788316f51e4si8225343qkb.4.2024.03.12.11.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 11:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=tPNTFeWN; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-100636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 899B31C225AE for ; Tue, 12 Mar 2024 18:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 644E3139571; Tue, 12 Mar 2024 18:13:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="tPNTFeWN" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D58953BE; Tue, 12 Mar 2024 18:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710267218; cv=none; b=CmeAj5cqQNCDjTlJufY6kBc9A94w1hlbmrzyDDJHEGm9Zmw5BPkvC1+mjqR4QB/FTkhcK+3bPIFoNGx9CK2vGp9hsfUwfWVErDX+k+MxCFW1bmp0bnqE1ka2CfIH1ktVvEaDpb8kNuI929O2ZANZN+Hy715NFwhtzydTESP2zeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710267218; c=relaxed/simple; bh=hxc39IxN819loZctbVccpqyWI+eMyY9INPmx5WaPeB8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B2yyONppB8aLHiuBJ+/4IpSb8y6kve5MYKTFO//y/9sGdDGSOZTPsvBnI+i/xnXUQQawgRNauKWYllHOqU1Cv0pHKdwnFQnUN05j5kW8qKuHT1pn0kSBTnJfgET+o8bNaSjjXqovtj9ysBkSxuVBw8j5jZRn2wpMv4xFoHXXPKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=tPNTFeWN; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id F18AE1F9EC; Tue, 12 Mar 2024 19:13:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1710267210; bh=biCYnQaSdIzs0N3kKvy+q3IdU7pUealwzctrdSLzqsc=; h=From:To:Subject; b=tPNTFeWN/WZKdC5cmw0WP7Kv8PM+xX6I4nz6sJ6LLFgyOi4DVQis3c3aQHCZJkuv/ gfq/j5tfQ7yCI2UBeWT5faIts+ZNcYZCCei4UJiGQOGXwZC9bTMRGQEu4VDalE5TWz q6VxghgXTab+/aVp1zP4pHJZcKy5xcFSnzxsf1/QAvPxcz5uyU0AsGYtU0WIqFT/0k 6yfp1JP7aTW7QkJRpUCxFr7GquJYDbVf9i78yGB8PpV9zrAvkeOEKRXV6oUJYO/42E i7+tMhr3/f+TD1oIQQYd27E2Togd9hv5GYyXV8xuAARWjXApgtAXc00wfwsCHnM3mc UnqH+V87oxdSw== Date: Tue, 12 Mar 2024 19:13:25 +0100 From: Francesco Dolcini To: Vignesh Raghavendra Cc: Peter Ujfalusi , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, j-luthra@ti.com, j-choudhary@ti.com, francesco@dolcini.it Subject: Re: [PATCH] dmaengine: ti: k3-udma: Fix teardown timeout for cyclic mode Message-ID: <20240312181325.GA4602@francesco-nb> References: <20230821104003.3001021-1-vigneshr@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230821104003.3001021-1-vigneshr@ti.com> Hello Vignesh, On Mon, Aug 21, 2023 at 04:10:03PM +0530, Vignesh Raghavendra wrote: > In cyclic mode, last descriptor needs to have EOP flag set so that > teardown flushes data towards PDMA in case of MEM_TO_DMA. Else, > operation will not complete successfully leading to spurious timeout on > channel terminate. > > Without this terminating aplay cmd outputs false error msg like: > [116.402800] ti-bcdma 485c0100.dma-controller: chan1 teardown timeout! > > This doesn't seem to be problem with UDMA-P on J7xx devices (although is > a requirement as per spec) but shows up easily on BCDMA + McASP. Fix > this by setting the appropriate flag > > Fixes: 017794739702 ("dmaengine: ti: k3-udma: Initial support for K3 BCDMA") > Suggested-by: Peter Ujfalusi > Signed-off-by: Vignesh Raghavendra Any update on this? Not sure what's the current status here. How can I help? Francesco