]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Enable ATS only if the device uses page aligned address.
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Tue, 19 Feb 2019 19:06:10 +0000 (11:06 -0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 26 Feb 2019 10:08:07 +0000 (11:08 +0100)
commit89ae594e1a74ebdd5f8aea46fe02fc574d6244be
treeb7e76c9f937ae6909ab9f3dbec118e5a79fdebc4
parent333e8f60c109b450b24102bcc3fed196fb23d244
iommu/vt-d: Enable ATS only if the device uses page aligned address.

As per Intel vt-d specification, Rev 3.0 (section 7.5.1.1, title "Page
Request Descriptor"), Intel IOMMU page request descriptor only uses
bits[63:12] of the page address. Hence Intel IOMMU driver would only
permit devices that advertise they would only send Page Aligned Requests
to participate in ATS service.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Keith Busch <keith.busch@intel.com>
Suggested-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c