Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2262540pxk; Mon, 14 Sep 2020 08:43:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpak9Okgre1USBUhpycuV+jgo2tJdivF87RXb7RR5ieD7dFBetTosI6aoRsoGjeXwoKjS4 X-Received: by 2002:a50:f102:: with SMTP id w2mr18323973edl.63.1600098207882; Mon, 14 Sep 2020 08:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600098207; cv=none; d=google.com; s=arc-20160816; b=uorfAmiAyYARwe45ylfNXatB6DwB6Hlra+bOthVJxSZ2FvpMRlwXPdv/sT4iVO9r3J 6ZxOGf8otHcZn7y1NM8DKNH1S5A12F4c7tXB2PRDW1dZ+JP+pIbg7MA5cI0ctDSWRUyh GRsqpJz8L0/V/W/nV3W+2ZoQjP0MxmejT9lAKixRJhBOK8HS5gqkWmoEXUpvzQaNjK1U ulD8kwSXW05UNlLoZdVHp3wVXFJJQ3OqkrIwYAgAGq6izv6BbvAkRbK6Uwb4ASo1fa5Q lvTmWSdonWIbRi6P2K7Qu/zBGfap+ga/9MuoH5ArDpBnOpF336s1WU5bS6o7fifZQpA+ ftGw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jsQOlgmuW5ym+Pa5nus1EZIi7cRnYavzMa7ZkQUAfNI=; b=wR3n4QP1tsFl0vRUusoT/ISyZ6ALPwCNQSm4ZCCsCeP0DWnNuTEyAWT0OO7hOwRk0u A/piJBV1pkwJVfVDuluCF1lhfdq5iW4Symf/tdr5WnBGJ8R9NNdIyueI74+JbI+Zbcf9 iWJPjDttia6kIXme823U7uFgaiQxpd9nCTedEm6iYqzOC1CNkwb9nxw2onvdEBlRaINU vgTNgNva33Xl4sH2c8GjQFXeBV647Nq5NWeutp1rgboKalCfoLSswdVFZXvxOAs9AjFd nhBHlcRO0ngTA1b1JCgX7UIiZqA6CJjQltJpeHUikH/6fVvhb8R5X+fK9WHgjfwKgj39 w8yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YttL+ZE8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si7761203edx.5.2020.09.14.08.43.05; Mon, 14 Sep 2020 08:43:27 -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=@linaro.org header.s=google header.b=YttL+ZE8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725999AbgINPmX (ORCPT + 99 others); Mon, 14 Sep 2020 11:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbgINPjm (ORCPT ); Mon, 14 Sep 2020 11:39:42 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87877C06178B for ; Mon, 14 Sep 2020 08:39:42 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id m12so362314otr.0 for ; Mon, 14 Sep 2020 08:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jsQOlgmuW5ym+Pa5nus1EZIi7cRnYavzMa7ZkQUAfNI=; b=YttL+ZE88/4HT9qZqo1xUe6VqOTiG71d0Tx4vGcGQt3PL/lm3ZAs44vcRi8s3O5HGE mONQlRVEt/F5F5/NjGOq/B6xCx1Mfgyla/woq377uFZ+dT8/jmHOG2Yu1sMkh8Kh/QB+ rmzs19u13bk5U+ZuAouLcjMjEWt4NQTVcW5l7b9bXLr10PaR2t2TBu+uEmcAoFqPuQFO CAjq4Ry7zFByt8zbyYN1fXeyu5clD5S4mVg+zVPQPgL1z/bonQSUA2SAkvJVQYcqLZ/v KDnmAYzO0H7nbfhIQbJ4sDhMpI0+GASjBRrbpU1ocPeddm2SVAvCbL2BdoaR4/MsB6hy KIGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jsQOlgmuW5ym+Pa5nus1EZIi7cRnYavzMa7ZkQUAfNI=; b=KwnRpWgRk5SWxbgtadQ+K7/my7l8jCZHlmK8BnvjOVCdQovFsYZF27PFuvzB20H5Vx HU/PNMmmgBkfaqtBtfBPya+9+RhsKaXwwTnrPwPAVM9cEMGoEeyYklN85jtXME3XMlfk Usl0jOvm2BdcJYZBmJnyMytIpOAdcJSJCg+XWeEXOZQ7czkJ8ztSP5fa+jZREUG61BQF j/0rdPVY55hTB3cIlw8mj9EkhuIVVx5nR9OSSufIlCGa8W83a4Am9vCPZ0674mztAVT1 zRX0nHBELM8oNCkbeXG4tPxBBCiPvDbYJvdeEPQLqNnhyOVoTivWtqcKerv/qieH1yTs gynw== X-Gm-Message-State: AOAM531259BHn7aYyeJxROuj79zpjBNXYSnJD2usMV9yl8TCDA8uCDHs /Y9qXA3Z9v185koi0tXI+EoCiQ== X-Received: by 2002:a9d:7841:: with SMTP id c1mr10013216otm.318.1600097981295; Mon, 14 Sep 2020 08:39:41 -0700 (PDT) Received: from yoga ([2605:6000:e5cb:c100:8898:14ff:fe6d:34e]) by smtp.gmail.com with ESMTPSA id e30sm3496013otf.49.2020.09.14.08.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 08:39:40 -0700 (PDT) Date: Mon, 14 Sep 2020 10:39:35 -0500 From: Bjorn Andersson To: Douglas Anderson Cc: Greg Kroah-Hartman , Nick Desaulniers , robdclark@chromium.org, Akash Asthana , Nathan Chancellor , jwerner@chromium.org, Andy Gross , Jiri Slaby , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH] tty: serial: qcom_geni_serial: 115.2 is a better console default than 9600 Message-ID: <20200914153935.GB3715@yoga> References: <20200911080054.1.I4c00b921c2f17b6988688046fa7be0f729f8d591@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200911080054.1.I4c00b921c2f17b6988688046fa7be0f729f8d591@changeid> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 11 Sep 10:00 CDT 2020, Douglas Anderson wrote: > Commit c5cbc78acf69 ("tty: serial: qcom_geni_serial: Initialize baud > in qcom_geni_console_setup") fixed a bug by initting a variable that > was used in some cases without initialization. However, the "default" > baud rate picked by that CL was probably not the best choice. The > chances that anyone out there is trying to run a system with kernel > messages piped out over a 9600 baud serial port is just about nil. > Console messages are printed in a blocking manner. At 9600 baud we > print about 1 character per millisecond which means that printing a > 40-byte message to the console will take ~40 ms. While it would > probably work, it's going to make boot _very_ slow and probably cause > the occasional timeout here and there in drivers (heck, even at 115200 > console delays can wreck havoc). > > This has already bit at least two people that I'm aware of that tried > to enable serial console by just adding "console=ttyMSM0" (instead of > "console=ttyMSM0,115200n8") to the command line, so it seems like it'd > be nice to fix. > > Let's switch the default to 115200. > Reviewed-by: Bjorn Andersson > Signed-off-by: Douglas Anderson > --- > > drivers/tty/serial/qcom_geni_serial.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c > index f0b1b47c3abc..e390ffc8bbbd 100644 > --- a/drivers/tty/serial/qcom_geni_serial.c > +++ b/drivers/tty/serial/qcom_geni_serial.c > @@ -1107,7 +1107,7 @@ static int qcom_geni_console_setup(struct console *co, char *options) > { > struct uart_port *uport; > struct qcom_geni_serial_port *port; > - int baud = 9600; > + int baud = 115200; > int bits = 8; > int parity = 'n'; > int flow = 'n'; > -- > 2.28.0.618.gf4bc123cb7-goog >