Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2736436rwi; Fri, 28 Oct 2022 10:33:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pkhmesCzUvlrvnpVFRd1/dhsWGq0qQL6hlEx4Px8FMChq+2m0ON3SLNmwhxFORWfHX1VZ X-Received: by 2002:a05:6402:3c2:b0:461:78ef:e3a6 with SMTP id t2-20020a05640203c200b0046178efe3a6mr516051edw.364.1666978388953; Fri, 28 Oct 2022 10:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666978388; cv=none; d=google.com; s=arc-20160816; b=IUV8JaRb1hnuGb4MDMGENHAQIrh+9Wl4jDZeubunO4F7omriQ+x9QIMFMIZeIbOB88 CcT8159AJWqWJL9gOp4/s/sccV2xyks+PddMuXzqz0C7lopbEaZWmYWnMqgkESOmpmge fm8UzYTFeGuWlVkWFRhfi6gLlDzZBuLXwvBG1V5JTkTRv+ImDZz1gv0bOw2y/kRmFaeM BWNR2e4d81F8yUO29grUy5TMHfL3TcQiS5Ppqncc7Jv84NBB1rshI8zCnZ3BpAzUXUWb obB8m9ATvlgWB+aq9AMdgGFAS/fbx7qQdQ2NIHK3eKaXk3lY/AIMUdz+nWQiw5Ei/tAh jlyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MWks2PIv5z1t6U2gIbqK1G/0YBGynsz7BSXDq//qxQg=; b=QjmMO3Vicdzea4wed5Bu5Mz5rWi4t7Hw+DQJxFU/UxuDXzgCerJyqhV3EmWdSXb0WK SyTAjdl5XTdP2KjmytDpSE1X44UoBr/c8H6k1cKphcNf5nnYRt0mGuq6pAYyp8s3mo0U MmlAni1f1jzXLBia2sRNHff7UKDK3aGDN5kQlireBVJXGFHlmhxovnOK96JjSQxh6dGF xBAOaMmBq7jE9Tcal0P2j4PtSjncIYat4D3+io9IR8LFTS/En4FV2t2WHkhvtP51zmQe TMlMnOI6583MBKyEdHyYsU8YrgL5bl+CyN8LASj9sNZFU5zMnBYwoCIUGq3nGxH7yBKl E4XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XFnK4t3y; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w21-20020a1709064a1500b0078d878d8fcesi4184958eju.222.2022.10.28.10.32.35; Fri, 28 Oct 2022 10:33:08 -0700 (PDT) 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=qcppdkim1 header.b=XFnK4t3y; 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 S230147AbiJ1Qvn (ORCPT + 99 others); Fri, 28 Oct 2022 12:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229964AbiJ1Qvb (ORCPT ); Fri, 28 Oct 2022 12:51:31 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00378190E54; Fri, 28 Oct 2022 09:51:29 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29SBrwPl002046; Fri, 28 Oct 2022 16:51:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=MWks2PIv5z1t6U2gIbqK1G/0YBGynsz7BSXDq//qxQg=; b=XFnK4t3ypPDG/xQSn67H+7Orj3ovpvkYik0HnmWS/bZ1TmOJNEWw2M67C1dbzA3udlFb 9WXRnMsR9+Ffs5xL1tZIzTewoJ6vB3dmw4JkarXSVklzTInxxY8w34I30gtM1cPNwNEO E9M3bzYXQTVfzG1F60yS3jaRffYtDMmpwHXLkXtzhq8YaMpNc2H80F975KeuatybxljM S8Q0bsqU1ikcUVFOb+COVe7laECezZLpfI413n0sIJ/sjunXaHwDD1Ycj9a2sjgsH+T0 dbbr5Bx/Zw4lX3xO8APH83YJ9+Y98vQU2BF0F/hX6P7Si5VySrO5JO34Gz7JfaMOS242 zQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kg59ajgys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Oct 2022 16:51:17 +0000 Received: from nasanex01a.na.qualcomm.com (corens_vlan604_snip.qualcomm.com [10.53.140.1]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29SGpGWs023274 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Oct 2022 16:51:17 GMT 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; Fri, 28 Oct 2022 09:51:16 -0700 Date: Fri, 28 Oct 2022 09:51:16 -0700 From: Asutosh Das To: Bart Van Assche CC: , , , , , , , , , , , , , Alim Akhtar , "James E.J. Bottomley" , "open list" Subject: Re: [PATCH v3 03/17] ufs: core: Introduce Multi-circular queue capability Message-ID: <20221028165116.GC9077@asutoshd-linux1.qualcomm.com> References: <1718196085461c37138c194c49146efa5c5503dc.1666288432.git.quic_asutoshd@quicinc.com> <14a5925b-df2b-3f84-ed99-b4157c0a1b21@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Disposition: inline In-Reply-To: <14a5925b-df2b-3f84-ed99-b4157c0a1b21@acm.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: SpBA5FrS_tlYh4PC270buJIINgKO4k3Y X-Proofpoint-ORIG-GUID: SpBA5FrS_tlYh4PC270buJIINgKO4k3Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-28_07,2022-10-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 clxscore=1015 mlxscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 priorityscore=1501 spamscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2210280105 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Thu, Oct 27 2022 at 14:10 -0700, Bart Van Assche wrote: >On 10/20/22 11:03, Asutosh Das wrote: >>+ >>+ /* >>+ * This capability allows the host controller driver to turn on/off >>+ * MCQ mode. MCQ mode may be used to increase performance. >>+ */ >>+ UFSHCD_CAP_MCQ_EN = 1 << 12, >> }; > >I prefer that the above flag would only be introduced after a need >appears to disable MCQ, e.g. discovery of a host controller that is >too broken to enable MCQ. > I think this flag is useful during chip bring-ups &/or debugs. Considering that this is a fairly new hardware block even though the HC supports MCQ there could be times to keep it disabled. >Since UFSHCI 4.0 controllers must support UFSHCI 3.0, shouldn't users >have a way to disable MCQ, e.g. via a kernel module parameter? > I can add a kernel module parameter to disable MCQ. I think adding it to host driver (e.g. ufs-qcom) would be good. Please let me know if you have a better place in mind. >Thanks, > >Bart.