android_kernel_google_msm/drivers/iommu
David Woodhouse b7d44ef53e iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints
commit d14053b3c714178525f22660e6aaf41263d00056 upstream.

The VT-d specification says that "Software must enable ATS on endpoint
devices behind a Root Port only if the Root Port is reported as
supporting ATS transactions."

We walk up the tree to find a Root Port, but for integrated devices we
don't find one — we get to the host bridge. In that case we *should*
allow ATS. Currently we don't, which means that we are incorrectly
failing to use ATS for the integrated graphics. Fix that.

We should never break out of this loop "naturally" with bus==NULL,
since we'll always find bridge==NULL in that case (and now return 1).

So remove the check for (!bridge) after the loop, since it can never
happen. If it did, it would be worthy of a BUG_ON(!bridge). But since
it'll oops anyway in that case, that'll do just as well.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
[lizf: Backported to 3.4:
 - adjust context
 - drop the last part of the changes of the patch]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-10-26 23:15:25 +08:00
..
amd_iommu.c iommu/amd: Don't clear DTE flags when modifying it 2016-04-27 18:55:28 +08:00
amd_iommu_init.c
amd_iommu_proto.h
amd_iommu_types.h iommu/amd: Don't clear DTE flags when modifying it 2016-04-27 18:55:28 +08:00
amd_iommu_v2.c
dmar.c iommu/vt-d: Disable translation if already enabled 2014-07-28 07:06:46 -07:00
intel-iommu.c iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints 2016-10-26 23:15:25 +08:00
intr_remapping.c
intr_remapping.h
iommu.c
iova.c
Kconfig
Makefile
msm_iommu.c
msm_iommu_dev.c
omap-iommu-debug.c
omap-iommu.c
omap-iovmm.c
tegra-gart.c
tegra-smmu.c