On Wed, 2023-10-25 at 11:10 -0700, Bart Van Assche wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 10/25/23 01:56, Chun-Hung Wu wrote: > > This quirk needs to be enabled if the host controller cannot > > distinguish queue full or empty. > > From the UFSHCI 4.0 specification: "When the head and tail doorbells > are > equal, the queue is empty. [ ... ] When the head and tail doorbells > are > not equal, the queue contains queue entries." > > How is it possible that a host controller cannot distinguish queue > full > or queue empty? Which (head - tail) values cause trouble? More > information is needed. > > Thanks, > > Bart. > >From UFSHCI 4.0 spec "When the head and tail doorbells are equal, the queue is empty. *Nothe that this definition means there will always be one empty queue entry" One of our platform does not keep one empty queue entry for CQ full case, that's why we need this patch to fix this corner case. Thanks, Chun-Hung