From patchwork Tue May 11 19:53:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 12251939 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=-18.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,MENTIONS_GIT_HOSTING,MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT,SPF_HELO_NONE,SPF_PASS,T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED, 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 7E997C433B4 for ; Tue, 11 May 2021 19:51:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 42B2861288 for ; Tue, 11 May 2021 19:51:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbhEKTwQ (ORCPT ); Tue, 11 May 2021 15:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbhEKTwP (ORCPT ); Tue, 11 May 2021 15:52:15 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B49BC061574 for ; Tue, 11 May 2021 12:51:08 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id c17so16862374pfn.6 for ; Tue, 11 May 2021 12:51:08 -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; bh=QqM3YJrBS5JMhdZB1NkOh7Fy+4NNQfGvwNXDMfYPFvo=; b=gWtAGK3A2eA8lP4W2wZXuyzkT0D7T4kuva9aFWcGHMruihyYa5OUe2YtrU7eZA0CAg herZiRwK5P39d1N3aj4jUbFA6R7U3BAINpummDNMQqHFgpD/+7OV1TN86P6l70OIJreR 339YoNtRw80Q+SIPlWgITCFkSdMmfg+9LWuac= 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; bh=QqM3YJrBS5JMhdZB1NkOh7Fy+4NNQfGvwNXDMfYPFvo=; b=DUAjm2s0xD5ZtTvGqb/DE40H/vAGc/rO6jcnu5LWaZ26ClD2NsR7i8xQJhiZW6jjzL Aq7VUGbncuL9dJJH5GUEgQJhD036p9stbhnbiJpzjoN+JS1hythrkw8zgzyrvCBgpofa d9DTs9L7vKEzkY7Us5cBHMME6hnwzjaONpnoT1sCR4gFycAvhHoaFrSn1NseS3AFL5w1 PUfYyl+7zXskVbEhPpj66EY9R9ybVaTktbaMJd2KzCJ9BLnoHxRu9g7vz8xCb+2QdEzR qbySySyR+U2KnbLyv8htDhE6xxM9ByojACGhWePgIRYtgolOxHSTLju+ae151JoWZUUU +t/g== X-Gm-Message-State: AOAM530o69+qx7tffPmVDDUeqVufx6buP+4NdVSMHLwE3XfqurBjE1Dw 7DPwRu6b2Aq0U7letY2kQoPGf43zbhkam38fT0ttXLWr/aC79TfhuVRorxcj7Sa4ip3jXHz1Hxg 1LRIl10J3C/R9ZWDz/PlD80+iWsob6ijf9ijT+x01iXzrg7FpGYbfro0Qu1ab5P/G5no8cKLhlK dkVD1sOg== X-Google-Smtp-Source: ABdhPJzpmJUSCTGV1WU4pIdnUJCugqnrYY2u9mXjm6SGYpGDpLSNLg2BnDfT3IaaOKZrZripUib/ig== X-Received: by 2002:a63:d30e:: with SMTP id b14mr17316518pgg.237.1620762667523; Tue, 11 May 2021 12:51:07 -0700 (PDT) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id b3sm6317581pfv.61.2021.05.11.12.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 12:51:06 -0700 (PDT) From: Kashyap Desai To: linux-scsi@vger.kernel.org Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, steve.hagan@broadcom.com, peter.rivera@broadcom.com, mpi3mr-linuxdrv.pdl@broadcom.com, Kashyap Desai Subject: [PATCH v4 00/24] Introducing mpi3mr driver Date: Wed, 12 May 2021 01:23:59 +0530 Message-Id: <20210511195423.2134562-1-kashyap.desai@broadcom.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org v3->v4 - Addressed comments from Christoph Hellwig and Bart Van Assche to make MPI headers compliant with Linux kernel coding guidelines. - Added Reviewed-by tag from Hannes and Himanshu to appropriate patches. - Use correct return type in scsi error handler (Patch #6) - comment provided by Hannes. - Fix array overflow while printing ioc info(Patch #11) - comment provided by Hannes. - Remove redundant kfree of dev_rmhs_cmds (Patch #13) - comment provided by Tomas. - Replaced few strcpy with strncpy to avoid string overflow. - Updated Copyright. v2->v3 - further removed unused pointer typedef from mpi30_type.h - Add Tomas Henzl's reviewed-tag to appropriate patches - Fix added which is Reported-by kernel test robot - Removed .eh_abort_handler suggested by Hannes. v1->v2 - removed undefined entries from mpi30_type.h - removed DRV_CMD_CALLBACK typedef - Use IRQF_SHARED instead of IRQF_ONESHOT - Use READ_ONCE, WRITE_ONCE while accessing operational request queue consumer index - removed in_interrup() - remove pr_cont. - move some code from error handling to device handling patch. - used direct values instead of macro MPI3_SECTOR_SIZE_XYZ - Add Hannes's reviewed-tag to appropriate patches - Add Reported-by kernel test robot to appropriate patches. This patch series covers logical patches of the new device driver for the MPI3MR high performance storage I/O & RAID controllers (Avenger series). The mpi3mr has true multiple h/w queue interfacing like nvme. See more info - https://www.spinics.net/lists/linux-scsi/msg147868.html The controllers managed by the mpi3mr driver are capable of reaching a very high performance numbers compared to existing controller due to the new hardware architectures. This Driver is tested with the internal versions of the MPI3MR I/O & RAID controllers. Patches are logical split mainly for better code review. Full patch set is required for functional stability of this new driver. You can find the source at - https://github.com/kadesai16/mpi3mr Kashyap Desai (24): mpi3mr: add mpi30 Rev-R headers and Kconfig mpi3mr: base driver code mpi3mr: create operational request and reply queue pair mpi3mr: add support of queue command processing mpi3mr: add support of internal watchdog thread mpi3mr: add support of event handling part-1 mpi3mr: add support of event handling pcie devices part-2 mpi3mr: add support of event handling part-3 mpi3mr: add support for recovering controller mpi3mr: add support of timestamp sync with firmware mpi3mr: print ioc info for debugging mpi3mr: add bios_param shost template hook mpi3mr: implement scsi error handler hooks mpi3mr: add change queue depth support mpi3mr: allow certain commands during pci-remove hook mpi3mr: hardware workaround for UNMAP commands to nvme drives mpi3mr: add support of threaded isr mpi3mr: add complete support of soft reset mpi3mr: print pending host ios for debug mpi3mr: wait for pending IO completions upon detection of VD IO timeout mpi3mr: add support of PM suspend and resume mpi3mr: add support of DSN secure fw check mpi3mr: add eedp dif dix support mpi3mr: add event handling debug prints drivers/scsi/Kconfig | 1 + drivers/scsi/Makefile | 1 + drivers/scsi/mpi3mr/Kconfig | 7 + drivers/scsi/mpi3mr/Makefile | 4 + drivers/scsi/mpi3mr/mpi/mpi30_api.h | 20 + drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h | 1884 ++++++++++ drivers/scsi/mpi3mr/mpi/mpi30_image.h | 220 ++ drivers/scsi/mpi3mr/mpi/mpi30_init.h | 163 + drivers/scsi/mpi3mr/mpi/mpi30_ioc.h | 1009 +++++ drivers/scsi/mpi3mr/mpi/mpi30_sas.h | 37 + drivers/scsi/mpi3mr/mpi/mpi30_transport.h | 486 +++ drivers/scsi/mpi3mr/mpi3mr.h | 895 +++++ drivers/scsi/mpi3mr/mpi3mr_debug.h | 60 + drivers/scsi/mpi3mr/mpi3mr_fw.c | 3960 ++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_os.c | 4063 +++++++++++++++++++++ 15 files changed, 12810 insertions(+) create mode 100644 drivers/scsi/mpi3mr/Kconfig create mode 100644 drivers/scsi/mpi3mr/Makefile create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_api.h create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_image.h create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_init.h create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_ioc.h create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_sas.h create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_transport.h create mode 100644 drivers/scsi/mpi3mr/mpi3mr.h create mode 100644 drivers/scsi/mpi3mr/mpi3mr_debug.h create mode 100644 drivers/scsi/mpi3mr/mpi3mr_fw.c create mode 100644 drivers/scsi/mpi3mr/mpi3mr_os.c