Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15333873rwb; Mon, 28 Nov 2022 10:19:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf537AMeMeeTt4icl/Ru3KzCZYX3+GUFqala0oXzsnFnfEz02L9Pod1Ws/hPCGYW89KkzpmR X-Received: by 2002:a17:902:bb98:b0:186:9fb9:1f8c with SMTP id m24-20020a170902bb9800b001869fb91f8cmr32735417pls.69.1669659551641; Mon, 28 Nov 2022 10:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669659551; cv=none; d=google.com; s=arc-20160816; b=fVqOJ+qzlVRqRqaxOZQfE0GvG7QcriwQv3pA0Qp81LwM927KZ4EQLSF1MPoI9erGQ3 5BaOPUYwDCwxC8giAq1iByGPFwK1g9KRSKi2RYp2KWVxoeNo+QEeNlkTkuYBW+uD7A0O 0lhY0mJ2kg4Wm+16nUU7gvRofRO/Q8iCQbcDqkaYDBEPgKdlNy7sIt3JEX7wWfgEdaBo XwqTnOHWd8wAmadRkjTQeLOFmBMDd5RNtptw6i6KWQm80uzNUkg3DI++XqJCT8LOA+0g OD0dIKrzE/wL8MV1Xkt44OitxDDt51VEgng5D39u17GvCk2BtVa99fZc7jO240IA4huN 146w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9YEQwDW6jkjNld7zAU26GWWiOoT0/OTJErojoPRZVOc=; b=JS2IQ+JPYJRa3IprA3PAc6ZwLYGEGdG4u3WBw2oZhA/EP3ed405bgYUGEae3Npt/9e FDji79XHCHbhI6HEn4+MluVoU12umYM8pnsQh3l2bWCSNxmefICa21JSPKshBiDeTuiG u+supwYeOTh14Fzjm+11QYSuVbB3fLezzCaDgOnBmyb+okArszxueGGD0W/vjyY5xsm2 2db9dotY1BOSu1/tXHwV85iP9KxCyLrYWIw2RejNwA+EiZ/1DoeIEAQZwCvvCqR5ynHv jBT4cYkZ8D5w1JZVy6hnHSZKJyjxFzPLANphJHFNkS4f8HAe8a2f26DQu3R6YG/7RsQ9 u9mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IB/khCRs"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk6-20020a17090b224600b00212def0cbedsi18583595pjb.8.2022.11.28.10.18.59; Mon, 28 Nov 2022 10:19:11 -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=@kernel.org header.s=k20201202 header.b="IB/khCRs"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232570AbiK1REM (ORCPT + 84 others); Mon, 28 Nov 2022 12:04:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232810AbiK1RDy (ORCPT ); Mon, 28 Nov 2022 12:03:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3361DAD; Mon, 28 Nov 2022 09:03:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78B796128D; Mon, 28 Nov 2022 17:03:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C545FC433C1; Mon, 28 Nov 2022 17:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669654997; bh=CiFfZs0+c8O9f5HN9z4MkX3CAUP6bK2GCOEQqCils8o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IB/khCRs7p63rz3twEWVy8a8D/39CnZRW/loaXwnHO+USq86os1zbxEJa/M9OSSNy gdjnEqtG+mls6FMGtieG9Cq50DXyR7YWEGlVOnCOwu5hpuZ0+6KsR0/94YN5yQKl8a vzrtGDNTLWSAaoRf1DYfcE433wLI5JRi2XCGypgW00l+IgoECwXTjLPOFrcO7EhgeC nkyuhm1V4NOGfmeiYH/CKkeMAQXF04VQIXZTjLirstvfATYQxiMfHhblDi2SRT0EwJ J5c5n5MaWiqvjtwKpPHDNJY3Cd/lPAl0cEuGNFdjBhkOxP9HKR/G7vZ9QdUPB79CRc EbGb0SfYsAAFg== Date: Mon, 28 Nov 2022 22:33:05 +0530 From: Manivannan Sadhasivam To: Asutosh Das Cc: quic_cang@quicinc.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, 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, beanhuo@micron.com, linux-arm-msm@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Jinyoung Choi , open list Subject: Re: [PATCH v5 16/16] ufs: core: mcq: Enable Multi Circular Queue Message-ID: <20221128170305.GO62721@thinkpad> References: <6a26d01d7362cc70af70a133910cf9ad55a6ec06.1669176158.git.quic_asutoshd@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6a26d01d7362cc70af70a133910cf9ad55a6ec06.1669176158.git.quic_asutoshd@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2022 at 08:10:29PM -0800, Asutosh Das wrote: > Enable MCQ in the Host Controller. > > Signed-off-by: Asutosh Das Reviewed-by: Manivannan Sadhasivam Thanks, Mani > Reviewed-by: Bart Van Assche > --- > 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 8416d42..41005b8 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], > -- > 2.7.4 > -- மணிவண்ணன் சதாசிவம்