intel-iommu: Add option to exclude integrated GPU only
authorBen Hutchings <ben@decadent.org.uk>
Tue, 20 Aug 2019 23:05:30 +0000 (00:05 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 28 May 2021 08:31:38 +0000 (09:31 +0100)
commit2eebfe5115c7a6b2ba92ada553f03e052db0cfe0
tree9ca3e66554a411a38c0f74dcf7050884153728e9
parent7eb3c5b70661cabca4269a69feb1117263c800f6
intel-iommu: Add option to exclude integrated GPU only

Bug-Debian: https://bugs.debian.org/935270
Bug-Kali: https://bugs.kali.org/view.php?id=5644

There is still laptop firmware that touches the integrated GPU behind
the operating system's back, and doesn't say so in the RMRR table.
Enabling the IOMMU for all devices causes breakage, but turning it off
for all graphics devices seems like a major weakness.

Add an option, intel_iommu=igpu_off, to exclude only integrated GPUs
from remapping.  This is a narrower exclusion than igfx_off: it only
affects Intel devices on the root bus.  Devices attached through an
external port (Thunderbolt or ExpressCard) won't be on the root bus.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/x86
Gbp-Pq: Name intel-iommu-add-option-to-exclude-integrated-gpu-only.patch
Documentation/admin-guide/kernel-parameters.txt
drivers/iommu/intel/iommu.c