Page MenuHomeFreeBSD

x86/iommu: Reduce the number of queued invalidation interrupts
ClosedPublic

Authored by alc on Aug 6 2022, 7:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 12 2024, 6:50 AM
Unknown Object (File)
Jan 2 2024, 8:19 AM
Unknown Object (File)
Dec 31 2023, 10:14 PM
Unknown Object (File)
Dec 20 2023, 3:07 AM
Unknown Object (File)
Nov 22 2023, 5:40 PM
Unknown Object (File)
Nov 22 2023, 5:37 PM
Unknown Object (File)
Nov 22 2023, 3:51 PM
Unknown Object (File)
Nov 13 2023, 12:16 AM
Subscribers

Details

Summary

Restructure dmar_qi_task() so as to reduce the number of invalidation completion interrupts. Specifically, because processing completed invalidations in dmar_qi_task() can take some time, don't reenable completion interrupts until we have finished processing the completed invalidations a first time. Then, check a second time after reenabling completion interrupts, so that invalidations that completed just before interrupts were reenabled do not linger until a future invalidation raises an interrupt. Testing for completed invalidations is now cheap; no locking is required.

Test Plan
netperf -H lip3 -t TCP_MAERTS -i 20

before

irq25: dmar0:qi                 35094545     144718

after

irq25: dmar0:qi                 28855066      92485

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc requested review of this revision.Aug 6 2022, 7:36 AM
alc created this revision.
This revision is now accepted and ready to land.Aug 6 2022, 1:13 PM