From patchwork Fri Jul 29 13:16:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12932428 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB8A0C00144 for ; Fri, 29 Jul 2022 13:04:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236413AbiG2NEm (ORCPT ); Fri, 29 Jul 2022 09:04:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236325AbiG2NE1 (ORCPT ); Fri, 29 Jul 2022 09:04:27 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB56959271 for ; Fri, 29 Jul 2022 06:04:18 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id h132so3962196pgc.10 for ; Fri, 29 Jul 2022 06:04:18 -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:mime-version; bh=J8KQ/SztKJpcU3GBKxTO8SCVKIE/TjU8wAS+3yrSnR8=; b=J0KH3qN70XJHQRrUwRsAKyF3J5dLeiuMSpxmA++I95fhKpCtLb2/KKo82taNEqh1py kfqfYOqafevx0igHP0AjBcCJ1FVoCG0JdeqqnlEDnvcIkQIrGNCK5UUxVWJyV1BCA3ES BtB6LP8+KlSIIa23/LANvX9bhLWv6Sf/A2lF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=J8KQ/SztKJpcU3GBKxTO8SCVKIE/TjU8wAS+3yrSnR8=; b=sUpBmuTmFFGCIpdisixp7dlPbbpE++Jr6fCZLi/BI3zieEoVhGNf1ufmLMwUULmOA5 m2gqqf71GLCp00lRLcLt56/wluq4TPs0njlWI+8D+eaOxBfHMQDpOOzlKx0dA0fXtQga 44LWjf/G7+p/aJnbGFr1SRqpFmCTYKZ6basF0BmSz7UqEH3xc3tZUg+ec7tJGrC9xwKJ 3CRI80VSfvlIq3w0I7kg+B3OpnrAF4buDILwHt1YA8G7vH4eSxPnf1iCS7xwhE31+X7D 24B35QmU/7md7vQ+5LMJ2gnt6sfGCmYxqQTNps05+GHaFV1hagwyeQHX1AEILUSkNRfA nYGg== X-Gm-Message-State: AJIora8yKZ6LqLJsIUxTyhjmTEkfKgTEn/NL3b9m2hluqLbQL7QsO1TP Ljjo5O03s/pFQzdRnzFxG2gDy7AVOwGx0TETyCEmKin+4seep+nhLDgBwyEYpel8JZo/7zLe5Bv 5I1MdkQ/s3k0Wif0GOx9mjGF3b2ThIhvtDoi/ZA5pjzCv5x67Ug4hNXxA1YEFVtf4vTAKfiDnlC L0Lx0NVliS X-Google-Smtp-Source: AGRyM1u34jN98WQAiIcr+OGBRXgWXhsOJUg/0eA402AUBrLclsj8XFfbeoUIfeQbK19gseapnNVZEw== X-Received: by 2002:a05:6a00:14c1:b0:52b:4602:5af1 with SMTP id w1-20020a056a0014c100b0052b46025af1mr3381759pfu.24.1659099856537; Fri, 29 Jul 2022 06:04:16 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9-20020a170902b70900b0016dd6929af5sm1225816pls.206.2022.07.29.06.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 06:04:15 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH 00/15] mpi3mr: Added Support for SAS Transport Date: Fri, 29 Jul 2022 18:46:12 +0530 Message-Id: <20220729131627.15019-1-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org - Enhanced the driver to support SAS transport layer and expose SAS controller PHYs, ports, attached expander, expander PHYs, expander ports and SAS/SATA end devices to the kernel through SAS transport class. - The driver also provides call back handlers for get_linkerrors, get_enclosure_identifier, get_bay_identifier, phy_reset, phy_enable, set_phy_speed and smp_handler to the kernel as defined by the SAS transport layer. - The SAS transport layer support is enabled only when the controller multipath capability is not enabled. - The NVMe devices, VDs, vSES and PCIe Managed SES devices are not exposed through SAS transport. Sreekanth Reddy (15): mpi3mr: Add config and transport related debug flags mpi3mr: Add framework to issue cnfg requests mpi3mr: Added helper functions to retrieve cnfg pages mpi3mr: Enable Enclosure device add event mpi3mr: Add framework to add phys to STL mpi3mr: Add helper functions to retrieve device objects mpi3mr: Add helper functions to manage device's port mpi3mr: Enable STL on HBAs where multipath is disabled mpi3mr: Add expander devices to STL mpi3mr: Get target object based on rphy mpi3mr: Add SAS SATA end devices to STL mpi3mr: Add framework to issue MPT transport cmds mpi3mr: Support sas transport class callbacks mpi3mr: Refresh sas ports during soft reset mpi3mr: Block IOs while refreshing target dev objects drivers/scsi/mpi3mr/Makefile | 1 + drivers/scsi/mpi3mr/mpi3mr.h | 240 +- drivers/scsi/mpi3mr/mpi3mr_debug.h | 27 + drivers/scsi/mpi3mr/mpi3mr_fw.c | 898 ++++++- drivers/scsi/mpi3mr/mpi3mr_os.c | 443 +++- drivers/scsi/mpi3mr/mpi3mr_transport.c | 3316 ++++++++++++++++++++++++ 6 files changed, 4873 insertions(+), 52 deletions(-) create mode 100644 drivers/scsi/mpi3mr/mpi3mr_transport.c