2020-10-07 15:13:52 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
|
|
|
../../../../common/cpu/amd
|
2021-08-25 17:23:35 -04:00
|
|
|
../../../../common/gpu/amd
|
2020-10-07 15:13:52 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.kernelParams = [
|
|
|
|
# With BIOS version 1.12 and the IOMMU enabled, the amdgpu driver
|
|
|
|
# either crashes or is not able to attach to the GPU depending on
|
|
|
|
# the kernel version. I've seen no issues with the IOMMU disabled.
|
2020-12-05 08:02:07 -05:00
|
|
|
#
|
2021-08-25 17:27:37 -04:00
|
|
|
# BIOS version 1.13 fixes the IOMMU issues, but we leave the IOMMU
|
|
|
|
# in software mode to avoid a sad experience for those people that drew
|
2020-12-05 08:02:07 -05:00
|
|
|
# the short straw when they bought their laptop.
|
2021-08-25 17:27:37 -04:00
|
|
|
#
|
|
|
|
# Do not set iommu=off, because this will cause the SD-Card reader
|
|
|
|
# driver to kernel panic.
|
|
|
|
"iommu=soft"
|
2020-10-07 15:13:52 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
# As of writing this, Linux 5.8 is the oldest kernel that is still
|
|
|
|
# supported and has decent Renoir support.
|
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_latest;
|
|
|
|
}
|