Latest working kernel version: unknown
Earliest failing kernel version: tested with 220.127.116.11 (vanilla), it fails, also other version tested was now old 2.6.24, same issue
Hardware Environment: Clevo M540SS
For the sis190 I have here it doesn't report link change inside interrupt handler after removing ethernet cable. This makes ethernet cable detection to not work correctly. Network works fine, if you don't remove ethernet cable after first connection, keep it removed for some time, and reconnect.
Steps to reproduce:
- Remove ethernet cable (after booting with it plugged, or after plugging it after boot). Driver doesn't detect link change.
This is shown on kernel log after sis190 module is loaded with cable connected:
sis190 Gigabit Ethernet driver 1.2 loaded.
sis190 0000:00:04.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
sis190 0000:00:04.0: setting latency timer to 64
0000:00:04.0: Read MAC address from EEPROM
0000:00:04.0: Realtek PHY RTL8201 transceiver at address 1.
0000:00:04.0: Using transceiver at address 1 as default.
0000:00:04.0: SiS 191 PCI Gigabit Ethernet adapter at f8c14000 (IRQ: 19), 00:90:f5:69:e8:8b
eth0: GMII mode.
eth0: Enabling Auto-negotiation.
ADDRCONF(NETDEV_UP): eth0: link is not ready
eth0: mii ext = 0000.
eth0: mii lpa = 40a1 adv = 01e1.
eth0: link on 100 Mbps Half Duplex mode.
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
Created attachment 18559 [details]
poll for link status
This patch I made fixed the problem for me. Not sure why in sis190 device here LinkChange isn't reported.
I can confirm this problem still exists... SiS191... x86_64 2.6.29+ I am also affected by 4G memory problems which I can get around by limiting the kernel to access only 3G... but link detection is broken for me still... upon cable disconnect there are no notifications...
(In reply to comment #2)
> I can confirm this problem still exists... SiS191... x86_64 2.6.29+ I
> also affected by 4G memory problems which I can get around by limiting the
> kernel to access only 3G... but link detection is broken for me still... upon
> cable disconnect there are no notifications...
Can you check the patch I attached in the ticket here? It should fix the issue, or you can say workaround as it's weird LinkChange isn't reported (it should be).
I can confirm the problem persists in vanilla kernel 18.104.22.168, I then applied the patch to the same kernel and the driver started working as expected. It now detects correctly when the cable is plugged and when is unplugged.
I'm using Debian Lenny with vanila kernell 22.214.171.124 on a Clevo/kapok computer device 0802 Laptop.
Created attachment 25296 [details]
Herton's patch, updated for 2.6.33+
Updated Herton's patch to apply to the current kernel as of March 1, 2010.
A re-test to confirm this fixes the issue would be appreciated.
Posted to netdev:
Confirm working with Atheros PHY.
Without this patch, link changes are not detected