From patchwork Mon Aug 9 07:26:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 12425795 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 710B2C4338F for ; Mon, 9 Aug 2021 07:26:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 542B160C40 for ; Mon, 9 Aug 2021 07:26:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233222AbhHIH1N (ORCPT ); Mon, 9 Aug 2021 03:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233363AbhHIH1M (ORCPT ); Mon, 9 Aug 2021 03:27:12 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88AA7C0613CF for ; Mon, 9 Aug 2021 00:26:51 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id f3so4779698plg.3 for ; Mon, 09 Aug 2021 00:26:51 -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:mime-version; bh=cH8nReKEJLGY/n5u0S9rcw/hzctC1FJLzPps79Q3g6g=; b=T4pzrOPsIZPahuAkGRSEZrvNETcQgIbcNu7Orv67k8IJyZfQfeL2Drk0SIMCVEUjne k7or7j0LCsL1oq9udGnBshoK14/dcFrtwGlNua/Ooc5pMU6sfydN65Guy6kXz7bwzwyY ZVeVG8uyGsWkuW07pYhSoXSfVaOSH9ky/7pZc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=cH8nReKEJLGY/n5u0S9rcw/hzctC1FJLzPps79Q3g6g=; b=pxen/wco7zckvrk3CquZRetAwsA/0q1Kof4A9rn21j+UCCZHTyLdVwypV61vUZErxN l2Mv81CkX1reDVfRPmyTkfO65dk4GCgXFTUPBnxMpU4uNwuv6pSMhOhiY94IboJAwbcz VT2wRd5DS0M/4tGoyWa8qW7/I3oZttM8V+ivTpbCAQMiUExT1UUSDmCjTTkI/+sb7cCZ /RHB349IQQpaC0RAFruxAwWwPpC5H6zmlUsVHvqZkZipj9gFTmADC2CA4SZCa7SSARf8 pxhku3mJVLoqKWVQFTeM0bF9Rqju8DRSZDwUDka/XO86HV2VmTmSAQ4etXR6LSU19oEY 84Xg== X-Gm-Message-State: AOAM531HvoTzJEGKObxdfgqRnl3RkRzCt3WlONsUoELxnyJENQEwK3XT eQfLpo6bD4g/vaB0/bKkdvmqhKDFtFZlTYpDtgpIHo13BEFRRfXzcNRi1hkxZZzVBi2cGNUC4WM zUuh8Jwc87Zi8tO7P1annb2fCiorjGkA0izw0bd7AzlzGmZzJ7KJ+o8xwv6FzJPwwds2G0qJgKL 4VYcUZJkojbqufNx29XmMaLeY= X-Google-Smtp-Source: ABdhPJxzVF77gdaB8y+GuuQ4dXXfELi2nxWUhu6+p78+aI/gs21MAcRuNBhpdLS79FqUJA8TYzoHtw== X-Received: by 2002:a63:4446:: with SMTP id t6mr353159pgk.76.1628494010306; Mon, 09 Aug 2021 00:26:50 -0700 (PDT) Received: from prabu-it-vms-server.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id l13sm17291901pjh.15.2021.08.09.00.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 00:26:49 -0700 (PDT) From: Suganath Prabu S To: linux-scsi@vger.kernel.org, martin.petersen@oracle.com Cc: Sathya.Prakash@broadcom.com, sreekanth.reddy@broadcom.com, Suganath Prabu S Subject: [PATCH 0/2] mpt3sas: Use Firmware Recommended Queue Depth. Date: Mon, 9 Aug 2021 12:56:37 +0530 Message-Id: <20210809072639.21228-1-suganath-prabu.subramani@broadcom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Currently mpt3sas driver sets below predefined queue depth for the SAS/SATA/NVMe drives. SAS - 254 SATA - 32 NVME - 128 IOC Firmware provides the queue depth for each device types through SAS IO Unit Page1 for SAS/SATA and PCIe IO Unit Page1 for NVMe devices. If the host sets the queue depth greater than the firmware recommended queue depth, then IOC places the IO’s above the recommended queue depth in an internal pending queue (consuming outstanding host-credit/resources and thereby leading to potential starvation to other devices) and sends them to the device once IO count drops below the recommended queue depth. So, it is better for the driver to set the device queue depth provided by the IOC firmware. Suganath Prabu S (2): mpt3sas: Use FW recommended device QD mpt3sas: Update driver version to 39.100.00.00 drivers/scsi/mpt3sas/mpt3sas_base.c | 70 +++++++++++++++++++++++++++ drivers/scsi/mpt3sas/mpt3sas_base.h | 12 ++++- drivers/scsi/mpt3sas/mpt3sas_config.c | 37 ++++++++++++++ drivers/scsi/mpt3sas/mpt3sas_ctl.c | 5 +- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 51 +++++++++++++++++-- 5 files changed, 167 insertions(+), 8 deletions(-)