From nobody Thu Aug 22 10:14:34 2024 X-Original-To: freebsd-stable@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 4WqJwL5Y1xz5SbZ5 for ; Thu, 22 Aug 2024 10:14:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WqJwL1nkkz4Kqp for ; Thu, 22 Aug 2024 10:14:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 47MAEYLQ040919; Thu, 22 Aug 2024 13:14:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 47MAEYLQ040919 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 47MAEYVv040918; Thu, 22 Aug 2024 13:14:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 22 Aug 2024 13:14:34 +0300 From: Konstantin Belousov To: KOT MATPOCKuH Cc: freebsd-stable List Subject: Re: uart device lost after upgrading 14.1 d56a912f2 to b99852587 Message-ID: References: List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on tom.home X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4WqJwL1nkkz4Kqp On Thu, Aug 22, 2024 at 12:53:22PM +0300, KOT MATPOCKuH wrote: > Hello all! > > After upgrading FreeBSD 14.1 from d56a912f2 to b99852587 system lost uart > device on my SunFire X2270 system. > Entries from dmesg.boot file BEFORE update: > uart0: at port 0x3f8 irq 4 > flags 0x1 > 0 on isa0 > uart0: console (9600,n,8,1) > > What happened? How can I return my serial console to working state? > > On the updated system I do not have these entries, also I have NO ttyu0 > devices that were used as console. > I'm using stable/14 git's branch. > There were no changes in the kernel configuration file. > I do not have this problem on other systems, including different Sun's > servers, but this servers using different chipset. For example log entries > from SunFire X4200: > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > ns8250: UART FCR is broken > uart0: console (9600,n,8,1) Compare /boot/device.hints on 14.0 vs. 14.1. I remember the isa hints for the uarts were removed. If not enumerated by acpi, as in case of X4200, the hints needs to be provided.