Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp449508ima; Wed, 6 Feb 2019 02:53:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IbOyOk9HSSmkz83weeMeJw8LRq0whoVoH8bXZ8acXfoZYJv71OhLwcUqp0YO3tx28G6LmIj X-Received: by 2002:a17:902:4324:: with SMTP id i33mr9885379pld.227.1549450409373; Wed, 06 Feb 2019 02:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549450409; cv=none; d=google.com; s=arc-20160816; b=oaljLGAMpfXLsktYTGxHJ8NaDdmWlgsZ7qQ4UmydnzSsL50s+K/g/NU8bxdWlEDMMW lCc7RenME2+C7HbJO4U5/agmI4QQXaPpR/NpvqzAsKktqAiZhHn9pyTnYq+oY5qbBs/G 3TF1TktzEf2QMbtd6fgPHY8kt+jBCjLaW5s0JqbEPi+fF0/S40wPiOtHFdt0Q41EolEf wUicvk351uddF3v8jcJkNBimW7tZggwifGlOYxt5t+W5lT5THlFca9ozcpruAdNFdWAj 11kHL5aCqyK/O83VkRD4ywcGQYES4VVM1CmI+t0xSwk39m1Kw5j5IzK9x9I0QgtCxSlM DFyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=T92W8TvKSwSKczpEZy4Iw8axDX0oMZLT1HHMQatMsqk=; b=ncJF+1sqF/BBdrP92mDXQnvYz6vAyJONpU96pwGVDq0oquCQfhtX5zhba+Ni2zubGf yq3qIKMMb4sNGKFuLrIrPldxp1pvr1zCMpH1LMAPSxmBhO6Q7c8UtksnmGF5MCjE0EqV KnWEEsmg5eBSDeUDt5tGw0G8ih2bQOsiqotv0zxF0PrYHVYyHBhSOHpluqGJN/OKdWPL pkn3wl7Uj+FLPAl7J6QXFKyaRQ11lZ69JaT242KLx2syNP+iIHbRANAF1/FLM/zCc8cm aJ3kxTYEuFn1lPT7krJHq7Xrc2qXNI3lAFmHAGSA18rvGFx0qZXtdx0HtOm3qkOxcCrl OR5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si5164866pgg.118.2019.02.06.02.53.11; Wed, 06 Feb 2019 02:53:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728298AbfBFKwe (ORCPT + 99 others); Wed, 6 Feb 2019 05:52:34 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:3273 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726579AbfBFKwc (ORCPT ); Wed, 6 Feb 2019 05:52:32 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D78F915233BED428F4D7; Wed, 6 Feb 2019 18:52:30 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.408.0; Wed, 6 Feb 2019 18:52:24 +0800 From: John Garry To: , CC: , , , Xiang Chen , "John Garry" Subject: [PATCH 3/6] scsi: hisi_sas: change queue depth from 512 to 4096 Date: Wed, 6 Feb 2019 18:52:53 +0800 Message-ID: <1549450376-114929-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1549450376-114929-1-git-send-email-john.garry@huawei.com> References: <1549450376-114929-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen If sending IOs to many disks from single queue, it is possible that the queue may be full. To avoid the situation, change queue depth from 512 to 4096 which is the max number of IOs for v3 hw. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index df2a92a0e7a1..ff844d4ba0d3 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -30,7 +30,7 @@ #define HISI_SAS_MAX_PHYS 9 #define HISI_SAS_MAX_QUEUES 32 -#define HISI_SAS_QUEUE_SLOTS 512 +#define HISI_SAS_QUEUE_SLOTS 4096 #define HISI_SAS_MAX_ITCT_ENTRIES 1024 #define HISI_SAS_MAX_DEVICES HISI_SAS_MAX_ITCT_ENTRIES #define HISI_SAS_RESET_BIT 0 -- 2.17.1