Article View: muc.lists.freebsd.bugs
Article #630[Bug 301020] ix(4): VF attach fails (reset_hw -43) while the PF has never been up, so iovctl_files at boot can't create working ...
From: bugzilla-noreply
Date: Sun, 22 Nov 2026 21:37
Date: Sun, 22 Nov 2026 21:37
71 lines
4999 bytes
4999 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301020
Bug ID: 301020
Summary: ix(4): VF attach fails (reset_hw -43) while the PF has
never been up, so iovctl_files at boot can't create
working VFs
Product: Base System
Version: 15.2-STABLE
Hardware: Any
OS: Any
Status: New
Keywords: IntelNetworking, iflib
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: list1@gjunka.com
CC: kbowling@freebsd.org
An ixv(4) VF fails to attach when its ix(4) PF has not been brought up
yet:
ixv0: <Intel(R) X550 Virtual Function> at device 0.129 on pci12
ixv0: ...reset_hw() failed with error -43
ixv0: IFDI_ATTACH_PRE failed 5
device_attach: ixv0 attach returned 5
-43 is IXGBE_ERR_TIMEOUT: the VF's reset request through the mailbox gets
no answer from the PF.
Seen on: Intel X550-T2 (8086:1563, VF 8086:1565), 15.1-RELEASE GENERIC.
Steps: ix1 had never been up since boot (no cable, no configuration);
iovctl -C -f with 1 VF on ix1 -> the error above. Then iovctl -D -d ix1,
ifconfig ix1 up (still no cable, no address), iovctl -C again -> ixv0
attached with its MSI-X vectors and the configured MAC.
Why (from reading the source; main at 6edecf52 and releng/15.2):
- The VF mailbox interrupt only sets IXGBE_REQUEST_TASK_MBX
(ixgbe_msix_link()); the request is serviced by ixgbe_handle_mbx() in
ixgbe_if_update_admin_status(), which runs from iflib's admin task.
- _task_fn_admin() returns early unless iflib_admin_enabled(): the
datapath state must be other than IFLIB_DP_UNKNOWN (the PF has been
initialized or stopped at least once), or the driver must set
IFLIB_ADMIN_ALWAYS_RUN, which ix doesn't.
- On 15.1 the check was stricter (the admin task needed the interface
running), which matches what we saw. On 15.2 and main a PF that was up
once and then taken down should serve the mailbox, but one that was
never brought up since attach still doesn't. Not tested on 15.2.
The case that matters: at boot, rc.d/iovctl runs before rc.d/netif
(netif REQUIREs iovctl, presumably so that netif can configure the VF
interfaces),
so the PFs listed in iovctl_files have never been up when their VFs
attach. VFs created that way should fail as above. Our workaround is a
local rc.d script that runs iovctl -C after NETWORKING and before jail;
then netif can't configure the VF interfaces, so they are configured
inside their vnet jails instead.
Possible directions, for whoever knows the intended design: let iflib
run the admin task for a driver with active VFs even before the first
init, set IFLIB_ADMIN_ALWAYS_RUN in ix when SR-IOV is enabled, or have
ixgbe_if_iov_init() bring the PF's admin path up.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-301020-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301020] ix(4): VF attach fails (reset_hw -43) while the PF has never been up, so iovctl_files at boot can't create working VFs Date: Sun, 22 Nov 2026 21:37:59 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301020-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="1500"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795383480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tc+ui7TZ4wC311PHIa2m8py+o6Jr7R/ONGj+pXK6Xys=; b=X/P/hx/3zkIlMe7mx3Mwms1o6OECVwo/AVHjJV8t0iecE0Omah4yFZeHdDXA5KhuIb9/jC rXb5Y5jXj+/ykxaPKcjpJBNpweqs0N7/zA3v36Y5nR0U5+j9qBDfwEAEuHwM2nq7a62K3D OfGZpfJXINCKYEAkZ7W57exx1ejLAwFi2H7aN8CCSNOv1eUQfgzL2l7AQ81X7chzJ7aAG0 WyCsiao4vQRFVJdxHkBeCIWEl4p55C3wIX5RrRny3Ae+QFo+Cw9Ryida3fp/OoOc6VgAtp qL+xr8CsmP15UKu9zgtK5JfzTl4a+JhnDwVtDp7iSIzUmXO+X4UEC8jg3XLZ7A== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes