Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: mctp: usb: Fix In Transfer Parsing #1

Closed

Conversation

santoshpuranik
Copy link

Fixes the following:

  • Endian-ness of the MCTP USB binding header (DMTF ID)
  • Getting the binding header from the URB.

Tested:
Tested on a hardware that supports MCTP over USB.
MCTP Control commands work fine after fixes.

jk-ozlabs and others added 5 commits July 31, 2024 14:03
Upcoming changes will add both a USB host- and gadget driver for the
MCTP-over-USB protocol. Add a header that provides common definitions
across both of these: the packet header format and a few framing
definitions.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Add an implementation for DMTF DSP0283, which defines a MCTP-over-USB
transport. We're restricted to full speed mode, requiring 512-byte
transfers.

WIP. Still todo:

 - power management
 - skb/urb pre-allocation

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Add a USB function for gthe device side of DMTF DSP0283, for a
MCTP-over-USB transport.

WIP; needs more testing in error paths.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Add a configfs option for the USB gadget function: tx_batch_delay. When
non-zero, will wait delay milliseconds for further packets to be
transmitted, and potentially batch those packets into a single USB
transfer.

Intended for testing only; helps to excersise the host-side driver's
packet parsing.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Fixes the following:

* Endian-ness of the MCTP USB binding header (DMTF ID)
* Getting the binding header from the URB.

Tested:
Tested on a hardware that supports MCTP over USB.
MCTP Control commands work fine after fixes.

Signed-off-by: Santosh Puranik <santosh.puranik@gmail.com>
@jk-ozlabs jk-ozlabs force-pushed the dev/mctp-usb branch 2 times, most recently from f02c4b5 to c71b33b Compare September 26, 2024 04:37
@santoshpuranik
Copy link
Author

Closing, the new branch fixed most of the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants