Steam for Linux

Steam for Linux

tfk 5 Feb, 2022 @ 6:13am
Kernel 5.16 and NViDIA
Fedora's kernel just got updated to version 5.16. The NVIDIA driver as it is now isn't working on it. This is because kernel 5.16 doesn't define MIGRATE_PFN_LOCKED anymore.

There is a workaround to fix this problem. Source of this info can be found on reddit but is repeated in case the source post gets deleted. Credits go to a reddit user by the name of johanngambol.

https://www.reddit.com/r/Fedora/comments/skypq4/comment/hvom6ky/?utm_source=share&utm_medium=web2x&context=3

mkdir /tmp/nvidia-patch cp /usr/share/nvidia-kmod-495.46/nvidia-kmod-495.46-x86_64.tar.xz /tmp/nvidia-patch cd /tmp/nvidia-patch tar -xvf nvidia-kmod-495.46-x86_64.tar.xz

Edit the file in kernel/nvidia-uvm/uvm_migrate_pageable.c there should be two lines which you change:

dst[i] = migrate_pfn(page_to_pfn(dst_page)) | MIGRATE_PFN_LOCKED;

to

dst[i] = migrate_pfn(page_to_pfn(dst_page));

Once edited.

tar cfJ nvidia-kmod-495.46-x86_64.tar.xz kernel/ sudo mv nvidia-kmod-495.46-x86_64.tar.xz /usr/share/nvidia-kmod-495.46/ sudo akmods --force --kernel 5.16.5-200.fc35.x86_64

If it worked

/lib/modules/5.16.5-200.fc35.x86_64/extra/nvidia should have a bunch of nvidia-*.ko files.

I didn't use akmods --force when I did it, I manually did akmodsbuild and rpm -i the built rpm. But akmods --force should work.

End of copied snippet.

Other option is to load the previous 5.15 kernel.
Last edited by tfk; 5 Feb, 2022 @ 6:23am
< >
Showing 1-3 of 3 comments
ajgringo619 6 Feb, 2022 @ 2:02pm 
Is this problem only related to the v495 driver branch? I'm not seeing this with v470 (Arch-based w/5.16.5 kernel).
tfk 6 Feb, 2022 @ 3:12pm 
If it installs and the nvidia driver loads instead of only the nouveau driver then it is probably an issue with the Fedora RPM Fusion release.

The fact that we users can change the package without bricking things tells me that this is a packaging problem.
tfk 7 Feb, 2022 @ 9:06am 
Got another update today. Everything seems OK again.
< >
Showing 1-3 of 3 comments
Per page: 1530 50