| 12 Jan 2024 |
pedrohlc ⚡️ | For reference, he's my makeModulesClosure overlay:
final: prev: {
makeModulesClosure = args: (prev.makeModulesClosure args).overrideAttrs (prevAttrs: {
builder = final.runCommand "modules-closure.sh" { } ''
cat ${prevAttrs.builder} > $out
chmod +x $out
echo 'rm -rf "$out/lib/firmware/nvidia"' >> $out
echo 'mkdir -p "$out/lib/firmware/nvidia"' >> $out
echo 'cp --no-preserve=mode -r "$firmware/lib/firmware/nvidia/ga10"{2,7} "$out/lib/firmware/nvidia/"' >> $out
echo 'pushd "$out/lib/firmware/nvidia/ga107"' >> $out
echo 'rm -rf gsp.xz' >> $out
echo 'ln -s ../ga102/gsp ./gsp' >> $out
echo 'popd' >> $out
'';
});
}
| 14:25:40 |
pedrohlc ⚡️ | * In case someone wants to play with NVK+GSP:
- first you need Linux 6.7 with latest stable firmware and mesa-git;
- then you need to fix the symlink of your GPU in
linux-firwmare or makeModulesClosure (it's symlinking "gsp.xz" instead of "gsp", and needs to copy "nvidia" folder in the closure)
- since you're already touching the closure, remove all the other GPUs to save 60Mb in your initrd
- make sure to not enable
hardware.nvidia
boot.kernelParams = [ "nouveau.config=NvGspRm=1" "nouveau.debug=\"GSP=debug\"" ];
- Now, you should be able to see the firmware loading in dmesg;
- Downgrade DXVK by adding the 1.10.3 DLLs in the game's folder
And that's it right now, everything requiring Vulkan 1.2+ is a no-go
| 14:27:45 |
@atemu12:matrix.org | pedrohlc ⚡️: It'd be great to turn that into a wiki article | 15:13:38 |
@atemu12:matrix.org | Or, even better, turn it into a better integrated NixOS option to do that from the start | 15:14:19 |
@atemu12:matrix.org | People will want to use NVK probably rather soon | 15:14:34 |
@atemu12:matrix.org | * People will want to start using NVK probably rather soon | 15:14:40 |
@elvishjerricco:matrix.org | Atemu: probably need to wait for a mesa release before something like that can go into nixpkgs | 15:15:53 |
@atemu12:matrix.org | I don't see why we couldn't get the kernel module stuff figured out earlier? | 15:16:39 |
K900 | Is the linux-firmware thing a make-modules-closure bug or an upstream linux-firmware bug? | 15:16:44 |
K900 | Cause it's clearly a bug | 15:16:49 |
@atemu12:matrix.org | Also, can't nouveau (OGL) benefit from re-clocking too now? | 15:17:15 |
pedrohlc ⚡️ | In reply to @atemu12:matrix.org Also, can't nouveau (OGL) benefit from re-clocking too now? nouveau + those specific GPUs, yes | 15:18:08 |
pedrohlc ⚡️ | In reply to @k900:0upti.me Is the linux-firmware thing a make-modules-closure bug or an upstream linux-firmware bug? I didn't debug, just noted that our latest derivation generates that gsp.xz, and if you bump to latest commit there is none link at all | 15:18:53 |
K900 | The .xz should be fine | 15:19:10 |
K900 | The kernel knows how to handle those | 15:19:16 |
K900 | If the symlink isn't broken | 15:19:21 |
pedrohlc ⚡️ | In reply to @k900:0upti.me If the symlink isn't broken Either:
- The "gsp" folder should be xz-ed during the make of linux-firmware and, for some reason, it isn't
- During the link creation, the .xz suffix is being wrongly added
| 18:40:04 |
| 13 Jan 2024 |
simple-coder | Redacted or Malformed Event | 02:29:32 |
| nat ✩彡 changed their profile picture. | 20:14:32 |
| 14 Jan 2024 |
| Charles He removed their profile picture. | 02:56:07 |
| gaata changed their profile picture. | 20:16:54 |
| gaata changed their display name from gaata to Vash. | 20:17:25 |
| 15 Jan 2024 |
| Jacob changed their profile picture. | 06:47:06 |
| Jacob removed their profile picture. | 06:48:18 |
Charles ⚡️ | In reply to @charles:computer.surgery also, someday we'll have mesa 23.3.1 on nixos-unstable... looks like that day came | 08:44:25 |
Charles ⚡️ | well, 23.3.3 but close enough | 08:44:33 |
Charles ⚡️ | maybe we'll get a 33.3.3 in 10 years | 08:45:16 |
K900 | I wonder if 33.3.3 will have 4k120 HDMI lol | 08:47:27 |
Charles ⚡️ | lmao | 08:47:36 |
K900 | The year is 20xx, humanity is entirely controlled by the HDMI Forum | 08:48:26 |