mbox series

[RFC,0/2] usb/msd: Permit relaxed ordering of IN packets

Message ID 20241110034000.379463-1-npiggin@gmail.com (mailing list archive)
Headers show
Series usb/msd: Permit relaxed ordering of IN packets | expand

Message

Nicholas Piggin Nov. 10, 2024, 3:39 a.m. UTC
Hi,

This allows MSD Data-In and CSW packets before the CBW packet.

This is just for RFC for now, but it does work. Patch 2 has the main
description of the problem and solution.

I've not found a good way to split this into smaller pieces yet, but I
will try, also migration is currently broken, I'm not sure the best way
to test that. I would like to add a MSD qtest and hopefully the XHCI
transfer ring qtest could help with that, but it's still quite a big job
I think.

Thanks,
Nick

Nicholas Piggin (2):
  usb/msd: Add status to usb_msd_packet_complete() function
  usb/msd: Permit relaxed ordering of IN packets

 include/hw/usb/msd.h |  20 +-
 hw/usb/dev-storage.c | 512 ++++++++++++++++++++++++++++---------------
 2 files changed, 352 insertions(+), 180 deletions(-)