SiS190 ethernet driver fails in 64 bits Kubuntu Jaunty.

Bug #341444 reported by Iñigo Lekanda
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linux
Expired
Medium
linux (Debian)
New
Undecided
Unassigned
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

My computer is a Asus X59SL (AP382C) notebook.

With Kubuntu Jaunty 64 bits (Alpha 5) SiS190 ethernet driver fails. The 32 bits version has not problem.

The module load correctly. The driver get IP via DHCP but don't receive traffic. Apparently only send traffic. Ping show "Destination host unreachable.

The routes are correctly. The commands lspci y dmesg in 64 bits version show this:

root@diablo:/home/ilekanda# lspci -nn
00:00.0 Host bridge [0600]: Silicon Integrated Systems [SiS] 671MX [1039:0671]
00:01.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:0004]
00:02.0 ISA bridge [0601]: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] [1039:0968] (rev 01)
00:02.5 IDE interface [0101]: Silicon Integrated Systems [SiS] 5513 [IDE] [1039:5513] (rev 01)
00:03.0 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 1.1 Controller [1039:7001] (rev 0f)
00:03.1 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 1.1 Controller [1039:7001] (rev 0f)
00:03.3 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 2.0 Controller [1039:7002]
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter [1039:0191] (rev 02)
00:05.0 IDE interface [0101]: Silicon Integrated Systems [SiS] SATA Controller / IDE mode [1039:1183] (rev 03)
00:06.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:000a]
00:07.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:000a]
00:0f.0 Audio device [0403]: Silicon Integrated Systems [SiS] Azalia Audio Controller [1039:7502]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Mobility Radeon HD 3400 Series [1002:95c4]
02:00.0 Network controller [0280]: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)

root@diablo:/home/ilekanda# dmesg | grep '00:04.0'
[ 0.508874] pci 0000:00:04.0: reg 10 32bit mmio: [0xfddfcc00-0xfddfcc7f]
[ 0.508874] pci 0000:00:04.0: reg 14 io port: [0xcc00-0xcc7f]
[ 0.508874] pci 0000:00:04.0: supports D1 D2
[ 0.508874] pci 0000:00:04.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.508874] pci 0000:00:04.0: PME# disabled
[ 8.305240] sis190 0000:00:04.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 8.305261] sis190 0000:00:04.0: setting latency timer to 64
[ 8.305300] 0000:00:04.0: Read MAC address from EEPROM
[ 8.305302] 0000:00:04.0: Error EEPROM read 0.
[ 8.305305] 0000:00:04.0: Read MAC address from APC.
[ 8.352028] 0000:00:04.0: Unknown PHY transceiver at address 1.
[ 8.877012] 0000:00:04.0: Using transceiver at address 1 as default.
[ 8.909690] 0000:00:04.0: SiS 191 PCI Gigabit Ethernet adapter at ffffc2000007ec00 (IRQ: 19), 00:23:54:7c:6e:be

In 32bits version that run fine show this:

root@ubuntu:/home/ubuntu# lspci -nn
00:00.0 Host bridge [0600]: Silicon Integrated Systems [SiS] 671MX [1039:0671]
00:01.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:0004]
00:02.0 ISA bridge [0601]: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] [1039:0968] (rev 01)
00:02.5 IDE interface [0101]: Silicon Integrated Systems [SiS] 5513 [IDE] [1039:5513] (rev 01)
00:03.0 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 1.1 Controller [1039:7001] (rev 0f)
00:03.1 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 1.1 Controller [1039:7001] (rev 0f)
00:03.3 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 2.0 Controller [1039:7002]
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter [1039:0191] (rev 02)
00:05.0 IDE interface [0101]: Silicon Integrated Systems [SiS] SATA Controller / IDE mode [1039:1183] (rev 03)
00:06.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:000a]
00:07.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:000a]
00:0f.0 Audio device [0403]: Silicon Integrated Systems [SiS] Azalia Audio Controller [1039:7502]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Mobility Radeon HD 3400 Series [1002:95c4]
02:00.0 Network controller [0280]: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)

root@ubuntu:/home/ubuntu# dmesg|fgrep 00:04.0
[ 0.600773] pci 0000:00:04.0: reg 10 32bit mmio: [0xfddfcc00-0xfddfcc7f]
[ 0.600773] pci 0000:00:04.0: reg 14 io port: [0xcc00-0xcc7f]
[ 0.600773] pci 0000:00:04.0: supports D1 D2
[ 0.600773] pci 0000:00:04.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.600773] pci 0000:00:04.0: PME# disabled
[ 66.885735] sis190 0000:00:04.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 66.885748] sis190 0000:00:04.0: setting latency timer to 64
[ 66.885797] 0000:00:04.0: Read MAC address from EEPROM
[ 66.885800] 0000:00:04.0: Error EEPROM read 0.
[ 66.885804] 0000:00:04.0: Read MAC address from APC.
[ 66.932030] 0000:00:04.0: Unknown PHY transceiver at address 1.
[ 67.444029] 0000:00:04.0: Using transceiver at address 1 as default.
[ 67.476748] 0000:00:04.0: SiS 191 PCI Gigabit Ethernet adapter at f7e7ec00 (IRQ: 19), 00:23:54:7c:6e:be

Revision history for this message
Iñigo Lekanda (vinagre) wrote :

Also with 64bits Alpha6.

Revision history for this message
Iñigo Lekanda (vinagre) wrote :

Also with 64bits Beta.

Revision history for this message
Maci (gergo-nemeth) wrote :

Also with 64bit Kubuntu 9.04 Beta and also 64bit Ubuntu 9.04 Beta. :S

Another link : http://bugzilla.kernel.org/show_bug.cgi?id=12090

I've got ASUS laptop with F5SL motherboard:

ubuntu@ubuntu:~$ lspci -nn
00:00.0 Host bridge [0600]: Silicon Integrated Systems [SiS] 671MX [1039:0671]
00:01.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:0004]
00:02.0 ISA bridge [0601]: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] [1039:0968] (rev 01)
00:02.5 IDE interface [0101]: Silicon Integrated Systems [SiS] 5513 [IDE] [1039:5513] (rev 01)
00:03.0 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 1.1 Controller [1039:7001] (rev 0f)
00:03.1 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 1.1 Controller [1039:7001] (rev 0f)
00:03.3 USB Controller [0c03]: Silicon Integrated Systems [SiS] USB 2.0 Controller [1039:7002]
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter [1039:0191] (rev 02)
00:05.0 IDE interface [0101]: Silicon Integrated Systems [SiS] SATA Controller / IDE mode [1039:1183] (rev 03)
00:06.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:000a]
00:07.0 PCI bridge [0604]: Silicon Integrated Systems [SiS] PCI-to-PCI bridge [1039:000a]
00:0f.0 Audio device [0403]: Silicon Integrated Systems [SiS] Azalia Audio Controller [1039:7502]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Mobility Radeon HD 3400 Series [1002:95c4]
02:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter [168c:001c] (rev 01)

When I trying to ping my gateway:

ubuntu@ubuntu:~$ ping 192.168.7.254
PING 192.168.7.254 (192.168.7.254) 56(84) bytes of data.
From 192.168.4.51 icmp_seq=2 Destination Host Unreachable
From 192.168.4.51 icmp_seq=3 Destination Host Unreachable
From 192.168.4.51 icmp_seq=4 Destination Host Unreachable
From 192.168.4.51 icmp_seq=5 Destination Host Unreachable
From 192.168.4.51 icmp_seq=6 Destination Host Unreachable

Revision history for this message
komputes (komputes) wrote :

I can confirm this bug on Ubuntu Jaunty 64-beta, but for me it just started recently. I'm not sure what triggers it but it seems to work at full speed before loading the graphical desktop. So if I boot into recovery mode and run 'netroot' and 'dpkg' scripts, packages come in at 500 kB/s. In the graphical environment they get pulled in at 16kB/s.

My internet connection speed (from speedtest.net) has dropped from 5+Mb/s down to 0.25 Mb/s. Other computers on the network get full speed, so it is not my ISP. Also, this computer booted on an 8.10 or 9.04 Beta Live CD (without updates) and they both get full speed.

Hardware: Laptop - Acer Aspire 5002
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet [1039:0900] (rev 91)
        Subsystem: Acer Incorporated [ALI] Device [1025:0083]
        Kernel driver in use: sis900
        Kernel modules: sis900

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
komputes (komputes) wrote :

Sorry, I confused the driver on this bug (sis190) with my issue with sis900. I have created this new bug for my hardware:
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/362457

Keeping status Confirmed since Maci has confirmed Iñigo Lekanda's bug.
It may be helpful if one of you can upload the output of the following command to see the sis190 module loaded.

$ lspci -vvnn | grep -A20 -i ethernet > ~/lspci-vvnn.txt

It would also be useful to check the speed before the graphical desktop is loaded (in recover mode).

Revision history for this message
Maci (gergo-nemeth) wrote :

Problem still exists in Ubuntu 9.04 RC.

Changed in linux:
status: Unknown → Confirmed
Revision history for this message
Taylor Nelson (tjbn) wrote :

The driver fails to detect link status and fails to provide any sort of connection, I have successfully patched the driver with the link detection code found in the mandriva sis190.c to no avail. I named my patched version 1.3(1.2 didn't work either).

[ 9.017402] sis190 Gigabit Ethernet driver 1.3 loaded.
[ 9.017427] sis190 0000:00:04.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 9.017439] sis190 0000:00:04.0: setting latency timer to 64
[ 9.622308] eth0: RGMII mode.
[ 9.622312] eth0: Enabling Auto-negotiation.
[ 362.907773] ADDRCONF(NETDEV_UP): eth0: link is not ready

ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:24:8c:95:50:8c
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:19 Base address:0xdead

ethtool eth0
Settings for eth0:
 ...
 Port: MII
 PHYAD: 1
 Transceiver: internal
 Auto-negotiation: on
 Current message level: 0x00000037 (55)
 Link detected: no

00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02)
 Subsystem: ASUSTeK Computer Inc. Device 1815
 Flags: bus master, medium devsel, latency 0, IRQ 19
 Memory at f9ffcc00 (32-bit, non-prefetchable) [size=128]
 I/O ports at cc00 [size=128]
 Capabilities: [40] Power Management version 2
 Kernel driver in use: sis190
 Kernel modules: sis190

Revision history for this message
Maci (gergo-nemeth) wrote :

It looks like something going to be happen:

Sérgio M Basto from bugzilla.kernel.org posted a patch for sis190 driver which - hopefully - fix our problem with this driver with 64bit kernel.

Here is the kernel git tree:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=744c6b2976778ac6944e580fc413842df85be84e

And the patch:
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -539,8 +539,8 @@ static bool sis190_try_rx_copy(struct sis190_private *tp,
        if (!skb)
                goto out;

- pci_dma_sync_single_for_device(tp->pci_dev, addr, pkt_size,
- PCI_DMA_FROMDEVICE);
+ pci_dma_sync_single_for_cpu(tp->pci_dev, addr, tp->rx_buf_sz,
+ PCI_DMA_FROMDEVICE);
        skb_reserve(skb, 2);
        skb_copy_to_linear_data(skb, sk_buff[0]->data, pkt_size);
        *sk_buff = skb;

Please commit this patch as soon as possible to the stable x86_64 Ubuntu and Kubuntu kernels to start testing the fixed driver.

Revision history for this message
Tobi Mayer (v-launchpad-tobiasm-de) wrote :

Made that change to my 2.6.29.4 kernel. Did not change anything. The problem still remains here.

Revision history for this message
Tobi Mayer (v-launchpad-tobiasm-de) wrote :

Well, i did something wrong. It works, great! Thank you!

Changed in linux:
importance: Unknown → Medium
Revision history for this message
Maci (gergo-nemeth) wrote :

Hi!

 As far as I can remember, bug was fixed in 2.6.31.9 upstream kernel, though mtu needs to be set to 1492 to get the NIC work properly.

Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
Changed in linux:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.