PHY reset until link up excesive log on dmesg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The sis190 driver generates a "PHY reset until link up" message on the system logs every 5 or 10 seconds. That means that when you type 'dmesg' there is A LOT of useless logs.
Cause: the network cable is not connected.
Fix:
Unload the current drivers:
sudo modprobe -v -r sis190
Download the kernel source code (2.6.24-19-generic)
edit this file on the kernel source: drivers/
and change this:
#define SIS190_MSG_DEFAULT (NETIF_MSG_DRV | NETIF_MSG_PROBE | \
NETIF_MSG_LINK | NETIF_MSG_IFUP | \
NETIF_MSG_IFDOWN)
for this:
/*dc740 FIX:
Disable a really annoying driver log.
"PHY reset until link up."
*/
#define SIS190_MSG_DEFAULT (NETIF_MSG_DRV | NETIF_MSG_PROBE | \
NETIF_MSG_IFUP | NETIF_MSG_IFDOWN)
after changing the driver source code then we compile and install the new modified and fixed driver, like this:
sudo make drivers/
sudo cp drivers/
sudo modprobe -v sis190
sudo ifconfig eth0 up
And the problem is gone.
This happens because the driver logs that the cable link y down by default, thanks to this: "NETIF_MSG_LINK"
Of course this log is useless and it souldn't be there. The easy fix is to change the default logging parameters.
lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
I hope to see this change on the next kernel release, but I don't know where to report it.
Thanks for your time
Assigning to the kernel.