Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp697570imn; Thu, 28 Jul 2022 13:02:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4OshJYFi5vWCjfGlUgJz0HksyNbRDo0gG/RbFfYq+JZJI8tsuads1U55m3n2Ipc2oZPjXB X-Received: by 2002:a17:902:7046:b0:16d:9102:c79b with SMTP id h6-20020a170902704600b0016d9102c79bmr460018plt.120.1659038550765; Thu, 28 Jul 2022 13:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659038550; cv=none; d=google.com; s=arc-20160816; b=uuJGlI8LrRM5DB9cJYEw07TWtlg+bxIPnPcJ4hawLUKcdc5OlxA9CqikNliwHntsmb tRC3Jzxn8fWv+dxdv6rXK3b305TDct/h4jX+cF3vt3bQR7jnKdK5wDrv4CxFnatz5EAU dZspKCrA/6eWDb3uf2fmp22XKkjmk1tCPZn0O81rIU3yMn59H4V/UTANoJjukw+731mk KcgR2EzrO7ZGPDuTheQm9zwSSKqMk2G+YxJgeAPMspyBawoM2W+cEGTV+bwwhVIQYAUt /vrKUmX1QLfJQBwnlk292REtvyuzuqbgrDYiMQvTTerEBy5XJ4/m0ThFDoIUB11+95DE JOPw== 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; bh=y6ZdLI/Qz2e2dGAI/Um7o8+LMqJc/B48NSONjnctuC4=; b=re2zcqWKYPZv/Hjn8VFil6HeDDkL/Bbk8RLzJZeGZRpodt68mNdRy2lYu3NEIH1Jbj WgOXUqw3GRjxZ0avICcK9PhSQ9l6nZk2+L5TzqkmAozCtXwQIa/POMyS+o1HM70lsfBw lY6BYrko+90Jk3MHVBD5lxvFLaFVFL+bD82EN4itsM0f5EXOGtnGgyNRubZ7Yta2tizM EXFI8sAjAb3gIXuPTsJWjFzvkIYcqDoBM6eWw+fplRe327V56c5ZPjOMYsMQR24C87eZ VCJ77YAab6+vJfdyqqxZGPh45QjeJ1/rXSZBDcMT5Zt9Vg3PujwJXDWY8R9AlyJX/qfs fLoQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902680a00b0016d19a07f40si1822718plk.55.2022.07.28.13.02.13; Thu, 28 Jul 2022 13:02:30 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231232AbiG1TKg (ORCPT + 99 others); Thu, 28 Jul 2022 15:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiG1TKe (ORCPT ); Thu, 28 Jul 2022 15:10:34 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3EA632DB3; Thu, 28 Jul 2022 12:10:33 -0700 (PDT) Received: from fraeml702-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Lv0Y2661Yz67F4F; Fri, 29 Jul 2022 03:08:22 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml702-chm.china.huawei.com (10.206.15.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Thu, 28 Jul 2022 21:10:31 +0200 Received: from [10.126.174.188] (10.126.174.188) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 28 Jul 2022 20:10:29 +0100 Message-ID: Date: Thu, 28 Jul 2022 20:10:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 1/2] scsi: ufs: Add Multi-Circular Queue support To: 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: John Garry In-Reply-To: <1658214120-22772-2-git-send-email-quic_cang@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.174.188] X-ClientProxiedBy: lhreml724-chm.china.huawei.com (10.201.108.75) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,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 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? thanks, John