]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Set context field after value initialized
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 1 Mar 2019 03:23:11 +0000 (11:23 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 1 Mar 2019 09:23:35 +0000 (10:23 +0100)
commitac203714e8ae3d6447a67e507d2d36180bd8a160
tree279b488d3ea250a190bd7f643c21d9c8ef731ed1
parentc7c3d76cdd56057fc9a865199dc58626cdeec540
iommu/vt-d: Set context field after value initialized

Otherwise, the translation type field of a context entry for
a PCI device will always be 0. All translated DMA requests
will be blocked by IOMMU. As the result, the PCI devices with
PCI ATS (device IOTBL) support won't work as expected.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Suggested-by: Kevin Tian <kevin.tian@intel.com>
Fixes: 9a254bb486916 ("iommu/vt-d: Setup context and enable RID2PASID support")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c