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
F172631738: D48348.id148879.diff
Sat, Sep 19, 8:19 PM
F172631273: D48348.id148842.diff
Sat, Sep 19, 8:14 PM
F172620148: D48348.diff
Sat, Sep 19, 6:08 PM
Unknown Object (File)
Tue, Sep 8, 1:10 PM
Unknown Object (File)
Sun, Aug 23, 3:45 PM
Unknown Object (File)
Aug 19 2026, 11:25 PM
Unknown Object (File)
Aug 12 2026, 5:49 PM
Unknown Object (File)
Aug 10 2026, 7:21 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.