This patch is a workaround for PR #238235.
If users want to disable isochronous transfer on ubt (like me), set loader tunable hw.ubt.usb_isoc_enable=0.
The default value of hw.ubt.usb_isoc_enable is 1 that works as same as before.
And the value of hw.ubt.usb_isoc_enable can be seen by sysctl.
Details
Details
- Reviewers
• hselasky - Commits
- rG7b976be508ce: ng_ubt(4): Introduce net.bluetooth.usb_isoc_enable loader tunable to disable
rG8fa952937bbe: ng_ubt(4): Add missing module dependency for _net_bluetooth sysctl node.
rG03f0393477db: ng_ubt(4): Make net.bluetooth.usb_isoc_enable writable.
rG67cbbf19595d: ng_ubt(4): Introduce net.bluetooth.usb_isoc_enable loader tunable to disable
hw.ubt.usb_isoc_enable=0 stops interrupt storms.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Thanks for the comments.
I updated my patch that includes following fixes.
- Do not change ubt_task() implementation, and check if sc_xfer is NULL in the ubt_xfer_start macro. So that make it easy to keep consistent with usbd_transfer_setup() in ubt_attach function.
- ubt sysctl variable flag changed to CTLFLAG_RDTUN.
- sysctl variable name changed to usb_isoc_enable.
I also updated the title of this review and summary context.
Comment Actions
- Revert usbd_transfer_start macro change. As a result, nothing changed from original.
- Use CTLFLAG_RW flag for sysctl node.
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c | ||
---|---|---|
160 | , 1, should just be , 0, . This field is only used for constants. --HPS |
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c | ||
---|---|---|
160 | OK. I'll change to , 0,. |