Message ID | 323ba093adab68637b0b9346567084cc565f2a63.1668022680.git.quic_asutoshd@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp529594wru; Wed, 9 Nov 2022 11:50:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM4PcQKADfdUAfRrt6xcvEN5ZlWI5YDGkvuMQQkSsBeEzPdh65of8ZnI2/K7ibegDw5XUWh1 X-Received: by 2002:a05:6402:3213:b0:461:dec8:336d with SMTP id g19-20020a056402321300b00461dec8336dmr63333269eda.221.1668023448441; Wed, 09 Nov 2022 11:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668023448; cv=none; d=google.com; s=arc-20160816; b=V0/JZIfDZ1z/akQstAtVz4YcB2sVtVz7mEzJQS1UV4cqpaJJYILqFTeqXDkCwsu1gW r/JOXOpUZ6Oa/25D/OIzwcJrTxMhyNQIO8rOp5zImKoFpAGc1msULofGrAD4onndoCV7 ny7rNDkfZf0LWCB8xf4Mx54P6BrQOIWCvGdId/FK+5s622PmH466MmI+gimQAT3xwvBW DBZfLasmVwlahD51GPcymFcSUU7aTHHZIGAK9kiv1XLxrVK8J3HT/R7RBPGMknlzAyiU 60ios1bQAOPefEbtrms1J6gYuaVIACrfDFpKC/eMYwrdu8P3hPoCeYQSM8Fmx0GhJ5V7 6mpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OCGyfJrnW+lo0WU5X6ZfNKxeyZXm13t0CnstS8zo0cU=; b=os2EwNlrFkM1CorNIe6oI2KZZC98novwwAoNidqoJEbXdUDjjTxFlKBLByU3CpNNCG QkvAB9GdOlEHw7Jahb5+nYNW8TCYuA6Y5edQsqtcmM5yhtvYpVCmvrPD1/uESMXbnt23 P4qg/Jq3OeOXvMUl/QnUalxqEQ74NA9KlgaHHgq394TuNAJGcAdOqXTAA8N688eVCS96 WraA3xf7mGhFfDFI+TxYiCpxRzQmb1rNOlFjeUnEx0B+ATOU3XHKHPDTvcO4mgSkl98C E0WyxvdsoOBEXDlOIsgP2CetsFtCJntfLAvX3CYv9uVVPgGeryUYzM4sHKwaBdvAc0b+ kR7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Ge4dj+4W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg11-20020a170907a40b00b0078db5170767si17200774ejc.18.2022.11.09.11.50.25; Wed, 09 Nov 2022 11:50:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Ge4dj+4W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbiKITqt (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 14:46:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbiKITqb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 14:46:31 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F88C29CB9; Wed, 9 Nov 2022 11:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1668023156; x=1699559156; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=OCGyfJrnW+lo0WU5X6ZfNKxeyZXm13t0CnstS8zo0cU=; b=Ge4dj+4WxEu39fXoUwW1mHBAQ6A1RapOjtzy3uzXhcgXOU74Y6IyT5R1 FvD7r1jXNQt2A6vUEUeT9oNy8m5pn3eahZgwblZGja0ewBuiCSx/XG51v O2yhPBnRNwcm4n+3cHvV/bWT3LBC232N4H5CZRWFWlpO+YeyT72Vpgz2n 0=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 09 Nov 2022 11:45:55 -0800 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2022 11:45:55 -0800 Received: from asutoshd-linux1.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 9 Nov 2022 11:45:55 -0800 From: Asutosh Das <quic_asutoshd@quicinc.com> To: <quic_cang@quicinc.com>, <martin.petersen@oracle.com>, <linux-scsi@vger.kernel.org> CC: <quic_nguyenb@quicinc.com>, <quic_xiaosenh@quicinc.com>, <stanley.chu@mediatek.com>, <eddie.huang@mediatek.com>, <daejun7.park@samsung.com>, <bvanassche@acm.org>, <avri.altman@wdc.com>, <mani@kernel.org>, <beanhuo@micron.com>, Asutosh Das <quic_asutoshd@quicinc.com>, <linux-arm-msm@vger.kernel.org>, Alim Akhtar <alim.akhtar@samsung.com>, "James E.J. Bottomley" <jejb@linux.ibm.com>, Jinyoung Choi <j-young.choi@samsung.com>, open list <linux-kernel@vger.kernel.org> Subject: [PATCH v4 16/16] ufs: core: mcq: Enable Multi Circular Queue Date: Wed, 9 Nov 2022 11:41:41 -0800 Message-ID: <323ba093adab68637b0b9346567084cc565f2a63.1668022680.git.quic_asutoshd@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <cover.1668022680.git.quic_asutoshd@quicinc.com> References: <cover.1668022680.git.quic_asutoshd@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749049355416265968?= X-GMAIL-MSGID: =?utf-8?q?1749049355416265968?= |
Series |
[v4,01/16] ufs: core: Optimize duplicate code to read extended feature
|
|
Commit Message
Asutosh Das
Nov. 9, 2022, 7:41 p.m. UTC
Enable MCQ in the Host Controller. Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> --- drivers/ufs/core/ufshcd.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 9dcbbb5..b37414b 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8351,6 +8351,12 @@ static void ufshcd_config_mcq(struct ufs_hba *hba) hba->host->can_queue = hba->nutrs - UFSHCD_NUM_RESERVED; hba->reserved_slot = hba->nutrs - UFSHCD_NUM_RESERVED; + + /* Select MCQ mode */ + ufshcd_writel(hba, ufshcd_readl(hba, REG_UFS_MEM_CFG) | 0x1, + REG_UFS_MEM_CFG); + hba->mcq_enabled = true; + dev_info(hba->dev, "MCQ configured, nr_queues=%d, io_queues=%d, read_queue=%d, poll_queues=%d, queue_depth=%d\n", hba->nr_hw_queues, hba->nr_queues[HCTX_TYPE_DEFAULT], hba->nr_queues[HCTX_TYPE_READ], hba->nr_queues[HCTX_TYPE_POLL],