2021-08-18 06:43:51 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
|
|
|
../../../../common/cpu/amd
|
2021-09-01 03:34:21 -04:00
|
|
|
../../../../common/gpu/amd
|
2021-08-18 06:43:51 -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.
|
|
|
|
#
|
2021-09-01 03:34:21 -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
|
2021-08-18 06:43:51 -04:00
|
|
|
# the short straw when they bought their laptop.
|
2021-09-01 03:34:21 -04:00
|
|
|
"iommu=soft"
|
2021-08-18 06:43:51 -04:00
|
|
|
];
|
|
|
|
}
|