From nobody Mon Sep 23 22:22:14 2024 X-Original-To: freebsd-current@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 4XCHYX2vDXz5WbdB for ; Mon, 23 Sep 2024 22:22:40 +0000 (UTC) (envelope-from matt@tnpi.net) Received: from mail.theartfarm.com (jails.theartfarm.com [IPv6:2605:ae00:329::2]) (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 (2048 bits) client-digest SHA256) (Client CN "mail.theartfarm.com", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XCHYV4KRlz4nr2 for ; Mon, 23 Sep 2024 22:22:38 +0000 (UTC) (envelope-from matt@tnpi.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tnpi.net header.s=mar2013 header.b=J7lp37JN; dmarc=pass (policy=reject) header.from=tnpi.net; spf=pass (mx1.freebsd.org: domain of matt@tnpi.net designates 2605:ae00:329::2 as permitted sender) smtp.mailfrom=matt@tnpi.net Received: (Haraka outbound); Mon, 23 Sep 2024 13:22:37 -0900 Received-SPF: Pass (mail.theartfarm.com: domain of tnpi.net designates 97.113.136.252 as permitted sender) receiver=mail.theartfarm.com; identity=mailfrom; client-ip=66.128.51.165 helo=smtpclient.apple; envelope-from= Received-SPF: None (mail.theartfarm.com: domain of smtpclient.apple does not designate 97.113.136.252 as permitted sender) receiver=mail.theartfarm.com; identity=helo; client-ip=97.113.136.252 helo=smtpclient.apple; envelope-from= X-Haraka-FCrDNS: 97-113-136-252.tukw.qwest.net Received: from smtpclient.apple (97-113-136-252.tukw.qwest.net [97.113.136.252]) by mail.theartfarm.com (Haraka/3.0.3) with ESMTPSA id B5537FDB-4233-4BC4-972F-AEEEA0BFA7B7.1 envelope-from tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (authenticated bits=0); Mon, 23 Sep 2024 13:22:35 -0900 From: Matt Simerson Content-Type: multipart/alternative; boundary="Apple-Mail=_96008634-781A-456C-929D-57CA6E57054F" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: UEFI + SOL / COM ports = boot hang Message-Id: <5FA60E35-C839-468F-A4E3-710FD4DEFAC8@tnpi.net> Date: Mon, 23 Sep 2024 15:22:14 -0700 To: freebsd-current@freebsd.org X-Mailer: Apple Mail (2.3776.700.51) X-Spam-Status: No, score=-1.0 required=5.0 autolearn=no autolearn_force=no X-Spam-DCC: : dcc 1102; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on spamassassin X-Spam-Tests: ALL_TRUSTED,BAYES_40,HTML_MESSAGE,SPF_HELO_NONE,SPF_PASS X-Haraka-Karma: score: 20, good: 1, bad: 1, connections: 2, history: 0, awards: 116,111,133,162,100,182, pass:relaying, fail:rcpt_to X-Haraka-ASN: 209 X-Haraka-ASN-Org: CENTURYLINK-US-LEGACY-QWEST X-Haraka-GeoIP: NA, US, WA, Seattle, 2686km X-Haraka-GeoIP-Received: 97.113.136.252:US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tnpi.net; s=mar2013; h=from:subject:date:message-id:to:mime-version; bh=MGZlmnq+g0Zvx1F9h/WHzMy9sM6lZzBcNPmgfVwMOI4=; b=J7lp37JNjujydV7nSUdtNXtoVsS1OXfqxVz00AqFkOz70DN4lvtNz+s2Dp+KlydwqIU02WgNQf fMxWmrGkeUFFCY5dwxrR7cfyn+3QiRTqtSxAeaPAbdKJHXjqIszIT8ASg7LZHrink2PZ0Cj9+Z+j sypbnWJWKOx70/LbfQ2VDHwQaI0Vvy7aPmf89RtwQNLcISKvqx1hxiwcl8p+9OpvedszlFrwUhRL a7WEkFCmza57gD0UHV/9QmQwLMmhZAbyXBVzbevOZPaGhMnStr8hE6i3KHqb3R1OCZRYUbllR5qQ ZL4x1KD7Eq2nRoJ2a4g6RcD6+j8eRUypB3u/MOMQ== X-Spamd-Result: default: False [-3.84 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.989]; DMARC_POLICY_ALLOW(-0.50)[tnpi.net,reject]; R_DKIM_ALLOW(-0.20)[tnpi.net:s=mar2013]; R_SPF_ALLOW(-0.20)[+mx]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MANY_INVISIBLE_PARTS(0.05)[1]; DKIM_TRACE(0.00)[tnpi.net:+]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:7819, ipnet:2605:ae00::/35, country:US]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEFALL_USER(0.00)[matt]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~] X-Rspamd-Queue-Id: 4XCHYV4KRlz4nr2 X-Spamd-Bar: --- --Apple-Mail=_96008634-781A-456C-929D-57CA6E57054F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I have a Quanta D52B-1U server. When I boot it via legacy BIOS, there is = no issue. When I boot with UEFI and COM ports & console redirection = disabled, there is no issue. However, when boot UEFI and enable the COM = ports and/or console redirection, the server hangs at boot time right = here: Version 2.20.1276. Copyright (C) 2023 American Megatrends, Inc. BIOS Date: 12/04/2023 17:24:26 Ver: 3B28.Q102=20 Consoles: EFI console Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk0p1: FreeBSD/amd64 EFI loader, Revision 1.1 Command line arguments: loader.efi Image base: 0x5e993000 EFI version: 2.70 EFI Firmware: American Megatrends (rev 5.14) Console: efi (0x20000000) Load Path: \EFI\FREEBSD\LOADER.EFI Load Device: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(1,GPT,F669D424-7170-11EF-83D1-A0369F6BA978,0x28,0x82000) BootCurrent: 0000 BootOrder: 0000[*] 0003 0006 0007 0002 0008 BootInfo Path: = HD(1,GPT,F669D424-7170-11EF-83D1-A0369F6BA978,0x28,0x82000)/\EFI\FREEBSD\L= OADER.EFI Ignoring Boot0000: Only one DP found Trying ESP: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(1,GPT,F669D424-7170-11EF-83D1-A0369F6BA978,0x28,0x82000) Setting currdev to disk0p1: Trying: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(2,GPT,4F537B49-7176-11EF-83D1-A0369F6BA978,0x82028,0x1000000) Setting currdev to disk0p2: Trying: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(3,GPT,B6D8B384-7176-11EFLoading /boot/defaults/loader.conf86860) Loading /boot/defaults/loader.confdefault: Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local | On one occasion, I left it setting there for minutes. I currently have FreeBSD 14.1 installed and I also replicated this when = booting off a FreeBSD 15.0-CURRENT ISO.=20 The chipset is Intel C621 & C624. Output from dmesg is here = . BIOS settings which enable console redirection and SOL are: Super IO Port 0, Disabled or Enabled (IO=3D3F8h, IRQ=3D4) Port 1, Enabled (IO=3D2F8h, IRQ=3D3) <-- SOL port Serial Port Console Redirection COM0 Console Redirection, Port is Disabled SOL Console Redirection, [Enabled] Console Redirection Settings, (VT100, 115200, None) Legacy Console Redirection Settings Redirection COM Port: SOL (other option: COM0) Serial Port for OOB Management/Windows EMS Console Redirection: Enabled Console Redirection Settings, Out-of-Band Mgmt Port: SOL = (other option: COM0) Console Redirection Settings, (VT100, 115200, None) There are variations on those settings which work for getting BIOS POST = messages and the FreeBSD loader messages redirected to the IPMI SOL = port. However, any combination that works also causes FreeBSD to hang = at exactly the same spot. I'm accustomed to adding a few lines to loader.conf to tell FreeBSD how = to direct console output, but nothing added there makes any difference. = I've twiddled the hint.uart.* knobs in /boot/device.hints to no avail. This is what works on my Dell R630: # console port via IPMI & DRAC boot_multicons=3D"YES" boot_serial=3D"YES" console=3D"efi,comconsole" # for legacy BIOS #console=3D"comconsole,vidconsole" comconsole_speed=3D"115200" How does one go about troubleshooting this? Matt --Apple-Mail=_96008634-781A-456C-929D-57CA6E57054F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
I have a = Quanta D52B-1U server. When I boot it via legacy BIOS, there = is no issue. When I boot with UEFI and COM ports & console = redirection disabled, there is no issue. However, when boot UEFI and = enable the COM ports and/or console redirection, the server hangs at = boot time right here:

Version 2.20.1276. Copyright (C) 2023 American = Megatrends, Inc.

BIOS Date: 12/04/2023 17:24:26 Ver: = 3B28.Q102 

Consoles: EFI console

    Reading loader env vars from = /efi/freebsd/loader.env

Setting currdev to = disk0p1:

FreeBSD/amd64 EFI = loader, Revision 1.1


   Command line arguments: = loader.efi

   Image = base: 0x5e993000

   EFI = version: 2.70

   EFI = Firmware: American Megatrends (rev 5.14)

   Console: efi (0x20000000)

   Load Path: = \EFI\FREEBSD\LOADER.EFI

   Load = Device: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(1,GPT,F669D424-7170-11EF-83D1-A0369F6BA978,0x28,0x82000)

   BootCurrent: 0000

   BootOrder: 0000[*] 0003 0006 0007 0002 = 0008

   = BootInfo Path: = HD(1,GPT,F669D424-7170-11EF-83D1-A0369F6BA978,0x28,0x82000)/\EFI\FREEBSD\L= OADER.EFI

Ignoring Boot0000: = Only one DP found

Trying ESP: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(1,GPT,F669D424-7170-11EF-83D1-A0369F6BA978,0x28,0x82000)

Setting currdev to disk0p1:

Trying: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(2,GPT,4F537B49-7176-11EF-83D1-A0369F6BA978,0x82028,0x1000000)

=

Setting currdev to disk0p2:

Trying: = PciRoot(0x9)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-01-30-54-9D-E4-D2-5C)/H= D(3,GPT,B6D8B384-7176-11EFLoading = /boot/defaults/loader.conf86860)

Loading = /boot/defaults/loader.confdefault:

Loading /boot/device.hints

Loading /boot/loader.conf

Loading /boot/loader.conf.local

|


On one = occasion, I left it setting there for = minutes.

I currently have FreeBSD 14.1 = installed and I also replicated this when booting off a FreeBSD = 15.0-CURRENT ISO. 

The chipset is Intel = C621 & C624. Output from dmesg is here.

BIOS settings which enable console = redirection and SOL are:

Super = IO
Port 0, Disabled or Enabled = (IO=3D3F8h, IRQ=3D4)
Port 1, = Enabled (IO=3D2F8h, IRQ=3D3)   <-- SOL = port
Serial Port Console = Redirection
= COM0
= Console Redirection, Port is = Disabled
= SOL
Console Redirection, = [Enabled]
Console = Redirection Settings, (VT100, 115200, None)
Legacy = Console Redirection Settings
= Redirection COM Port: SOL (other option: = COM0)
= Serial Port for OOB Management/Windows = EMS
= Console Redirection: = Enabled
= Console Redirection Settings, Out-of-Band Mgmt Port: SOL = (other option: COM0)
= Console Redirection Settings, (VT100, 115200, = None)

There are variations on those settings = which work for getting BIOS POST messages and the FreeBSD loader = messages redirected to the IPMI SOL port.  However, any combination = that works also causes FreeBSD to hang at exactly the same = spot.

I'm accustomed to adding a few lines to = loader.conf to tell FreeBSD how to direct console output, but nothing = added there makes any difference. I've twiddled the hint.uart.* knobs in = /boot/device.hints to no avail.

This is what = works on my Dell R630:

# console port via = IPMI & DRAC

boot_multicons=3D"YES"

boot_serial=3D"YES"

console=3D"efi,comconsole"

# for legacy = BIOS

#console=3D"comconsole,vidconsole"

comconsole_speed=3D"115200"


How does one go about troubleshooting = this?

Matt

= --Apple-Mail=_96008634-781A-456C-929D-57CA6E57054F--