From nobody Mon Dec 16 14:31:54 2024 X-Original-To: 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 4YBj8219cpz5hVXS for ; Mon, 16 Dec 2024 14:32:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBj814XPQz4Z4X; Mon, 16 Dec 2024 14:32:17 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=GVG4Ue0ec90rzvuLq2P/IqfcNM062+Yq2sZ61F2YQ/E=; b=pjpWk6i3Kexoi/iVjj9DIuOjCanehBfwo/SsoIf11zBmgnKrv1WMVkAyS3lOrU0zlThYhbiRXTDnHK83ia7V9GcK9GM/0bzAujUSIbEJdKiQ7+HxjWDCyNCyfauTyITrNKyOlafmaasROQtWTnRtKqfB8SoJ8pXYeL5AsPz3M5NxA9BHJiSTEfzr2yBBAq14ACJNF9ok5wDv4kLcDG1BjAMcaw6jgcdDblgRIvItPZtONoDb2c09qpqsxSG3m+hxQbW6u9i0JcCzjFer9Jkhfm8/wSRIM5TNXbkzPsdUvGfvXNkUhrjhCnzyKmER9Brl3mwz2kxlQz3Af/NkY/onzA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=GVG4Ue0ec90rzvuLq2P/IqfcNM062+Yq2sZ61F2YQ/E=; b=02tz9HXgt46DzUVETuJI3YuPiBtV/bIgMgmsOVhSmkIhC4BrvPyMasttpFyBtpO/DV434uKqd7ayQ/lH5S6rdspJcc5uD3ccGd54c7YYRWDFnUkjOigbFjnIlZqjyC9K5My8qZQWhHNbUCY9fGAZdMNB2tzlTYyGKucvBnlynQhYN/7bln0V/uZ480E9bxbw9avbn7JjIxhMtGIOMbayOx0RqBhUgHtEMxziKCbjDlxAOMG10ZRn02yyKaf6RYxoVh/pRwwLqEyNXZoB8bBlTqc8ld5hf4PhnUDv9xiPJ7ZvmCnWdkcHVWYP3cSjHNIGQb8Tez+fpFKYgsKwYKgYHQ==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1tNC8s-0006sc-Bf; Mon, 16 Dec 2024 16:32:14 +0200 Content-Type: multipart/alternative; boundary="Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507" 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 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: not working /dev/console From: Daniel Braniss X-Priority: 3 (Normal) In-Reply-To: <770149226.7914.1734358550887@localhost> Date: Mon, 16 Dec 2024 16:31:54 +0200 Cc: Kurt Jaeger , Freebsd-stable List , Warner Losh , John Baldwin Message-Id: <0F8F02E9-4FBD-491E-A4AD-81A86E0A8967@cs.huji.ac.il> References: <3F04B2DC-1AA9-4663-BCDE-3EFD0B01527E@cs.huji.ac.il> <044EAFE1-DCB8-439C-A422-4B5F8CD4C37C@cs.huji.ac.il> <501640865.7444.1734350498438@localhost> <770149226.7914.1734358550887@localhost> To: Ronald Klop X-Mailer: Apple Mail (2.3826.300.87.4.3) 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:378, ipnet:132.64.0.0/15, country:IL] X-Rspamd-Queue-Id: 4YBj814XPQz4Z4X X-Spamd-Bar: ---- --Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 16 Dec 2024, at 16:15, Ronald Klop wrote: >=20 >=20 > Van: Kurt Jaeger > Datum: maandag, 16 december 2024 14:34 > Aan: Warner Losh > CC: John Baldwin , Daniel Braniss = , Freebsd-stable List > Onderwerp: Re: not working /dev/console >=20 > Hi! >=20 > > > > can you tell more on how to fix this ? >=20 > > > > APU version apu1 lost their ability to have a serial console > > > > in 14.2. >=20 > > > hw.acpi.override_isa_irq_polarity=3D1 > > > > > > in /boot/loader.conf > > > > > > changed the value after reboot, but the serial console is still = lost. > > > > Are the serial ports there at all? APU needs hints now for that. >=20 > They are not. As the hardware did not change (I did not unsolder > some chips from the board 8-), I guess that's what I'm asking: >=20 > How can I tell the kernel that the serials are still there ? >=20 > The system boots via serial, and then stops displaying any > kernel output. >=20 > --=20 > pi@FreeBSD.org +49 171 3101372 Now what ? > =20 >=20 >=20 > Does this note from /usr/src/UPDATING help? >=20 > 20240715: > We now lean more heavily on ACPI enumeration for some = traditional > devices. uart has moved from isa to acpi so the hints act as = wiring > instead of device enumeration. Hints for parallel port, = floppy, etc > have been removed. Before upgrading, grep your dmesg for = lines like: > uart1: non-PNP ISA device will be removed from GENERIC = in FreeBSD 15. > to see if you need to start including hints for the device on = isa > in your loader.conf or device.hints file. APU1 (but not APU2) = boards > are known to be affected, but there may be others. The problem is also on APU2, and fixing the hint.uart.0=3D=E2=80=9Cisa=E2=80= =9D got my serial console back! So thanks to all of you! Danny >=20 > I don't know if this note was MFC'ed to stable. > = https://github.com/freebsd/freebsd-src/commit/63e282288ed84387d2ec75ba8df7= d7d004536781 >=20 > You might try to put something like this in /boot/device.hints (or = /boot/loader.conf?): > hint.uart.0.at=3D"isa" > hint.uart.0.port=3D"0x3F8" > hint.uart.0.flags=3D"0x10" > hint.uart.0.irq=3D"4" > hint.uart.1.at=3D"isa" > hint.uart.1.port=3D"0x2F8" > hint.uart.1.irq=3D"3" > =20 >=20 > Regards, > Ronald. > =20 --Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 16 Dec 2024, at 16:15, Ronald Klop = <ronald-lists@klop.ws> wrote:


Van:= Kurt Jaeger <pi@freebsd.org>
Datum: maandag, 16 december 2024 14:34
Aan: Warner Losh <imp@bsdimp.com>
CC: John Baldwin <jhb@freebsd.org>, Daniel = Braniss <danny@cs.huji.ac.il>, Freebsd-stable List = <stable@freebsd.org>
Onderwerp: Re: not working /dev/console

Hi!

> > > can you tell more on how to fix this ?

> > > APU version apu1 lost their ability to have a serial = console
> > > in 14.2.

> > hw.acpi.override_isa_irq_polarity=3D1
> >
> > in /boot/loader.conf
> >
> > changed the value after reboot, but the serial console is = still lost.
>
> Are the serial ports there at all? APU needs hints now for = that.

They are not. As the hardware did not change (I did not unsolder
some chips from the board 8-), I guess that's what I'm asking:

How can I tell the kernel that the serials are still there ?

The system boots via serial, and then stops displaying any
kernel output.

-- 
pi@FreeBSD.org         +49 171 = 3101372 =             &n= bsp;    Now what ?
 



Does this note from /usr/src/UPDATING help?

20240715:
        We now lean more heavily on = ACPI enumeration for some traditional
        devices. uart has moved from = isa to acpi so the hints act as wiring
        instead of device = enumeration. Hints for parallel port, floppy, etc
        have been removed.  = Before upgrading, grep your dmesg for lines like:
=             &n= bsp;   uart1: non-PNP ISA device will be removed from GENERIC = in FreeBSD 15.
        to see if you need to start = including hints for the device on isa
        in your loader.conf or = device.hints file. APU1 (but not APU2) boards
        are known to be affected, but = there may be others.

The = problem is also on APU2, and fixing the = hint.uart.0=3D=E2=80=9Cisa=E2=80=9D
got my serial console = back!

So thanks to all of = you!

Danny


I don't know if this note was MFC'ed to stable.
https://github.com/freebsd/freebsd-src/commit/63e282= 288ed84387d2ec75ba8df7d7d004536781

You might try to put something like this in /boot/device.hints (or = /boot/loader.conf?):
hint.uart.0.at=3D"isa"
hint.uart.0.port=3D"0x3F8"
hint.uart.0.flags=3D"0x10"
hint.uart.0.irq=3D"4"
hint.uart.1.at=3D"isa"
hint.uart.1.port=3D"0x2F8"
hint.uart.1.irq=3D"3"
 

Regards,
Ronald.
 

= --Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507--