Summary: | ixgbe(4): SR-IOV passthru not working on Hyper-V 13-CURRENT guest with Intel X540 (0x152E) | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Michael <michael.adm> | ||||
Component: | kern | Assignee: | freebsd-net (Nobody) <net> | ||||
Status: | Open --- | ||||||
Severity: | Affects Many People | CC: | dmitry_kuleshov, erj, freebsd, kbowling, krzysztof.galazka, lwhsu, net, weh, whu | ||||
Priority: | --- | Keywords: | feature, needs-qa | ||||
Version: | 13.0-RELEASE | Flags: | koobs:
maintainer-feedback?
(whu) koobs: maintainer-feedback? (freebsd) koobs: maintainer-feedback? (kbowling) koobs: maintainer-feedback? (erj) koobs: maintainer-feedback? (krzysztof.galazka) koobs: mfc-stable13? koobs: mfc-stable12? |
||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239849 | ||||||
Attachments: |
|
Description
Michael
2018-10-20 14:25:08 UTC
Look like same problem: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222996#c12 Try to use Generation 1 VM, i thnik on 99% it will works. (In reply to Dmitry from comment #2) Not. Does not work on Gen 1 version of VM. Further more. The host has the latest Intel drivers for the x710 network adapter. Second Generation Virtual Machine with GERERIC Recompiled FreeBSD-Current Core for today. Host is Windows Server 2019 with Intel drivers (i40ea68.sys 1.10.128.0). hn0 without SR-IOV function hn1 with SR-IOV Log messages from virtual machine: Aug 14 10:56:18 r03 kernel: ---<<BOOT>>--- Aug 14 10:56:18 r03 kernel: Copyright (c) 1992-2019 The FreeBSD Project. Aug 14 10:56:18 r03 kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Aug 14 10:56:18 r03 kernel: The Regents of the University of California. All rights reserved. Aug 14 10:56:18 r03 kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Aug 14 10:56:18 r03 kernel: FreeBSD 13.0-CURRENT a2166b0cec5-c261904(master) R03 amd64 Aug 14 10:56:18 r03 kernel: FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Aug 14 10:56:18 r03 kernel: SRAT: Ignoring memory at addr 0x1fc000000 ... Aug 14 10:56:18 r03 kernel: SRAT: Ignoring memory at addr 0xc0000000000 Aug 14 10:56:18 r03 kernel: VT(efifb): resolution 1024x768 Aug 14 10:56:18 r03 kernel: Hyper-V Version: 10.0.17763 [SP0] Aug 14 10:56:18 r03 kernel: Features=0x2e7f<VPRUNTIME,TMREFCNT,SYNIC,SYNTM,APIC,HYPERCALL,VPINDEX,REFTSC,IDLE,TMFREQ> Aug 14 10:56:18 r03 kernel: PM Features=0x0 [C2] Aug 14 10:56:18 r03 kernel: Features3=0xbed7b2<DEBUG,XMMHC,IDLE,NUMA,TMFREQ,SYNCMC,CRASH,NPIEP> Aug 14 10:56:18 r03 kernel: Timecounter "Hyper-V" frequency 10000000 Hz quality 2000 Aug 14 10:56:18 r03 kernel: module iavf already present! Aug 14 10:56:18 r03 kernel: CPU: Intel(R) Xeon(R) CPU E5-2623 v3 @ 3.00GHz (2996.53-MHz K8-class CPU) Aug 14 10:56:18 r03 kernel: Origin="GenuineIntel" Id=0x306f2 Family=0x6 Model=0x3f Stepping=2 ... Aug 14 10:56:18 r03 kernel: vmbus0: <Hyper-V Vmbus> on acpi_syscontainer0 Aug 14 10:56:18 r03 kernel: vmbus_res0: <Hyper-V Vmbus Resource> irq 5 on acpi0 ... Aug 14 10:56:18 r03 kernel: vmbus0: version 4.0 Aug 14 10:56:18 r03 kernel: hvet0: <Hyper-V event timer> on vmbus0 Aug 14 10:56:18 r03 kernel: Event timer "Hyper-V" frequency 10000000 Hz quality 1000 Aug 14 10:56:18 r03 kernel: hvkbd0: <Hyper-V KBD> on vmbus0 Aug 14 10:56:18 r03 kernel: hvheartbeat0: <Hyper-V Heartbeat> on vmbus0 Aug 14 10:56:18 r03 kernel: hvkvp0: <Hyper-V KVP> on vmbus0 Aug 14 10:56:18 r03 kernel: hvshutdown0: <Hyper-V Shutdown> on vmbus0 Aug 14 10:56:18 r03 kernel: hvtimesync0: <Hyper-V Timesync> on vmbus0 Aug 14 10:56:18 r03 kernel: hvtimesync0: RTT Aug 14 10:56:18 r03 kernel: hvvss0: <Hyper-V VSS> on vmbus0 Aug 14 10:56:18 r03 kernel: storvsc0: <Hyper-V SCSI> on vmbus0 Aug 14 10:56:18 r03 kernel: hn0: <Hyper-V Network Interface> on vmbus0 Aug 14 10:56:18 r03 kernel: hn0: Ethernet address: 00:15:5d:00:88:29 Aug 14 10:56:18 r03 kernel: hn0: link state changed to UP Aug 14 10:56:18 r03 kernel: hn1: <Hyper-V Network Interface> on vmbus0 Aug 14 10:56:18 r03 kernel: hn1: got notify, nvs type 128 Aug 14 10:56:18 r03 kernel: hn1: Ethernet address: 00:15:5d:00:88:2a Aug 14 10:56:18 r03 kernel: hn1: link state changed to UP Aug 14 10:56:18 r03 kernel: pcib0: <Hyper-V PCI Express Pass Through> on vmbus0 Aug 14 10:56:18 r03 kernel: pci0: <PCI bus> on pcib0 Aug 14 10:56:18 r03 kernel: pci0: <network, ethernet> at device 2.0 (no driver attached) Aug 14 10:56:18 r03 kernel: lo0: link state changed to UP ... root@r03:/# pciconf -lvb none0@pci2:0:2:0: class=0x020000 card=0x00018086 chip=0x15718086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Virtual Function 700 Series' class = network subclass = ethernet bar [10] = type Prefetchable Memory, range 64, base r, size 65536, disabled bar [1c] = type Prefetchable Memory, range 64, base r, size 16384, disabled Created attachment 219194 [details]
Make FreeBSD 11.3 to support SRIOV on Intel NIC 82599 VF (0x152E) on HyperV
This is code changes to support SRIOV for Intel NIC 82599 VF (Device ID 0x152E) on HyperV. I have done some test on FreeBSD 11.3. The similar code changes will need to make other Intel VFs work on HyperV.
*** Bug 239849 has been marked as a duplicate of this bug. *** (In reply to Wei Hu from comment #4) Is this a backport of changes committed to later (> 11.x) or a direct patch for 11.x? If the latter, are we able to produce a patch for CURRENT for user testing? @Intel Could you review attachment 219194 [details] and provide advice on getting these changes into base and upstream versions of the driver ^Triage: Request feedback from folks that play in the sys/dev/ixgbe area |