android_kernel_samsung_sm8650/drivers/iommu/intel
Lu Baolu 1d421058c8 iommu/vt-d: Don't set then clear private data in prq_event_thread()
The VT-d specification (section 7.6) requires that the value in the
Private Data field of a Page Group Response Descriptor must match
the value in the Private Data field of the respective Page Request
Descriptor.

The private data field of a page group response descriptor is set then
immediately cleared in prq_event_thread(). This breaks the rule defined
by the VT-d specification. Fix it by moving clearing code up.

Fixes: 5b438f4ba3 ("iommu/vt-d: Support page request in scalable mode")
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210320024156.640798-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-04-07 10:09:54 +02:00
..
cap_audit.c iommu/vt-d: Move capability check code to cap_audit files 2021-02-04 14:42:00 +01:00
cap_audit.h iommu/vt-d: Move capability check code to cap_audit files 2021-02-04 14:42:00 +01:00
debugfs.c iommu/vt-d: Rename intel-pasid.h to pasid.h 2020-07-24 10:51:21 +02:00
dmar.c iommu/vt-d: Report more information about invalidation errors 2021-03-18 11:27:46 +01:00
iommu.c iommu/vt-d: Disable SVM when ATS/PRI/PASID are not enabled in the device 2021-03-18 11:23:52 +01:00
irq_remapping.c iommu/vt-d: Audit IOMMU Capabilities and add helper functions 2021-02-04 14:42:00 +01:00
Kconfig iommu/vt-d: Convert intel iommu driver to the iommu ops 2020-11-25 12:03:49 +00:00
Makefile iommu/vt-d: Audit IOMMU Capabilities and add helper functions 2021-02-04 14:42:00 +01:00
pasid.c iommu/vt-d: Fix lockdep splat in intel_pasid_get_entry() 2021-04-07 10:08:09 +02:00
pasid.h iommu/vt-d: Fix status code for Allocate/Free PASID command 2021-03-04 13:32:04 +01:00
svm.c iommu/vt-d: Don't set then clear private data in prq_event_thread() 2021-04-07 10:09:54 +02:00
trace.c