]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86/iommu: Shrink the critical section in dmar_qi_task()
authorAlan Cox <alc@FreeBSD.org>
Mon, 18 Jul 2022 00:56:39 +0000 (19:56 -0500)
committerAlan Cox <alc@FreeBSD.org>
Tue, 19 Jul 2022 03:23:13 +0000 (22:23 -0500)
commit4eaaacc75535befdb9894cca4e0d8da376328fa4
tree9588e50806f39b47d7320c24cf6c91c0fc22a255
parent05350f09366363d3b5f0349bea6801593ecbddff
x86/iommu: Shrink the critical section in dmar_qi_task()

It is safe to test and clear the Invalidation Wait Descriptor
Complete flag before acquiring the DMAR lock in dmar_qi_task(),
rather than waiting until the lock is held.

Reviewed by: kib
MFC after: 2 weeks
sys/x86/iommu/intel_qi.c