mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
041be2717b
When a domain is attached to a device, the required cache tags are
assigned to the domain so that the related caches can be flushed
whenever it is needed. The device TLB cache tag is created based
on whether the ats_enabled field of the device's iommu data is set.
This creates an ordered dependency between cache tag assignment and
ATS enabling.
The device TLB cache tag would not be created if device's ATS is
enabled after the cache tag assignment. This causes devices with PCI
ATS support to malfunction.
The ATS control is exclusively owned by the iommu driver. Hence, move
cache_tag_assign_domain() after PCI ATS enabling to make sure that the
device TLB cache tag is created for the domain.
Fixes:
|
||
---|---|---|
.. | ||
cache.c | ||
cap_audit.c | ||
cap_audit.h | ||
debugfs.c | ||
dmar.c | ||
iommu.c | ||
iommu.h | ||
irq_remapping.c | ||
Kconfig | ||
Makefile | ||
nested.c | ||
pasid.c | ||
pasid.h | ||
perf.c | ||
perf.h | ||
perfmon.c | ||
perfmon.h | ||
svm.c | ||
trace.c | ||
trace.h |