From nobody Thu Aug 17 18:19:18 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RRYDm4FSGz4mVtX; Thu, 17 Aug 2023 18:19:20 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RRYDm23VVz3Q5q; Thu, 17 Aug 2023 18:19:20 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692296360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LTFT+xlo43QnK1QvgitD2O1avtq76LWAq667GrUtOW8=; b=Rx9i4vRb7WUeSKaULAvGlCTc91BN03NJV/ocX62s9/lPOuzRrBG5AY525lVzNUxEshfsHt rTz4WnJtff+PtBlmEciD0bqPNumqhh4+bKtxf2HszrAdGOV1ICG37vm5lG+cKDGQTo8pHa FPxgcGMfyrxWigN4Pro2E6fFCQZm2UW11L1VhsB2aXvdHuCIN04hv88erEbt7ByfpmouL7 hCYm5M9HA2uKVpb+aDhTaSQYrYj6ukh/AkW7ThTMnAoxLHTDlGAKTbXnioaYOGuyc5ISUI svGVvRaf/gLNMPOaPJpccCDLOUQ2g+ST03C/4ha2P3of21L9j1wKtysoTHMF+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692296360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LTFT+xlo43QnK1QvgitD2O1avtq76LWAq667GrUtOW8=; b=My54rw8HahrOaQiygfwGul4iI5lpOn/bW9A/zG0zPpFx5kYF2VaE/gEXDN9wnZgEI9xLT4 aE2Wm8i1HP65L4IG5eRFp8a/fSDZYCFHpnUvc9LlckdEUAFn8/M8C7J+8iY0EJ8oDuOsVI Etq02VKiW+xVzRiDZttuYamk1dnnsrA+DwuJnf0AYRlEJNKDvnW7ZjC9pRwSii+neEN9JN 9W1/yM7ZtkBdTPHes20c1BWb/PAMEEp9RYs7HMm/cSc5ojQvDdAJJPY7tS9vplJVq1vi+r Wsgp7h27yg/EoDDvPsfYe/jVLlim9LQiaq4AiZH4XDvdjCgpPjJYkacmVtNaNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692296360; a=rsa-sha256; cv=none; b=u9G2QbyN+EVR78I+vYQfE7fmIjyC7z/ET4pXNm1c1R33PJ+9b8Pdh6a1ITnFteSlg5FVbV KDnqbnnxHVFB82zcogspTo1l+4EpD3dAdK7yR8+bRa4d+dW9+zWuPxinF1B6DLfvpsLyue G7vV9sitsMGuvlwXfjQMLTcVmbTkYxxBm7dFXswg6/X5T07VEpTdmNxleAvYrTwHeMBjjC yeJc2WK9wQCjhdlK6ASy/E3QFJf/gnALGOPh/yWCl019fOJqvdAjccv1lsxLI3Ci4bp8Kr rQCmqBTM7HbhmF5co48/u3avLmFUgVBlO5UcAW4LvabHuBwsOSmM+KeuPRFEnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:2601:648:8683:a9e0:7075:181:17d9:4b81] (unknown [IPv6:2601:648:8683:a9e0:7075:181:17d9:4b81]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RRYDl59hNzrCY; Thu, 17 Aug 2023 18:19:19 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <88a3318f-37bd-f60e-fe6a-5ee58584fcbf@FreeBSD.org> Date: Thu, 17 Aug 2023 11:19:18 -0700 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: git: 4722ceb7d53e - main - Use 115200 bps by default for serial communication Content-Language: en-US To: Ed Maste , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202308171735.37HHZdbH046154@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202308171735.37HHZdbH046154@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/17/23 10:35 AM, Ed Maste wrote: > The branch main has been updated by emaste: > > URL: https://cgit.FreeBSD.org/src/commit/?id=4722ceb7d53e76507c76e053caab6b6f7b24ecef > > commit 4722ceb7d53e76507c76e053caab6b6f7b24ecef > Author: Ed Maste > AuthorDate: 2023-08-17 17:14:52 +0000 > Commit: Ed Maste > CommitDate: 2023-08-17 17:31:38 +0000 > > Use 115200 bps by default for serial communication > > 9600 was a standard baud rate decades ago, but 115200 is now more common > so choose defaults that are useful to the largest number of users. > > Note that boot0sio does not support rates above 9600 so it remains > unchanged. > > Reviewed by: bz, imp, manu > Relnotes: Yes > Sponsored by: The FreeBSD Foundation > Differential Revision: https://reviews.freebsd.org/D36295 > --- > UPDATING | 12 ++++++++++++ > libexec/rc/rc.d/serial | 6 +++--- > sbin/init/ttys | 4 ++-- > sbin/reboot/boot_i386.8 | 2 +- > share/examples/etc/make.conf | 5 ++--- > share/man/man4/dcons.4 | 2 +- > share/man/man5/remote.5 | 2 +- > stand/defaults/loader.conf | 2 +- > stand/defaults/loader.conf.5 | 2 +- > stand/i386/boot2/Makefile | 2 +- > stand/i386/btx/btx/Makefile | 2 +- > stand/i386/gptboot/Makefile | 2 +- > stand/i386/gptzfsboot/Makefile | 2 +- > stand/i386/isoboot/Makefile | 2 +- > stand/i386/libi386/Makefile | 2 +- > stand/i386/libi386/comconsole.c | 2 +- > stand/i386/zfsboot/Makefile | 2 +- > stand/man/loader_simp.8 | 2 +- > sys/dev/usb/serial/usb_serial.c | 2 +- > tools/tools/nanobsd/rescue/Files/etc/ttys | 8 ++++---- > 20 files changed, 38 insertions(+), 27 deletions(-) > > diff --git a/UPDATING b/UPDATING > index c05670e14f7c..705ca6431a32 100644 > --- a/UPDATING > +++ b/UPDATING > @@ -27,6 +27,18 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW: > world, or to merely disable the most expensive debugging functionality > at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) > > +20230817: > + Serial communication (in boot loaders, kernel, and userland) has > + been changed to default to 115200 bps, in line with common industry > + practice and typcial firmware serial console redirection > + configuration. > + > + Note that the early x86 BIOS bootloader (i.e., boot0sio) does not > + support rates above 9600 bps and is not chagned. boot0sio users may s/chagned/changed/ > + set BOOT_COMCONSOLE_SPEED=9600 to use 9600 for all of the boot > + components, or use the standard boot0 and have the boot2 stage start > + with the serial port at 115200. Actually, many of these tools permit leaving the speed unchanged to use any settings set by the BIOS. For example, there's a comment about this in boot0's Makefile: # Comm settings for boot0sio. # # boot0sio uses BIOS INT $0x14 for serial ports, we can only support these # baudrates due to INT14's limited interface. In addition, if # BOOT_BOOT0_COMCONSOLE_SPEED=0, then the baud rate and frame format will remain # unchanged. Some BIOSes initialize the serial ports to 115200, and this may # allow boot0sio access at that rate if so. Arguably we should default to that as most people who are going to bother using this are also setting up console redirection in their BIOS. Granted, all of this is for non-UEFI booting anyway so is a bit long in the tooth regardless. Do we bother setting the speed at all for UEFI or do we just trust the firmware to do it I hope? -- John Baldwin