Low Nvidia performance with newer kernels

Hello everyone!

This is my first ever post on any forum, so please bear with any formatting errors.

I have installed fedora 41 on my Lenovo Legion 5i Pro (2022, gen 7) as a daily driver OS. It functioned well out-of-the-box in all scenarios so far, except gaming.

Output from ‘inxi -Farzy’:

(Note: I’m using the Nobara kernel here since, for some reason, the open nvidia driver fails to load on fedora’s kernel package. The issue persisted earlier on the fedora kernel.)

System:
  Kernel: 6.13.7-200.nobara.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 14.2.1 clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=(hd1,gpt3)/vmlinuz-6.13.7-200.nobara.fc41.x86_64
    root=UUID=301a0013-fcf1-4cf4-9b18-9fee9b3fe413 ro rootflags=subvol=root
    resume=UUID=e58e2e02-ecb9-4eae-a716-87ebcd673291 rhgb nouveau.modeset=0
    splash hibernate=nocompress nvidia_drm.modeset=1 nvidia_drm.fbdev=1
    ibt=off rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
    "acpi_osi=Windows 2022"
  Desktop: KDE Plasma v: 6.3.3 tk: Qt v: N/A info: frameworks v: 6.12.0
    wm: kwin_wayland vt: 2 dm: SDDM Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Laptop System: LENOVO product: 82RF v: Legion 5 Pro 16IAH7H
    serial: <superuser required> Chassis: type: 10 v: Legion 5 Pro 16IAH7H
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    part-nu: LENOVO_MT_82RF_BU_idea_FM_Legion 5 Pro 16IAH7H
    uuid: <superuser required> UEFI: LENOVO v: J2CN57WW date: 01/08/2024
Battery:
  ID-1: BAT0 charge: 62.1 Wh (77.0%) condition: 80.7/80.0 Wh (100.8%)
    volts: 16.3 min: 15.4 model: Sunwoda L21D4PC1 type: Li-poly serial: <filter>
    status: not charging cycles: 26
CPU:
  Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x436
  Topology: cpus: 1x dies: 1 clusters: 8 cores: 14 threads: 20 mt: 6 tpc: 2
    st: 8 smt: enabled cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32
    KiB, 8x64 KiB L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB
    desc: 1x24 MiB
  Speed (MHz): avg: 400 min/max: 400/4600:4700:3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400 14: 400
    15: 400 16: 400 17: 400 18: 400 19: 400 20: 400 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional;
    RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: Lenovo
    driver: i915 v: kernel alternate: xe arch: Xe process: Intel 10nm
    built: 2021-22+ ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 570.124.04 alternate: nouveau,nvidia_drm
    non-free: 550/565.xx+ status: current (as of 2025-01; EOL~2026-12-xx)
    arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16
    ports: active: none empty: DP-3, DP-4, HDMI-A-1, eDP-2 bus-ID: 01:00.0
    chip-ID: 10de:24dd class-ID: 0300
  Display: wayland server: Xwayland v: 24.1.6 compositor: kwin_wayland
    driver: X: loaded: modesetting,nvidia unloaded: nouveau
    alternate: fbdev,nv,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: California Institute of eDP-1-0x1612 built: 2021
    res: mode: 2560x1600 hz: 165 scale: 120% (1.2) to: 2133x1333 dpi: 188
    gamma: 1.2 size: 345x215mm (13.58x8.46") diag: 407mm (16") ratio: 16:10
    modes: 2560x1600
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: iris x11:
    drv: iris
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: intel mesa v: 25.0.1 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Iris Xe Graphics (ADL GT2)
    device-ID: 8086:46a6 memory: 15.17 GiB unified: yes display-ID: :0.0
  API: Vulkan v: 1.4.304 layers: 12 device: 0 type: integrated-gpu name: Intel
    Iris Xe Graphics (ADL GT2) driver: N/A device-ID: 8086:46a6
    surfaces: xcb,xlib,wayland device: 1 type: discrete-gpu name: NVIDIA
    GeForce RTX 3070 Laptop GPU driver: N/A device-ID: 10de:24dd
    surfaces: xcb,xlib,wayland device: 2 type: cpu name: llvmpipe (LLVM 19.1.7
    256 bits) driver: N/A device-ID: 10005:0000 surfaces: xcb,xlib,wayland
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs,snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
  Device-2: NVIDIA GA104 High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:228b class-ID: 0403
  API: ALSA v: k6.13.7-200.nobara.fc41.x86_64 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 34:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp52s0 state: down mac: <filter>
  Info: services: NetworkManager,wpa_supplicant
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:6 chip-ID: 8087:0033
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
    status: discoverable: no pairing: yes
Drives:
  Local Storage: total: 1.84 TiB used: 562.33 GiB (29.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVL21T0HCLR-00BL2
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: CL1QGXA7 temp: 37.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: SanDisk model: SC930 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: SN12362 temp: 43.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 897.73 GiB size: 897.73 GiB (100.00%)
    used: 561.91 GiB (62.6%) fs: btrfs dev: /dev/nvme1n1p5 maj-min: 259:12
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%)
    used: 350.4 MiB (36.0%) fs: ext4 dev: /dev/nvme1n1p3 maj-min: 259:10
  ID-3: /boot/efi raw-size: 800 MiB size: 256 MiB (32.00%)
    used: 80.8 MiB (31.5%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:9
  ID-4: /home raw-size: 897.73 GiB size: 897.73 GiB (100.00%)
    used: 561.91 GiB (62.6%) fs: btrfs dev: /dev/nvme1n1p5 maj-min: 259:12
Swap:
  Kernel: swappiness: 100 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 max-streams: 20
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 32 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme1n1p4 maj-min: 259:11
Sensors:
  System Temperatures: cpu: 41.2 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: dpkg pkgs: 0 pm: rpm pkgs: N/A note: see --rpm tools: dnf,yum
    pm: flatpak pkgs: 39
  No active dnf repos in: /etc/dnf/dnf.conf
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:gloriouseggroll:nobara-41.repo
    1: copr:copr.fedorainfracloud.org:gloriouseggroll:nobara-41 ~ https://download.copr.fedorainfracloud.org/results/gloriouseggroll/nobara-41/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.1.repo
    1: copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.1 ~ https://download.copr.fedorainfracloud.org/results/kwizart/kernel-longterm-6.1/fedora-$releasever-$basearch/
  No active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6.repo
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:mrduarte:LenovoLegionLinux.repo
    1: copr:copr.fedorainfracloud.org:mrduarte:LenovoLegionLinux ~ https://download.copr.fedorainfracloud.org/results/mrduarte/LenovoLegionLinux/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:phracek:PyCharm.repo
    1: copr:copr.fedorainfracloud.org:phracek:PyCharm ~ https://download.copr.fedorainfracloud.org/results/phracek/PyCharm/fedora-$releasever-$basearch/
  No active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:rmnscnce:kernel-lqx.repo
  Active yum repos in: /etc/yum.repos.d/fedora-cisco-openh264.repo
    1: fedora-cisco-openh264 ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-$releasever&arch=$basearch
    2: fedora-cisco-openh264-debuginfo ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-debug-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/fedora-rawhide.repo
  No active yum repos in: /etc/yum.repos.d/fedora-updates-testing.repo
  No active yum repos in: /etc/yum.repos.d/fedora-updates.repo
  No active yum repos in: /etc/yum.repos.d/fedora.repo
  Active yum repos in: /etc/yum.repos.d/google-chrome.repo
    1: google-chrome ~ https://dl.google.com/linux/chrome/rpm/stable/x86_64
  Active yum repos in: /etc/yum.repos.d/hardware:razer.repo
    1: hardware_razer ~ https://download.opensuse.org/repositories/hardware:/razer/Fedora_$releasever/
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo
    1: rpmfusion-nonfree-nvidia-driver ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-steam.repo
    1: rpmfusion-nonfree-steam ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-tainted.repo
    1: rpmfusion-nonfree-tainted ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-tainted-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
    1: rpmfusion-nonfree-updates ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree.repo
    1: rpmfusion-nonfree ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-$releasever&arch=$basearch
Info:
  Memory: total: 32 GiB note: est. available: 31.07 GiB used: 2.9 GiB (9.3%)
  Processes: 446 Power: uptime: 1m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.41 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 256 target: graphical (5) default: graphical
    tool: systemctl
  Compilers: gcc: 14.2.1 Shell: Bash v: 5.2.32 running-in: yakuake
    inxi: 3.3.37

On the latest kernel packages from fedora, there is a massive dip in performance in games, with Palworld sitting at ~50fps at High-Epic settings with DLSS Quality, where with kernel 6.1 it sits at ~72fps. Even vkcube does not lock to 165fps. Note also the strangely high power consumption.

Screenshot from 6.13:

Screenshot from 6.1:

Checking journalctl logs, I find some messages from pnp regarding io overlaps with my nvidia gpu that I don’t see with kernel 6.1:

There seem to be no other discussions that I am able to find, and anything regarding the pnp overlaps seem to give me inactive threads or old patches from 2008. As things are right now, I make do with kernel 6.1, at the expense of S3 sleep, the Xe iGPU driver, and generally any new driver optimisations.

I’d appreciate any help.

1 Like

Here are the pnp messages in the journalctl output for kernel 6.13:

Mar 16 15:40:58 fedora kernel: pnp: PnP ACPI init
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x002e-0x002f] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x004e-0x004f] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x0061] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x0063] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x0065] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x0067] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: pnp 00:00: disabling [io  0x0070] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 16 15:40:58 fedora kernel: system 00:00: [io  0x0680-0x069f] has been reserved
Mar 16 15:40:58 fedora kernel: system 00:00: [io  0x164e-0x164f] has been reserved
Mar 16 15:40:58 fedora kernel: system 00:01: [io  0x1854-0x1857] has been reserved
Mar 16 15:40:58 fedora kernel: pnp 00:03: disabling [mem 0xc0000000-0xcfffffff] because it overlaps 0000:00:02.0 BAR 9 [mem 0x00000000-0xdfffffff 64bit pref]
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfedc0000-0xfedc7fff] has been reserved
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfeda0000-0xfeda0fff] has been reserved
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfeda1000-0xfeda1fff] has been reserved
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfed20000-0xfed7ffff] could not be reserved
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfed90000-0xfed93fff] could not be reserved
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfed45000-0xfed8ffff] could not be reserved
Mar 16 15:40:58 fedora kernel: system 00:03: [mem 0xfee00000-0xfeefffff] has been reserved
Mar 16 15:40:58 fedora kernel: system 00:04: [io  0x2000-0x20fe] has been reserved
Mar 16 15:40:58 fedora kernel: pnp: PnP ACPI: found 6 devices
0000:01:00.0 -> nvidia dGPU
0000:00:02.0 -> intel iGPU
system 00:03: -> ??? I have no idea what this is

Another thing. This had also happened to me on my previous laptop running Manjaro after a kernel update.

Full 6.13 dmesg log here: Pastebin

I cannot attempt to troubleshoot this.
A non-fedora kernel makes it impossible to compare with a system using a fedora kernel.

The nobara kernel has some changes directly within the kernel that makes it different, and other supporting libraries and drivers are modified as well.

You should run either a fully nobara system and get support from their areas of expertise or a fully fedora system and get support here. A hybrid system is very difficult for anyone to troubleshoot and support.

Okay, I have removed the nobara kernel and am now back on the official fedora kernel, but the messages still persist.

Mar 17 10:24:08 fedora kernel: pnp: PnP ACPI init
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x002e-0x002f] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x004e-0x004f] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x0061] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x0063] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x0065] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x0067] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: pnp 00:00: disabling [io  0x0070] because it overlaps 0000:01:00.0 BAR 5 [io  0x0000-0x007f]
Mar 17 10:24:08 fedora kernel: system 00:00: [io  0x0680-0x069f] has been reserved
Mar 17 10:24:08 fedora kernel: system 00:00: [io  0x164e-0x164f] has been reserved
Mar 17 10:24:08 fedora kernel: system 00:01: [io  0x1854-0x1857] has been reserved
Mar 17 10:24:08 fedora kernel: pnp 00:03: disabling [mem 0xc0000000-0xcfffffff] because it overlaps 0000:00:02.0 BAR 9 [mem 0x00000000-0xdfffffff 64bit pref]
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfedc0000-0xfedc7fff] has been reserved
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfeda0000-0xfeda0fff] has been reserved
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfeda1000-0xfeda1fff] has been reserved
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfed20000-0xfed7ffff] could not be reserved
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfed90000-0xfed93fff] could not be reserved
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfed45000-0xfed8ffff] could not be reserved
Mar 17 10:24:08 fedora kernel: system 00:03: [mem 0xfee00000-0xfeefffff] has been reserved
Mar 17 10:24:08 fedora kernel: system 00:04: [io  0x2000-0x20fe] has been reserved
Mar 17 10:24:08 fedora kernel: pnp: PnP ACPI: found 6 devices
System:
  Kernel: 6.13.6-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=(hd1,gpt3)/vmlinuz-6.13.6-200.fc41.x86_64
    root=UUID=301a0013-fcf1-4cf4-9b18-9fee9b3fe413 ro rootflags=subvol=root
    resume=UUID=e58e2e02-ecb9-4eae-a716-87ebcd673291 rhgb nouveau.modeset=0
    splash hibernate=nocompress nvidia_drm.modeset=1 nvidia_drm.fbdev=1
    ibt=off rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
    "acpi_osi=Windows 2022"
  Desktop: KDE Plasma v: 6.3.3 tk: Qt v: N/A info: frameworks v: 6.12.0
    wm: kwin_wayland vt: 2 dm: SDDM Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Laptop System: LENOVO product: 82RF v: Legion 5 Pro 16IAH7H
    serial: <superuser required> Chassis: type: 10 v: Legion 5 Pro 16IAH7H
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    part-nu: LENOVO_MT_82RF_BU_idea_FM_Legion 5 Pro 16IAH7H
    uuid: <superuser required> UEFI: LENOVO v: J2CN57WW date: 01/08/2024
Battery:
  ID-1: BAT0 charge: 62.1 Wh (77.0%) condition: 80.7/80.0 Wh (100.8%)
    volts: 16.2 min: 15.4 model: Sunwoda L21D4PC1 type: Li-poly serial: <filter>
    status: not charging cycles: 26
CPU:
  Info: model: 12th Gen Intel Core i7-12700H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x436
  Topology: cpus: 1x dies: 1 clusters: 8 cores: 14 threads: 20 mt: 6 tpc: 2
    st: 8 smt: enabled cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32
    KiB, 8x64 KiB L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB
    desc: 1x24 MiB
  Speed (MHz): avg: 400 min/max: 400/4600:4700:3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400 14: 400
    15: 400 16: 400 17: 400 18: 400 19: 400 20: 400 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional;
    RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: Lenovo
    driver: i915 v: kernel alternate: xe arch: Xe process: Intel 10nm
    built: 2021-22+ ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 570.124.04 alternate: nouveau,nvidia_drm
    non-free: 550/565.xx+ status: current (as of 2025-01; EOL~2026-12-xx)
    arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16
    ports: active: none empty: DP-3, DP-4, HDMI-A-1, eDP-2 bus-ID: 01:00.0
    chip-ID: 10de:24dd class-ID: 0300
  Display: wayland server: Xwayland v: 24.1.6 compositor: kwin_wayland
    driver: X: loaded: modesetting,nvidia unloaded: nouveau
    alternate: fbdev,nv,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: California Institute of eDP-1-0x1612 built: 2021
    res: mode: 2560x1600 hz: 165 scale: 120% (1.2) to: 2133x1333 dpi: 188
    gamma: 1.2 size: 345x215mm (13.58x8.46") diag: 407mm (16") ratio: 16:10
    modes: 2560x1600
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: iris x11:
    drv: iris
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: intel mesa v: 25.0.1 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Iris Xe Graphics (ADL GT2)
    device-ID: 8086:46a6 memory: 15.17 GiB unified: yes display-ID: :0.0
  API: Vulkan v: 1.4.304 layers: 11 device: 0 type: integrated-gpu name: Intel
    Iris Xe Graphics (ADL GT2) driver: N/A device-ID: 8086:46a6
    surfaces: xcb,xlib,wayland device: 1 type: discrete-gpu name: NVIDIA
    GeForce RTX 3070 Laptop GPU driver: N/A device-ID: 10de:24dd
    surfaces: xcb,xlib,wayland device: 2 type: cpu name: llvmpipe (LLVM 19.1.7
    256 bits) driver: N/A device-ID: 10005:0000 surfaces: xcb,xlib,wayland
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs,snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0403
  Device-2: NVIDIA GA104 High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 8
    link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.1
    chip-ID: 10de:228b class-ID: 0403
  API: ALSA v: k6.13.6-200.fc41.x86_64 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 34:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp52s0 state: down mac: <filter>
  Info: services: NetworkManager,wpa_supplicant
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:6 chip-ID: 8087:0033
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
    status: discoverable: no pairing: no
Drives:
  Local Storage: total: 1.84 TiB used: 568.28 GiB (30.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: SanDisk model: SC930 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: SN12362 temp: 44.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: MZVL21T0HCLR-00BL2
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: CL1QGXA7 temp: 36.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 897.73 GiB size: 897.73 GiB (100.00%)
    used: 567.86 GiB (63.3%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:12
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%)
    used: 347 MiB (35.6%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:10
  ID-3: /boot/efi raw-size: 800 MiB size: 256 MiB (32.00%)
    used: 80.8 MiB (31.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:9
  ID-4: /home raw-size: 897.73 GiB size: 897.73 GiB (100.00%)
    used: 567.86 GiB (63.3%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:12
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    comp: lzo-rle avail: lzo,lz4,lz4hc,zstd,deflate,842 max-streams: 20
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 32 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p4 maj-min: 259:11
Sensors:
  System Temperatures: cpu: 61.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: pm: dpkg pkgs: 0 pm: rpm pkgs: N/A note: see --rpm tools: dnf,yum
    pm: flatpak pkgs: 40
  No active dnf repos in: /etc/dnf/dnf.conf
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:gloriouseggroll:nobara-41.repo
    1: copr:copr.fedorainfracloud.org:gloriouseggroll:nobara-41 ~ https://download.copr.fedorainfracloud.org/results/gloriouseggroll/nobara-41/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.1.repo
    1: copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.1 ~ https://download.copr.fedorainfracloud.org/results/kwizart/kernel-longterm-6.1/fedora-$releasever-$basearch/
  No active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:kwizart:kernel-longterm-6.6.repo
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:mrduarte:LenovoLegionLinux.repo
    1: copr:copr.fedorainfracloud.org:mrduarte:LenovoLegionLinux ~ https://download.copr.fedorainfracloud.org/results/mrduarte/LenovoLegionLinux/fedora-$releasever-$basearch/
  Active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:phracek:PyCharm.repo
    1: copr:copr.fedorainfracloud.org:phracek:PyCharm ~ https://download.copr.fedorainfracloud.org/results/phracek/PyCharm/fedora-$releasever-$basearch/
  No active yum repos in: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:rmnscnce:kernel-lqx.repo
  Active yum repos in: /etc/yum.repos.d/fedora-cisco-openh264.repo
    1: fedora-cisco-openh264 ~ https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/fedora-rawhide.repo
  No active yum repos in: /etc/yum.repos.d/fedora-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/fedora-updates.repo
    1: updates ~ https://mirrors.nobaraproject.org/fedora-updates
  Active yum repos in: /etc/yum.repos.d/fedora.repo
    1: fedora ~ https://mirrors.nobaraproject.org/fedora
  Active yum repos in: /etc/yum.repos.d/google-chrome.repo
    1: google-chrome ~ https://dl.google.com/linux/chrome/rpm/stable/x86_64
  Active yum repos in: /etc/yum.repos.d/hardware:razer.repo
    1: hardware_razer ~ https://download.opensuse.org/repositories/hardware:/razer/Fedora_$releasever/
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-nvidia-driver.repo
    1: rpmfusion-nonfree-nvidia-driver ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-nvidia-driver-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-steam.repo
    1: rpmfusion-nonfree-steam ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-steam-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-tainted.repo
    1: rpmfusion-nonfree-tainted ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-tainted-$releasever&arch=$basearch
  No active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates-testing.repo
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
    1: rpmfusion-nonfree-updates ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch
  Active yum repos in: /etc/yum.repos.d/rpmfusion-nonfree.repo
    1: rpmfusion-nonfree ~ https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-$releasever&arch=$basearch
Info:
  Memory: total: 32 GiB note: est. available: 31.06 GiB used: 3.57 GiB (11.5%)
  Processes: 448 Power: uptime: 1m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.41 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 256 target: graphical (5) default: graphical
    tool: systemctl
  Compilers: gcc: 14.2.1 Shell: Bash v: 5.2.32 running-in: yakuake
    inxi: 3.3.37

Nvidia-open module loads now after reinstalling the akmods-nvidia-open package.

1 Like

To clarify, the Nvidia drivers now load as expected on the fedora kernel, where they earlier hung the system for no discernible reason.

The performance issues detailed in the first post however, still remain.

How are you determining the nvidia GPU is not performing well.?
I do not see anything attached to the dGPU to receive output. It appears you are only using the iGPU for the built-in screen and the dGPU may not be used at all.

Using nvidia-smi could show the use of the nvidia gpu in an easy to read format, and would show the apps and usage of that GPU

$ nvidia-smi
Mon Mar 17 18:31:55 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.124.04             Driver Version: 570.124.04     CUDA Version: 12.8     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050        Off |   00000000:06:00.0  On |                  N/A |
| 30%   55C    P2             78W /  130W |    1279MiB /   8192MiB |     99%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            2876      G   /usr/bin/gnome-shell                    239MiB |
|    0   N/A  N/A            2979      G   ...c/gnome-remote-desktop-daemon          1MiB |
|    0   N/A  N/A            3001      G   /usr/bin/Xwayland                         3MiB |
|    0   N/A  N/A            3102    C+G   /usr/bin/ptyxis                          20MiB |
|    0   N/A  N/A          115578      G   ...ersion=20250313-050105.095000        123MiB |
|    0   N/A  N/A          271507      G   ...share/Steam/ubuntu12_32/steam          2MiB |
|    0   N/A  N/A          271881      G   ./steamwebhelper                         34MiB |
|    0   N/A  N/A          271917      G   .../share/Steam/logs/cef_log.txt         68MiB |
|    0   N/A  N/A          888114      C   ...64-pc-linux-gnu__BRP7-cuda102        642MiB |
+-----------------------------------------------------------------------------------------+

As you can see my nvidia gpu is 99% utilized

If your using rpmfusion nvidia you will need to remove nvidia_drm.modeset=1

This is an Optimus / Prime offload setup on a laptop, so there are no outputs connected to the dGPU unless I set the graphics mode in my BIOS to ‘discrete’, which keeps the GPU awake constantly and kills battery life.

Is there a known issue caused by this?

rpmfusion sets it internally, this was done because the fedora kernel devs perverted it’s use to disable simpledrm.
Their ugly hack isn’t required on nvidia 540+ driver if nvidia fbdev is used.
nvidia 570 driver enables fbdev as default, fbdev evicts simpledrm this is better than their hack to disable it.

2 Likes

Remove nvidia modeset, Got it. No need to remove the Nvidia fbdev parameter, right?

Nvidia enabled fbdev as default in 570+, there is no need to add it to the cmdline

Have you enabled rebar in the bios?, it should be enabled.

That option isn’t exposed to me, though ‘Region 1’ from ‘lspci -vv’ seems to suggest that it is:


01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 3833
        Physical Slot: 1
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 210
        IOMMU group: 16
        Region 0: Memory at 60000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at 4200000000 (64-bit, prefetchable) [size=8G]
        Region 3: Memory at 4100000000 (64-bit, prefetchable) [size=32M]
        Region 5: I/O ports at 5000 [size=128]
        Expansion ROM at 61000000 [virtual] [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

See MangoHud data in the screenshots on Post 1. This is a laptop RTX 3070. It shouldn’t be at 100% with ~104fps in vkcube. This issue doesn’t happen with kernel 6.1.131, where it is locked at 165fps with lower utilization (~21%) and lower power usage (~27W instead of ~49W).

I suspect some kind of bottleneck somewhere, and with the pnp overlap errors (which don’t happen with 6.1), I am inclined to believe that it is something to do with the memory and communication with the iGPU, though this is still speculation and I need confirmation from someone better versed in this stuff.

In case it helps, this has happened across multiple distros (Manjaro, Nobara Live image, fedora) on two different lenovo laptops since about September 2024. The issue was first noticed after a kernel update on Manjaro on the old laptop, which prompted a distro-hop.

Previous laptop specs:
Lenovo Ideapad Gaming 3i 15IMH05
Intel Core i7 10th gen H-series
Nvidia GTX 1650 Ti (MUXless Optimus)

Have you considered using an older kernel, you would need to disable secureboot or self sign the kernel locally.

I have, and already do, use an older kernel. Specifically kernel-longterm 6.1. This issue persists even on 6.6.

I keep secure boot disabled anyway, so signing is a non-issue as things are now.

However, I want to be able to use newer kernel features like the Xe driver, NTSYNC and whatever new features that come up. I’m hoping to figure out at least the root cause of why I’m stuck on 6.1.

I also wanted to see if a patch to the kernel’s pnp driver can solve this, but learning how to do this is taking more time than I am able to spare, so I posted here to see if anyone else knows what’s going on :P.

@computersavvy @leigh123linux Is there anyone you know, or any particular forum you know of, that can help with this?

I have tried a few different solutions offered by another thread over at the Nvidia Linux forums, but unfortunately no dice yet.

Posting here in case someone finds it useful:

Kernel parameter: pci=realloc=off - Solves NVRM invalid PCI I/O regions. But I didn’t have this issue.