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)
committerBen Hutchings <benh@debian.org>
Thu, 3 Oct 2024 21:58:46 +0000 (23:58 +0200)
commitcaec1268805c92d9dc6a582609cc4d7ab00f850b
treea10f60e979b9930b4aaf9e853656fdf0c5398b63
parent7826aa38da05fa2dff440beac7708fd2b50609ac
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