From nobody Sun Nov 23 22:03:13 2025 X-Original-To: net@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 4dF2yV0Nylz6HVsh for ; Sun, 23 Nov 2025 22:03:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dF2yT63XCz3rms for ; Sun, 23 Nov 2025 22:03:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763935393; 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: in-reply-to:in-reply-to:references:references; bh=5oQeY7qsFGk/F5+sPNpGRekLNST4ucuIm1iWV14Gjn4=; b=vGM5zEeDD4cSLBhMsX/h7JL+DJIl+k63czf78fRIYyqfGICRnfNxdxjvtvM6Q0Ip5ghyyy V0kEa2BD98QmLAjolDWtCOQS1uYr33ZWam0NPN6lvbTLKei/AMjHF1mGyG34Oo/QhAgzK1 VPEYV2BhH1p+WE8J51RHz9MdmVdZqShKllH8Qaw27BRcVjTR2Cl2KTq0fK7P4D2qW9ZQZ9 kasn+66DrtKoLye+YIOJRHXQz1YqvZk5lvcifBuJzHxYhfREXxMUQ7JeoKCaBJFRBqq7QJ BJXY5Scq4XRwMbkmiXuIivgeXxpvE1H/b3Ws/nPGzbTJXb5LSkZQ2UEfxkVtvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763935393; 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: in-reply-to:in-reply-to:references:references; bh=5oQeY7qsFGk/F5+sPNpGRekLNST4ucuIm1iWV14Gjn4=; b=rzJWI5/0r6ZoEWFz0EuTb3cVeZtQwr49lEcp6c7Mg4EIYkzAngILZvvhb2L1ZuhIRkedqB k0RN1PJgoP6/tV6yRmyvM+ni1Zxqsj5ct3Ux8OYVYoRoF9qq1GXQ8zIsRLWReZ2X/8Fl7S Gw2FEC369/9fqEcFLBEit5+fye15QTZt2ao3mG1aXEIR+TuAnV+2A6cLgsH+ukxJGS4HID V/Vzj0GUffPgr91TvdRCsYpVPVTcA2QgP7qq/bfNejsZPQ68q/vbhZ3U0i8hYgJ7JbLUEO VuX7SSz+fs5wE88I1n981YxXwAWRh9Upb/meIJ+rX0dZeVSqlpEgs471qDOugg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763935393; a=rsa-sha256; cv=none; b=nWMFkh1bi7Mkli2XIJncZdkxn3MbmaiYwlyyfUmxpXk51sESPd4tS3pQkOP5iGxY3Rf0zi LSJHfYvk3Vav5Ng/8fbHMjt96URoF8fdb6jD2eoI3OvbQVFFm662Xm0CLYoK+DLv3cjqkg AqXebu6DRkJBkgFepTsCHIBc1xtJufCqwNTz77V3do7x9HM1Y/aipBFC3IybRd7Q5NatUt DqoWrk9ND56pC68e436GW41ZLaE+UVcAPwbHALXWbtD57vJHgSjw7DSLddn5bPaThViCAE 23Fsi/1fXXOOzI/Gzu36gPBR6zZ4tQb3GchMywaG79hD9eQp8ypIk3yt1uG1UA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dF2yT57bnznN3 for ; Sun, 23 Nov 2025 22:03:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5ANM3D6E073943 for ; Sun, 23 Nov 2025 22:03:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5ANM3DAe073942 for net@FreeBSD.org; Sun, 23 Nov 2025 22:03:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 290793] iovctl on mlx5en won't work Date: Sun, 23 Nov 2025 22:03:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290793 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #12 from Bjoern A. Zeeb --- (In reply to David BOYER from comment #10) Thanks. Good to know about the tool and docs. It came up with what I had configured according to the tool and /dev/iov was there... Maybe a complete power cycle (power off/on) had helped. Let me start again; it's a boot verbose (I have no idea what is normally lo= gged and what is not): # uname -mrv 16.0-CURRENT FreeBSD 16.0-CURRENT #2 mlx5-n282064-a8740ba860bf: Fri Nov 21 21:21:29 UTC 2025=20=20=20=20 bz@dev.example.net:/tank/users/bz/obj/tank/users/bz/git/FreeBSD/freebsd-src= /amd64.amd64/sys/GENERIC amd64 # iovctl -D -f /etc/iovctl/mce0.conf mlx5_core: INFO: (mlx5_core0): E-Switch: disable SRIOV: active vports(4) # pciconf -lv | grep -A4 vendor=3D0x15b3 mlx5_core0@pci0:2:0:0: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1013 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4]' class =3D network subclass =3D ethernet mlx5_core1@pci0:2:0:1: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1013 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4]' class =3D network subclass =3D ethernet # cat /etc/iovctl/mce0.conf=20 PF { device : mlx5_core0; num_vfs : 3; } DEFAULT { passthrough : true; } # VF for use by host VF-0 { mac-addr : "02:01:02:03:04:00"; passthrough : false; } VF-1 { mac-addr : "02:01:02:03:04:01"; } # iovctl -C -f /etc/iovctl/mce0.conf mlx5_core: INFO: (mlx5_core0): E-Switch: E-Switch enable SRIOV: nvfs(3) mlx5_core: WARN: FDB: Failed to add flow rule: dmac_v(0xfffff8000182ba0cM) dmac_c(0xfffff8000182b80cM) -> vport(0), err(-45) mlx5_core: INFO: (mlx5_core0): E-Switch: SRIOV enabled: active vports(4) pcib3: allocated prefetch range (0x383fd2000000-0x383fd7ffffff) for rid 1a4= of mlx5_core0 mlx5_core0: Lazy allocation of 0x6000000 bytes rid 0x1a4 type 3 at 0x383fd2000000 found-> vendor=3D0x15b3, dev=3D0x1014, revid=3D0x00 domain=3D0, bus=3D2, slot=3D0, func=3D2 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) MSI-X supports 6 messages in map 0x10 mlx5_core0: WARN: mlx5_eswitch_set_vport_mac:1199:(pid 6379): Failed to mlx5_modify_nic_vport_node_guid vport(1) err=3D(-45) mlx5_core0: ERR: mlx5_iov_add_vf:1969:(pid 6379): setting MAC for VF 1 fail= ed, error 45 found-> vendor=3D0x15b3, dev=3D0x1014, revid=3D0x00 domain=3D0, bus=3D2, slot=3D0, func=3D3 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) MSI-X supports 6 messages in map 0x10 mlx5_core0: WARN: mlx5_eswitch_set_vport_mac:1199:(pid 6379): Failed to mlx5_modify_nic_vport_node_guid vport(2) err=3D(-45) mlx5_core0: ERR: mlx5_iov_add_vf:1969:(pid 6379): setting MAC for VF 2 fail= ed, error 45 found-> vendor=3D0x15b3, dev=3D0x1014, revid=3D0x00 domain=3D0, bus=3D2, slot=3D0, func=3D4 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) MSI-X supports 6 messages in map 0x10 mlx5_core2: at device 0.2 on pci3 pcib3: attempting to grow memory window for (0-0xffffffff,0x2000000) front candidate range: 0xf8000000-0xf9ffffff back candidate range: 0xfc000000-0xfdffffff mlx5_core2: 0x2000000 bytes of rid 0x10 res 3 failed (0, 0xffffffffffffffff= ). pcib3: attempting to grow memory window for (0-0xffffffff,0x2000000) front candidate range: 0xf8000000-0xf9ffffff back candidate range: 0xfc000000-0xfdffffff mlx5_core2: 0x2000000 bytes of rid 0x10 res 3 failed (0, 0xffffffffffffffff= ). mlx5_core2: ERR: mlx5_cmd_init:1557:(pid 6379): Driver cmdif rev(5) differs from firmware's(62446) mlx5_core2: ERR: mlx5_load_one:1110:(pid 6379): Failed initializing command interface, aborting mlx5_core2: ERR: init_one:1709:(pid 6379): mlx5_load_one failed -22 device_attach: mlx5_core2 attach returned 22 pci3: at device 0.3 (no driver attached) pci3: at device 0.4 (no driver attached) # pciconf -lv | grep -A4 vendor=3D0x15b3 mlx5_core0@pci0:2:0:0: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1013 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4]' class =3D network subclass =3D ethernet mlx5_core1@pci0:2:0:1: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1013 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4]' class =3D network subclass =3D ethernet -- none62@pci0:2:0:2: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1014 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4 Virtual Function]' class =3D network subclass =3D ethernet ppt0@pci0:2:0:3: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1014 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4 Virtual Function]' class =3D network subclass =3D ethernet ppt1@pci0:2:0:4: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 5b3 device=3D0x1014 subvendor=3D0x15b3 subdevice=3D0x0008 vendor =3D 'Mellanox Technologies' device =3D 'MT27700 Family [ConnectX-4 Virtual Function]' class =3D network subclass =3D ethernet I assume the CF-0 "none6@pci0:2:0:2" node should have become mlx5_core2 (mc= e2)? --=20 You are receiving this mail because: You are the assignee for the bug.=