Re: Boot hangs up with Alderlake's intel GbE NIC

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Thu, 09 Feb 2023 17:47:31 UTC
From: Yasuhiro Kimura <yasu@FreeBSD.org>
Subject: Re: Boot hangs up with Alderlake's intel GbE NIC
Date: Tue, 24 May 2022 02:02:20 +0900 (JST)

>> 2 months ago I updated my home server to Intel Alderlake Core i3 12100
>> and GIGABYTE H610I DDR4 (rev. 1.0) motherboard.
>> 
>> The latter has onboard Intel GbE NIC. But unfortunately 13.0-RELEASE
>> doesn't detect it. So I inserted Intel PCI-E GbE adaptor to the PCI-E
>> slot of the motherbord and used it as network interface of the server.
>> 
>> And now 13.1-RELEASE is released. I tried updating with
>> `freebsd-update update -r 13.1-RELEASE`, `freebsd install` and
>> `shutdown -r now`. But after that system hangs up in the middle of
>> boot.
>> 
>> At first boot stops after onboard Intel GbE NIC is detected.
>> 
>> https://people.freebsd.org/~yasu/Alderlake-GbE-boot-hangup.01.jpg
>> 
>> It keeps about a minute and then boot process resumes. But soon it
>> stops again.
>> 
>> https://people.freebsd.org/~yasu/Alderlake-GbE-boot-hangup.02.jpg
>> 
>> I waited about 20 minites in this state but boot never go ahead.
>> 
>> Removing PCE-E GbE adopter doesn't change the situation.
>> 
>> I also tried boot image of 14.0-CURRENT 20220519 snapshot and boot
>> hangs up just same as 13.1-RELEASE.
>> 
>> ---
>> Yasuhiro Kimura
>> 
> 
> I submitted the problem to Bugzilla.
> 
> Bug 264179 Boot hangs up with Alderlake's intel GbE NIC
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264179

Recently some commits that change files under sys/dev/e1000 are made
to main branch. So I built install image from c8f47b28827c of main and
tried booting my home server with it. Then system boots without hang
up but onboard Intel GbE NIC failed to be detected with following
message.

----------------------------------------------------------------------
em1: <Intel(R) I219-V ADL(17)> mem 0x42300000-0x4231ffff at device 31.6 on pci0
em1: Setup of Shared code failed. error -1
em1: IFDI_ATTACH_PRE failed 6
device_attach: em1 attach returned 6
----------------------------------------------------------------------

---
Yasuhiro Kimura