From patchwork Thu May 13 08:35:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 12255287 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 05953C433ED for ; Thu, 13 May 2021 08:32:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C6AF9613D6 for ; Thu, 13 May 2021 08:32:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231958AbhEMIdq (ORCPT ); Thu, 13 May 2021 04:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231803AbhEMIdm (ORCPT ); Thu, 13 May 2021 04:33:42 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11A3CC06174A for ; Thu, 13 May 2021 01:32:33 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id l19so58441plk.11 for ; Thu, 13 May 2021 01:32:33 -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=x25ubhn1FD5JJqpcLjd8dBl5b2LIZif/aTynIG6SPtk=; b=L3cOzvhVR2fUI8RSk/82udJ4ZxgOLkq+2udGPcDyYoLpZhXSuH+RvxtHDhNjmfy9wP MVQhQ9CrtF/yh+wR58yuOJJRDcicFTHdpJZhbYEHK37UPVOZwMjzMX2UvnF2XKcOQaMG fzkBpZ5+1Ue3orQ9pt4BsgFKzf9K+KmHOO/ps= 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=x25ubhn1FD5JJqpcLjd8dBl5b2LIZif/aTynIG6SPtk=; b=eofM34ZbEKPmJnUXt4EFBeyMFsgWce9ZC3c/dKCq9eJt1g4JM4VrCg+2miE6yVYT2y TgcpcjL+3cBXAfZ7rpomx9+LZlDFZlWWRIUER7ChUeahMqVGMgybWlEE2mDhk5xEJRWT oSn6MestIAEZjDsgLad3PVfRZ0XY/ZktRusbxGf+V6TPp5708hN4B9U2Oc5urSt3QeNb zFKTK9Cz18CrIIvps4Ntp415Ai+6KZNPQy/LwWCkGiK69lCIZCRjVl9E/Z59/E2ub1mU voXf6yolM53COx+JlIK6yP2eFvcrbX+WzQq41qorwI2NJ0a8KhMpLIh4i5wQNLwkmfrA c9uQ== X-Gm-Message-State: AOAM531kBI2jYrE1TeK0eJ6ZkH2aqCQ24E0V99Wv2pZctNd7RwXS9yvQ cP3Hw5poub9bKOxK72C3BpEE84HFfmTEHnFUL2kNyJyyNCtO7fg/nWTrrgP9H/Q1HmaCx4ibLLy qW6yatN80J8aFNrVjWlfB3fAz+pnGkuTvF/ELVkE5J54l3+/DbjLK0HvXYTBA61onrZf+KyCdAN QDKzaXuQ== X-Google-Smtp-Source: ABdhPJx0qguhW9X2tFn6XMhUJk47qp28Sai5zREer6MS3B3zC6ELhTRNIFbqPzXoV3sdJKe1s5992A== X-Received: by 2002:a17:902:c214:b029:ee:de19:9ae4 with SMTP id 20-20020a170902c214b02900eede199ae4mr38307885pll.57.1620894751741; Thu, 13 May 2021 01:32:31 -0700 (PDT) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i123sm1632468pfc.53.2021.05.13.01.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 01:32:30 -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 v5 00/24] Introducing mpi3mr driver Date: Thu, 13 May 2021 14:05:44 +0530 Message-Id: <20210513083608.2243297-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 v4->v5: - Fix error reported by kernel test robot in Patch #6. 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 | 3956 ++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_os.c | 4063 +++++++++++++++++++++ 15 files changed, 12806 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