Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp501840ybi; Fri, 7 Jun 2019 11:33:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeOn5vqkG4jz0/s2xOSkmelJ3PIzrEO2NNB3v2n0xmDbsAw9iEWB8s1M+1c5sWh9oIv7Z5 X-Received: by 2002:a63:2b88:: with SMTP id r130mr4405002pgr.348.1559932416632; Fri, 07 Jun 2019 11:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559932416; cv=none; d=google.com; s=arc-20160816; b=LkFxA6d9oYz/aUfnO2fbN3uBaygBVLDzneVBDdSKnmL3n5GzZhG0uPfk9cZgAhRSME tSq0LZFSK2YgZK4lDMqJkUDyghW/qPofBOymF4TdDjJTB4jMdNsoc5Ju0HBI3W+A3Zvt pRomy38iv3Ol34sd/kDJKUkWH9IuDDbMx2eoMCxlkfMJ4Maouzi9q4Tzt/8lxq/C60sP JKhFNToVaRN+z4LqDjAgdE9AkcYD9wuaL+A84qhw17I2lL3LnQfKvd8C1cu8lWZs+Rwf D00Ml1IucJTT4aaAavePhndsMqw4vhDAUEVQblU4SCd6aOXJ/iYDcHJmHnvfqEfRDSuq i63Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ke+xtXqTvMUo4MkF7w4i3/p5pRNKmKqKQPF0iqk8/CM=; b=jlZhib2vwXT1xSw2QzIfalavoHFhsgdvEOIVUCeBScWtsy0ll6P62jWo8rdZlY3mJp RdNNSAmUXBCiaHXcpS+Q2acOdMwWHbEXVnJ6xGaSNtGyDQnJWJIDCJiURPrBbbAA4EYZ nLLpE38tT+CGxopJyL+RF11/YxvFwBo5256wQJVzp2vb9exFBDrt0bhj/enZRxbOUMKU djdW1LfxYwGWalJs61RZ2eay/HRPkOi7W1ccul5NXgx0/gMMAg3Hdc08xSTPwfD0DhD2 S25b6z3ecWDtGQLwAB+jnjU8Of+TtmLNZHJFD9/8NkC3VtJk55KfLAkwRssp4/vXJtEZ /p+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rogIY3N3; 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 j8si2649110pfh.239.2019.06.07.11.33.20; Fri, 07 Jun 2019 11:33:36 -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=@kernel.org header.s=default header.b=rogIY3N3; 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 S1732095AbfFGPuD (ORCPT + 99 others); Fri, 7 Jun 2019 11:50:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:36440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731220AbfFGPuB (ORCPT ); Fri, 7 Jun 2019 11:50:01 -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 BEA3820840; Fri, 7 Jun 2019 15:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559922601; bh=uFB6JgiF588xHj90IodenLeJ8LV6T1SfOBcDmZFDST4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rogIY3N3KjbRbR1UqRnhERzd2BBErjPzdVk1p1HnWq1x91iuJ3okE+Z6OzTWkr0G9 xyGoToj0H3U335OPrQG51QMYSNglnZ1bpO/Ztqh3woJUCUgyYiGxIHXSdjlFxrffWQ ty2bn2DeEAqv8XsJtV+UxVtajqw7oGPx9yei+jNo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Rodin , Eugeniu Rosca , Simon Horman , Wolfram Sang , Geert Uytterhoeven , "George G. Davis" Subject: [PATCH 5.1 64/85] serial: sh-sci: disable DMA for uart_console Date: Fri, 7 Jun 2019 17:39:49 +0200 Message-Id: <20190607153856.427807497@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607153849.101321647@linuxfoundation.org> References: <20190607153849.101321647@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: George G. Davis commit 099506cbbc79c0bd52b19cb6b930f256dabc3950 upstream. As noted in commit 84b40e3b57ee ("serial: 8250: omap: Disable DMA for console UART"), UART console lines use low-level PIO only access functions which will conflict with use of the line when DMA is enabled, e.g. when the console line is also used for systemd messages. So disable DMA support for UART console lines. Reported-by: Michael Rodin Link: https://patchwork.kernel.org/patch/10929511/ Tested-by: Eugeniu Rosca Reviewed-by: Simon Horman Reviewed-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Cc: stable@vger.kernel.org Signed-off-by: George G. Davis Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/sh-sci.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1557,6 +1557,13 @@ static void sci_request_dma(struct uart_ dev_dbg(port->dev, "%s: port %d\n", __func__, port->line); + /* + * DMA on console may interfere with Kernel log messages which use + * plain putchar(). So, simply don't use it with a console. + */ + if (uart_console(port)) + return; + if (!port->dev->of_node) return;