Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903883 - x11-drivers/nvidia-drivers-530.41.03 need use compress-xz for firmware files
Summary: x11-drivers/nvidia-drivers-530.41.03 need use compress-xz for firmware files
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-05 18:56 UTC by Andrea Postiglione
Modified: 2023-04-08 17:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Postiglione 2023-04-05 18:56:57 UTC
x11-drivers/nvidia-drivers-530.41.03:0/530::gentoo  USE="X driver static-libs tools wayland -dist-kernel -kernel-open -persistenced"
Comment 1 Ionen Wolkens gentoo-dev 2023-04-05 19:52:12 UTC
You mean the gsp firmwares? I'd rather not touch this without someone being able to confirm these are still able to load both with and without USE=kernel-open.

I "think" it should work but nvidia sometime do things differently due to licensing limitations and it may potentially not work even with CONFIG_FW_LOADER_COMPRESS_XZ (wouldn't hurt to try .zst too given linux-firmware also has USE=compress-zst).

After compression + reboot, "should" be able to confirm with:

$ nvidia-smi -q | grep GSP
    GSP Firmware Version                  : N/A
(I don't have a card recent enough to use gsp, so it shows N/A and I can't tell if it works mysql)

Note that linux-firmware uses the following commands to compress given I guess kernel decompressor may(?) be picky (e.g. with blocks generated by threads):
$ xz -T1 -C crc32
$ zstd -15 -T1 -C -q --rm

That aside, I'm also not super interested in the extra churn to support this (need to check kernel configs + compress manually) unless it's really wanted. The whole nvidia-drivers install is 1.2GB and compressing firmwares just saves ~21MB out of that (not really for someone tight on space either way).

-rw-r--r-- 1 root root 33391944 Apr  2 09:26 gsp_ga10x.bin
-rw-r--r-- 1 root root 29751120 Apr  2 09:26 gsp_tu10x.bin

-rw-r--r-- 1 root root 21497848 Apr  2 09:26 gsp_ga10x.bin.xz
-rw-r--r-- 1 root root 18743100 Apr  2 09:26 gsp_tu10x.bin.xz
Comment 2 Ionen Wolkens gentoo-dev 2023-04-05 20:01:10 UTC
(In reply to Ionen Wolkens from comment #1)
> You mean the gsp firmwares? I'd rather not touch this without someone being
> able to confirm these are still able to load both with and without
> USE=kernel-open.
And right, to confirm without kernel-open may need to add a file with `options nvidia NVreg_EnableGpuFirmware=1` in /etc/modules.d (or add to nvidia.conf). There's only a handful of cards that use it by default[1]

[1] https://download.nvidia.com/XFree86/Linux-x86_64/530.41.03/README/gsp.html