Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7603165rwb; Mon, 12 Dec 2022 17:36:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RKwzlg6Oj6qaHEBiDD2/tX9Yewrxh34z+7xcUVi6yYXh/RDUCrB5yV4F2OjFoaA4V59UB X-Received: by 2002:a17:902:e743:b0:187:34f6:3323 with SMTP id p3-20020a170902e74300b0018734f63323mr27744012plf.59.1670895384207; Mon, 12 Dec 2022 17:36:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670895384; cv=none; d=google.com; s=arc-20160816; b=pUv95ww+wQ8+zlzQciPnDFn3E7WHNowHRqGiyTSgB9ou24ELo8ERsPYmI9lNP4FgkX b1RkP8LIRDpsSGqiinjg4yT/B/DVOy5q/xkcnWr8xVeEi7FwAO94OZRhsTGYUX1Y9VbB 779pDHWGN3tJFbyh+wJNmki9lssnwpHf/FR0atG4ISiCJtKEJ9ELP2F2/caxkzh1MNc8 hwp2suHYMzh+iNOYSNvsfwGBVgza1wbfI+mCfCUadSdsJmDXyFvAize/gXX9hjS1FYAv ob+OtOv9z2Vn4LZLyh6Gy3G8BPwfDeJsipm8WFZUMTcLUidj7rwiHlSe7sCfcc6MGGwg bXCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EKDJvcddAYwbAW0mH7+IQB9ua0CLyFoaLjvLSx1u/ZA=; b=zGYgkEkS16wfN+jcmEXD56TkDoOW/+jq4cU4cJmibBqkUm4C9XLzMPgFe+sslHOD/n ihSAMsK8lVW5hGc/Fxgy+wjMLZcGheWtaGmglu8/6iwj4UKNLil2cKa1T/q/Q6523MVJ 3m2o3xRDqj8ssplq+hjwm+h0nLJkenTcILZWa15zfS3rBua/41z+OZ4h4Xh2yVx5tUAV Exu2G03MCu+kHxwx0QSFKAsiNU7JuqwYbVIR/Q561fg5sgnlhWUb+KVNJuZSjYT0ic85 1q/M3Q8jFz6qxmDcxIrj29pqcT4pAQR9N3fvKvpyynX0IG/gyMnADxHZsTIG12xBodOt QlNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YdDNgMeg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a170902dac100b00170f6f728d4si11799858plx.543.2022.12.12.17.36.14; Mon, 12 Dec 2022 17:36:24 -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=@gmail.com header.s=20210112 header.b=YdDNgMeg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233968AbiLMBNT (ORCPT + 74 others); Mon, 12 Dec 2022 20:13:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233942AbiLMBNP (ORCPT ); Mon, 12 Dec 2022 20:13:15 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A55B4EB; Mon, 12 Dec 2022 17:13:11 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id z26so2448876lfu.8; Mon, 12 Dec 2022 17:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EKDJvcddAYwbAW0mH7+IQB9ua0CLyFoaLjvLSx1u/ZA=; b=YdDNgMeg7uqDlxuuIdmBC3boBUMsKD29rz+wZxxl8r3ws1RyZpw/KvrwkVoatQfcm1 Sl+NZuT9aTf8uMsoXq5ivIwqbgcGgsF0ayx+W3A6O+1TnHm2Y36GBtcvxJPmWy+p6Hb/ xAZSgJ+5dHVCZ6mdygn+zEp60PjW5Y8ynIlZDEbaiR+BRgYIv4D8/GJPlz/VM1bJAZuW /4HgR/bkuj0WbBozcR6zWuzHZIOTKkwNy1199HalbkLfeArLmhitR1nILYbMZgU0veq7 GXc+UN2sc6QeWkNyab8DZ85M0rkaRoUgc316JpXVAbw5DrA5n/0Cwx6GCHyECwmPZ2gM /Cww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EKDJvcddAYwbAW0mH7+IQB9ua0CLyFoaLjvLSx1u/ZA=; b=bqqUvqSGHKtWJcclzoAuzKV0lIQchBBEBq+GbosWMxF33OKKPvwXUS/BGbZH/aMhqB XC+lYwwYXRFFhbsjD2HFhql002uIzzJTwLYfzOz+2Rwwj1eZObpVupGBM6Ti19txiJja oY8ehcqKVorNK8zlxPVjMC2/1VTJhlNNiDxPWfu8vB9CAXahmm4FWzf+AhpMxi7U9H0E MZ9gBwqwyWQUlm3KbqgWWqpt7ZR5SQ9jVm9WomhQB1pKhdIYO8dAFDLZiCUbLo3O1O1t Lq6q2zHlfdyCePqzGwzTLPy3WIJwME/sf4LRnjHLsKTolDnlyxe5rmXK1lrRpdCk+wfy 33Xw== X-Gm-Message-State: ANoB5plofR7pjzDVqgMu05x8aWGh1bCByi/aLPLARSYfN8HaYXse/2SM mphGG87DHF8MTKcTppaRkgY37ppJKWqN/6CAgQ== X-Received: by 2002:a05:6512:3da9:b0:4b6:ee79:63ab with SMTP id k41-20020a0565123da900b004b6ee7963abmr247034lfv.662.1670893989730; Mon, 12 Dec 2022 17:13:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Stanley Chu Date: Tue, 13 Dec 2022 09:12:57 +0800 Message-ID: Subject: Re: [PATCH v11 07/16] ufs: core: mcq: Calculate queue depth 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, mani@kernel.org, beanhuo@micron.com, linux-arm-msm@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Andy Gross , Bjorn Andersson , Konrad Dybcio , Arthur Simchaev , Krzysztof Kozlowski , Jinyoung Choi , Yoshihiro Shimoda , Keoseong Park , Kiwoong Kim , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Fri, Dec 9, 2022 at 7:25 AM Asutosh Das wrote: > > The ufs device defines the supported queuedepth by > bqueuedepth which has a max value of 256. > The HC defines MAC (Max Active Commands) that define > the max number of commands that in flight to the ufs > device. > Calculate and configure the nutrs based on both these > values. > > Co-developed-by: Can Guo > Signed-off-by: Can Guo > Signed-off-by: Asutosh Das > Reviewed-by: Manivannan Sadhasivam > Reviewed-by: Bart Van Assche Reviewed-by: Stanley Chu