From patchwork Tue May 16 09:57:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Vandeputte X-Patchwork-Id: 762878 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wRtF50g1pz9s7t for ; Tue, 16 May 2017 19:58:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oVwEAp58"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ncentric.com header.i=@ncentric.com header.b="JZv0f2xN"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=36PHle3w4QB1tHvyXxM4bx23CU6VOqGFeNnG2mUrwA4=; b=oVwEAp58qZ8qFP RgnUYmBWsIzTCqSVEzjKZxqXl5ZsoH4ivuqfbZT4FSi2iz/7FgJMR1apyU7dn9r8SiRmquRI+OqNH DsDIw42KG9pEw2UfiGpPSAv0y0IFtBxqewXk1gWuQdAGx7GHxztoOqG9lMWQ6ukBXHQvivPlXo6yo RDo2hwDQZopTY9EZ/rp2WJBHFVktjU5Pb58eJkKjTRMaMjJ++Vg+UPJOdZx+K9yFqBmdw7H3DGQe6 0ywuJrN8wwdjg2z48rV9QieTGbbxEWp4+ota6QmOoYLLxK6esJj2o4JXbJKo9cMEPb/Sujhj1s0o+ +NlMD5G2ce89MwNA28zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dAZFM-0008HL-4e; Tue, 16 May 2017 09:58:28 +0000 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAZFH-00084S-R0 for lede-dev@lists.infradead.org; Tue, 16 May 2017 09:58:25 +0000 Received: by mail-qk0-x229.google.com with SMTP id u75so122568122qka.3 for ; Tue, 16 May 2017 02:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncentric.com; s=google; h=from:to:cc:subject:date:message-id; bh=/tMiQTuU6hLDc29g7kUo+JR+cJ2hfXWuHdGrlBdVQqE=; b=JZv0f2xNU2eWD1jGXUVyBxylhevqIpCaX5qjZRsoyYjVwYCbZ2RpCIGU5yO/bAw6HL 2BnhfqlwMm8I9HhJjN5fmucx3v8XyvKuxbCG6GOyGhXrTj8l7ZwA4GnRBxTDKjGjY7ve Rio2Jwxy/MG3suljf+Tq788x/K7jb4Tmf6ghA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/tMiQTuU6hLDc29g7kUo+JR+cJ2hfXWuHdGrlBdVQqE=; b=ALUcj9P5gemBh5hvfApSP9I/OdAM6XYKJ4alf4bueGfzRPsQr+d4/eJdezszhmpaLX K29MZY8+8249aKrqYGuDKQ8RixSyKxr4oywUMzdR89xp9HksanCW0PScYKYcgFA7CVsH OERQoQnuEIW8cfjOTHzc3Lv0tWT3MBdla2I4bAnM/wB+ymtolkj+IA/vdbJPNA6Lhc45 rrtJXBCPLvFf01DSv+BfTx4viTJI5HDdQdIRP3MBEhgfYdvVZ8XlWAqICwsCzCfDN+Gr 8cIpuj9023YIHgnofJ6iXgDFkwSeCWKud7eMnZzk6IPHFKQBltYqQHTyXtYs9j/wSE34 o4cg== X-Gm-Message-State: AODbwcCsEeNtUgnGLuu/u3YhYVcdU9FXA36Hth2xHAh261Y+3W+5rubc QGfEsnON2kknxe7ot8w= X-Received: by 10.80.177.240 with SMTP id n45mr7945468edd.177.1494928682410; Tue, 16 May 2017 02:58:02 -0700 (PDT) Received: from localhost.localdomain (d515300d8.static.telenet.be. [81.83.0.216]) by smtp.googlemail.com with ESMTPSA id l25sm440355eda.52.2017.05.16.02.58.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 May 2017 02:58:01 -0700 (PDT) From: Koen Vandeputte To: lede-dev@lists.infradead.org Date: Tue, 16 May 2017 11:57:41 +0200 Message-Id: <1494928661-6907-1-git-send-email-koen.vandeputte@ncentric.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170516_025824_118178_939A066B X-CRM114-Status: GOOD ( 12.16 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400d:c09:0:0:0:229 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH] imx6: disable UART dma X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tharvey@gateworks.com, Koen Vandeputte , nbd@nbd.name MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Fixes these prints on boot: [ 13.785600] imx-uart 2020000.serial: DMA transaction error. [ 13.793134] imx-uart 2020000.serial: DMA transaction error. [ 13.798721] imx-uart 2020000.serial: DMA transaction error. These error prints can only be seen when viewing the bootlog through uart. They are not visible when consulting dmesg. Based on following upstream patch by Tim Harvey (Gateworks): https://github.com/Gateworks/openwrt/commit/80a01b6582f94c4547f39d3a25e0a1e9b6eb9877 TX complete DMA messages are getting missed. This is also currently an issue in mainline. For now we will disable DMA in serial/imx.c. This resolves an issue encountered with RS485 transmit. Signed-off-by: Koen Vandeputte --- WARNING! This patch is based on kernel 4.9.28 and thus needs following patch applied first: "kernel: update kernel 4.9 to 4.9.28" target/linux/imx6/patches-4.9/210-disable-uart-dma.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch diff --git a/target/linux/imx6/patches-4.9/210-disable-uart-dma.patch b/target/linux/imx6/patches-4.9/210-disable-uart-dma.patch new file mode 100644 index 0000000..a370420 --- /dev/null +++ b/target/linux/imx6/patches-4.9/210-disable-uart-dma.patch @@ -0,0 +1,13 @@ +--- a/drivers/tty/serial/imx.c ++++ b/drivers/tty/serial/imx.c +@@ -1269,8 +1269,10 @@ static int imx_startup(struct uart_port + writel(temp & ~UCR4_DREN, sport->port.membase + UCR4); + + /* Can we enable the DMA support? */ ++/* + if (!uart_console(port) && !sport->dma_is_inited) + imx_uart_dma_init(sport); ++*/ + + spin_lock_irqsave(&sport->port.lock, flags); + /* Reset fifo's and state machines */