intel-iommu: Add Kconfig option to exclude iGPU by default
authorBen Hutchings <ben@decadent.org.uk>
Tue, 20 Aug 2019 23:32:16 +0000 (00:32 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
commit0f4e8baeed82e377abac6e7e5d9a85014e8db287
treed3c899072ea944d673ff381a3c42687730ae8cd6
parentdd20249d106f9ce3e0aad66ca4284c752ec1cb89
intel-iommu: Add Kconfig option to exclude iGPU by default

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.

Replace CONFIG_INTEL_IOMMU_DEFAULT_ON with a 3-way choice
corresponding to "on", "off", and "on,intgpu_off".

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/x86
Gbp-Pq: Name intel-iommu-add-kconfig-option-to-exclude-igpu-by-default.patch
drivers/iommu/Kconfig
drivers/iommu/intel-iommu.c