From patchwork Thu Nov 26 09:43:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 333983 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.8 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 65D3FC63777 for ; Thu, 26 Nov 2020 09:45:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBF7B206D8 for ; Thu, 26 Nov 2020 09:45:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="SkqW4MWf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733238AbgKZJpl (ORCPT ); Thu, 26 Nov 2020 04:45:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732458AbgKZJpk (ORCPT ); Thu, 26 Nov 2020 04:45:40 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B73C0613D4 for ; Thu, 26 Nov 2020 01:45:40 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id k11so1288640pgq.2 for ; Thu, 26 Nov 2020 01:45:40 -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=Wd1QBB0/5FATe7ID5RjnJkEu/9jstOGUB81rpHd97A8=; b=SkqW4MWfeKySLYKWhNmETwC60JpBn8iaLSvO/rXS4cfYRLhk5AOpLhAM+IC7D4tOqJ l3HMn3RdoC+VCL4NHCf/pX3GfiKaEdT3ethsT5Pz22IVeTgec/tR38koN5uYCY4wuwO4 OnH5YBzBUQoWmNIUZiruaHCqUEXJMRXV9mo/o= 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=Wd1QBB0/5FATe7ID5RjnJkEu/9jstOGUB81rpHd97A8=; b=AZEZJEB6mMUembD14KKkN7WG1XFYZchGheWa/gViYwTSA5ZFHLoxPGRJhJo2ccNpBG 1bZOTMu4lJeFR4Yz+cpJpSEYSnwJJ/pSPu2NAVk4AYIKlFQ+7ph2476OE+TG9jp+vCJf voq4Mu1LyXngblv/w8Ydl0rwPIPqtQYri3VFUCdIMEn4lcSBieQdEr1eQ6SY1G1Fndqg f/oW+Ic4883GYht+BPbdF4diuAx6rho5aFPzzKaJEEYz7K+OZpZ7ssES4Qf1+o83ZRB+ Q/n5jIn/24h6vxujechim98BWNKGMP6X+ScbVdZSnFxwHrEgZdgrbUpmXsqmlheQSeEK HUhg== X-Gm-Message-State: AOAM530qMKwJh0epGvdMlnrt5hGLn2Rl3wCQ7f5QhiRTUq4UUORgmIWE GKb5aWLqxJE6segM5gpJSJDP1KeXj8fVI7toLmAAzaxWcfOTj+Vo+ayETReBzo2Vnfn0rIF9GWg fn2Jn1H3C75rTl/v1u8UmvpskgKRMvSRZ+QJ7oF0IABWSOcoI3OpF0SwAQE3SKY0KTqY5ZYlTNu SHco9RIPmwNobhJNqJupupz0U= X-Google-Smtp-Source: ABdhPJy28+NW714BLpACTQH86K4LwRQx6RDelPi5jMzBH5Ug/3QWY51i3zignMENj4a+4JbMDzP7BQ== X-Received: by 2002:a17:90a:8412:: with SMTP id j18mr2816516pjn.124.1606383939252; Thu, 26 Nov 2020 01:45:39 -0800 (PST) Received: from dhcp-10-123-20-14.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i10sm4343220pfk.206.2020.11.26.01.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 01:45:38 -0800 (PST) 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 v1 0/8] mpt3sas: Features to enhance driver debugging. Date: Thu, 26 Nov 2020 15:13:03 +0530 Message-Id: <20201126094311.8686-1-suganath-prabu.subramani@broadcom.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 1. Periodic Time Sync b/w driver and FW. Periodic time sync sets the time of the FW to be the same as the time of the Driver (HOST). With Existing driver, time stamp synchronization occurs only during Driver load and controller reset. With Patch1 - Period time sync implementation facilitates driver to sync time stamp periodically with IO_UNIT_CONTROL request. 2. Persistent support for diag triggers. mpt3sas driver support Automatic Firmware Diagnostic Buffer feature. As part of this feature, drivers provide Trigger from IOCTL and SysFS interface using which user can set/get/ clear triggers. Driver releases Diagnostic buffer registered with firmware if any trigger gets hit. The triggers set by user are not persistent across system reboots. As a result triggers set by user will be lost after each reboot. This patch set uses Persistent Trigger Pages so that triggers set by user will not be lost across system reboots. Suganath Prabu S (8): mpt3sas: Sync time stamp periodically between Driver and FW mpt3sas: Add persistent trigger pages support mpt3sas: Add master triggers persistent Trigger Page mpt3sas: Add Event triggers persistent Trigger Page2 mpt3sas: Add SCSI sense triggers persistent Trigger Page3 mpt3sas: Add MPI triggers persistent Trigger Page4 mpt3sas: Handle trigger page support after reset. mpt3sas: Update driver version to 36.100.00.00 drivers/scsi/mpt3sas/mpt3sas_base.c | 437 ++++++++++- drivers/scsi/mpt3sas/mpt3sas_base.h | 49 +- drivers/scsi/mpt3sas/mpt3sas_config.c | 760 +++++++++++++++++++ drivers/scsi/mpt3sas/mpt3sas_trigger_pages.h | 94 +++ 4 files changed, 1333 insertions(+), 7 deletions(-) create mode 100644 drivers/scsi/mpt3sas/mpt3sas_trigger_pages.h