US 11,941,298 B2
Abort handling by host controller for storage device
Chih-Chieh Chou, Hsinchu (TW); Chia-Chun Wang, Hsinchu (TW); Liang-Yen Wang, Hsinchu (TW); Chin Chin Cheng, Hsinchu (TW); and Szu-Chi Liu, Hsinchu (TW)
Assigned to MediaTek Inc., Hsinchu (TW)
Filed by MediaTek Inc., Hsinchu (TW)
Filed on Apr. 19, 2022, as Appl. No. 17/724,347.
Claims priority of provisional application 63/186,854, filed on May 11, 2021.
Prior Publication US 2022/0365724 A1, Nov. 17, 2022
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0607 (2013.01); G06F 3/0658 (2013.01); G06F 3/0679 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method performed by a host system coupled to a storage device, comprising:
initiating an abort of a command, wherein the command has been placed into a submission queue (SQ) of the host system as an SQ entry; and
identifying at least one of a first outcome and a second outcome,
wherein, when the first outcome indicates that the host system has not received a command completion response from the storage device and the second outcome indicates that the SQ entry has been fetched from the SQ, the method further comprises:
sending an abort request from the host system to the storage device;
issuing a cleanup request to direct a host controller to reclaim host hardware resources allocated to the command; and
adding a completion queue (CQ) entry to a CQ and setting an overall command status (OCS) value of the CQ entry to indicate command abort regardless of status of the command in the storage device.