Page MenuHomeFreeBSD

pci_find_cap_method(): limit number of iterations for finding a capability
ClosedPublic

Authored by kib on Jan 6 2025, 11:32 PM.
Tags
None
Referenced Files
F151792612: D48348.id148879.diff
Fri, Apr 10, 5:23 PM
Unknown Object (File)
Sat, Apr 4, 5:15 PM
Unknown Object (File)
Fri, Apr 3, 10:32 PM
Unknown Object (File)
Feb 9 2026, 1:32 AM
Unknown Object (File)
Nov 26 2025, 10:09 PM
Unknown Object (File)
Nov 11 2025, 8:20 AM
Unknown Object (File)
Nov 9 2025, 4:19 AM
Unknown Object (File)
Nov 8 2025, 4:43 AM
Subscribers

Details

Summary
Powered down device might return 0xff of extended config registers
reads, causing loop.

PR:     283815

Diff Detail

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

Event Timeline

kib requested review of this revision.Jan 6 2025, 11:32 PM

Any chance 0x40 has a constant already defined for it?

This revision is now accepted and ready to land.Jan 6 2025, 11:50 PM
In D48348#1102529, @imp wrote:

Any chance 0x40 has a constant already defined for it?

I tried to explain it in the comment above, your suggestion is welcomed. It should be the size of the fixed PCI header of some type.