-
Notifications
You must be signed in to change notification settings - Fork 101
Description
##Problem
RTL8127 (Device ID 0x8127, XID 0x6c9) is not recognized by the r8125 driver.
##Hardware
Device: Realtek RTL8127 (0x10ec:0x8127)
XID: 0x6c9 (RTL8125D variant)
Kernel: 6.14.0-1019-oem
##Solution
Added support by:
- Adding PCI ID 0x8127 to rtl8125_pci_tbl in r8125_n.c (line 7582)
- Adding XID 0x6c9 handling in rtl8125_get_mac_version()
- Mapping it to RTL8125D (same as 0x8125)
Patch
[Attached]
rtl8127-support.patch
##Testing
✅ Module loads successfully with DKMS
✅ Interfaces appear as enp193s0 and enp194s0
✅ Link detection works
✅ Module signature verified by MOK (Secure Boot compatible)
##Verification after patch
master@workbench:~/gits$ lspci -nn | grep 8127
c1:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec:8127] (rev 05)
c2:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec:8127] (rev 05)
master@workbench:~/gits$ modinfo r8125 | grep 8127
alias: pci:v000010ECd00008127svsdbcsci*
master@workbench:~/gits$ ip -br link | grep enp
enp193s0 DOWN 38:05:25:34:5d:d7 <NO-CARRIER,BROADCAST,MULTICAST,UP>
enp194s0 UP 38:05:25:34:5d:d8 <BROADCAST,MULTICAST,UP,LOWER_UP>
master@workbench:~/gits$ sudo dmesg | grep -i r8125
[ 260.875645] r8125: loading out-of-tree module taints kernel.
[ 1753.995164] r8125 Ethernet controller driver 9.016.01-NAPI loaded
[ 1753.998794] r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 1753.998809] r8125 Copyright (C) 2025 Realtek NIC software team nicfae@realtek.com
[ 1754.018488] r8125 0000:c1:00.0 enp193s0: renamed from eth0
[ 1760.384264] r8125 Ethernet controller driver 9.016.01-NAPI loaded
[ 1760.387382] r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[ 1760.387396] r8125 Copyright (C) 2025 Realtek NIC software team nicfae@realtek.com
[ 1760.391081] r8125 0000:c2:00.0 enp194s0: renamed from eth0
[ 1765.149305] r8125: enp194s0: link up