Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp36894ybe; Thu, 12 Sep 2019 15:10:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHF7eKb1c3vVEMJ0rvMXKYWktA8P57g7aU4uoxh32Ykt+7afk550WMiJAmeG1OBW3E5tAv X-Received: by 2002:a17:906:b5a:: with SMTP id v26mr36667734ejg.235.1568326250824; Thu, 12 Sep 2019 15:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568326250; cv=none; d=google.com; s=arc-20160816; b=mj+KA1AKy2J9jto/dtullDSiyRp2T+ByndrDJEi36L695T64lxZacbI66p51L0JnUi qCJPlZWLuD1X6eexJ1xPhTt70V2nwrOhEpsrdUcQpQZu58lV4lp3BfZLbIhGyD9Wp0YK OTVzHfknkHXgA1GcTDVQlLwg/BO2mUn+xdbpz1xGAbrMnxVfzBa9UlIr1brfs/8zltb8 oMawnll0WSncz83pj3Fy+NJAmJ/2BhVYlcAjdDo9EEbBEz8b0DA2c/milhGHzGpX9fb8 Z2YMwBzB96sZWK/XFg6FWoQxDUI8SC/hDP3HsyPkVIrmzuSeQiICbP6u4UP3iIuJZJ+9 qvzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IzpHMPyEAs7qHXeC8+PI+k8EjPmSxRwc5lCuYXRCv54=; b=j9SE6WzBA/ysR9mi9pv+0FNqEX2Ga4XoKfg+gp1IHTc3z1dx79HYyA9bG21nxnho2b JcXGzEUVk1aUkJAR7lZqSZfjgU/WdtI4kcxAH09P49hZ93wdJsrRJzkAPdkYeacF1cwf dW4yf9PVSdqajmfC86dvTiZtpXUt0ne0b/8nWeOAvvLY5VumKHIWNIXmXiOZIsMESXhJ 48fgdIr7HlqeSsMVcosF3Cptv1D9vIM1OdeH5g+w55wbrMhwiUMcwSuSDocZTxqf3dir ruzjhfAGMcHn6/KIns/dV7dFO5+HBhacC5GJAAzwMWM2IrCqgbjYE4p7rxm1BfN1Pmn1 WkUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UZ3qHTaV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si11550291edr.139.2019.09.12.15.10.26; Thu, 12 Sep 2019 15:10:50 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UZ3qHTaV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbfILSXr (ORCPT + 99 others); Thu, 12 Sep 2019 14:23:47 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38294 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfILSXr (ORCPT ); Thu, 12 Sep 2019 14:23:47 -0400 Received: by mail-lj1-f194.google.com with SMTP id y23so24211339ljn.5; Thu, 12 Sep 2019 11:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IzpHMPyEAs7qHXeC8+PI+k8EjPmSxRwc5lCuYXRCv54=; b=UZ3qHTaVrczrYkLqCzFJel3IMA/0c7kf0uAfHAAJOzbYtfQv5ist1ZHOa4QlmfW8Y8 1AccvRFP+4hzmqF/mVoOwGA4l8o5DpECcGgLYz2jE77VlFvAgE+zB30oFDvBEvN4+qN7 b2KB42vYdwZpch/CRMGMfR6lyFLUvffEYJGADc/Aaexis9rTRYC+WyV2vz2TYvVvKYIN /Hj7Z7dhOQ9iBUcmPP31o62k891bi3/x4FEzaOJz5n6DkNAttTbJv+jeqdrBpWk4Jcvj /DcBW3x7lGouxlUi484qAfkGHAmC3hpvwfD4UqKFSlkAZsAwUOfj9fqzmF3WTw8wZ4Om a/Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IzpHMPyEAs7qHXeC8+PI+k8EjPmSxRwc5lCuYXRCv54=; b=JRwC4ULFD3YzgYjRc3mRYRMNbFOqT7+3F540P6kPU5dpz8MMLd/7w/94jp9LDz+TxB E9JrUmThS+A6ZMY9PVJMhouhT2K9kr3KBinkb8GHvdfAlRY9prpboY6WhCy//8eWd1l2 ypMdG9+bOfai4BLA2iPn6jVvgVgYRPMr33FssriSpL1cm7jTKvvySGwLcWV7gZKvsKr4 xZuO9VC5k6KdcsQtuGth0vKeSpC71xQ7sYKBffqTryNpWmYUATkTSW+SiOBfifHdM9MC rKQOnOO5gaz+sJmRzJrbPmgnaU9jTzfo4hP3csfbTFz6+klFcuBBECS5xRJ0MLp0BX2E 63UA== X-Gm-Message-State: APjAAAU5dWgKpoYtku40273+jElO3UxLKqFD8HRgh5V24tn8K/45fIeb kW1gXO53K+ljtC97gN9AtHu1Swx1/C1Vqs7x0PE= X-Received: by 2002:a2e:3e0d:: with SMTP id l13mr27406384lja.10.1568312624761; Thu, 12 Sep 2019 11:23:44 -0700 (PDT) MIME-Version: 1.0 References: <20190911144943.21554-1-philipp.puschmann@emlix.com> In-Reply-To: <20190911144943.21554-1-philipp.puschmann@emlix.com> From: Fabio Estevam Date: Thu, 12 Sep 2019 15:23:34 -0300 Message-ID: Subject: Re: [PATCH 0/4] Fix UART DMA freezes for iMX6 To: Philipp Puschmann , Robin Gong , Fugang Duan Cc: linux-kernel , Vinod , Dan Williams , Shawn Guo , Sascha Hauer , Sascha Hauer , NXP Linux Team , Greg Kroah-Hartman , Jiri Slaby , dmaengine@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-serial@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Philipp, Thanks for submitting these fixes. On Wed, Sep 11, 2019 at 11:50 AM Philipp Puschmann wrote: > > For some years and since many kernel versions there are reports that > RX UART DMA channel stops working at one point. So far the usual workaround was > to disable RX DMA. This patches try to fix the underlying problem. > > When a running sdma script does not find any usable destination buffer to put > its data into it just leads to stopping the channel being scheduled again. As > solution we we manually retrigger the sdma script for this channel and by this > dissolve the freeze. > > While this seems to work fine so far a further patch in this series increases > the number of RX DMA periods for UART to reduce use cases running into such > a situation. > > This patch series was tested with the current kernel and backported to > kernel 4.15 with a special use case using a WL1837MOD via UART and provoking > the hanging of UART RX DMA within seconds after starting a test application. > It resulted in well known > "Bluetooth: hci0: command 0x0408 tx timeout" > errors and complete stop of UART data reception. Our Bluetooth traffic consists > of many independent small packets, mostly only a few bytes, causing high usage > of periods. > > > Philipp Puschmann (4): > dmaengine: imx-sdma: fix buffer ownership > dmaengine: imx-sdma: fix dma freezes > serial: imx: adapt rx buffer and dma periods > dmaengine: imx-sdma: drop redundant variable I have some suggestions: 1. Please split this in two series: one for dmaengine and other one for serial 2. Please add Fixes tag when appropriate, so that the fixes can be backported to stable kernels. 3. Please Cc Robin and Andy Thanks