> and therefore disable MSI support on the PCI bus. Could you check if
> the diff below probably fixes the issue?

> Seems thet the vendor ID 0x1275 is NetApp. How suprising. I suppose
> that if the diff below works, we could add the device as "NetApp BHyVe
> Host" or something like it.

It works so far; compiled it against 5.9 where the system is running.

The output I get in dmesg:

re0 at pci0 dev 5 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), 
msi, address 40:8d:5c:b7:ca:43
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0

The issue I'm getting now are tons of:

re0: watchdog timeout

It's using MSI-X, not MSI. Under FreeBSD (or HardenedBSD in that case), the NIC 
is detected that way: 

Aug 13 01:12:50 gefjon kernel: [1] re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G 
PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 
0xf7d00000-0xf7d00fff,0xf0000000-0xf0003fff irq 19 at device 0.0 on pci3
Aug 13 01:12:50 gefjon kernel: [1] re0: Using 1 MSI-X message
Aug 13 01:12:50 gefjon kernel: [1] re0: ASPM disabled
Aug 13 01:12:50 gefjon kernel: [1] re0: Chip rev. 0x4c000000
Aug 13 01:12:50 gefjon kernel: [1] re0: MAC rev. 0x00000000
Aug 13 01:12:50 gefjon kernel: [1] miibus0: <MII bus> on re0
Aug 13 01:12:50 gefjon kernel: [1] re0: Using defaults for TSO: 65518/35/2048
<...>

pciconf under OpenBSD 5.9 shows now the following:

 0:5:0: Realtek 8168
        0x0000: Vendor ID: 10ec Product ID: 8168
        0x0004: Command: 0007 Status: 0018
        0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 0c
        0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 10
        0x0010: BAR io addr: 0x00002100/0x0100
        0x0014: BAR empty (00000000)
        0x0018: BAR mem prefetchable 64bit addr: 0x00000000c0002000/0x00001000
        0x0020: BAR mem prefetchable 64bit addr: 0x00000000c0004000/0x00004000
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 1458 Product ID: e000
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 13 Min Gnt: 00 Max Lat: 00
        0x0040: Capability 0x01: Power Management
                State: D0 PME# enabled
        0x0050: Capability 0x05: Message Signaled Interrupts (MSI)
        0x0070: Capability 0x10: PCI Express
                Link Speed: 2.5 / 2.5 GT/s Link Width: x1 / x1
        0x00b0: Capability 0x11: Extended Message Signaled Interrupts (MSI-X)
        0x00d0: Capability 0x03: Vital Product Data (VPD)
        0x0000: 816810ec 00180007 0200000c 00000010
        0x0010: 00002101 00000000 c000200c 00000000
        0x0020: c000400c 00000000 00000000 e0001458
        0x0030: 00000000 00000040 00000000 00000113
        0x0040: ffc35001 00000108 00000000 00000000
        0x0050: 00817005 fee00000 00000000 00000071
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 0202b010 05908cc0 00102000 00477c11
        0x0080: 10110042 00000000 00000000 00000000
        0x0090: 00000000 000c081f 00000400 00000002
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 0003d011 00000004 00000804 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000003 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000

It seems like there were issues with other Virtualization Platforms and re in 
the past. 

Greets,
Boris

Reply via email to