Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82960C6FD1F for ; Wed, 22 Mar 2023 18:03:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 78F2D85D7C; Wed, 22 Mar 2023 19:03:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="lrWd4rO9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2026D859E5; Wed, 22 Mar 2023 19:03:24 +0100 (CET) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8972685AA0 for ; Wed, 22 Mar 2023 19:03:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id w25so1149690qtc.5 for ; Wed, 22 Mar 2023 11:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1679508199; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sQn53J5BSXXJ9wtkcP56StdP/W2AWP1KvUHbN1XuVS8=; b=lrWd4rO9GPY97kEZQyCKJFk4GuBdl/s/J5myiMcDlPOfg+xgmiJqR/pi3nkGpKyzP3 N1Mwwdh0IVG5k3xLKVk+ifrvdvqfzQm6EU1em/qE36fVHDYIZekkw9spO/hu/JWYyQR0 IfFXsKM0VbcZMnOfu1uHx9VS6aeH8JNvTJOTY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679508199; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sQn53J5BSXXJ9wtkcP56StdP/W2AWP1KvUHbN1XuVS8=; b=Og88J0Oiit/NjO5FQUTObnxVzBt8QxD7WheoSTKyrsEVj740RPvNgHQhmcaqyg7tSL 7WEsLHJfjkNOOPZl1Pt90R2jsEXOCgmUo1QnlHaZzH6uGyYVCsAJR/QW1qy32VWa0rIV mC0BBEAN/6ziKiL2wM9PMBWmtvHzf+mmna4VTm6kxOKWoMMnyw07vIT/3Dcbk9Gxbb7z 333fdDsE8albbp5397nM9xT3zFicHji2+Zbv4rowrGRbuMVwhwGVeX5pgsL/lH6xYWRr /bTV4gTvJ55qHAZ1Y0b27z8sIwf0+CyKNzaHP7nvvZUjUb0Dx+Sxkq8Flg9VDoCY1twc rqPg== X-Gm-Message-State: AO0yUKX68T+1Gf8N8Y88/woWis9/OxfP26z4oFNnhJXX+vybw5rcUIp5 q7MbApzq8s7AufFp0FP4tBSYtg== X-Google-Smtp-Source: AK7set+ZBpNU88wu6SZCtg+dWIrF7bn+QDpJaKeDSL+cHFALOkjtu4lvJrSwkklbv5L47ylXLXNMhA== X-Received: by 2002:ac8:7d45:0:b0:3bf:da95:da89 with SMTP id h5-20020ac87d45000000b003bfda95da89mr7951200qtb.54.1679508199258; Wed, 22 Mar 2023 11:03:19 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-8fb4-da0c-fb38-955c.res6.spectrum.com. [2603:6081:7b00:6400:8fb4:da0c:fb38:955c]) by smtp.gmail.com with ESMTPSA id u23-20020a37ab17000000b0071f0d0aaef7sm8395640qke.80.2023.03.22.11.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 11:03:18 -0700 (PDT) Date: Wed, 22 Mar 2023 14:03:16 -0400 From: Tom Rini To: Vignesh Raghavendra Cc: u-boot@lists.denx.de, s-vadapalli@ti.com, nm@ti.com Subject: Re: [PATCH] dma: ti: k3-udma: Fix channel hang on teardown Message-ID: <20230322180316.GN8135@bill-the-cat> References: <20230308041257.2061537-1-vigneshr@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vbKgyctMMksQW0Ea" Content-Disposition: inline In-Reply-To: <20230308041257.2061537-1-vigneshr@ti.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --vbKgyctMMksQW0Ea Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 08, 2023 at 09:42:57AM +0530, Vignesh Raghavendra wrote: > Setting RX flow error handling will stall the channel until descriptors > are available to move RX data. Setting this bit causes issues when > tearing down ethernet DMA channel at the end of TFTP transfer as > unrelated network packets can cause teardown to stall indefinitely waiting > for driver to queue add more desc leading to channel hang with error > logs: > udma_stop_dev2mem TIMEOUT ! > udma_stop_dev2mem: peer not stopped TIMEOUT ! > udma_stop_dev2mem TIMEOUT ! >=20 > Fix this by clearing rx_error_handling similar to how its done for UDMA > as part of udma_alloc_rchan_sci_req() >=20 > This fixes occasional TFTP Failures seen when downloading multiple files > one after the other on AM64/AM62 SoCs. >=20 > Fixes: 9a92851c33e8 ("dma: ti: k3-udma: Add BCDMA and PKTDMA support") > Reported-by: Nishanth Menon > Signed-off-by: Vignesh Raghavendra Applied to u-boot/master, thanks! --=20 Tom --vbKgyctMMksQW0Ea Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQbQuQACgkQFHw5/5Y0 tyyIWQv9GjNKvyfcim5tJr6PzSKhdA29GQ/vP2mHW9CM8vAe6nbruBi3YjqhRdD7 yHmaPCdN3Lm7d8d9vL9fqprVcGcZEtQBS5tEMKiAWTnuHQjaNxisGwTssQAbpRsI VOBi4f40iebi0BNt41Hp2kPzrRIcRcqSNywT/amZPuiIzDRDb3rBiXxsVa+CIIIG 1xZpeqbxPb5eva0GW85lMaek1lZN+uZWtNBhmFtx2vAE3N4cd6e2FotYM43mUuer pD10M9TQRdNAtlGbSb+H+CVsEh1+p3wwfnEvheSspIYF3aoapk/ID9sTZE8FitFC vPZoj4iHOAsBXEOot5nYeUAneVSr/Gb7lEhVbxy8PhGayWFQ9Nx831nh7YzGLW40 T07mjsz7OJFWgQ/saCCFNl0h2XoU0MN4lMib7T5cYcKcRCHFhsxQtmx0daNdd9MZ i1WW2kh7odtytugyhC8IvbKBsvZ83LP8Pj1x9LI39XoRh/MjrEfWLcAhaeAxFztl /9XSTnvH =W9zW -----END PGP SIGNATURE----- --vbKgyctMMksQW0Ea--