From nobody Mon Apr 25 18:13:11 2022 X-Original-To: bugs@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 C7A2E199ED1B for ; Mon, 25 Apr 2022 18:13:11 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KnCml3Zltz4RZp for ; Mon, 25 Apr 2022 18:13:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 5CC0F1FC14 for ; Mon, 25 Apr 2022 18:13:11 +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 23PIDB0G076825 for ; Mon, 25 Apr 2022 18:13:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23PIDBPr076824 for bugs@FreeBSD.org; Mon, 25 Apr 2022 18:13:11 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: bugs@FreeBSD.org Subject: [Bug 263569] sr-iov: ixv0 connection lost after loading vm with a passthrough device Date: Mon, 25 Apr 2022 18:13:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: benoitc@enki-multimedia.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650910391; 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=NyAboGAC/P7TFazEf1FAMmMNsE+etYatVQrHgwPvSAQ=; b=vh+QfLih4od721qJqY9j+UJYulNvhHAhyyiHwX4v/z3lgRne+a3C2oLy/4GIpc6R0DSQvC QQyMB6v+bF94uQwJ/H6JScxUaBPV/hO05EredcF3ZaZORGsT7KeR0HI7+7waM5xFiKPOeX GizWFS/YwoRzL4L4otbriF/0aIBpn5T+HHucaJxBZ2jVTBskza3PfxRC+Qs1ToPgDj7Ivo 8zPmiSePtP3QfiFCF8W71fO/RkP2VS7doXeLfkbSUlmXk7KAplGXJSib1O/wsJ8uTrvpl7 9EErHV3V18GirbScTtwV55bVD9wA/l7b/kQHKnP6SNqONboQWlcGiORPEwwAOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650910391; a=rsa-sha256; cv=none; b=oCauWCibo4DmwYu6cwKUDn6PpXVKhpWS+IWz3HhlZJF/0kQB4qoIOOdTDHKk+263S/T5gY 0XE8upRpFrJxOh85EUlNZxAKc2UZlNjfQZF2v1Lyb4i4QimiIIRcBDCxVPngfXUkEDQD9K GGeJK9O+J7v/7qThNmfc1DU9fDgcNev5axvF2lD2R73A0QihwBiROf47+OMl6139iY48ac 3O0uEtb26Hw8PP3cJmDTHMEha4xAaAW4ku3sRoNyenUFVt4D00s3B3PTBAP+P5w/DQYcSq /7z/m4TA5xW39Fa6OCFukTf/cx8iLeuzHq10oiqZwUEaRGtaWY42e1fXpTexuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263569 Bug ID: 263569 Summary: sr-iov: ixv0 connection lost after loading vm with a passthrough device Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: benoitc@enki-multimedia.eu I am trying to use SR-IOV on my machine with an IX driver, but each time i start the vm on the passthrough devices the connections which is started on= the virtuall function dedicated for the host, the connection hangs and it is not possible to setup the connection back until I reboot. Do anyone know what i= 'm missing in my configuration? I don't see any useful logs in dmesg. The card is the HP Ethernet 10Gb 2-port 560SFP+ Adapter 665249-B21 which is= an Intel X520-DAA2. Maybe related but when restarting netif I am getting this message: "Mailbox API negotiation failed in if_init" .I am using the intel-ix-kmod port. I tr= y to update it to the latest 3.3.30 version which provided the same results. I've the following configuration to setup sr-iov: ``` more /etc/iov-ix0.conf PF { device: "ix0"; num_vfs: 4; } DEFAULT { passthrough: true; allow-set-mac: true allow-promisc: true; } VF-0 { passthrough: false; mac-addr: "36:6b:d2:f9:a9:08"; } ``` and in loader.conf: ``` ifconfig_ixv0=3D"up" cloned_interfaces=3D"lo1 bgp services" vlans_ixv0=3D"bgp services" create_args_bgp=3D"vlan 1000" create_args_services=3D"vlan 2000" ifconfig_bgp_ipv6=3D"inet6 XXX/64" ``` vms starts and the device seeps to be setup: ``` ixv0@pci0:8:0:128: class=3D0x020000 rev=3D0x01 hdr=3D0x00 vendor=3D0x8086 device=3D0x10ed subvendor=3D0x103c subdevice=3D0x17d3 vendor =3D 'Intel Corporation' device =3D '82599 Ethernet Controller Virtual Function' class =3D network subclass =3D ethernet cap 11[70] =3D MSI-X supports 3 messages, enabled Table in map 0x1c[0x0], PBA in map 0x1c[0x2000] cap 10[a0] =3D PCI-Express 0 endpoint max data 128(128) max read 128 ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 000e[150] =3D ARI 1 ppt0@pci0:8:0:130: class=3D0x020000 rev=3D0x01 hdr=3D0x00 vendor=3D0x8086 device=3D0x10ed subvendor=3D0x103c subdevice=3D0x17d3 vendor =3D 'Intel Corporation' device =3D '82599 Ethernet Controller Virtual Function' class =3D network subclass =3D ethernet cap 11[70] =3D MSI-X supports 3 messages Table in map 0x1c[0x0], PBA in map 0x1c[0x2000] cap 10[a0] =3D PCI-Express 0 endpoint max data 128(128) max read 128 ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 000e[150] =3D ARI 1 ppt1@pci0:8:0:132: class=3D0x020000 rev=3D0x01 hdr=3D0x00 vendor=3D0x8086 device=3D0x10ed subvendor=3D0x103c subdevice=3D0x17d3 vendor =3D 'Intel Corporation' device =3D '82599 Ethernet Controller Virtual Function' class =3D network subclass =3D ethernet cap 11[70] =3D MSI-X supports 3 messages Table in map 0x1c[0x0], PBA in map 0x1c[0x2000] cap 10[a0] =3D PCI-Express 0 endpoint max data 128(128) max read 128 ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 000e[150] =3D ARI 1 ppt2@pci0:8:0:134: class=3D0x020000 rev=3D0x01 hdr=3D0x00 vendor=3D0x8086 device=3D0x10ed subvendor=3D0x103c subdevice=3D0x17d3 vendor =3D 'Intel Corporation' device =3D '82599 Ethernet Controller Virtual Function' class =3D network subclass =3D ethernet cap 11[70] =3D MSI-X supports 3 messages Table in map 0x1c[0x0], PBA in map 0x1c[0x2000] cap 10[a0] =3D PCI-Express 0 endpoint max data 128(128) max read 128 ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 000e[150] =3D ARI 1 ``` VM is started using vm-bhyve: ``` loader=3D"uefi-csm" cpu=3D1 memory=3D2G passthru0=3D8/0/130=3D5:0 disk0_type=3D"virtio-blk" disk0_name=3D"disk0.img" uuid=3D"ac3dafab-bedb-11ec-b24d-1402ec690a80" ``` --=20 You are receiving this mail because: You are the assignee for the bug.=