iommu/vt-d: Fixes for v5.18-rc4
Subsystems (2)
Lu Baolu
maintainercover iommu/vt-d: Fixes for v5.18-rc4
Hi Joerg,
One fix is queued for v5.18. It aims to fix:
- Handle PCI stop marker messages in IOMMU driver to meet the requirement of I/O page fault handling framework.
Please consider it for the iommu/fix branch.
Best regards,
Lu Baolu
Lu Baolu (1):
iommu/vt-d: Drop stop marker messages
drivers/iommu/intel/svm.c | 4 ++++ 1 file changed, 4 insertions(+)
Signature · 6 lines
2.25.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Lu Baolu
maintainerPATCH 1/1 iommu/vt-d: Drop stop marker messages
The page fault handling framework in the IOMMU core explicitly states that it doesn't handle PCI PASID Stop Marker and the IOMMU drivers must discard them before reporting faults. This handles Stop Marker messages in prq_event_thread() before reporting events to the core.
The VT-d driver explicitly drains the pending page requests when a CPU page table (represented by a mm struct) is unbound from a PASID according to the procedures defined in the VT-d spec. The Stop Marker messages do not need a response. Hence, it is safe to drop the Stop Marker messages silently if any of them is found in the page request queue.
--- drivers/iommu/intel/svm.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/iommu/intel/svm.c +4 -0
@@ -757,6 +757,10 @@ static irqreturn_t prq_event_thread(int irq, void *d) goto bad_req; } +/* Drop Stop Marker message. No need for a response. */ +if (unlikely (req->lpig && !req->rd_req && !req->wr_req)) + goto prq_advance; +if (!svm || svm->pasid != req->pasid) {/* * It can't go away, because the driver is not permitted
Signature · 6 lines
2.25.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 9 lines · Lu Baolu
Hi Joerg,
One fix is queued for v5.18. It aims to fix:
- Handle PCI stop marker messages in IOMMU driver to meet the requirement of I/O page fault handling framework.
Please consider it for the iommu/fix branch.
Quoted 8 lines
Best regards,
Lu BaoluLu Baolu (1):
iommu/vt-d: Drop stop marker messagesdrivers/iommu/intel/svm.c | 4 ++++ 1 file changed, 4 insertions(+)
Applied to iommu/fixes, thanks.
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu