From patchwork Fri Jul 8 19:50:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12911828 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 4DEFBC43334 for ; Fri, 8 Jul 2022 19:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238932AbiGHTiS (ORCPT ); Fri, 8 Jul 2022 15:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238087AbiGHTiR (ORCPT ); Fri, 8 Jul 2022 15:38:17 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 258FC6EEA5 for ; Fri, 8 Jul 2022 12:38:16 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id r1so17116075plo.10 for ; Fri, 08 Jul 2022 12:38:16 -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=QWQ3qPlIUT0uzHeLZI+A4VK93YPj44Tbgx13f28ymxI=; b=AZaWahy1nVKo1awzMljfhmU5o15ofb+cukLQB+g98xzlObJX6zLzOm369L28xuHhg2 nmmWzGXNTSzle3f98Zc/nfKWGxBKDxOo+jfdNx2djbvOoq2MqxY0C7iY1rsG8ziZPeAx TEiwB+mirhyypxk5QmrmRasKt19kv4uKYoxy0= 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:mime-version; bh=QWQ3qPlIUT0uzHeLZI+A4VK93YPj44Tbgx13f28ymxI=; b=D7KKIFIJ/CYm4dgHOwGiRRp139FbKlJfExTdXIJvi5IKGsr6dIyVgcmhbd1CCo/4+S lHJr3zf366534tZxQI+SR/pMTg1e2fdQt4GhSHT+RTqZDAWdWoUEm2woDfP8Wc6r6j8e +6ldhyT9HwSZgOcL5r8gJq1hTA3NzlR+1xrhfZ3UIi8NUeY6ibxJi3koNtb7OC9VrmSC j1NQ6n/fAQ2ARVLI+DM2izcTXa6T7gbTsADX/y2gxhTtN0p/Q0Q1o867aBhiOt/knrjh MU0QOK5GtyDtcitbqK0IlI+VYWQ1JtJ8exuvRdRl3ErczYDlhfAjYj01w+QRHoNKPqfG 7Gig== X-Gm-Message-State: AJIora8Nk14IE3R8S5ygLPNOTK193Q5Vs/87crVasWnOnGVSkmre682m 8p5vzvfo1uBw+lGiZDE3eGlRdEuSQS+w1rcfekyHi2EUqPFaOS8S8vuN94ft2AanFA3gRsoxpwo Ii7w+Ag530v29BbSJgji/AsRamF+1ZsAFnbUXlmU5Exsw1s7JtwHp/LebnXJauykFwbjouDmM9I WZSWIGEfNITvM= X-Google-Smtp-Source: AGRyM1tC9oYBKnXEkUjLNgr72OZkAU/MhBh2NDc3pbDAvDNiUuAd1eeBfRWiKrlt/638nOOp6CjxQA== X-Received: by 2002:a17:903:3093:b0:16b:deea:4d36 with SMTP id u19-20020a170903309300b0016bdeea4d36mr5224791plc.126.1657309095138; Fri, 08 Jul 2022 12:38:15 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i16-20020a170902c95000b0015e8d4eb20dsm14256484pla.87.2022.07.08.12.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 12:38:14 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH 0/2] mpi3mr: Add support for Resource Based Metering Date: Sat, 9 Jul 2022 01:20:18 +0530 Message-Id: <20220708195020.8323-1-sreekanth.reddy@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 Enhanced driver to track cumulative pending large data size at the controller level and at a throttle group level. when one of the value exceeds a firmware determined value then divert the future selective I/O to the firmware. Sreekanth Reddy (2): mpi3mr: Resource Based Metering mpi3mr: Reduce VD queue depth on detecting the throttling drivers/scsi/mpi3mr/mpi3mr.h | 71 +++++++- drivers/scsi/mpi3mr/mpi3mr_fw.c | 66 ++++++++ drivers/scsi/mpi3mr/mpi3mr_os.c | 290 +++++++++++++++++++++++++++++++- 3 files changed, 417 insertions(+), 10 deletions(-)