From patchwork Thu Aug 25 07:54:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12954309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36D6EC28D13 for ; Thu, 25 Aug 2022 07:43:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238603AbiHYHnA (ORCPT ); Thu, 25 Aug 2022 03:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238505AbiHYHmu (ORCPT ); Thu, 25 Aug 2022 03:42:50 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F6DBA345C for ; Thu, 25 Aug 2022 00:42:46 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id g19so625829pfb.0 for ; Thu, 25 Aug 2022 00:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc; bh=C0/KZslt3RnwvJblCqOiiwOGwhAAx8c5x0VLZVy25Qo=; b=QY60k7GO/b6Q4dMJIqB5pTIGIlvxj/8wQud/DSjWfcosRXm3zbHdaxt6/6cPaZ9mHg QrPmy2NGBdj7w1AMLcZvDowzyt6piHnbzYq/32AjVs1snulWMapGCw9sgXqXImUSOEN2 FGQRbpCJFzw9nz5z16mAn8tY45iJuW/R94Ci4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=C0/KZslt3RnwvJblCqOiiwOGwhAAx8c5x0VLZVy25Qo=; b=a9B1VUKj1rm1FtsUvp5K06fVPTzRMjMsF9rHtJsePa4JTstYjB3Ks67hu66Z3VlyOp lFCK6c3h7Dwjt8CPeoPW9zjIIHcyP7dHfUOKMSHF6I9l1wedA/Wjl0mGcTsyUsRUQF1T io2OlqfLRbglbpKinC3PqOTLEtrqR9AdQF3qS1YoWnxiu/yzLiOFkoPemuWF0hlrUB5v qj2rbxusZh/SnNL2VOmHnn04IWNT80RZpV9vmyJP9o6qiA5kig1XCM/VbTP1eEuA9hWQ zzpUoZ9PMgRGYteyBlkES5303X+92B6DnVU0qYJ1b2I/MkZh73dQ2jwak2XIUI6D22kt H9+A== X-Gm-Message-State: ACgBeo1IYnIeV1HtBK8W3vUdMX+Gheizrhr4ELA/2qEGc7jVxus+O7EB 5x3tdKutQihDEbRZrGL6xcXX81Q5KpXTEKQQ/S2FIBstHN4zFNl1OzYMZgpo9ABl9z0ZTpIo2WA RulMJC8LPv3KZt31XpLXKJckmboZWCXJSz8RFvyTrEa3EKkjaTqUQI4Xaqh4fC9u9xwInoqBSbF H49oaLiAUQ X-Google-Smtp-Source: AA6agR7JLLwFy0lf0sge4hJsyetQ0UoHAM2rww/CWIKAaqzgVU3ZNuQkoBr8k0ScRv+77CvsxcxfqQ== X-Received: by 2002:a63:88c3:0:b0:42b:33f8:6bc2 with SMTP id l186-20020a6388c3000000b0042b33f86bc2mr2174655pgd.495.1661413365592; Thu, 25 Aug 2022 00:42:45 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id ns3-20020a17090b250300b001fbb0d07363sm644916pjb.39.2022.08.25.00.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 00:42:45 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH v2 3/4] mpt3sas: Increase cmd_per_lun to 128 Date: Thu, 25 Aug 2022 13:24:56 +0530 Message-Id: <20220825075457.16422-4-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220825075457.16422-1-sreekanth.reddy@broadcom.com> References: <20220825075457.16422-1-sreekanth.reddy@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org With cmd_per_lun value 7, a higher number of cache lines (map_nr) are needed while allocating sdev->budget_map which is not reasonable and hence increasing the cmd_per_lun value to 128. Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index 3507e2a..4ce1c01 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -11975,7 +11975,7 @@ static struct scsi_host_template mpt3sas_driver_template = { .sg_tablesize = MPT3SAS_SG_DEPTH, .max_sectors = 32767, .max_segment_size = 0xffffffff, - .cmd_per_lun = 7, + .cmd_per_lun = 128, .shost_groups = mpt3sas_host_groups, .sdev_groups = mpt3sas_dev_groups, .track_queue_depth = 1,