]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Work around broken RMRR firmware entries
authorJoerg Roedel <jroedel@suse.de>
Mon, 22 Sep 2014 14:30:22 +0000 (16:30 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 2 Oct 2014 10:12:35 +0000 (12:12 +0200)
commit1c764d61e6f0da1c35488c6cbaa37b100b8dd375
tree609362f89702c8a2933a691df949378ca1c50974
parent402c79cbe3b8b313df8daab6aef76c12b311ff3d
iommu/vt-d: Work around broken RMRR firmware entries

The VT-d specification states that an RMRR entry in the DMAR
table needs to specify the full path to the device. This is
also how newer Linux kernels implement it.

Unfortunatly older drivers just match for the target device
and not the full path to the device, so that BIOS vendors
implement that behavior into their BIOSes to make them work
with older Linux kernels. But those RMRR entries break on
newer Linux kernels.

Work around this issue by adding a fall-back into the RMRR
matching code to match those old RMRR entries too.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c