Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp99883rwd; Fri, 19 May 2023 16:09:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/vxX5Lg/DcPkQ+a/p9AV9CAtf8FquDtIwJ0h6vkbY4lsh691NoMxtcMuzA+lX5KlIh3e8 X-Received: by 2002:a05:6a21:32a9:b0:ff:b9c4:a0aa with SMTP id yt41-20020a056a2132a900b000ffb9c4a0aamr4099727pzb.48.1684537740929; Fri, 19 May 2023 16:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684537740; cv=none; d=google.com; s=arc-20160816; b=TdFe26Zi5P3aqpjKTcWAVRuGBA+4HWwjAenXzfipc+avPT2dfq40/YCQuruwyBNgYl DtlBfWRvuLM/x3g1ou78Udh6xx1R5wwcl12zom5rAsdWIVd9UNg4hCdeN6f/Ymq9lytO wEVltGfStJ23xDzXfmBXFJetCI6NiHcVEDUi59EHit/jUGz1Phvt5nB1lm1l9pqHRusp 6pyvz+6y7b2hc47a4J4QMKxsyqaS+LhguQ48t6iBd6HPcL7uyFqBF42RVUlbcAuoJT+1 Ae03rBwn8X9MnNRaKKFfHFBf/acFzTcA/ebU1DtDnQvewNJq1OQchAXTqIN0dhcnJeQU v9pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=y6DvZRhRSgpFSsqZJXPLzouaL3pfMhi0ojIdoZK57HM=; b=R66fFcK+Y8oZTfWglqT8zTIS0dIrgoYk+dmxn4pQS4GrDdhpKxmyVrlMYVsh54M/NR RY0gbaDzfn76zP23yIbMw8B8FerIa8lNEg3nbWDwF0/lUlnpze1qSdDxpAaElWdwf1sN sK+9MvPutT8ZuMqqvktSZjt3yufGmO4ZHcBGWVoxyK0l+BpF2CB6PWQiVgIOuX0PzzZX pig+Pj9MKEtkMVP4aWDGr7lHai65/z+vu4p2wpK1JahQxvDFs8weDBjbXGYjFyNI7m6O 2WWbIMBt8Vd5vRxOR7FKzsy1hK3iMAbAS6ZD0X5nectQdC6vyi2YnyCkKtyxtprU5cGK dN7g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020aa797aa000000b0063788e7589dsi377548pfq.95.2023.05.19.16.08.32; Fri, 19 May 2023 16:09:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjESWxP (ORCPT + 99 others); Fri, 19 May 2023 18:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjESWxK (ORCPT ); Fri, 19 May 2023 18:53:10 -0400 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80C911BD; Fri, 19 May 2023 15:53:09 -0700 (PDT) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-64d2467d640so2559834b3a.1; Fri, 19 May 2023 15:53:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684536789; x=1687128789; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y6DvZRhRSgpFSsqZJXPLzouaL3pfMhi0ojIdoZK57HM=; b=kAqMdv4SmjW9ae4KS4CJ45U+JcI1S67ifn1DYRFXkiofbItbQY0fv0b2HiShplrrZ7 dENCL56qNt2S3B1MGkWaknp7Aqu+B7Xpgqy23CMgiKREvYSPqigu/72kJ8BgnaAQZ/lo ccWcHA8DIEoBmokJ+uwccgp6InG0/Vn8+z9pRUeoYbwMd0cu1rZUUn5fbfdWFJ2MDC8/ 87IheThk3R59Xlumey+QtckrpmNFRgctdVHPsjfc+9lsZ0hM1wGDa4hIwB9GJKjzWRif GkV+vM7XXzdiDKmGG4jBmpudhQ7tM44QRTafD6dVnyYEKk3Vs6oKPtOx1x8tli0qKjUj IoKA== X-Gm-Message-State: AC+VfDz/xAhpIPQDXgINLbhvtm9hGaxj2SD0pKea6RJptUiYHg4NzxMO tt9n7KE8Tqdnlz69l24EOiSri4QyEC8= X-Received: by 2002:a05:6a00:15c7:b0:62d:d045:392 with SMTP id o7-20020a056a0015c700b0062dd0450392mr5151989pfu.32.1684536788813; Fri, 19 May 2023 15:53:08 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:102a:f960:4ec2:663d? ([2620:15c:211:201:102a:f960:4ec2:663d]) by smtp.gmail.com with ESMTPSA id s16-20020aa78d50000000b005aa60d8545esm187968pfe.61.2023.05.19.15.53.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 May 2023 15:53:08 -0700 (PDT) Message-ID: <72c3d1b1-69de-b91b-09e4-08875a3602d9@acm.org> Date: Fri, 19 May 2023 15:53:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v5 2/7] ufs: core: Update the ufshcd_clear_cmds() functionality Content-Language: en-US To: "Bao D. Nguyen" , quic_asutoshd@quicinc.com, quic_cang@quicinc.com, mani@kernel.org, stanley.chu@mediatek.com, adrian.hunter@intel.com, beanhuo@micron.com, avri.altman@wdc.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , open list References: <91bddbc5945a7a651bb1edc35ac5ff54a20bf6c1.1683872601.git.quic_nguyenb@quicinc.com> From: Bart Van Assche In-Reply-To: <91bddbc5945a7a651bb1edc35ac5ff54a20bf6c1.1683872601.git.quic_nguyenb@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 5/11/23 23:28, Bao D. Nguyen wrote: > In the ufshcd_clear_cmds(), the 2nd pamameter would be the > bit mask of the command to be cleared in the transfer request > door bell register. This bit mask mechanism does not scale well in > mcq mode when the queue depth becomes much greater than 64. Change the > 2nd parameter to the function to be the task_tag number of the > corresponding bit to be cleared in the door bell register. > By doing so, mcq mode with a large queue depth can reuse this function. > > Since the behavior of this function is changed from handling > multiple commands into a single command, rename ufshcd_clear_cmds() > into ufshcd_clear_cmd(). Reviewed-by: Bart Van Assche