Page MenuHomeFreeBSD

ufshci: abort submission when payload DMA mapping fails
ClosedPublic

Authored by jaeyoon on Wed, Aug 5, 7:52 AM.
Tags
None
Referenced Files
F169514976: D58653.diff
Tue, Sep 1, 6:59 PM
Unknown Object (File)
Tue, Sep 1, 2:21 PM
Unknown Object (File)
Tue, Sep 1, 12:28 PM
Unknown Object (File)
Tue, Sep 1, 7:25 AM
Unknown Object (File)
Tue, Sep 1, 7:12 AM
Unknown Object (File)
Mon, Aug 31, 8:48 PM
Unknown Object (File)
Sat, Aug 29, 8:02 PM
Unknown Object (File)
Fri, Aug 28, 10:05 AM
Subscribers
None

Details

Summary

When bus_dmamap_load_mem() failed, ufshci_req_queue_prepare_prdt()
manually completed and released the tracker, but its caller kept going:
it built the UTRD, set the slot back to SCHEDULED, and rang the
doorbell for a tracker whose request had already been freed. Return the
mapping error and stop the submission so the released tracker is not
resurrected.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75372
Build 72255: arc lint + arc unit