Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit eacb139

Browse files
Asutosh Dasmartinkpetersen
authored andcommitted
scsi: ufs: core: mcq: Enable multi-circular queue
Enable MCQ in the Host Controller. Signed-off-by: Asutosh Das <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Stanley Chu <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ed97506 commit eacb139

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8455,6 +8455,12 @@ static void ufshcd_config_mcq(struct ufs_hba *hba)
84558455

84568456
hba->host->can_queue = hba->nutrs - UFSHCD_NUM_RESERVED;
84578457
hba->reserved_slot = hba->nutrs - UFSHCD_NUM_RESERVED;
8458+
8459+
/* Select MCQ mode */
8460+
ufshcd_writel(hba, ufshcd_readl(hba, REG_UFS_MEM_CFG) | 0x1,
8461+
REG_UFS_MEM_CFG);
8462+
hba->mcq_enabled = true;
8463+
84588464
dev_info(hba->dev, "MCQ configured, nr_queues=%d, io_queues=%d, read_queue=%d, poll_queues=%d, queue_depth=%d\n",
84598465
hba->nr_hw_queues, hba->nr_queues[HCTX_TYPE_DEFAULT],
84608466
hba->nr_queues[HCTX_TYPE_READ], hba->nr_queues[HCTX_TYPE_POLL],

0 commit comments

Comments
 (0)