]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Mark firmware tainted if RMRR fails sanity check
authorBarret Rhoden <brho@google.com>
Wed, 15 Jan 2020 03:03:56 +0000 (11:03 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 24 Jan 2020 14:32:15 +0000 (15:32 +0100)
commit66fa9102eeeb875261b267a2cfd96c142fb6b6f0
tree806cdb4721bf0a596af36af81b1138b5fa30938d
parent1cd1d2f761de3994f7b097ac9b1317544c953c72
iommu/vt-d: Mark firmware tainted if RMRR fails sanity check

RMRR entries describe memory regions that are DMA targets for devices
outside the kernel's control.

RMRR entries that fail the sanity check are pointing to regions of
memory that the firmware did not tell the kernel are reserved or
otherwise should not be used.

Instead of aborting DMAR processing, this commit marks the firmware
as tainted. These RMRRs will still be identity mapped, otherwise,
some devices, e.x. graphic devices, will not work during boot.

Signed-off-by: Barret Rhoden <brho@google.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Fixes: 636a2daab2b6d ("iommu/vt-d: Check VT-d RMRR region in BIOS is reported as reserved")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c