[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#956868: Use Realtek's r8101 driver



On 07.05.2020 16:14, Camaleón wrote:
> On Thu, 7 May 2020 12:20:54 +0200, Heiner Kallweit wrote:
> 
> Hello,
> 
>> RTL8401 (XID 240) was never supported by r8169.
>> Having said that nothing was dropped from the driver.
>> And most likely you don't have to compile r8101 yourself,
>> most distro's have a pre-compiled package.
> 
> How that can be? This computer perfectly detected the ethernet card 
> years ago (2013), using kernel 3.9.0-rc2 (Debian nomenclature) and r8169
> driver:
> 
> (dmesg excerpt)
> 
> [    0.000000] Linux version 3.9.0-rc2 (root@stt300) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Sun Mar 17 22:49:53 CET 2013
> 
> [    0.000000] DMI: Hewlett-Packard Compaq Mini CQ10-500 /148A, BIOS F.15 01/14/2011
> 
> [    6.558651] [drm] Initialized drm 1.1.0 20060810
> [    6.573693] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
> [    6.574014] r8169 0000:01:00.0 (unregistered net_device): unknown MAC, using family default

This is the key. There has never been native support for the RTL8401. In earlier times (until
end of 2018) we had a fallback to a default chip version for unknown chip versions.
This was removed because each chip version requires it's own specific initialization and quirks.
It's quite fortunate that your RTL8401 works properly if treated as RTL8101e.
What we can do is adding this as explicit assignment.

> [    6.574358] r8169 0000:01:00.0: irq 43 for MSI/MSI-X
> [    6.575005] r8169 0000:01:00.0 eth0: RTL8101e at 0xf8268000, 68:b5:99:d3:c1:d8, XID 04000000 IRQ 43:
> 
> (pci devices excerpt)
> 
> 01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. 
> RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 04)
>     Subsystem: Hewlett-Packard Company Device [103c:148a]
>     Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
>     Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
>     Latency: 0, Cache Line Size: 64 bytes
>     Interrupt: pin A routed to IRQ 43
>     Region 0: I/O ports at 2000 [size=256]
>     Region 2: Memory at 90004000 (64-bit, prefetchable) [size=4K]
>     Region 4: Memory at 90000000 (64-bit, prefetchable) [size=16K]
>     Capabilities: <access denied>
>     Kernel driver in use: r8169
> 
> Greetings,
> 


Reply to: