iommu/amd: Fix boot warning when device 00:00.0 is not iommu covered
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Tue, 23 Feb 2016 12:03:30 +0000 (13:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Mar 2016 23:34:51 +0000 (15:34 -0800)
commit44792d5c907c9afa03ac1f6a8ace7df4db500d85
tree27dee2c0e11b5725f5479c2a2b6c4018b9f5253c
parentad0f9dade9912224326fcac1e09ed4846b41f7c9
iommu/amd: Fix boot warning when device 00:00.0 is not iommu covered

commit 38e45d02ea9f194b89d6bf41e52ccafc8e2c2b47 upstream.

The setup code for the performance counters in the AMD IOMMU driver
tests whether the counters can be written. It tests to setup a counter
for device 00:00.0, which fails on systems where this particular device
is not covered by the IOMMU.

Fix this by not relying on device 00:00.0 but only on the IOMMU being
present.

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu_init.c