]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 9 Mar 2016 18:15:09 +0000 (13:15 -0500)
commit91d212c02743084892b687fb5cf166fffc01d0f9
treece22a8a5ce94483f4012de2632e12ee63b265d21
parent715b09c999aeb1c6e48a1d10b93443d4cdbab01b
iommu/amd: Fix boot warning when device 00:00.0 is not iommu covered

[ Upstream commit 38e45d02ea9f194b89d6bf41e52ccafc8e2c2b47 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/iommu/amd_iommu_init.c