From 9ff8606e7ee40e32395d672f540c6f4072aeb24d Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Wed, 25 Aug 2021 23:27:37 +0200 Subject: [PATCH] lenovo/thinkpad/l14/amd: switch to soft iommu mode to prevent mmcblk kernel panic --- lenovo/thinkpad/l14/amd/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lenovo/thinkpad/l14/amd/default.nix b/lenovo/thinkpad/l14/amd/default.nix index bf475f73..d2803e2f 100644 --- a/lenovo/thinkpad/l14/amd/default.nix +++ b/lenovo/thinkpad/l14/amd/default.nix @@ -12,10 +12,13 @@ # 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. # - # BIOS version 1.13 claims to fix IOMMU issues, but we leave the - # IOMMU off to avoid a sad experience for those people that drew + # 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 # the short straw when they bought their laptop. - "iommu=off" + # + # Do not set iommu=off, because this will cause the SD-Card reader + # driver to kernel panic. + "iommu=soft" ]; # As of writing this, Linux 5.8 is the oldest kernel that is still