Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp701035imn; Thu, 28 Jul 2022 13:07:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s0xMzfCXWG/3C0RPJo6LM5xa7vkyAnM+UULSgv7zQRKKR/RpA96ExnevxvCg5F0cfZb8G5 X-Received: by 2002:a05:6402:4307:b0:43c:2263:716a with SMTP id m7-20020a056402430700b0043c2263716amr585096edc.69.1659038868393; Thu, 28 Jul 2022 13:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659038868; cv=none; d=google.com; s=arc-20160816; b=UcEZTGJ5lQGNWBMVk9Iph2pbv/kRjGEQ8g7jbTMFM63OLxJPth7DSvL1plRavzIsVV LbIPpW5buUOzQxo2pFpqJrjOxQ0lYtNfs7iUiAojDv4ROwp8KdUKClt8uCRMPEBKvmd/ XqvI0VC6YeXbVWez4BDcHjpjlWxd/UjrQcLjh3UZJ+2QkWpul7nGIUsRVHa+4FvMuswP x8ydQogAJjd1/QWrdXOJS94i1zQDLj+T3oWjhwywommd37sPqNLvIAoGOeX9t3eRfH78 hePYiFdAbxbe9WLPOfcMRSEy27QdKGPd+jMPcpZbHGvgQve3EsaJ092RqjVxkScczQrl uZjQ== 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:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=o0F5wy3XOw205GrsS1q6nC/o+IEYDXZlzsjeKeIuF/w=; b=pxangL4dBFXWyaB1j8RmgLc2VJenACdS5O33NF9jdc8yqXsJGyx78F4knPDWOSfbLE M04F6VK9pwWfjrvwrpprYbPuSJgI5w4OQDwkC8y/7NrHocgaWtoO4iyd1MRQPK8qlMxt Jkf/HZV/6lqkljkcInRgW24tkjx/ZruMmtvUD3JlGaJo076lF+fx306GhP7T+998wYWD loxPIKKdL+hDlTC+vGBxhFzr4iDxBgqHXW6K2+lpIv2gx0aBMfDv3ZTtRXBeuvMG/a57 PGdIIKsYq0V5sCoi0KKMkmnqmWaSYTvBsPYWSO+bHvyr+0/bRyFJJ5OwCq91+a47BNeC L/Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=dQoJjR0q; 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 dm10-20020a170907948a00b0072ac1a55095si1524808ejc.6.2022.07.28.13.07.23; Thu, 28 Jul 2022 13:07:48 -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=qcdkim header.b=dQoJjR0q; 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 S232163AbiG1TP2 (ORCPT + 99 others); Thu, 28 Jul 2022 15:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbiG1TP0 (ORCPT ); Thu, 28 Jul 2022 15:15:26 -0400 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 A6EE12F019; Thu, 28 Jul 2022 12:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659035725; x=1690571725; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=o0F5wy3XOw205GrsS1q6nC/o+IEYDXZlzsjeKeIuF/w=; b=dQoJjR0qA0jvzrCDBXdiUKk5gmde7ZTtO/uCTckT8zW2BSt2QQOy+RBk y69NDhk3SW/nE/63G0ALwCpePtcrfifHX6aCOhx+eiYNl4AopqNHcqMVj KlJIS3ST9heRQ0f9UJ4c35rOT97j9wYQ4Hsb4YCzLm4Sk/BKjDf5SOJHn Q=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 28 Jul 2022 12:15:25 -0700 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2022 12:15:25 -0700 Received: from [10.110.38.152] (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.22; Thu, 28 Jul 2022 12:15:24 -0700 Message-ID: Date: Thu, 28 Jul 2022 12:15:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0.3 Subject: Re: [PATCH 1/2] scsi: ufs: Add Multi-Circular Queue support To: John Garry , Can Guo , , , , , , , , , , CC: "James E.J. Bottomley" , "Martin K. Petersen" , Daejun Park , Jinyoung Choi , Kiwoong Kim , open list References: <1658214120-22772-1-git-send-email-quic_cang@quicinc.com> <1658214120-22772-2-git-send-email-quic_cang@quicinc.com> From: "Asutosh Das (asd)" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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: X-Mailing-List: linux-kernel@vger.kernel.org Hello John, On 7/28/2022 12:10 PM, John Garry wrote: > On 19/07/2022 08:01, Can Guo wrote: >> + >> +    hba->nr_queues[HCTX_TYPE_DEFAULT] = num_possible_cpus(); >> +    hba->nr_queues[HCTX_TYPE_READ] = 0; >> +    hba->nr_queues[HCTX_TYPE_POLL] = 1; >> + >> +    for (i = 0; i < HCTX_MAX_TYPES; i++) >> +        host->nr_hw_queues += hba->nr_queues[i]; >> + >> +    host->can_queue = hba->nutrs; >> +    host->cmd_per_lun = hba->nutrs; >> + >> +    /* One more reserved for dev_cmd_queue */ >> +    hba->nr_hw_queues = host->nr_hw_queues + 1; >> + > > So this would mean that the host can accept .can_queue * .nr_hw_queues > numbers of requests simultaneously - is that true? > That would mean that .can_queue * .nr_hw_queues numbers of request may be queued to the host. Please can you elaborate if you see an issue. > thanks, > John -asd