[Bug 275251] Realtek PCIe 2.5GbE Family Controller not being detected

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Nov 2023 19:58:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275251

--- Comment #2 from iio7@tutanota.com ---
(In reply to Zhenlei Huang from comment #1)

$ pciconf -l | grep none
none0@pci0:0:8:0: class=0x088000 rev=0x05 hdr=0x00 vendor=0x8086 device=0x464f
subvendor=0x1462 subdevice=0x7d42
none1@pci0:0:10:0: class=0x118000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x467d
subvendor=0x0000 subdevice=0x0000
none2@pci0:0:20:2: class=0x050000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x7aa7
subvendor=0x0000 subdevice=0x0000
none3@pci0:0:22:0: class=0x078000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x7ae8
subvendor=0x1462 subdevice=0x7d42
none4@pci0:0:31:5: class=0x0c8000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x7aa4
subvendor=0x1462 subdevice=0x7d42
none5@pci0:4:0:0:  class=0x020000 rev=0x05 hdr=0x00 vendor=0x10ec device=0x8125
subvendor=0x1462 subdevice=0x7d42

With the realtek-re-kmod driver I get:

$ ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=201b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC>
        ether 04:7c:16:44:25:0b
        inet 192.168.1.26 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

With the driver from base, there is no interface showing at all.

With the realtek-re-kmod driver I get problems on many OpenSSL related
transfers.

$ curl -O https://www.unixsheikh.com/includes/files/the-biggest-myths.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
12  763k   12 98139    0     0   377k      0  0:00:02 --:--:--  0:00:02  378k
curl: (56) OpenSSL SSL_read: OpenSSL/1.1.1t: error:1408F119:SSL
routines:ssl3_get_record:decryption failed or bad record mac, errno 0

This also occurs with IMAP and SFTP.

I have attached an Intel NIC to the same machine (in order to be able to do
some work), when I plug out the Ethernet cable from the Realtek NIC and use the
Intel NIC all the problems goes away.

I have tried running Linux on the box and tried using cURL, IMAP, etc., and
then it works.

Furtermore, I have another older box also with a Realtek NIC which has the
exact same SSL problems with the realtek-re-kmod driver.

This is the other box:

$ ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=201b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC>
        ether d0:50:99:59:15:7e
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

# dmesg |grep re0
re0: <Realtek PCIe GbE Family Controller> port 0xe000-0xe0ff mem
0xd0704000-0xd0704fff,0xd0700000-0xd0703fff irq 18 at device 0.0 on pci1
re0: Using Memory Mapping!
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: version:1.98.00
re0: Ethernet address: d0:50:99:59:15:7e
re0: Ethernet address: d0:50:99:59:15:7e
re0: link state changed to UP
re0: <Realtek PCIe GbE Family Controller> port 0xe000-0xe0ff mem
0xd0704000-0xd0704fff,0xd0700000-0xd0703fff irq 18 at device 0.0 on pci1
re0: Using Memory Mapping!
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: version:1.98.00
re0: Ethernet address: d0:50:99:59:15:7e
re0: Ethernet address: d0:50:99:59:15:7e
re0: link state changed to UP

After the upgrade to FreeBSD 14 on the older box, I have removed the
realtek-re-kmod driver since that one seems to work well with the driver from
base at the moment.

-- 
You are receiving this mail because:
You are the assignee for the bug.