Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1221848ybg; Thu, 11 Jun 2020 04:20:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4PjAdS/EY+xHvju2vSxHafFnQ6Y3yJJPjoflE6TTdq+o6oJpu+MB2ym9TvgGDSJ3D6/BQ X-Received: by 2002:a17:906:22cc:: with SMTP id q12mr8187813eja.485.1591874459027; Thu, 11 Jun 2020 04:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591874459; cv=none; d=google.com; s=arc-20160816; b=ErBZlopggELnKWPtzq8q6D0zInmHuCqIIYpNbD4ZnfJdd60ETwxVpS7zpYCINESI0o ZYOkafRHjSNYkIYM0z7cTRKJvgFhCRD/A+1iyntC9Tnxr3ljwePz/xfOTRQ/3qavIA3A GaawyEeouKRDx6hu69tmogFOxZVuf3FfrT+CzPsCBLkLXsoZfnyuzyK9o6Da7LTJJDr4 S4kq5pSuJySdvRyRhtcfksAj80FCe1Gcm0qgPfvHQoEHFVKA8YOoCdjNbtI89NZJOzI/ 6n0JJRB95gj1hVAcWhmI5BgGotjQ2HFAc8e0yRxNZE0Gt8vdmHB3VnVGZKReh/S7fCey wuQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yOrjTF54ojDf/gTbgy505hPxgDpcbHy9mDerME72Qac=; b=af7janpiFHsWh9IKq+ue0ksUxRlg+WZT4BAeaziE8AB5gQJmgvGGT71mBgqzG0EQKO 2F0vqcGAQPlFMn1t7r9aeNkuS4E2PXfECTfeHMbgKz2esPhgCNF9CdIR52WswZb2KOJY zEMktfqNM6XOOgE8HXfwgrpwHSLu56ZN3GlzW+1nu5dWukHuKPTXpxOvOX6s3UQtilbg QZ+vYSfXLkCVmTONg8w26vIWubTbYZ/yQ34C68wDsOdeU3zfZpqleyJYAy4F/l/oiDb7 yzCeTdkwNMXgWwak/rtsKmt1a3u+HdwMqoAkGF4Faxbt/964k8m42enAmi4qKhm9W4Jr rLhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2D9UqhsO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si1554769edt.202.2020.06.11.04.20.36; Thu, 11 Jun 2020 04:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2D9UqhsO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728007AbgFKLS3 (ORCPT + 99 others); Thu, 11 Jun 2020 07:18:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:44356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727973AbgFKLS3 (ORCPT ); Thu, 11 Jun 2020 07:18:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 879852063A; Thu, 11 Jun 2020 11:18:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591874307; bh=u/ZlCVT4Qx9a6DnjKeW8PwPc4At2OeLBS8LztOanwJA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2D9UqhsOgj0plexSgeDKm4ci+JHy67vyEkz1ySN/W6tx09wPGf11LU2vEyxYh0A2x wew1hii/5rPGYa2FtNkkNAp5ja1CC/tY9/LfZWuVFwq6GdPPurxw7czLbb00YB+H5i Pg9W1PhzbuuKDQf7K2S/4tAF7fQWTpI4PmkN1pLk= Date: Thu, 11 Jun 2020 13:18:20 +0200 From: Greg Kroah-Hartman To: Schrempf Frieder Cc: Fabio Estevam , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: Re: [PATCH v2] serial: imx: Fix handling of TC irq in combination with DMA Message-ID: <20200611111820.GI3802953@kroah.com> References: <20200609072259.8259-1-frieder.schrempf@kontron.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200609072259.8259-1-frieder.schrempf@kontron.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2020 at 07:23:40AM +0000, Schrempf Frieder wrote: > From: Uwe Kleine-K?nig > > commit 1866541492641c02874bf51f9d8712b5510f2c64 upstream > > When using RS485 half duplex the Transmitter Complete irq is needed to > determine the moment when the transmitter can be disabled. When using > DMA this irq must only be enabled when DMA has completed to transfer all > data. Otherwise the CPU might busily trigger this irq which is not > properly handled and so the also pending irq for the DMA transfer cannot > trigger. > > Cc: # v4.14.x > Signed-off-by: Uwe Kleine-K?nig > Signed-off-by: Greg Kroah-Hartman > [Backport to v4.14] > Signed-off-by: Frieder Schrempf > --- > When using RS485 with DMA enabled simply transmitting some data on our > i.MX6ULL based boards often freezes the system completely. The higher > the baudrate, the easier it is to reproduce the issue. To test this I > simply used: > > stty -F /dev/ttymxc1 speed 115200 > while true; do echo TEST > /dev/ttymxc1; done > > Without the patch this leads to an almost immediate system freeze, > with the patch applied, everything keeps working as expected. > --- > drivers/tty/serial/imx.c | 22 ++++++++++++++++++---- > 1 file changed, 18 insertions(+), 4 deletions(-) Now queued up, thanks. greg k-h