Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1064342ybn; Wed, 25 Sep 2019 11:49:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHLVxthizFN5YlNqnZAVDmEklhaqjX/x4rs6TU+tnM9xCF+MRBJB8OXOAgKZ+JmEXCms7a X-Received: by 2002:a50:f747:: with SMTP id j7mr4570691edn.73.1569437388491; Wed, 25 Sep 2019 11:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569437388; cv=none; d=google.com; s=arc-20160816; b=Gz70Qpm/wDgJf1a3bSzPoKi7ooR3XYIl9VY8P9ngqOE6ihEUHStbc1zZ02hV0xye5V t6ZA1EWUAi5Hnz1iE5emJa74AqOE0HFLkL5bd9mhXlsRtra0GE1i7EzkWHtamSFOusaO ChUFLC342A2M7TLi+KU2pCcmRxs34qpeXpzDp9LTsw7ZG7LOeWH2XI1Td9QymzKP0MyY PPBDgupfrMFJo7lngTzMzh2PPCatYxFuXO4lLl+y91vWJl08ULlVZmTVbMbMC1AT5tUo 7r8YUh1PcyXEcZ2IXqo0izss5bt4bEHoU0nlVh87NC0vyHrflmbqj7c8uFLi3sOcvkxs WkEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id; bh=pZiEQmVlam7AEmwXEyaF4oEuP7E74d809PGQCe/fb8Y=; b=pSF2gUYSxuAY9x/iiikQuM1G/V2/PtFuPwUex30OuyS9JbuxrVeWsA7JTlk32SH2so vqztvH6t4dPj9kwNiob6ltScRjsGSg6sSSWTuV/rtIfVH8ken15OmsgmCb787oAFKJW/ 4mYrgVDJoUPjU2Aq5ZZawmeQHnBZrFak0KeqLHNvjnGvEhp1maQ+oivgGW/mUgRAFy1J KYyQPD18xsiFJcBJB/nU5bvvUip7G5xu/pvnxJ4rKU5AEYYV2WY9+eMiIzDqQevhPWpv TaIOUU5/gHpFVEgkHYKudrIgujHiX+Dn6S0v7iDu9QJEAHii/9rZtPS3FRH5FAZa4Bhb 4r1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si3826155edb.160.2019.09.25.11.49.24; Wed, 25 Sep 2019 11:49:48 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726576AbfIWPJl convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Sep 2019 11:09:41 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:33177 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbfIWPJl (ORCPT ); Mon, 23 Sep 2019 11:09:41 -0400 Received: from [2001:67c:670:100:79a6:a514:42de:7079] (helo=rettich) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iCPy4-0000Kl-Uq; Mon, 23 Sep 2019 17:09:36 +0200 Received: from jlu by rettich with local (Exim 4.92) (envelope-from ) id 1iCPy3-0006sW-5g; Mon, 23 Sep 2019 17:09:35 +0200 Message-ID: <8cc51d485ee016589b752426412e57c23e35a4cc.camel@pengutronix.de> Subject: Re: [PATCH v5 0/3] Fix UART DMA freezes for i.MX SOCs From: Jan =?ISO-8859-1?Q?L=FCbbe?= To: Philipp Puschmann , Adam Ford Cc: fugang.duan@nxp.com, Shawn Guo , Sascha Hauer , Linux Kernel Mailing List , vkoul@kernel.org, NXP Linux Team , Sascha Hauer , dmaengine@vger.kernel.org, dan.j.williams@intel.com, Robin Gong , Fabio Estevam , arm-soc , Lucas Stach Date: Mon, 23 Sep 2019 17:09:35 +0200 In-Reply-To: <2443c553-c593-2f23-4cca-c2f03676adc9@emlix.com> References: <20190923135808.815-1-philipp.puschmann@emlix.com> <2443c553-c593-2f23-4cca-c2f03676adc9@emlix.com> Organization: Pengutronix Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:79a6:a514:42de:7079 X-SA-Exim-Mail-From: jlu@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-09-23 at 17:06 +0200, Philipp Puschmann wrote: > Thanks for testing. > With my local setup i still have very few tx timeouts too. But i think they have a different > cause and especially different consequences. When the problem addressed by this series > appear you get a whole bunch of tx timeouts (and maybe errors from Bluetooth > layer) and monitoring received Bluetooth packets with hciconfig shows a > complete freeze of rx counter. Only resetting the hci_uart driver and the wl1837mon then helps. > With these patches applied the rx data shold still coming in even if a single or > multiple tx timeout error happen. I'm not sure where the error comes from and what the > consequences for the Bluetooth layer are. For testing, I've used a UART connected to my development host and configured *mismatching* baud rates. Sending /dev/urandom from the host to the i.MX6 then triggered the DMA hang (because each character triggers and error indication, which "uses" a full buffer). Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |