From patchwork Tue Jun 28 07:48:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12897855 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 2980CC433EF for ; Tue, 28 Jun 2022 07:36:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242718AbiF1Hgu (ORCPT ); Tue, 28 Jun 2022 03:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233156AbiF1Hgr (ORCPT ); Tue, 28 Jun 2022 03:36:47 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 112812CDF3 for ; Tue, 28 Jun 2022 00:36:47 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id x4so11271393pfq.2 for ; Tue, 28 Jun 2022 00:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version; bh=fBqMw0QzmEXnfA9P45dzf3tnt9mV/E9bn4bw54iMF4E=; b=CQAumlqZ+DIBvEZ8RyOj4Wr7FY2WXVqlIk0mouL7Wyywqfg74LmGMmh8rNzD88qs0Y 6sd0kBhFp7hf7VK5cv1vw2kOnutTSZ5vWQPY1An4ApWoFOUXZoPd7eqjIQqBNXgMcy6+ woMy9DgKf9PLDohsmjPb84Ml8SsrMc1gxRUrg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version; bh=fBqMw0QzmEXnfA9P45dzf3tnt9mV/E9bn4bw54iMF4E=; b=QGzAOdhkJ5sMXSOYVqcL3ByJZlawkhCEO+EBFu/Si7AdNEn64qgEpnUzX7QuTdoLGb XVHPxnLCuj1dD905oLTxzWzFpNPY7ozFpWIzidhaPyvMbEel/k5R63AD4PglGfHQOWtT ZoPeYJJg3WR9I7Z6itXoKbsVd9cGHFrqnad2zVyTSeHrfM5bTnWWfDuqcw/MWctHpl18 Ubi0jPVXWPsBNoNAiPqX7lhBLXWjGeuZNdeRmJcYOWezg7JTnceTtu2mPrkr+7J/6Abd 60R1g0nK5QjoE1GommlH+nrJYb0KxOTK78A67sV6tL7xisE2AqAle1K4MEwCO6LQ50Zv nT8A== X-Gm-Message-State: AJIora9UBv5FTwkJ5qPGTVVM/pfbCew1DfHyN6MlGFQEkqtqUo0ozJC5 T6W/WpJRbIRCEc+8Q2NUYuqsNGqCp7H8WVXoMkGxz2QTF/PfHHx/oxa6UMLgqlkcsWP9yUOPWzR ucsrJ5nNgSLCxVF2MHr9piEh8ICMkah4NCI/59x8bXFbYCrBBh+4Gjpew4iw9Ty67OQ+l8Qjj6f eb3E5Abh5UeIE= X-Google-Smtp-Source: AGRyM1tXqzwjlglmpsnronJq2QCkQiSfPemL5KlJWEbnSmPnLTgWqWuCr6EWMvn3T2KB98Gq8HOXaQ== X-Received: by 2002:aa7:90c4:0:b0:521:2cd6:bd3e with SMTP id k4-20020aa790c4000000b005212cd6bd3emr3350975pfk.19.1656401806180; Tue, 28 Jun 2022 00:36:46 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id o15-20020a17090ab88f00b001ece373522dsm8547244pjr.10.2022.06.28.00.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 00:36:45 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH 1/2] mpi3mr: Enable shared host tagset Date: Tue, 28 Jun 2022 13:18:47 +0530 Message-Id: <20220628074848.5036-2-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220628074848.5036-1-sreekanth.reddy@broadcom.com> References: <20220628074848.5036-1-sreekanth.reddy@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Enable shared host tagset to make sure that total outstanding IOs count won't cross controller's can_queue. Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index d8c195b..da85eda 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -4321,6 +4321,8 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id) shost->max_channel = 0; shost->max_id = 0xFFFFFFFF; + shost->host_tagset = 1; + if (prot_mask >= 0) scsi_host_set_prot(shost, prot_mask); else {