]> git.ipfire.org Git - people/ms/linux.git/commit
iommu/vt-d: fix bug in handling multiple RMRRs for the same PCI device
authorJiang Liu <jiang.liu@linux.intel.com>
Fri, 20 Jun 2014 07:08:06 +0000 (15:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:21:29 +0000 (11:21 -0700)
commit4577406902e10e66d35e1961623d718cad69c848
tree5f18cfec3c0fe5a22382a9c5a951c7d04ab3f4be
parenta17044baf18c4dc15ee74e6ebbbf0aa216442d88
iommu/vt-d: fix bug in handling multiple RMRRs for the same PCI device

commit 27e249501ca06a3010519c306206cc402b61b5ab upstream.

Function dmar_iommu_notify_scope_dev() makes a wrong assumption that
there's one RMRR for each PCI device at most, which causes DMA failure
on some HP platforms. So enhance dmar_iommu_notify_scope_dev() to
handle multiple RMRRs for the same PCI device.

Fixbug: https://bugzilla.novell.com/show_bug.cgi?id=879482

Reported-by: Tom Mingarelli <thomas.mingarelli@hp.com>
Tested-by: Linda Knippers <linda.knippers@hp.com>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/intel-iommu.c