From nobody Mon Dec 16 16:16:02 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 4YBlSC6jBkz5hcvr for ; Mon, 16 Dec 2024 16:16:27 +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 4YBlSC2qGYz4Mdn; Mon, 16 Dec 2024 16:16:27 +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=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=m1e6imaMKpEp4zvP6rX4mwTEobgxnBnQiK4PssSGNu0=; b=LBadfjJddPn31a6FVG9wB9Uul5J2KHdBVPNvSTcIpg2v2Rzew4NDeE5x7SNGktk9s9xOq9x5ZWMDFgFsPOOtooy+OzUbWpopRfDbFs8cFFq688ZbLRaD+0zYEt57y591BdDuLtHbcpFKFnd5oKbJyUNsj4NqmRI6a4RbhHJumi2BRytmpZoTpulXEaZiCTliZcjkauxTEb5GCXQKK2yy2D9pXm3rtBI2yO1SBhCYGUlCa7l8nI/nTR/s3o1qY3E/IlV0H8xTZoD0NgI/wFYNK6RlNuPcHP4g5dPSeix3Q8MRI++wCAR4fA5yZXQ2903VN1/Gtly3t29Z8KFS/dbdtQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=m1e6imaMKpEp4zvP6rX4mwTEobgxnBnQiK4PssSGNu0=; b=o7+v53q64Bmi9tWdioMNEFoAVUxqQrOAA/yV508z2JgiS4pudJG1imHT9eGM4SVwkTAn4k843ddwB0TyZL1TfWnsaeVc97hy3Zb8rJ+KnKo9VMSKFQJCbp2zMGWuv1aoII1wfPHv7vz/TiU2uapr0e7M5X4iMUXSrIfG0FBwQT1sydHTYZb02oNUp9cOYBPXb0ghjlkxN07sRTWL7JoV9b01xAlPygQcg46QDNDgZeSK4veQdxMOOuv1l1wdhHOivATkPUID9HXxviQwq94ljQHpY/kXS/BgzFR4tI64vD715id8IOg4430n8H60dDT0Q88YYJwl7VmIislX7yGFRw==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1tNDle-0008AL-R4; Mon, 16 Dec 2024 18:16:22 +0200 From: Daniel Braniss Message-Id: <8837CC40-3CEC-4674-9CF5-CE2E625FA277@cs.huji.ac.il> Content-Type: multipart/alternative; boundary="Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD" 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 Date: Mon, 16 Dec 2024 18:16:02 +0200 In-Reply-To: Cc: Ronald Klop , Kurt Jaeger , Freebsd-stable List , John Baldwin To: Warner Losh 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> <0F8F02E9-4FBD-491E-A4AD-81A86E0A8967@cs.huji.ac.il> 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: 4YBlSC2qGYz4Mdn X-Spamd-Bar: ---- --Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 16 Dec 2024, at 17:22, Warner Losh wrote: >=20 >=20 >=20 > On Mon, Dec 16, 2024, 7:32=E2=80=AFAM Daniel Braniss = > wrote: >>=20 >>=20 >>> 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. >>=20 >> The problem is also on APU2, and fixing the hint.uart.0=3D=E2=80=9Cisa=E2= =80=9D >> got my serial console back! >=20 >=20 > FWIW, I've had several reports that APU2 with up of date firmware = diesnot have this issue. APU was the only system to come up more than = once, and the only one made after maybe 2010 or so. >=20 IMHO, it might me an issue with the bios/efi firmware, I have PCengins = APU2 with a resent firmware from=20 Dasharo.com? Danny > Warner >=20 >> So thanks to all of you! >>=20 >> Danny >>=20 >>>=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 >>=20 --Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 16 Dec 2024, at 17:22, Warner Losh = <imp@bsdimp.com> wrote:



On Mon, Dec = 16, 2024, 7:32=E2=80=AFAM Daniel Braniss <danny@cs.huji.ac.il> = wrote:


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!

FWIW, I've had several reports that APU2 with up of date = firmware diesnot have this issue. APU was the only system to come up = more than once, and the only one made after maybe 2010 or so.


IMHO, it = might me an issue with the bios/efi firmware, I have PCengins APU2 with = a resent firmware = from 
Dasharo.com?

Danny


Warner

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/63e282288= ed84387d2ec75ba8df7d7d004536781

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

Regards,
Ronald.
=  


= --Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD--