From patchwork Tue Nov 24 03:50:11 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: 11927003 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 2BCDBC2D0E4 for ; Tue, 24 Nov 2020 03:52:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A248C20866 for ; Tue, 24 Nov 2020 03:52:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="UvSTPGEd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726760AbgKXDw0 (ORCPT ); Mon, 23 Nov 2020 22:52:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgKXDwZ (ORCPT ); Mon, 23 Nov 2020 22:52:25 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D71C0613CF for ; Mon, 23 Nov 2020 19:52:25 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id n137so7106011pfd.3 for ; Mon, 23 Nov 2020 19:52:25 -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=pQjJaz6bAn+3axCyVIaROEXd94KJG9Od1BrMceG5r84=; b=UvSTPGEdPlp0sNIGie2GfirvZYjSrnPMpWTtX2AV95zmOBroocokXRMOa066Mi3Pd7 yeUAbCR7JEjp/YuCOi9YdMHpnJbv3zXwC83UhfrMcdjuG3jer3W85J7V4rqap+RApMHD sxEPVy2pjfnOIJi13+IVpGP1firJHa51NI+EA= 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=pQjJaz6bAn+3axCyVIaROEXd94KJG9Od1BrMceG5r84=; b=k//o91V0xYZRcyhpyGRGo7RJl89BRk+t/nkim2XbbnKamZEc8cC+5X1IeaElbV+Quh PGT3MnMB6ozeG77qWlBzDGE80iLGeYeeTtiz5DsM/ZRUztfhjTih7Dg+aBGTaZB2f3/q HUMkAjxBROP1WkejahZI/xY9ey0vccT6n6anBTerkeLhfRqC+xM2zlsHvEd9wDIowfvv /G4Ucn9RSNASuy0GVFGoWV5dhnd2innAcT0BBtpfAeEz/v35lSwxtJyMRyw6eAF4Bffs x5IfgpmzoGk3RPXYu809ov4i8mb7Q47fnqcIufzlfMHfkuDOrpTvjUHZ5C6NXk0ZDARU O5VQ== X-Gm-Message-State: AOAM533h/EDW2sTPsOchgH0/AIg9XZXqYy5bErdYMzbXQCeszOLCTbkg ko7DrWNAsbOYUuYrD2kbPMYLj2N2MuKfh38XZQHUVGdT5zj3C5O9xzssDsLH3SnP8D2+Zyy5OVx CRx3DYcEmBxwDVrzp3zegV90IVudMAj1VZDdV5nBUpymq6Y3cfrRkzYqwBPpsmSc/8z/dVl3FOU emsX0e8VSb54HJJ+0ArhNSi64= X-Google-Smtp-Source: ABdhPJw7BBu6+w08jo2Gz4BTCY+Dgu2XnShvhrkpbPXmsipbVj8WQ6xz5x11v/Vk8B+hvRwBfc69Gg== X-Received: by 2002:a17:90a:f0c7:: with SMTP id fa7mr2557014pjb.3.1606189944408; Mon, 23 Nov 2020 19:52:24 -0800 (PST) Received: from dhcp-10-123-20-14.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x8sm851093pjr.52.2020.11.23.19.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 19:52:23 -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 0/8] mpt3sas: Features to enhance driver debugging. Date: Tue, 24 Nov 2020 09:20:11 +0530 Message-Id: <20201124035019.27975-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 | 95 +++ 4 files changed, 1334 insertions(+), 7 deletions(-) create mode 100644 drivers/scsi/mpt3sas/mpt3sas_trigger_pages.h