Skip to content
Commit 40686d87 authored by Jonathan Bell's avatar Jonathan Bell Committed by Dom Cobley
Browse files

usb: xhci: expand the scope of XHCI_VLI_SS_BULK_OUT_BUG



Further testing has revealed that any TRB with buffer length that is not
a multiple of wMaxPacket and not the last TRB in a TD can cause data
corruption.

Work around this by linearising any vulnerable Bulk OUT scatter-gather
URBs prior to URB submission. Normal XHCI TRB formation will split
buffers on 64K boundaries and align TRBs prior to a Link TRB to
wMaxPacket, so keep the residue TRB generation added with the first
iteration of the quirk which will guarantee the last TRB is the only TRB
with an odd buffer size.

Signed-off-by: default avatarJonathan Bell <jonathan@raspberrypi.com>
parent 3066be08
  • mirror @mirror

    mentioned in commit a086698a

    ·

    mentioned in commit a086698a

    Toggle commit list
  • mirror @mirror

    mentioned in commit 42e48fd866ca5f243b1e2725fb0675418bc560f0

    ·

    mentioned in commit 42e48fd866ca5f243b1e2725fb0675418bc560f0

    Toggle commit list
  • mirror @mirror

    mentioned in commit 3ed4dd4a43838444bf5ab91f28336fce62eb7373

    ·

    mentioned in commit 3ed4dd4a43838444bf5ab91f28336fce62eb7373

    Toggle commit list
  • mirror @mirror

    mentioned in commit be8510161eb334242c63c555b579d028f1137eff

    ·

    mentioned in commit be8510161eb334242c63c555b579d028f1137eff

    Toggle commit list
  • mirror @mirror

    mentioned in commit 2913affdfc213247355e262e8f917370974eab83

    ·

    mentioned in commit 2913affdfc213247355e262e8f917370974eab83

    Toggle commit list
  • mirror @mirror

    mentioned in commit ec9b592c1620791be786aaa28f3c9a3027fc963f

    ·

    mentioned in commit ec9b592c1620791be786aaa28f3c9a3027fc963f

    Toggle commit list
  • mirror @mirror

    mentioned in commit 647fb89ad6dedfb141d3d444b882c56f8b9021b8

    ·

    mentioned in commit 647fb89ad6dedfb141d3d444b882c56f8b9021b8

    Toggle commit list
  • mirror @mirror

    mentioned in commit fb246ba9

    ·

    mentioned in commit fb246ba9

    Toggle commit list
  • mirror @mirror

    mentioned in commit 9582d90b7ec08d8ee12d6b727778a3a141306d71

    ·

    mentioned in commit 9582d90b7ec08d8ee12d6b727778a3a141306d71

    Toggle commit list
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment