Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #78146

Bug#1029263: realtek: stability problems with realtek gigabit ethernet on stable and rc kernels

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From vmxevilstar@gmail.com
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1029263: realtek: stability problems with realtek gigabit ethernet on stable and rc kernels
Date Mon, 30 Jan 2023 17:40:01 +0100
Message-ID <FTFmh-2efk-1@gated-at.bofh.it> (permalink)
References <FPZtf-1JSH-7@gated-at.bofh.it> <FPZtf-1JSH-7@gated-at.bofh.it>
X-Original-To 1029263@bugs.debian.org, Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Jan 30 16:33:10 2023
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.599
Reply-To vmxevilstar@gmail.com, 1029263@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1029263
X-Debian-Pr-Package src:linux
X-Debian-Pr-Keywords upstream
X-Debian-Pr-Source linux
X-Gm-Message-State AFqh2kpwClUVvzmV+r08E26DJ0lAylxOociJnzqjNI69lu+W2+mqtx2f 4guGQVjiTT9gIZJhu2ZtSA2/RkQo7IQ=
X-Google-SMTP-Source AMrXdXsdSSsx4y5/ULWkw4oyZj2np1gS+0TvVTf7q8MD75DR0sZSzybXHvWaUURwBb2jb3GcpTTdqA==
X-Received by 2002:a17:906:a051:b0:870:baa6:6762 with SMTP id bg17-20020a170906a05100b00870baa66762mr51296532ejb.14.1675096181141; Mon, 30 Jan 2023 08:29:41 -0800 (PST)
Content-Type multipart/alternative; boundary="=-19SOm2H94zWP0A0jSb13"
User-Agent Evolution 3.46.3-1
MIME-Version 1.0
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1757116
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 274
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 30 Jan 2023 17:29:39 +0100
X-Original-Message-ID <43e4a24b1bc15c3e2bc1dc77f225b005b32719d5.camel@gmail.com>
X-Original-References <167422053251.2306912.11997713014980348538.reportbug@ghost> <167422053251.2306912.11997713014980348538.reportbug@ghost>
Xref csiph.com linux.debian.bugs.dist:1135544 linux.debian.kernel:78146

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Dear Maintainers,

I am using this crude workaround daily and it seems to work (as per
upstream advice)

cat /etc/systemd/system/realtek-bug.service 
[Unit]
Description=Realtek Bugfix
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c '/usr/bin/echo 0 >
/sys/class/net/enp2s0/device/link/l1_1_aspm'
ExecStart=/usr/bin/sleep 1
ExecStart=/usr/bin/bash -c '/usr/bin/echo 0 >
/sys/class/net/enp2s0/device/link/l1_aspm'

[Install]
WantedBy=network.target

obviously each user has to find out the /sys path to his/her realtek
network device.


On Fri, 2023-01-20 at 14:15 +0100, xevilstar wrote:
> Package: linux-image-6.2.0-rc4
> Version: 6.2.0-rc4-2
> Severity: severe
> File: realtek
> X-Debbugs-Cc: vmxevilstar@gmail.com
> 
> Dear Mantainers,
> 
> I am having an issue with my ethernet card.
> It works when the system boots but after around a couple of hours it
> disconnects.
> I tried different ways to get it working without having to reboot but
> nothing else seemed to work.
> Even rebooting doesn't solve the problem since again, after a couple
> of hours, it stops working again.
> I have googled around and found that some people had this same
> problem on older kernels but no solution seemed to apply to this rc
> nor latest stable kernel versions.
> I am probably missing something here.
> The issue happened also with recent stable 6.1.7 and rc kernel
> versions.
> I am actually testing the latest 6.2-rc4 version.
> 
> Following are some data I think might be useful but if you feel I
> neglected to give enough informations and you need more please just
> ask me.
> 
> Here some informations about my system :
> uname -a
> Linux ghost 6.2.0-rc4 #2 SMP PREEMPT_DYNAMIC Tue Jan 17 13:35:46 CET
> 2023 x86_64 GNU/Linux
> 
> gcc --version
> gcc (Debian 12.2.0-14) 12.2.0
> Copyright (C) 2022 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 
> 
> /usr/src# lspci|grep -i net
> 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125
> 2.5GbE Controller (rev 05)
> 
> description: Ethernet interface
> product: RTL8125 2.5GbE Controller
> vendor: Realtek Semiconductor Co., Ltd.
> physical id: 0
> bus info: pci@0000:02:00.0
> logical name: enp2s0
> version: ff
> serial: b0:25:aa:49:a5:3a
> size: 1Gbit/s
> capacity: 1Gbit/s
> width: 32 bits
> clock: 66MHz
> capabilities: bus_master vga_palette cap_list ethernet physical tp
> mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
> configuration: autonegotiation=on broadcast=yes driver=r8169
> driverversion=6.2.0-rc4 duplex=full firmware=rtl8125b-2_0.0.2
> 07/13/20 latency=255 link=yes maxlatency=255 mingnt=255 multicast=yes
> port=twisted pair speed=1Gbit/s
> 
> 
> 
> lsmod|grep r8169
> r8169                 110592  0
> mdio_devres            16384  1 r8169
> libphy                200704  3 r8169,mdio_devres,realtek
> 
> the firmware version I am using is linux-firmware-20221214.tar.gz
> 
> 
> Here you can find what happens (dmesg -wT)
> [Fri Jan 20 11:04:32 2023] userif-3: sent link up event.
> 
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0:
> rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:19:41 2023] r8169 0000:02:00.0 enp2s0:
> rtl_mac_ocp_e00e_cond == 1 (loop: 10, delay: 1000).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0:
> rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:17 2023] r8169 0000:02:00.0 enp2s0: rtl_ephyar_cond
> == 1 (loop: 100, delay: 10).
> [Fri Jan 20 13:20:18 2023] r8169 0000:02:00.0 enp2s0:
> rtl_mac_ocp_e00e_cond == 1 (loop: 10, delay: 1000).
> 
> I would love to provide a patch of any kind but I am afraid I don't
> have enough programming skills.
> 
> Thanks in advance for your time.
> 
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (1,
> 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 6.2.0-rc4 (SMP w/16 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
> TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> -- no debconf information

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1029263: realtek: stability problems with realtek gigabit ethernet on stable and rc kernels vmxevilstar@gmail.com - 2023-01-30 17:40 +0100
  Bug#1029263: realtek: stability problems with realtek gigabit ethernet on stable and rc kernels Chris Hofstaedtler <zeha@debian.org> - 2023-06-26 12:10 +0200

csiph-web