iommu/vt-d: Clear PPR bit to ensure we get more page request interrupts
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 15 Feb 2016 12:42:38 +0000 (12:42 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 15 Feb 2016 12:42:38 +0000 (12:42 +0000)
commit46924008273ed03bd11dbb32136e3da4cfe056e1
tree9d77cb792ac4ccf28aa687942d1c6f1adaf5dd67
parentfda3bec12d0979aae3f02ee645913d66fbc8a26e
iommu/vt-d: Clear PPR bit to ensure we get more page request interrupts

According to the VT-d specification we need to clear the PPR bit in
the Page Request Status register when handling page requests, or the
hardware won't generate any more interrupts.

This wasn't actually necessary on SKL/KBL (which may well be the
subject of a hardware erratum, although it's harmless enough). But
other implementations do appear to get it right, and we only ever get
one interrupt unless we clear the PPR bit.

Reported-by: CQ Tang <cq.tang@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@vger.kernel.org
drivers/iommu/intel-svm.c
include/linux/intel-iommu.h