Page MenuHomeFreeBSD

bhyve: usb: fix XHCI_STREAMS_MAX and stream handling
AcceptedPublic

Authored by kevans on Fri, Sep 18, 1:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 13, 5:42 AM
Unknown Object (File)
Mon, Oct 12, 3:22 PM
Unknown Object (File)
Mon, Oct 12, 2:39 PM
Unknown Object (File)
Sun, Oct 11, 6:50 AM
Unknown Object (File)
Sat, Oct 10, 6:02 AM
Unknown Object (File)
Fri, Oct 9, 9:54 PM
Unknown Object (File)
Fri, Oct 9, 5:02 AM
Unknown Object (File)
Sat, Oct 3, 10:08 PM
Subscribers

Details

Reviewers
markj
bnovkov
Group Reviewers
bhyve
Summary

Our previous HCCPARAMS1 encoding was actually advertising 4 streams,
as it's expressed in power-of-2 terms. In ppci_xhci_init_ep, we'd
get it wrong by not really validating MAXPSTREAMS and treating it as
the number of streams rather than the exponent for a power-of-2. That
isn't great, but at worst we may over-allocate rather than access things
out-of-bounds.

Sponsored by: The FreeBSD Foundation (aokblast)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 77046
Build 73929: arc lint + arc unit