You are not logged in.

#1 2016-10-13 04:58:45

yorks-yy
Member
Registered: 2012-04-08
Posts: 12

[SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

HI,

Device:

# dmidecode | grep 'System Info' -A2
System Information
        Manufacturer: Dell Inc.
        Product Name: Latitude 3350

# lspci | grep -i net
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

# uname -r
4.7.6-1-ARCH

r8169:

# lsmod | grep r8
# modprobe -v r8169
insmod /lib/modules/4.7.6-1-ARCH/kernel/drivers/net/mii.ko.gz
insmod /lib/modules/4.7.6-1-ARCH/kernel/drivers/net/ethernet/realtek/r8169.ko.gz
# dmesg  | tail
[  296.067781] wlp4s0: RX AssocResp from 8c:ab:8e:c6:60:78 (capab=0x831 status=0 aid=3)
[  296.071442] wlp4s0: associated
[  296.071452] IPv6: ADDRCONF(NETDEV_CHANGE): wlp4s0: link becomes ready
[  559.556792] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[  559.556812] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[  559.557065] pci 0000:00:1c.2: PCI INT C: failed to register GSI
[  559.557070] pci 0000:00:1c.2: Error enabling bridge (-16), continuing
[  559.557988] r8169 0000:03:00.0: PCI INT A: failed to register GSI
[  559.557991] r8169 0000:03:00.0 (unnamed net_device) (uninitialized): enable failure
[  559.558815] r8169: probe of 0000:03:00.0 failed with error -16
# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
wlp4s0:   97208     700    0    0    0     0          0         0   246752     433    0    0    0     0       0          0
# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 94:53:30:03:3a:6f brd ff:ff:ff:ff:ff:ff

### wlp4s0 is the wireless device

r8168(install by pacman or compiled from the src are the same result):

# rmmod r8169
# lsmod | grep r8
# modprobe -v r8168
insmod /lib/modules/4.7.6-1-ARCH/kernel/drivers/net/ethernet/realtek/r8168.ko.gz
# dmesg | tail
[  559.557070] pci 0000:00:1c.2: Error enabling bridge (-16), continuing
[  559.557988] r8169 0000:03:00.0: PCI INT A: failed to register GSI
[  559.557991] r8169 0000:03:00.0 (unnamed net_device) (uninitialized): enable failure
[  559.558815] r8169: probe of 0000:03:00.0 failed with error -16
[  637.587989] r8168 Gigabit Ethernet driver 8.043.01-NAPI loaded
[  637.588130] pci 0000:00:1c.2: PCI INT C: failed to register GSI
[  637.588133] pci 0000:00:1c.2: Error enabling bridge (-16), continuing
[  637.589022] r8168 0000:03:00.0: PCI INT A: failed to register GSI
[  637.589024] r8168 0000:03:00.0: enable failure
[  637.589864] r8168: probe of 0000:03:00.0 failed with error -16
# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
wlp4s0:  127283     975    0    0    0     0          0         0   265696     571    0    0    0     0       0          0
# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 94:53:30:03:3a:6f brd ff:ff:ff:ff:ff:ff

I have search from the DELL product drives page, they only provide drives of windows.
Is there any another driver suit for the Ethernet device(Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller)?



20170704 FIXED
Need to make kernel with   CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y .

Last edited by yorks-yy (2017-07-04 08:44:24)

Offline

#2 2016-10-13 10:05:29

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

yorks-yy wrote:
[  559.557065] pci 0000:00:1c.2: PCI INT C: failed to register GSI
[  559.557070] pci 0000:00:1c.2: Error enabling bridge (-16), continuing
[  559.557988] r8169 0000:03:00.0: PCI INT A: failed to register GSI
[  559.557991] r8169 0000:03:00.0 (unnamed net_device) (uninitialized): enable failure
[  559.558815] r8169: probe of 0000:03:00.0 failed with error -16

This shouldn't be here and after the last line there is no way things can work so don't bother with this "ip link" stuff.

It's some PCI interrupt issue. Maybe the same as here, so try booting with acpi_sci=low and if this doesn't work, file a new bug report pasting only this dmesg snippet (or just whole dmesg) this time.

Offline

#3 2016-10-13 12:00:57

yorks-yy
Member
Registered: 2012-04-08
Posts: 12

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

mich41 wrote:

try booting with acpi_sci=low and if this doesn't work, file a new bug report pasting only this dmesg snippet (or just whole dmesg) this time.

Thank you for your reply.
It doesn't wok. The dmesg snippet like this:
r8168

[    1.732361] r8168 Gigabit Ethernet driver 8.043.01-NAPI loaded
[    1.732484] pci 0000:00:1c.2: PCI INT C: failed to register GSI
[    1.732487] pci 0000:00:1c.2: Error enabling bridge (-16), continuing
[    1.733327] r8168 0000:03:00.0: PCI INT A: failed to register GSI
[    1.733330] r8168 0000:03:00.0: enable failure
[    1.734740] r8168: probe of 0000:03:00.0 failed with error -16

and the whole dmesg is  http://pastebin.com/x3bcpNAL

r8169

[    1.753395] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.753406] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.757368] pci 0000:00:1c.2: PCI INT C: failed to register GSI
[    1.757374] pci 0000:00:1c.2: Error enabling bridge (-16), continuing
[    1.758687] r8169 0000:03:00.0: PCI INT A: failed to register GSI
[    1.758691] r8169 0000:03:00.0 (unnamed net_device) (uninitialized): enable failure
[    1.759639] r8169: probe of 0000:03:00.0 failed with error -16

and the whole dmesg is  http://pastebin.com/LNxr44Ry

Offline

#4 2016-10-14 14:40:23

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

I guess you could also try noapic or acpi=noirq as a workaround.

Offline

#5 2016-11-03 21:56:10

Pobega
Member
Registered: 2010-08-19
Posts: 11

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

For those who may come across this in a Google Search, it looks like there is a conflict between this network card's interrupt code and something in ACPI. the `noapic` boot flag has temporarily resolved the issue for me.

Offline

#6 2017-07-04 05:48:49

yorks-yy
Member
Registered: 2012-04-08
Posts: 12

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

HI, ALL:
  I found that the newest kernel have fixed it(patch: https://patchwork.kernel.org/patch/9423907/ ),
but archlinux stock kernel do not turn the option: CONFIG_ACPI_REV_OVERRIDE_POSSIBLE ,
so I build a custom kernel the the problem fixed.

zcat /proc/config.gz | grep CONFIG_ACPI_REV_OVERRIDE_POSSIBLE 
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y

 dmesg | grep r8
[    0.000000] percpu: Embedded 35 pages/cpu @ffff880257400000 s103256 r8192 d31912 u524288
[    0.000000] pcpu-alloc: s103256 r8192 d31912 u524288 alloc=1*2097152
[    1.934201] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.934211] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.947798] r8169 0000:03:00.0 eth0: RTL8168h/8111h at 0xffffc90000d01000, 14:18:77:cd:81:4d, XID 14100800 IRQ 49
[    1.947801] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    2.110531] r8169 0000:03:00.0 enp3s0: renamed from eth0

BTW, is there a way to turn on the kernel config option: CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y with the stock kernel?

Offline

#7 2017-07-04 08:32:14

loqs
Member
Registered: 2014-03-06
Posts: 18,130

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

yorks-yy wrote:

BTW, is there a way to turn on the kernel config option: CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y with the stock kernel?

See https://git.archlinux.org/svntogit/pack … ages/linux it has been reenabled since 4.11.5-1.

Offline

#8 2017-07-04 08:41:26

yorks-yy
Member
Registered: 2012-04-08
Posts: 12

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

loqs wrote:
yorks-yy wrote:

BTW, is there a way to turn on the kernel config option: CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y with the stock kernel?

See https://git.archlinux.org/svntogit/pack … ages/linux it has been reenabled since 4.11.5-1.

Thanks,  I will mark this topic to FIXED.

Offline

#9 2017-07-06 09:02:50

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

Mmm i'm on 4.11-7 and still have this problem, is this really solved?

Offline

#10 2017-07-06 09:10:19

yorks-yy
Member
Registered: 2012-04-08
Posts: 12

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

bmanuel wrote:

Mmm i'm on 4.11-7 and still have this problem, is this really solved?

Sure.

# cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=93efd429-962a-4f26-8177-7ed331cc2236 rw quiet elevator=noop acpi_rev_override
# cat /proc/version 
Linux version 4.11.7-1-ARCH (builduser@tobias) (gcc version 7.1.1 20170621 (GCC) ) #1 SMP PREEMPT Sat Jun 24 09:07:09 CEST 2017
# dmesg | grep r8169
[    1.685751] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.685759] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.699675] r8169 0000:03:00.0 eth0: RTL8168h/8111h at 0xffffc90000d69000, 14:18:77:cd:81:4d, XID 14100800 IRQ 49
[    1.699678] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    1.826225] r8169 0000:03:00.0 enp3s0: renamed from eth0
# /sbin/ethtool enp3s0 | grep Speed
        Speed: 1000Mb/s

Offline

#11 2017-07-06 09:23:33

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

I can see you have the r8169 working, but my r8168 still gives me problems:

$ cat /proc/cmdline
initrd=\intel-ucode.img initrd=\initramfs-linux.img root=/dev/disk/by-uuid/274766ba-1cd2-4872-bd53-3eee7bd9cfaa rw quiet acpi_rev_override

$ cat /proc/version
Linux version 4.11.9-1-ARCH (builduser@tobias) (gcc version 7.1.1 20170621 (GCC) ) #1 SMP PREEMPT Wed Jul 5 18:23:08 CEST 2017

$ dmesg |grep r8168
[  +0.030813] r8168: disagrees about version of symbol alloc_etherdev_mqs
[  +0.000003] r8168: Unknown symbol alloc_etherdev_mqs (err -22)
[  +0.000930] r8168: disagrees about version of symbol skb_put
[  +0.000002] r8168: Unknown symbol skb_put (err -22)
[  +0.000002] r8168: disagrees about version of symbol skb_tstamp_tx
[  +0.000001] r8168: Unknown symbol skb_tstamp_tx (err -22)
[  +0.000002] r8168: disagrees about version of symbol __napi_alloc_skb
[  +0.000001] r8168: Unknown symbol __napi_alloc_skb (err -22)
[  +0.000003] r8168: disagrees about version of symbol netdev_update_features
[  +0.000001] r8168: Unknown symbol netdev_update_features (err -22)
[  +0.000003] r8168: disagrees about version of symbol consume_skb
[  +0.000001] r8168: Unknown symbol consume_skb (err -22)
[  +0.000003] r8168: disagrees about version of symbol unregister_netdev
[  +0.000001] r8168: Unknown symbol unregister_netdev (err -22)
[  +0.000025] r8168: disagrees about version of symbol pskb_expand_head
[  +0.000001] r8168: Unknown symbol pskb_expand_head (err -22)
[  +0.000003] r8168: disagrees about version of symbol eth_type_trans
[  +0.000001] r8168: Unknown symbol eth_type_trans (err -22)
[  +0.000001] r8168: disagrees about version of symbol napi_complete_done
[  +0.000001] r8168: Unknown symbol napi_complete_done (err -22)
[  +0.000003] r8168: disagrees about version of symbol skb_checksum_help
[  +0.000001] r8168: Unknown symbol skb_checksum_help (err -22)
[  +0.000004] r8168: disagrees about version of symbol __napi_schedule
[  +0.000001] r8168: Unknown symbol __napi_schedule (err -22)
[  +0.000004] r8168: disagrees about version of symbol netif_device_detach
[  +0.000001] r8168: Unknown symbol netif_device_detach (err -22)
[  +0.000004] r8168: disagrees about version of symbol _dev_info
[  +0.000000] r8168: Unknown symbol _dev_info (err -22)
[  +0.000002] r8168: disagrees about version of symbol napi_gro_receive
[  +0.000000] r8168: Unknown symbol napi_gro_receive (err -22)
[  +0.000002] r8168: disagrees about version of symbol netif_device_attach
[  +0.000001] r8168: Unknown symbol netif_device_attach (err -22)
[  +0.000008] r8168: disagrees about version of symbol init_net
[  +0.000001] r8168: Unknown symbol init_net (err -22)
[  +0.000003] r8168: disagrees about version of symbol netif_napi_add
[  +0.000001] r8168: Unknown symbol netif_napi_add (err -22)
[  +0.000004] r8168: disagrees about version of symbol __dev_kfree_skb_irq
[  +0.000000] r8168: Unknown symbol __dev_kfree_skb_irq (err -22)
[  +0.000015] r8168: disagrees about version of symbol register_netdev
[  +0.000001] r8168: Unknown symbol register_netdev (err -22)
[  +0.000023] r8168: disagrees about version of symbol dev_err
[  +0.000001] r8168: Unknown symbol dev_err (err -22)
[  +0.000014] r8168: disagrees about version of symbol netif_tx_wake_queue
[  +0.000001] r8168: Unknown symbol netif_tx_wake_queue (err -22)
[  +0.000031] r8168: disagrees about version of symbol __netdev_alloc_skb
[  +0.000001] r8168: Unknown symbol __netdev_alloc_skb (err -22)
[  +0.000030] r8168: disagrees about version of symbol netif_napi_del
[  +0.000001] r8168: Unknown symbol netif_napi_del (err -22)
[  +0.000084] r8168: disagrees about version of symbol __dev_kfree_skb_any
[  +0.000002] r8168: Unknown symbol __dev_kfree_skb_any (err -22)
[  +0.000002] r8168: disagrees about version of symbol netif_carrier_off
[  +0.000001] r8168: Unknown symbol netif_carrier_off (err -22)
[  +0.000010] r8168: disagrees about version of symbol netif_carrier_on
[  +0.000001] r8168: Unknown symbol netif_carrier_on (err -22)
[  +0.000009] r8168: disagrees about version of symbol dev_printk
[  +0.000001] r8168: Unknown symbol dev_printk (err -22)
[  +0.000002] r8168: disagrees about version of symbol napi_schedule_prep
[  +0.000001] r8168: Unknown symbol napi_schedule_prep (err -22)
[  +0.000002] r8168: disagrees about version of symbol napi_disable
[  +0.000001] r8168: Unknown symbol napi_disable (err -22)
[  +0.000008] r8168: disagrees about version of symbol __skb_gso_segment
[  +0.000001] r8168: Unknown symbol __skb_gso_segment (err -22)
[  +0.000025] r8168: disagrees about version of symbol skb_clone_tx_timestamp
[  +0.000001] r8168: Unknown symbol skb_clone_tx_timestamp (err -22)
[  +0.000001] r8168: disagrees about version of symbol ethtool_op_get_ts_info
[  +0.000001] r8168: Unknown symbol ethtool_op_get_ts_info (err -22)

Offline

#12 2017-07-06 09:25:42

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: [SOLVED]Realtek RTL8111/8168/8411 Ethernet driver (r8169/r8168 not ...

Ahh this is probably related to another problem as here: https://bbs.archlinux.org/viewtopic.php?id=140887
I was using r8168 because r8169 wasn't working good for me, hopefully it will..

Offline

Board footer

Powered by FluxBB