RE: 3.13-rc1 regression: Scatter-gather list issues at SuperSpeed only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alan Stern
> There are only two reasonable ways to fix this: Add appropriate TRB
> fragment handling into xhci-hcd, or use bounce buffers for non-aligned
> requests.
> 
> In theory the block layer could be taught about the need for these
> bounce buffers, but that would be only a partial solution.  It would
> help for mass-storage transfers, but not for networking (which doesn't
> use the block layer).
> 
> An alternative is to work around this particular problem by identifying
> the code that submits the 3-sector SG element, and changing it to use
> an even number of sectors.  But obviously that doesn't solve the
> underlying issue.

Actually most of the block layer code could be taught to split requests
into multiple URBs. Or even resubmit bounced requests split in two.
Although splitting requests won't help the network code.

The dma setup code could allocate bounce buffers - but you really don't
want to be doing that.

> I think in the end there is no real choice but to bite the bullet and
> implement the TRB fragmentation rules.

Indeed :-)

	David



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux