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)
committerJoerg Roedel <jroedel@suse.de>
Thu, 25 Feb 2016 15:53:48 +0000 (16:53 +0100)
commit38e45d02ea9f194b89d6bf41e52ccafc8e2c2b47
treef14979d267c39aa2bd13b96651c06bc05839ac1e
parent81f70ba233d5f660e1ea5fe23260ee323af5d53a
iommu/amd: Fix boot warning when device 00:00.0 is not iommu covered

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.

Cc: stable@vger.kernel.org
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c