From patchwork Wed Apr 7 02:04:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kashyap Desai X-Patchwork-Id: 417129 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=-16.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 6BE8FC433ED for ; Wed, 7 Apr 2021 02:04:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 42D8D611C1 for ; Wed, 7 Apr 2021 02:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242968AbhDGCEY (ORCPT ); Tue, 6 Apr 2021 22:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbhDGCEY (ORCPT ); Tue, 6 Apr 2021 22:04:24 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD87FC06174A for ; Tue, 6 Apr 2021 19:04:15 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 11so10087779pfn.9 for ; Tue, 06 Apr 2021 19:04:15 -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=xUbvPjtHe0gbwSSfDi//rJzYJK9Kmye1CGUymwfNlDg=; b=DTzJj/oJz5SzGa9U3K7YHNcfAagnjredct0kvGPcO924z1xW1YmqSfbOf9W9JHlySS TP4AuSPfryk77RQtF1t6DQEIVmNBFigubUAjedydw5fAlNDtAEY4dTd8xjWak4ih5N2U 7/qTFYu5cISZvyzJdXKHg7hCmQF5zCA0TOd0A= 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=xUbvPjtHe0gbwSSfDi//rJzYJK9Kmye1CGUymwfNlDg=; b=kbrLPuE5OPdDSQRwfsG43CB+ZG0uTGdeEbPiw75IWPXeinEXp9qf0ZwRVa743ziD2b GdQKtbM7QPQwqNBz7eFXUuiMVEHajHpEKzDfpI1iyzz2m5EWWk7WBU8SNiRRkibfnram FPaZ7hXDcD3P51wLKNJg+hDfalxTf6Gm/8M9LU0UU6aa6OPUkxoaPx0yp3riW63+4s2F QYBJ8o4XjMiYQ7V+NVl7pBDw5+MMBAXvy0pghcehqXmxc7ka2ENqQREaGlqEenb+NEnt InanAPbP9C/j1hepeR31LKwXIyYA1oaZ3qBNTi6zUcoqWCiafMuo5DtUn1+vg/sJds8/ CZtQ== X-Gm-Message-State: AOAM530aO3W92FXsDdbY1wa0ZsqDOhQjJC9xzmPyAP/6fj9AjspqrbjR 42zg6QswvVOLSoVSSop0FnvLvRSqq3sgZlF8bT7cTNi1wyca3PI+D+7pa4y+Wzq6xjk7CL7JzyA XCNGNHd5SadfNugdv6hgV+nbLkbWv55beBrzkJlcYtqZXQEelR+aMOb9/w+dZZPMzkUoWgPn9MC PHstvndA== X-Google-Smtp-Source: ABdhPJx4/4LRHCpI4A1e6Noc/OIlVkHgoWUF8KKTZgnMQzqZj5YDyth7MpuHDgdyFn4bjxqq597k4w== X-Received: by 2002:a63:f54b:: with SMTP id e11mr1000876pgk.139.1617761054904; Tue, 06 Apr 2021 19:04:14 -0700 (PDT) Received: from drv-bst-rhel8.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y9sm3435858pja.50.2021.04.06.19.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 19:04:13 -0700 (PDT) From: Kashyap Desai To: linux-scsi@vger.kernel.org Cc: Kashyap Desai Subject: [PATCH v2 00/24] Introducing mpi3mr driver Date: Wed, 7 Apr 2021 07:34:27 +0530 Message-Id: <20210407020451.924822-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 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 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/mpi/mpi30_api.h | 23 + 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_transport.h | 675 ++++ drivers/scsi/mpi3mr/mpi/mpi30_type.h | 47 + drivers/scsi/mpi3mr/mpi3mr.h | 895 +++++ drivers/scsi/mpi3mr/mpi3mr_debug.h | 60 + drivers/scsi/mpi3mr/mpi3mr_fw.c | 3970 ++++++++++++++++++++ drivers/scsi/mpi3mr/mpi3mr_os.c | 4145 +++++++++++++++++++++ 13 files changed, 11748 insertions(+) create mode 100644 drivers/scsi/mpi3mr/Kconfig create mode 100644 drivers/scsi/mpi3mr/mpi/mpi30_api.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_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 base-commit: e09481c55ba7346ab725f41891e1bb61729dda00