summaryrefslogtreecommitdiffstats
path: root/kernel/debug
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2015-10-15 09:28:06 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2015-10-15 09:28:56 +0100
commitd14053b3c714178525f22660e6aaf41263d00056 (patch)
tree5b6a313eea44e3f3278fc78b6641653225e9222f /kernel/debug
parent50d3fb562561fcf5b745e71945834735d7386a1f (diff)
downloadlinux-d14053b3c714178525f22660e6aaf41263d00056.tar.bz2
iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints
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. Cc: stable@vger.kernel.org Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions