2020-10-07 21:13:52 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
|
|
|
../../../../common/cpu/amd
|
2021-08-25 23:23:35 +02:00
|
|
|
../../../../common/gpu/amd
|
2020-10-07 21:13:52 +02: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 14:02:07 +01:00
|
|
|
#
|
2021-08-25 23:27:37 +02: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 14:02:07 +01:00
|
|
|
# the short straw when they bought their laptop.
|
2021-08-25 23:27:37 +02:00
|
|
|
#
|
|
|
|
# Do not set iommu=off, because this will cause the SD-Card reader
|
|
|
|
# driver to kernel panic.
|
|
|
|
"iommu=soft"
|
2020-10-07 21:13:52 +02:00
|
|
|
];
|
|
|
|
}
|