From patchwork Thu Feb 4 03:37:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 12066199 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=-13.3 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,MIME_NO_TEXT,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 8EA78C433E9 for ; Thu, 4 Feb 2021 03:35:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E1CA64F5F for ; Thu, 4 Feb 2021 03:35:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234193AbhBDDfK (ORCPT ); Wed, 3 Feb 2021 22:35:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233762AbhBDDfF (ORCPT ); Wed, 3 Feb 2021 22:35:05 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D56CC0613D6 for ; Wed, 3 Feb 2021 19:34:24 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id gx20so972654pjb.1 for ; Wed, 03 Feb 2021 19:34:24 -0800 (PST) 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=gDZr6xSueK1jR3Ek4K8GdKKjU1BqKh+rxTblFhEwqek=; b=YSASJ7EE67ZuH6KqBJbWn4xhAZIu8d10cSxkUBkOEFV+Xfngs2yeab3BTRq0TWEaac meqDX63Dkrd2gVvZkJn8cnwe3gcZFn92sQEOudEHih/tqXYTwjdwo8jcH1knGhq0exNE QhB+xu+leT730/yEsW5rEtonpzfF3aadg+s4I= 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=gDZr6xSueK1jR3Ek4K8GdKKjU1BqKh+rxTblFhEwqek=; b=Yc4GqHn8KEfAYNGCf8uiKRHPBYljMqcYi2E5xi1whaSg+FYQU+uxhoMhUUPb/kJucB v0RWz1O62ob6LkacJww6kwtul4CoJ3Gnwh/p+fUB2YeSThgDsCda2cOaHOeHW9Hfycdp 2Og2OKZj/+xA9rOOZSfbrWJqm/L10NMZradI7AkYzuDmsiD/HpK+/getOQaMZwC5roCv 3F/H62NhZi3sCtt18OHhcwpgKxsJjYEBsQjh5OYf+6gaKhEWuiusktcF8GwwWy2bhMN+ BVPKeuP5iQNl6WiE4oDYav5zB4Tsz2uDHrpELMj3+x394x/e3S79l1wiQ1DQs7WAGQOO DBOg== X-Gm-Message-State: AOAM530Vt8UZpNS7r2WAcbvZMjV55poLHjcXE7U5QcVIqM6nKmQcISDv dUcgOGJYe3tGVm2nUUI0rYOIxw== X-Google-Smtp-Source: ABdhPJzHmcgdV71fC8OcO3iA3DiipPZD5B3iZcwD4YdrnjX9UnkJCa246lT3owl41Of07FsIwGhWCg== X-Received: by 2002:a17:90a:7888:: with SMTP id x8mr6544456pjk.69.1612409663154; Wed, 03 Feb 2021 19:34:23 -0800 (PST) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x184sm4180808pfb.199.2021.02.03.19.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 19:34:22 -0800 (PST) From: Suganath Prabu S To: martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: Sathya.Prakash@broadcom.com, sreekanth.reddy@broadcom.com, Suganath Prabu S Subject: [PATCH 0/2] Additional Diagnostic Buffer Query IOCTL Date: Thu, 4 Feb 2021 09:07:22 +0530 Message-Id: <20210204033724.1345-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 * When a host trace buffer is released, applications never know for what reason the buffer is released. * Add new ioctl interface to pass more intelligent data to the applications along with information like what causes or triggers the buffer release. An Additional Query Command is issued before reading the buffer and applications would also come to know whether the buffer is released or not. * Update the driver version. Suganath Prabu S (2): mpt3sas: Additional Diagnostic Buffer Query IOCTL interface. mpt3sas: Update driver version to 37.100.00.00 drivers/scsi/mpt3sas/mpt3sas_base.c | 5 +- drivers/scsi/mpt3sas/mpt3sas_base.h | 51 +++++++++++++++- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 67 ++++++++++++++++++++- drivers/scsi/mpt3sas/mpt3sas_ctl.h | 22 +++++++ drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 + drivers/scsi/mpt3sas/mpt3sas_trigger_diag.c | 38 +++++++++++- 6 files changed, 179 insertions(+), 6 deletions(-)