Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp363250pxk; Fri, 11 Sep 2020 08:58:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymJlRTG2GcJiAXNjP9gKxW7GzDILXb9yF3ncGInkROqku/DWKcprRKmWV6hxZqajrfrOwt X-Received: by 2002:a05:6402:138a:: with SMTP id b10mr2792854edv.113.1599839891165; Fri, 11 Sep 2020 08:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599839891; cv=none; d=google.com; s=arc-20160816; b=trLXTAV4WQw+7i2xLwepP9MZc8BXmgwebyLAEMXr4iV4Ar5XBBYYbYvnfrtDlQGyUu sqBrH33E7K+57qOo0am/uZv99T9LCiSRLycxB8436x0AYXsn9fCOz5qRXIO0Lta6Rb8u vgGVs1Sw4c0IPHm1Mcxvtlzl4TXNftCZG41y3l3o0YUi8r+FOe9dLHLjCiEF1pWPkRhK LW1AzaeFcNKn/9bCG11zwKS6kWtCtwxKXSpeQ9P9+sabgI0oobGKj2P3vgvRotMW8gup +VoiojrDxRrLH/y8jYHliZc9CayigiVmZixQKz1t74qJ1CT2CpwDIJc97SrKN8sHjgm6 xYMQ== 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=aV5bpQ2krhOB+niC7lEQtlN1tkAGF/USFR0HH0F56g8=; b=sb80vDWxMe5+4zBm7i3OomUGvd3UaaFzhdC1c7nLq3Dq6Qpcw8K0xqYsnkMFJfT2lv +XqlFlgiqKWXJs0Cgjdwmfg/guveQ7fGL53et0Q3sUAZtWZrJVoFFwI8CbCo5NOwshDB Z5/Uf9XTjHz8f/lLX7LkO/wFCxR4/G9vQ4EzrDi68tibLs/rsFLVYejuRe6PCWqatd4b aB2yq5bamxv7X2uhx48PnF2XkYIR1TT0Q+sSf6IU9ACjNzuTGNuQRVfz1H/K0uPCX9d/ vxj7ru2uH4u0PTH1oqT2iDFBouHiL6VKJZ+9d/t1/Z6x9TWnEdpyFELf6qpfJ0PqT74o JLDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GmV5kJx6; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si1540133ejn.7.2020.09.11.08.57.48; Fri, 11 Sep 2020 08:58:11 -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=@gmail.com header.s=20161025 header.b=GmV5kJx6; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726074AbgIKP5J (ORCPT + 99 others); Fri, 11 Sep 2020 11:57:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbgIKPzp (ORCPT ); Fri, 11 Sep 2020 11:55:45 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E72C061756; Fri, 11 Sep 2020 08:55:45 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id v54so8209686qtj.7; Fri, 11 Sep 2020 08:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aV5bpQ2krhOB+niC7lEQtlN1tkAGF/USFR0HH0F56g8=; b=GmV5kJx6TnLDNUqRs4lH9VY2bK80Nm2uLz+5U1MgxZzpgZ85HnOQZjpbS7SrjbzCUa WDt3phlxcNon8OhgUWmK0czetjiyrfTeASu0u39E4aifSd56uOQvWM0+mTGkSVqVu+4a v7nLtoQGbafhhmRUb9WacVm1Q7kbaNElqsCloSYeBtCj+3Do+uLWLqJep7Gopp6Yw4nr exb8vn/RuzFrzqIAFEys/+PlRC+scyIs6kiEJKUogjknHDXN09JgEKiXL2KRbt09IA6v mgixLErw0uHL8SpcRvB4p+Ch+zNBKoSWltZ2p3+m9GAz+8etLb32TtIl3jZMF/BBxle3 Q1qg== 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=aV5bpQ2krhOB+niC7lEQtlN1tkAGF/USFR0HH0F56g8=; b=QgQqFengJM+90VhBs6+kZT43HCANgGjGDrBGC43NriH9aJiU6onnU7sb38HdMawsaS boCFSf3dwSvDzaNjyUm3EbOQnFSN68RTdqIWF8sYYHXe4wR6fhg2tCGYpMNiQDK8BEaZ NSgEOI0t8M61YsfeBiO9edsAnI4Y/3/l1skILQSOctn8pUSU2JV5uYTuvp5DqFmNUrYT WDuykEwI+07HFC+Z/h6oU3iAMXOSM7009pkxSHt8On2sNesWLcwNratxVb0T8wqMHLt5 qtdRkGc5mgyNbJnwCB5lpmAayPw29kXeij9GUiuhOXMYq9OKJhYSEzYTXLPPYDRWwpER m2Mw== X-Gm-Message-State: AOAM533/hVEc6fu4ke3qnQK47SKHu2xJPntGRu2VZ1DJym3ld84erJXh vw1iVsiskamq/5m0qw+LlYc= X-Received: by 2002:ac8:22da:: with SMTP id g26mr2421314qta.218.1599839744238; Fri, 11 Sep 2020 08:55:44 -0700 (PDT) Received: from ubuntu-n2-xlarge-x86 ([2604:1380:45d1:2600::1]) by smtp.gmail.com with ESMTPSA id r34sm3365906qtr.18.2020.09.11.08.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 08:55:43 -0700 (PDT) Date: Fri, 11 Sep 2020 08:55:42 -0700 From: Nathan Chancellor To: Douglas Anderson Cc: Greg Kroah-Hartman , Nick Desaulniers , robdclark@chromium.org, Akash Asthana , jwerner@chromium.org, Andy Gross , Bjorn Andersson , 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: <20200911155542.GA4037107@ubuntu-n2-xlarge-x86> 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, Sep 11, 2020 at 08:00:57AM -0700, 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. > > Signed-off-by: Douglas Anderson Reviewed-by: Nathan Chancellor > --- > > 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 >