FS#59369 - [linux] Realtek r8169 driver throws erorrs

Attached to Project: Arch Linux
Opened by Keith (keithg) - Tuesday, 17 July 2018, 14:32 GMT
Last edited by Toolybird (Toolybird) - Sunday, 28 May 2023, 06:39 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Recent upgrade. Upon boot many copies of an ethernet error show on boot screen also in dmesg. Computer is flaky at times especially with lots of downloads. Maybe related with hangs of the computer from time to time?

Additional info:
* package version(s)

Kernel: 4.14.55-1-lts

* config and/or log files etc.

Motherboard: Asus M5A97 (amd)

Driver:
lsmod | grep r8169
r8169 94208 0
mii 16384 1 r8169

Boot message:
dmesg | grep FAULT
[ 0.924246] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 0.924256] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.924262] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.924269] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 0.924275] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc6bf240 flags=0x0000]
[ 0.924281] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc6cb800 flags=0x0020]
[ 0.924287] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 0.924293] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc6bf140 flags=0x0020]
[ 0.924300] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 0.924306] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 1.001211] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 1.001358] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 1.001495] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 1.001632] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6cbe00 flags=0x0020]
[ 1.001768] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6bf150 flags=0x0020]
[ 1.001905] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 1.002070] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 1.002207] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 1.002344] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 1.002480] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844030 flags=0x0020]

Hardware:
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09)
Subsystem: ASUSTeK Computer Inc. P8 series motherboard [1043:8505]
Flags: bus master, fast devsel, latency 0, IRQ 47, NUMA node 0
I/O ports at d000 [size=256]
Memory at d2104000 (64-bit, prefetchable) [size=4K]
Memory at d2100000 (64-bit, prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169

The hardware is enabled and used:
[ 3.498647] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 3.498657] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 3.499424] r8169 0000:02:00.0 eth0: RTL8168f/8111f at 0xffffbf1901ac1000, bc:ee:7b:5e:83:57, XID 08000880 IRQ 47
[ 3.499426] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 3.554658] r8169 0000:02:00.0 enp2s0: renamed from eth0

The current realtek driver on the realtek web page appears to be newer than the Linux kernel version:
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#92
This link shows driver version 6.025 versus the kernel message showing version 2.3LK-NAPI

This post suggests that this has been around for a while
https://www.linuxquestions.org/questions/slackware-14/amd-vi-event-logged-%5Bio_page_fault-ethernet-controller-4175615079/page2.html

Steps to reproduce:
update Arch
Reboot machine
The DMESG clip showing 'IO Page Fault' above message appears on the screen over and over until graphic login appears.
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 28 May 2023, 06:39 GMT
Reason for closing:  No response
Additional comments about closing:  Plus it's old and stale. If still an issue, please report upstream.
Comment by loqs (loqs) - Tuesday, 17 July 2018, 16:44 GMT
Is the issue also present on 4.17.7 / 4.18-rc5 ? Does the driver you linked from the realtek website resolve the issue?
What is upstream's http://vger.kernel.org/vger-lists.html#netdev response to the issue?
Comment by Keith (keithg) - Tuesday, 17 July 2018, 17:05 GMT
I have not been able to build this, yet, but the one poster in the thread claims it does fix his problem. I can try to build it tonight and see if it fixes it.

I looked at linus' kernel git and it shows the same driver (2.3LK-NAPI) that I have now and that the other poster from 4.4 kernel had.

I just browsed through the netdev list and this error does not seem to be mentioned. Should I subscribe and post the problem there? I have another partition with ubuntu 16.10 which uses an older kernel and it boots without issue. I never saw this before with Arch until I updated recently. I am running the -lts kernel.
Comment by loqs (loqs) - Tuesday, 17 July 2018, 17:12 GMT
What was the last kernel without the issue? I would test 4.17-6/4.17-7 and if that is still affected 4.18-rc5 before contacting the netdev mailing list.
Comment by Keith (keithg) - Saturday, 21 July 2018, 12:12 GMT
I will test older kernels to find the one that worked w/o error.

I did try to build the module in the Realtek link. The module builds, but is 19k versus 30k (compressed). When I try to load it, I get a flooded dmesg and no internet, so the driver in the link does not seem to work as-is. The dmesg errors I am getting are (I get tons of these with the module I built):

[36442.991942] amd_iommu_report_page_fault: 36 callbacks suppressed
[36442.991950] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff000 flags=0x0020]
[36442.991971] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff000 flags=0x0020]
[36442.991989] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff010 flags=0x0020]
[36442.992006] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff010 flags=0x0020]
[36442.992021] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff020 flags=0x0020]
[36442.992035] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff020 flags=0x0020]
[36442.992049] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff030 flags=0x0020]
[36442.992063] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff030 flags=0x0020]
[36442.992078] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff000 flags=0x0020]
[36442.992092] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000fffff000 flags=0x0020]
[36442.992105] amd_iommu_report_page_fault: 38 callbacks suppressed
[36442.992109] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff010 flags=0x0020]
[36442.992123] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff010 flags=0x0020]
[36442.992137] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff020 flags=0x0020]
[36442.992150] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff020 flags=0x0020]
[36442.992164] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff030 flags=0x0020]
[36442.992177] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff030 flags=0x0020]
[36443.391797] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff000 flags=0x0020]
[36443.391817] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff000 flags=0x0020]
[36443.391831] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff010 flags=0x0020]
[36443.391845] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000fffff030 flags=0x0020]
Comment by Keith (keithg) - Saturday, 21 July 2018, 16:42 GMT
I just tried linux-4.17.8-1 linux-lts-4.14.39-2 and linux-lts-4.14.52-1, and get same behavior as with the current linux-lts-4.14.56-1. It seems to work as I get a functional computer, but the fault I get with these kernels is this:

[ 0.846364] nvidia: loading out-of-tree module taints kernel.
[ 0.846371] nvidia: module license 'NVIDIA' taints kernel.
[ 0.846372] Disabling lock debugging due to kernel taint
[ 0.862541] nvidia-nvlink: Nvlink Core is being initialized, major device number 242
[ 0.862900] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 0.863017] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 396.24 Thu Apr 26 00:10:09 PDT 2018 (using threaded interrupts)
[ 0.865188] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 396.24 Wed Apr 25 23:54:18 PDT 2018
[ 0.872998] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 241
[ 0.873588] Linux agpgart interface v0.103
[ 0.882798] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 0.964564] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 0.964732] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.964896] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.965056] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 0.965213] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 0.965398] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 0.965555] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 0.965711] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 0.965872] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc6bf180 flags=0x0000]
[ 0.966048] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 0.966213] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.966367] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7c00 flags=0x0020]
[ 0.966524] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.966710] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7c40 flags=0x0020]
[ 0.966863] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7c80 flags=0x0020]
[ 0.967015] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 0.967170] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6bf0a0 flags=0x0020]
[ 0.967321] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7cc0 flags=0x0020]
[ 0.967480] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7cd0 flags=0x0020]
[ 0.967633] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 1.252934] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000c0000-0x000dffff window]
[ 1.253252] caller _nv001112rm+0xe3/0x1d0 [nvidia] mapping multiple BARs

To go any further back, I will need to downgrade nvidia as well.
Comment by Keith (keithg) - Saturday, 21 July 2018, 17:34 GMT
IN researching this, I ran across this module patch:
https://github.com/KastB/r8169
I built the patch and forced it to load on boot, but still get a similar error (some addresses are different):
~$ dmesg | grep r8169
[ 3.453082] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 3.453090] ASPM enabled in r8169
[ 3.453895] r8169 0000:02:00.0 eth0: RTL8168f/8111f at 0xffffb1fe01ac1000, bc:ee:7b:5e:83:57, XID 08000880 IRQ 47
[ 3.453896] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 3.573858] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 5.463069] r8169 0000:02:00.0 enp2s0: link down
[ 5.463116] r8169 0000:02:00.0 enp2s0: link down
[ 8.457047] r8169 0000:02:00.0 enp2s0: link up

~$ dmesg | grep AMD-Vi
[ 0.924712] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[ 0.924713] AMD-Vi: Interrupt remapping enabled
[ 0.924811] AMD-Vi: Lazy IO/TLB flushing enabled
[ 3.069052] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844000 flags=0x0020]
[ 3.069197] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc6bf180 flags=0x0000]
[ 3.069338] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc6c7000 flags=0x0020]
[ 3.069478] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 3.069618] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 3.069758] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 3.069897] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 3.070075] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 3.070222] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844030 flags=0x0020]
[ 3.070362] pci 0000:02:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 3.070503] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 3.070640] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844010 flags=0x0020]
[ 3.070778] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 3.070915] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 3.071052] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc844020 flags=0x0020]
[ 3.071218] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6bf080 flags=0x0020]
[ 3.071356] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6bf090 flags=0x0020]
[ 3.071501] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7640 flags=0x0020]
[ 3.071637] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7600 flags=0x0020]
[ 3.071774] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0010 address=0x00000000bc6c7040 flags=0x0020]
Comment by mattia (nTia89) - Monday, 28 February 2022, 16:41 GMT
I cannot reproduce the issue. Is it still valid for you?

Loading...