usb: gadget: f_ncm: support SuperSpeed Plus, improve on SuperSpeed
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 7 repliesIn review
- v23 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- Remove the separate SuperSpeed Plus descriptors and function which were just a copy of the SuperSpeed descriptors and function. Instead, just pass the SuperSpeed function to usb_assign_descriptors for both SuperSpeed and SuperSpeed Plus.
- Don't set bMaxBurst on the interrupt endpoint. This is incorrect/useless and forbidden by the spec.
- Make the speed constants unsigned literals.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | usb: gadget: f_ncm: fix ncm_bitrate for SuperSpeed and above.drivers/ | +4 | 4 replies | |
| 2/3 | usb: gadget: f_ncm: set SuperSpeed bulk descriptor bMaxBurst to 15drivers/ | +1 | 0 replies | |
| 3/3 | usb: gadget: f_ncm: allow using NCM in SuperSpeed Plus gadgets.drivers/ | +1 | 1 reply |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Maciej Żenczykowski |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] usb: gadget: f_ncm: support SuperSpeed Plus, improve on SuperSpeed
This patch series makes the NCM gadget usable at SuperSpeed Plus speeds (currently, it crashes with an oops). It also improves the behaviour on SuperSpeed and above by making simple performance improvements and by fixing the speeds that are reported to the host (currently 851 Mbps, which is much below actual throughput).
Tested on a gadget directly connected to a Linux laptop running 5.6.14 and cdc_ncm, using both 5 Gbps and 10 Gbps cables. iperf3 single TCP connection throughput (gadget to host) is > 2 Gbps on SuperSpeed and > 4 Gbps on SuperSpeed Plus.
Changes since v1:
- Set bMaxBurst to 15 on endpoints.
- Report more realistic speeds than 851 Mbps.
Changes since v2:
- Remove the separate SuperSpeed Plus descriptors and function which were just a copy of the SuperSpeed descriptors and function. Instead, just pass the SuperSpeed function to usb_assign_descriptors for both SuperSpeed and SuperSpeed Plus.
- Don't set bMaxBurst on the interrupt endpoint. This is incorrect/useless and forbidden by the spec.
- Make the speed constants unsigned literals.