kernel_optimize_test/drivers/iommu/intel
Tejas Upadhyay c6380d9d2d iommu/vt-d: Add RPLS to quirk list to skip TE disabling
[ Upstream commit 0a967f5bfd9134b89681cae58deb222e20840e76 ]

The VT-d spec requires (10.4.4 Global Command Register, TE
field) that:

Hardware implementations supporting DMA draining must drain
any in-flight DMA read/write requests queued within the
Root-Complex before completing the translation enable
command and reflecting the status of the command through
the TES field in the Global Status register.

Unfortunately, some integrated graphic devices fail to do
so after some kind of power state transition. As the
result, the system might stuck in iommu_disable_translati
on(), waiting for the completion of TE transition.

This adds RPLS to a quirk list for those devices and skips
TE disabling if the qurik hits.

Link: https://gitlab.freedesktop.org/drm/intel/-/issues/4898
Tested-by: Raviteja Goud Talla <ravitejax.goud.talla@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302043256.191529-1-tejaskumarx.surendrakumar.upadhyay@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:20:49 +02:00
..
debugfs.c
dmar.c iommu/vt-d: Fix sysfs leak in alloc_iommu() 2021-06-03 09:00:27 +02:00
iommu.c iommu/vt-d: Add RPLS to quirk list to skip TE disabling 2022-06-09 10:20:49 +02:00
irq_remapping.c iommu/vt-d: Fix potential memory leak in intel_setup_irq_remapping() 2022-02-08 18:30:37 +01:00
Kconfig
Makefile
pasid.c iommu/vt-d: Fix incomplete cache flush in intel_pasid_tear_down_entry() 2021-08-26 08:35:51 -04:00
pasid.h iommu/vt-d: Update the virtual command related registers 2021-09-18 13:40:14 +02:00
svm.c iommu/vt-d: Consolidate duplicate cache invaliation code 2021-08-26 08:35:50 -04:00
trace.c