Page MenuHomeFreeBSD

ufshci: tell the controller how long the EHS is
ClosedPublic

Authored by jaeyoon on Thu, Sep 10, 8:22 AM.
Tags
None
Referenced Files
F174455073: D59557.diff
Sat, Oct 3, 9:06 AM
Unknown Object (File)
Fri, Oct 2, 6:16 PM
Unknown Object (File)
Wed, Sep 30, 8:18 PM
Unknown Object (File)
Sun, Sep 27, 9:08 AM
Unknown Object (File)
Fri, Sep 25, 9:37 AM
Unknown Object (File)
Fri, Sep 25, 8:42 AM
Unknown Object (File)
Thu, Sep 24, 6:30 PM
Unknown Object (File)
Thu, Sep 24, 2:55 PM
Subscribers
None

Details

Summary

The transfer request descriptor has a field for the total Extra Header
Segment length. The driver left it at zero. A request that carried an
EHS went out as the bare command UPIU, and the device answered a request
it had only seen part of.

Fill the field from the request UPIU header, which already carries the
same length. Every other path sets it to zero, so nothing else changes.
An EHS is the first thing that makes a request vary in size, so assert
that the request and the response still fit in the command descriptor.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable