Files
nixos-hardware/framework/16-inch/amd-ai-300-series/default.nix
T
r-vdp 9408ef97db common/gpu/amd: add hardware.amdgpu.dcDebugMask options
This allows to combine several such options to get the right
hex value without any repeated kernel params.
Before this, the framework AI 300 got both 0x10 and 0x410 on
the cmdline with the order depending on the module system eval
order.

This also allows users to re-enable PSR on framework machines.
2026-08-17 10:48:17 +02:00

31 lines
728 B
Nix

{
config,
lib,
pkgs,
...
}:
{
imports = [
../common
../common/amd.nix
];
# 6.14 is the minimum recommended kernel, 6.15 has many useful changes, too
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.15") (
lib.mkDefault pkgs.linuxPackages_latest
);
# Everything is updateable through fwupd
services.fwupd.enable = true;
# The following mitigations fix various graphics issues
# See https://gist.github.com/lbrame/f9034b1a9fe4fc2d2835c5542acb170a#user-content-quick-version-apply-the-mitigations-i-am-personally-using
hardware.amdgpu.dcDebugMask.disableReplay = lib.mkDefault true;
boot.kernelParams = [
"amdgpu.sg_display=0"
"amdgpu.abmlevel=0"
];
}