[GH-ISSUE #125] Compatibility report: Xiaomi laptop RTX 3060 Laptop GPU 6 GB (10de:2520) — unlocked, FP16 +70% / BF16 +72% / TF32 +69% #91

Closed
opened 2026-10-26 16:40:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Brucelaw0327 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/125

Result

Unlocked, and FP16/BF16/TF32 all got significantly faster. FP32 (control) unchanged. Reproduced and worked around the systemd-hook modules-load.d bug from #29 on the way; details below.

Card

Xiaomi laptop (subsystem 1d72:2037), AMD Ryzen 7 5800H, RTX 3060 Laptop GPU 6 GB (GA106M). The machine runs dGPU-wired: no iGPU function is visible on PCI, the internal display is driven by this card. Stock card, memory and VBIOS.

PCI IDs

0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)
        Subsystem: Xiaomi Device [1d72:2037]
0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1)

VBIOS version

94.06.1F.00.2D

Is the card modified?

Stock.

Distribution

CachyOS (rolling, ~2026-10).

Kernel

7.3.0-3-cachyos (clang/ThinLTO build)

NVIDIA driver

615.78.08 (nvidia-utils 615.78.08-2, proprietary)

Initramfs generator

mkinitcpio with the systemd hook, deployed via Limine (limine-mkinitcpio / limine-update)

gpu-unlock version and install method

af28cbb plus a one-line local patch adding 0x2520 to supported_ids (same approach as #53), committed to HEAD and built with makepkg from packaging/arch; installed gpu-unlock-dkms 1.0.0-1 + gpu-unlock-firmware 1.0.0-1. DKMS built cleanly for both installed kernels (7.3.0-3-cachyos and 6.18.55-2-cachyos-lts).

Kernel command line

quiet nowatchdog splash rw rootflags=subvol=/@ root=UUID=<redacted> gpu_unlock.targets=0000:01:00.0

Setup

  • Secure Boot disabled; module unsigned, loads fine.
  • Power limit 95 W default, 130 W max; the card sits at 86–88 °C under sustained GEMM with SW power-cap (0x4) and thermal (0x20) throttle reasons alternating, before and after the unlock.
  • Boot goes through Plymouth; the screen blanks for about a second during the unlock/FLR and comes back when nvidia-drm takes over, as documented.

Kernel log

gpu_unlock: loading out-of-tree module taints kernel.
gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel
gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0
gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=99328 type=0x3 last=0
gpu_unlock: ROM chain: pos=0x28200 data=0x5344504e bytes=22016 type=0xe0 last=0
gpu_unlock: ROM chain: pos=0x2d800 data=0x5344504e bytes=416256 type=0xe0 last=128
gpu_unlock: ROM expansion: base=0xfe00 ext=0x28200 adjust=0x18400
gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x18400
gpu_unlock: ROM ucode table: offset=0x9304e version=1 header=6 stride=6 entries=16
gpu_unlock: FWSEC descriptor: offset=0x44c34 ROM_bytes=1048576 header=0x4ac0301
gpu_unlock: FWSEC geometry: image_off=0x450e0 size=0xe900 imem=0xe100 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152
gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x17fe00000
gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64
gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384
pci 0000:01:00.0: gpu_unlock: unlocked

Note the ROM chain on this VBIOS differs from the G14 in #53 (an extra data=0x52494350 type=0x3 entry at 0xfe00, different expansion ROM offsets), but the BIT/ucode/FWSEC walk handles it fine.

Benchmark before and after

torch 2.14.1+cu130 cuBLAS, 8192³ dense GEMM, FP32 accumulation (allow_fp16/bf16_reduced_precision_reduction = False), 20 s warm-up, median of 5 samples × 20 iterations, two full runs per mode, best run reported. Power/thermals sampled throughout; both runs power- and thermal-limited as described above.

Input Before, TFLOPS After, TFLOPS Gain
FP16 24.71 41.93 +70%
BF16 22.87 39.26 +72%
TF32 10.96 18.53 +69%
FP32 (control) 7.19 7.18 unchanged

Same-shape observation as #53: after the unlock the card does more work per clock at the same power (SM clocks slightly lower at equal watts).

Suspend and resume

Not tested yet — will report back.

Anything else

The #29 modules-load.d bug also hits this machine — exact reproduction, with the PR #90 workaround applied

With the packaged drop-in at af28cbb, the first boot produced no gpu_unlock kernel messages at all (no taint line, no ROM/FWSEC lines) and the card stayed stock. Cause is exactly #29: this system's HOOKS contain systemd, so mkinitcpio's systemd hook copies MODULES verbatim into etc/modules-load.d/MODULES.conf inside the image, including the literal gpu_unlock? line; systemd-modules-load then fails with Failed to find module 'gpu_unlock?' and never inserts it, after which nvidia binds the card normally.

Workaround applied (per PR #90): replace every gpu_unlock? with gpu_unlock in /etc/mkinitcpio.conf.d/zz-gpu-unlock.conf, rebuild (mkinitcpio -P + limine-update). After that the image's modules-load list is:

gpu_unlock
nvidia
nvidia_modeset
nvidia_uvm
nvidia_drm

and the next boot unlocked normally (log above). Since zz-gpu-unlock.conf is a backup= file the local edit survives upgrades, but every CachyOS/Arch user with the systemd hook hits this on a fresh install of the package — worth merging #90 or equivalent.

Data point for the mobile-parts list

This is the second 10de:2520 report after #53 (and the third 2520-family data point counting the Windows UEFI port in #58), on a different board vendor (Xiaomi vs ASUS), different VBIOS, dGPU-wired display, and it unlocks and benches fine — +70% FP16 at a 130 W cap vs the G14's +45% at 80 W, consistent with power headroom being the limiter on laptops. Happy to see 0x2520 upstreamed if you want a PR with the one-line change.

Originally created by @Brucelaw0327 on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/125 ## Result Unlocked, and FP16/BF16/TF32 all got significantly faster. FP32 (control) unchanged. Reproduced and worked around the `systemd`-hook modules-load.d bug from #29 on the way; details below. ## Card Xiaomi laptop (subsystem `1d72:2037`), AMD Ryzen 7 5800H, RTX 3060 Laptop GPU 6 GB (GA106M). The machine runs dGPU-wired: no iGPU function is visible on PCI, the internal display is driven by this card. Stock card, memory and VBIOS. ## PCI IDs ```text 0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1) Subsystem: Xiaomi Device [1d72:2037] 0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1) ``` ## VBIOS version `94.06.1F.00.2D` ## Is the card modified? Stock. ## Distribution CachyOS (rolling, ~2026-10). ## Kernel 7.3.0-3-cachyos (clang/ThinLTO build) ## NVIDIA driver 615.78.08 (nvidia-utils 615.78.08-2, proprietary) ## Initramfs generator mkinitcpio with the `systemd` hook, deployed via Limine (`limine-mkinitcpio` / `limine-update`) ## gpu-unlock version and install method af28cbb plus a one-line local patch adding `0x2520` to `supported_ids` (same approach as #53), committed to HEAD and built with `makepkg` from `packaging/arch`; installed `gpu-unlock-dkms` 1.0.0-1 + `gpu-unlock-firmware` 1.0.0-1. DKMS built cleanly for both installed kernels (7.3.0-3-cachyos and 6.18.55-2-cachyos-lts). ## Kernel command line ```text quiet nowatchdog splash rw rootflags=subvol=/@ root=UUID=<redacted> gpu_unlock.targets=0000:01:00.0 ``` ## Setup - Secure Boot disabled; module unsigned, loads fine. - Power limit 95 W default, 130 W max; the card sits at 86–88 °C under sustained GEMM with SW power-cap (0x4) and thermal (0x20) throttle reasons alternating, before and after the unlock. - Boot goes through Plymouth; the screen blanks for about a second during the unlock/FLR and comes back when nvidia-drm takes over, as documented. ## Kernel log ```text gpu_unlock: loading out-of-tree module taints kernel. gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0 gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=99328 type=0x3 last=0 gpu_unlock: ROM chain: pos=0x28200 data=0x5344504e bytes=22016 type=0xe0 last=0 gpu_unlock: ROM chain: pos=0x2d800 data=0x5344504e bytes=416256 type=0xe0 last=128 gpu_unlock: ROM expansion: base=0xfe00 ext=0x28200 adjust=0x18400 gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x18400 gpu_unlock: ROM ucode table: offset=0x9304e version=1 header=6 stride=6 entries=16 gpu_unlock: FWSEC descriptor: offset=0x44c34 ROM_bytes=1048576 header=0x4ac0301 gpu_unlock: FWSEC geometry: image_off=0x450e0 size=0xe900 imem=0xe100 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152 gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x17fe00000 gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64 gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384 pci 0000:01:00.0: gpu_unlock: unlocked ``` Note the ROM chain on this VBIOS differs from the G14 in #53 (an extra `data=0x52494350 type=0x3` entry at `0xfe00`, different expansion ROM offsets), but the BIT/ucode/FWSEC walk handles it fine. ## Benchmark before and after torch 2.14.1+cu130 cuBLAS, 8192³ dense GEMM, FP32 accumulation (`allow_fp16/bf16_reduced_precision_reduction = False`), 20 s warm-up, median of 5 samples × 20 iterations, two full runs per mode, best run reported. Power/thermals sampled throughout; both runs power- and thermal-limited as described above. | Input | Before, TFLOPS | After, TFLOPS | Gain | | ----- | -------------- | ------------- | ---- | | FP16 | 24.71 | 41.93 | **+70%** | | BF16 | 22.87 | 39.26 | **+72%** | | TF32 | 10.96 | 18.53 | **+69%** | | FP32 (control) | 7.19 | 7.18 | unchanged | Same-shape observation as #53: after the unlock the card does more work per clock at the same power (SM clocks slightly lower at equal watts). ## Suspend and resume Not tested yet — will report back. ## Anything else ### The #29 modules-load.d bug also hits this machine — exact reproduction, with the PR #90 workaround applied With the packaged drop-in at af28cbb, the first boot produced **no gpu_unlock kernel messages at all** (no taint line, no ROM/FWSEC lines) and the card stayed stock. Cause is exactly #29: this system's `HOOKS` contain `systemd`, so mkinitcpio's systemd hook copies `MODULES` verbatim into `etc/modules-load.d/MODULES.conf` inside the image, including the literal `gpu_unlock?` line; systemd-modules-load then fails with `Failed to find module 'gpu_unlock?'` and never inserts it, after which nvidia binds the card normally. Workaround applied (per PR #90): replace every `gpu_unlock?` with `gpu_unlock` in `/etc/mkinitcpio.conf.d/zz-gpu-unlock.conf`, rebuild (`mkinitcpio -P` + `limine-update`). After that the image's modules-load list is: ```text gpu_unlock nvidia nvidia_modeset nvidia_uvm nvidia_drm ``` and the next boot unlocked normally (log above). Since `zz-gpu-unlock.conf` is a `backup=` file the local edit survives upgrades, but every CachyOS/Arch user with the `systemd` hook hits this on a fresh install of the package — worth merging #90 or equivalent. ### Data point for the mobile-parts list This is the second 10de:2520 report after #53 (and the third 2520-family data point counting the Windows UEFI port in #58), on a different board vendor (Xiaomi vs ASUS), different VBIOS, dGPU-wired display, and it unlocks and benches fine — +70% FP16 at a 130 W cap vs the G14's +45% at 80 W, consistent with power headroom being the limiter on laptops. Happy to see `0x2520` upstreamed if you want a PR with the one-line change.
bsakaguchi 2026-10-30 04:54:56 +07:00
Author
Owner

@Zagitta commented on GitHub (Oct 27, 2026):

Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the success-report label. If something stops working later, please open an unlock failure issue.

<!-- gh-comment-id:6454951244 --> @Zagitta commented on GitHub (Oct 27, 2026): Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the `success-report` label. If something stops working later, please open an unlock failure issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Zagitta/gpu-unlock#91
No description provided.