Will the r8152-kmp-default driver be ported for the Leap 15.5 6.3+ kernel?

I’ve been using Saurland’s updated r8152 driver with the 5.14 kernel while Leap was in Beta. Now that it’s released, I switched to the backported 6.3.5 drive to enable the amd_pstate_EPP cpu frequency driver. However, that forced me back to the old r8152 driver built into the kernel-default package. Will that change in the future?

Thanks,

Gene

That should have been 6.3.5 kernel.

Gene

Does the builtin driver not work?

I could build the r8152 for kernel:stable:backports.

I installed your driver when I purchased the USB to Ethernet adapter, so I’m testing the original driver now. So far, it seems to be OK, although I won’t be able to benchmark them for speed comparison. If you do build if for kernel:stable:backports, I’ll test both of them.

Thanks,

Gene

Its build for kernel:stable:backports

Thanks for the quick response! The builtin r8152 driver version is 1.12.13, and your version is 2.16.3. I booted each driver 3 times and ran two speed tests during each boot. Here are the download/upload results in Mbps:

Blockquote
Version 1.12.3: 224/24, 237/24; 905/24, 925/24; 270/24, 319/24
Version 2.16.3: 925/24, 923,24; 489/25, 588/25; 929/24, 929/24

Your driver looks faster and more consistent than the older version built into the kernel, so I will definitely continue using it as long as it’s available.

Thanks again,

Gene

I’m curious about one thing, though. I’ve installed that driver on Leap 15.4, 15.5, and Tumbleweed. The r8168 packages, r8168-kmp-default, r8168-blacklist-r8169, and r8168-ueficert are always installed as well. Is that because of a necessary dependency? None of the machines need the r8168 packages.

Thanks,

Gene

No, no necessary dependencies, you can delete and blacklist.
That driver will only support the r8168 chip:

 modinfo r8168
filename:       /lib/modules/5.14.21-150400.24.63-default/updates/r8168.ko.xz
version:        8.051.02-NAPI
license:        GPL
description:    RealTek RTL-8168 Gigabit Ethernet driver
author:         Realtek and the Linux r8168 crew <netdev@vger.kernel.org>
suserelease:    SLE15-SP4
srcversion:     88FD0D08921A2672A714AC0
alias:          pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias:          pci:v000010ECd00002600sv*sd*bc*sc*i*
alias:          pci:v000010ECd00002502sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008161sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*

Strangely, I get this message when attempting to delete the r8168 packages:

Blockquote
sudo zypper remove r8168*
Reading installed packages…
Resolving package dependencies…
3 Problems:
Problem: the installed r8152-kmp-default-2.16.3_k6.4.0_rc3_2.g0fce5ba-10.132.x86_64 requires ‘r8168-blacklist-r8169’, but this requirement cannot be provided
Problem: the installed r8152-kmp-default-2.16.3_k6.4.0_rc4_1.g2e9e157-10.135.x86_64 requires ‘r8168-blacklist-r8169’, but this requirement cannot be provided
Problem: the installed r8152-kmp-default-2.16.3_k6.4.0_rc4_2.gaaa531f-10.139.x86_64 requires ‘r8168-blacklist-r8169’, but this requirement cannot be provided

Am I missing something? The only way to remove them is to “break” the 8152 packages.

When I do that, I get these error messsages:

Blockquote
Continue? [y/n/v/…? shows all options] (y): y
depmod: ERROR: could not open directory /var/tmp/weak-modules2.GAQ2Vx/6.4.0-rc5-1.g2cab33e-default/usr/lib/modules/6.4.0-rc5-1.g2cab33e-default: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod exited with error 1
depmod: ERROR: could not open directory /var/tmp/weak-modules2.GAQ2Vx/6.4.0-rc5-1.g2cab33e-default/usr/lib/modules/6.4.0-rc5-1.g2cab33e-default: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod exited with error 1
depmod: ERROR: could not open directory /var/tmp/weak-modules2.GAQ2Vx/6.4.0-rc5-1.g2cab33e-default/usr/lib/modules/6.4.0-rc5-1.g2cab33e-default: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod exited with error 1
(1/6) Removing r8168-kmp-default-8.051.02_k6.4.0_rc5_1.g2cab33e-68.142.x86_64 …[done]
depmod: ERROR: could not open directory /var/tmp/weak-modules2.B1MeCU/6.4.0-rc4-2.gaaa531f-default/usr/lib/modules/6.4.0-rc4-2.gaaa531f-default: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod exited with error 1
depmod: ERROR: could not open directory /var/tmp/weak-modules2.B1MeCU/6.4.0-rc4-2.gaaa531f-default/usr/lib/modules/6.4.0-rc4-2.gaaa531f-default: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod exited with error 1

Thanks,
Gene

OOps my fault in building, I have deleted it…

default/usr/lib/modules/6.4.0-rc4-2.gaaa531f-default: No such file or directory

This is kernel:head, not kernel:stable:backports…

Post your Repolist:
zypper lr -d

And your running kernel:
uname -a

Sorry for that confusion, I first tried deleting it from my TW installation, so that’s the system I posted about. Now that TW is working, I’ll try the leap installation. This is for the system I posted about:

Blockquote
uname -r
6.4.0-rc5-1.g2cab33e-default
cat /etc/os-release
NAME=“openSUSE Tumbleweed”

Gene

Do not mix, we are here on Leap 15.5, not Tumbleweed with kernel:head…

So please post the list and the kernel version from Leap 15.5…

Sure. This may just be a timing issue, but there was still a dependency for r8168-ueficert when I removed the r8168 packages from this Leap box.

uname -r
6.3.5-lp154.4.g6db9c44-default

sudo zypper repos -d

| Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service

—±----------------------------±------------------±--------±----------±--------±---------±-------±---------------------------------------------------------------------------------------------------±-------
1 | Kernel_stable_Backport | Kernel builds f-> | Yes | (r ) Yes | Yes | 80 | rpm-md | /repositories/Kernel:/stable:/Backport/standard - openSUSE Download |
2 | games | openSUSE Games → | Yes | (r ) Yes | Yes | 99 | rpm-md | /repositories/games/15.5 - openSUSE Download |
3 | home_Sauerland | Sauerland’s Hom-> | No | ---- | ---- | 99 | rpm-md | /repositories/home:/Sauerland/openSUSE_Leap_15.5 - openSUSE Download |
4 | home_Sauerland_hardware | Hardware (Kerne-> | Yes | (r ) Yes | Yes | 90 | rpm-md | /repositories/home:/Sauerland:/hardware/Kernel_stable_Backport - openSUSE Download |
5 | packman | packman | Yes | (r ) Yes | Yes | 90 | rpm-md | Index of /pub/linux/misc/packman/suse/openSUSE_Leap_15.5/ |
6 | repo-backports-debug-update | Update reposito-> | No | ---- | ---- | 99 | rpm-md | /update/leap/15.5/backports_debug - openSUSE Download |
7 | repo-backports-update | Update reposito-> | Yes | (r ) Yes | Yes | 99 | rpm-md | /update/leap/15.5/backports - openSUSE Download |
8 | repo-debug | Debug Repository | No | ---- | ---- | 99 | rpm-md | /debug/distribution/leap/15.5/repo/oss - openSUSE Download |
9 | repo-debug-non-oss | Debug Repositor-> | No | ---- | ---- | 99 | rpm-md | /debug/distribution/leap/15.5/repo/non-oss - openSUSE Download |
10 | repo-debug-update | Update Reposito-> | No | ---- | ---- | 99 | rpm-md | /debug/update/leap/15.5/oss - openSUSE Download |
11 | repo-debug-update-non-oss | Update Reposito-> | No | ---- | ---- | 99 | NONE | /debug/update/leap/15.5/non-oss - openSUSE Download |
12 | repo-non-oss | Non-OSS Reposit-> | Yes | (r ) Yes | Yes | 99 | rpm-md | /distribution/leap/15.5/repo/non-oss - openSUSE Download |
13 | repo-openh264 | repo-openh264 | Yes | (r ) Yes | Yes | 99 | rpm-md | Index of /openh264/openSUSE_Leap |
14 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | /distribution/leap/15.5/repo/oss - openSUSE Download |
15 | repo-sle-debug-update | Update reposito-> | No | ---- | ---- | 99 | rpm-md | /debug/update/leap/15.5/sle - openSUSE Download |
16 | repo-sle-update | Update reposito-> | Yes | (r ) Yes | Yes | 99 | rpm-md | /update/leap/15.5/sle - openSUSE Download |
17 | repo-source | Source Repository | No | ---- | ---- | 99 | NONE | /source/distribution/leap/15.5/repo/oss - openSUSE Download |
18 | repo-update | Main Update Rep-> | Yes | (r ) Yes | Yes | 99 | rpm-md | /update/leap/15.5/oss - openSUSE Download |
19 | repo-update-non-oss | Update Reposito-> | Yes | (r ) Yes | Yes | 99 | rpm-md | /update/leap/15.5/non-oss - openSUSE Download |

Gene

Yes I have removed the dependency to r8168-blacklist-r8169…

So now, it should work without them.

Post:
zypper se -si r8152 r816
and as root:
lsmod | grep -Ei '815|816'

Everything looks OK, as far as I can see.

sudo zypper se -si r8152 r816
Loading repository data…
Reading installed packages…

S | Name | Type | Version | Arch | Repository
—±------------------±--------±------------------------------------------±-------±---------------------------------
i | r8152-kmp-default | package | 2.16.3_k6.3.5_lp154.4.g6db9c44-lp154.11.1 | x86_64 | (System Packages)
i | r8152-kmp-default | package | 2.16.3_k6.3.6_lp154.2.gf583ba4-lp154.12.1 | x86_64 | Hardware (Kernel_stable_Backport)
i | r8152-ueficert | package | 2.16.3-lp154.12.1 | x86_64 | Hardware (Kernel_stable_Backport)

sudo lsmod | grep -Ei ‘815|816’
r8153_ecm 16384 0
r8152 311296 1 r8153_ecm
cdc_ether 28672 1 r8153_ecm
usbnet 65536 2 r8153_ecm,cdc_ether
nf_tables 348160 380 nft_ct,nft_reject_inet,nft_fib_ipv6,nft_fib_ipv4,nft_chain_nat,nft_reject,nft_fib,nft_fib_inet
kvm 1314816 1 kvm_amd
usbcore 434176 11 xhci_hcd,usbnet,usbhid,r8153_ecm,usb_storage,uvcvideo,btusb,xhci_pci,cdc_ether,uas,r8152

Thanks for your help,

Gene

Ok, thanks.

So everything is working?
I can not test it, no such Hardware…

Everything is working great on Leap and TW.

Thanks again,
Gene