From patchwork Mon Apr 19 11:01:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 424274 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=-17.6 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 947E4C433ED for ; Mon, 19 Apr 2021 11:02:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6643061166 for ; Mon, 19 Apr 2021 11:02:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236023AbhDSLC3 (ORCPT ); Mon, 19 Apr 2021 07:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237914AbhDSLC2 (ORCPT ); Mon, 19 Apr 2021 07:02:28 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85C67C061760 for ; Mon, 19 Apr 2021 04:01:53 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id h20so17486752plr.4 for ; Mon, 19 Apr 2021 04:01:53 -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=LfijYdv1eiDq+Ef4FM8Tw4kJU3aYgfOmAOW08abN+WU=; b=PzdPWY63+/1UWnGSFGgKj+cSZS/njqRT++A8XtEiOCsoXI6bqtYHTFZk3wcU1bzDrj BJcY7uvnj93fmLR/bU3q88St1DETBKdGnFmFdOuo301ukYSAZSF5S2iZMNTXB2Y7ye17 Xv8ho9b7RC2IFuJIcWVtwaW+kZLpTzPwCYF5Q= 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=LfijYdv1eiDq+Ef4FM8Tw4kJU3aYgfOmAOW08abN+WU=; b=Mhdk58wOLF1+Tzz5S11EvD5x4leQZ/vVTYnzQWMI7Iqx617sV+4N6bQeSbwrOZUbjx jeKUeAj2cz9RKqgfMPba7C+N6/6qYbHInwE476kPQU3hWrj8DuCRuwamp4qM2ltkVJtB wh4Qcf49gWDn4gj14fZ15LYt9hWmvuc35KV6R7IZQXr6Z9enzDo49f9VHRa5uoQv6Ptb DAOcM9cnuwtXxQkfnyNcb0gICOhJjZzgzCIWc+GjOXJxCtj9Meo2LX8BMpA2OQ4wpaPB aYNo7TFXEXWztCu/RjivfSqN9rLKxwntepwBKM0CDCp8fcTZWJqkcthivEIUGUmuDpZP BoZg== X-Gm-Message-State: AOAM531ujJqVhPyMFSY5n8i8AdiFT5yN6FZ+LtohS3CjbyqJJfciLPtv pdNKunrS8AhU4fyuhkFU6wiTnBfVxEc+jdjSKgjxvSo0b0cmV9xKYoVjY/vW3skwcSY1m/na5Tb fmIpShuQ4+TMImLm6Hh68VdGQh/DKgk/UW7xY/M44vn62eWZAG/RDTQDwghko5OFFj/ezRz5TJP au6GX7lJUP X-Google-Smtp-Source: ABdhPJywrDf6R71qZBNLPY3XIwPKHuZBI7LcwqOVsZw45atDaMuOG6NVjddbc7LGUkKNgB5msl6YkQ== X-Received: by 2002:a17:90a:8b97:: with SMTP id z23mr23123886pjn.131.1618830112437; Mon, 19 Apr 2021 04:01:52 -0700 (PDT) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id k13sm11825736pfc.50.2021.04.19.04.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 04:01:51 -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 v3 00/24] Introducing mpi3mr driver Date: Mon, 19 Apr 2021 16:31:32 +0530 Message-Id: <20210419110156.1786882-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 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_v1 https://github.com/kadesai16/mpi3mr_v2 https://github.com/kadesai16/mpi3mr_v3 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 | 23 + drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h | 2721 ++++++++++++++ drivers/scsi/mpi3mr/mpi/mpi30_image.h | 285 ++ drivers/scsi/mpi3mr/mpi/mpi30_init.h | 216 ++ drivers/scsi/mpi3mr/mpi/mpi30_ioc.h | 1423 +++++++ drivers/scsi/mpi3mr/mpi/mpi30_sas.h | 46 + drivers/scsi/mpi3mr/mpi/mpi30_transport.h | 675 ++++ drivers/scsi/mpi3mr/mpi/mpi30_type.h | 20 + drivers/scsi/mpi3mr/mpi3mr.h | 895 +++++ drivers/scsi/mpi3mr/mpi3mr_debug.h | 60 + drivers/scsi/mpi3mr/mpi3mr_fw.c | 3971 ++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_os.c | 4146 +++++++++++++++++++++ 16 files changed, 14494 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/mpi/mpi30_type.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 Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Himanshu Madhani Reviewed-by: Hannes Reinecke Reviewed-by: Hannes Reinecke