[PATCH v3 1/1] ufs: core: Expand MCQ queue slot to DeviceQueueDepth + 1

Peter Wang (王信友) peter.wang at mediatek.com
Thu Nov 2 19:19:12 PDT 2023


On Thu, 2023-11-02 at 13:24 +0800, naomi.chu at mediatek.com wrote:
> From: Naomi Chu <naomi.chu at mediatek.com>
> 
> The UFSHCI 4.0 specification mandates that there should always be at
> least one empty slot in each queue for distinguishing between full
> and
> empty states. Enlarge the `hwq->max_entries` to `DeviceQueueDepth +1`
> to allow UFSHCI 4.0 controllers to fully utilize MCQ queue slots.
> 
> 

Reviewed-by: Peter Wang <peter.wang at mediatek.com>


More information about the Linux-mediatek mailing list