Page MenuHomeFreeBSD

agp: use iterators to speed up lookups
ClosedPublic

Authored by dougm on Apr 19 2025, 5:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 3:48 PM
Unknown Object (File)
Thu, Oct 16, 9:15 AM
Unknown Object (File)
Wed, Oct 15, 11:31 PM
Unknown Object (File)
Wed, Oct 15, 5:08 AM
Unknown Object (File)
Wed, Oct 8, 10:11 AM
Unknown Object (File)
Sep 11 2025, 6:53 AM
Unknown Object (File)
Aug 29 2025, 7:21 AM
Unknown Object (File)
Aug 9 2025, 4:45 AM
Subscribers

Details

Summary

agp_generic_bind_memory and agp_generic_unbind_memory do pctrie lookups for ranges of consecutive pages. Use iterators to improved the expected performance of those searches.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Apr 19 2025, 5:55 PM
dougm created this revision.
This revision is now accepted and ready to land.Apr 19 2025, 10:24 PM
This revision was automatically updated to reflect the committed changes.
alc added inline comments.
sys/dev/agp/agp.c
614

This reset is unnecessary. The object lock is held continuously to the next use of the iterator.