From 1fc114ba42488d05b4cce19a5d039b9cc94304dd Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Tue, 3 Apr 2018 18:04:03 -0400 Subject: [PATCH] Librem13v2: Enable IOMMU and Pass-through mode By enabling Pass-through iommu, it fixes the GPU glitching issues we've had with IOMMU, and it also allows us to boot a target kernel without having to give it intel_iommu=igfx_off as argument. --- boards/librem13v2/librem13v2.config | 4 ++-- config/coreboot-librem13v2.config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/librem13v2/librem13v2.config b/boards/librem13v2/librem13v2.config index d95235ad..9cfea3d2 100644 --- a/boards/librem13v2/librem13v2.config +++ b/boards/librem13v2/librem13v2.config @@ -26,8 +26,8 @@ export CONFIG_TPM=y export CONFIG_BOOTSCRIPT=/bin/gui-init export CONFIG_BOOT_REQ_HASH=n export CONFIG_BOOT_REQ_ROLLBACK=n -export CONFIG_BOOT_KERNEL_ADD="intel_iommu=on intel_iommu=igfx_off" -export CONFIG_BOOT_KERNEL_REMOVE="quiet" +export CONFIG_BOOT_KERNEL_ADD="iommu=pt" +export CONFIG_BOOT_KERNEL_REMOVE="" export CONFIG_BOOT_DEV="/dev/sda1" export CONFIG_BOOT_GUI_MENU_NAME="Purism Librem 13v2 Heads Boot Menu" export CONFIG_USB_BOOT_DEV="/dev/sdb1" diff --git a/config/coreboot-librem13v2.config b/config/coreboot-librem13v2.config index 6c1fd446..d3c622a1 100644 --- a/config/coreboot-librem13v2.config +++ b/config/coreboot-librem13v2.config @@ -690,7 +690,7 @@ CONFIG_PAYLOAD_LINUX=y CONFIG_PAYLOAD_FILE="../../build/librem13v2/bzImage" CONFIG_PAYLOAD_OPTIONS="" # CONFIG_PXE is not set -CONFIG_LINUX_COMMAND_LINE="intel_iommu=igfx_off" +CONFIG_LINUX_COMMAND_LINE="intel_iommu=on iommu=pt" CONFIG_LINUX_INITRD="../../build/librem13v2/initrd.cpio.xz" # CONFIG_PAYLOAD_IS_FLAT_BINARY is not set