From patchwork Thu Aug 4 13:12:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 596012 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 F302BC19F2D for ; Thu, 4 Aug 2022 13:00:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235966AbiHDNAZ (ORCPT ); Thu, 4 Aug 2022 09:00:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231921AbiHDNAY (ORCPT ); Thu, 4 Aug 2022 09:00:24 -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 4718060F1 for ; Thu, 4 Aug 2022 06:00:23 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id w7so19229028ply.12 for ; Thu, 04 Aug 2022 06:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc; bh=eP/YJWCQnjZnBuOumn0r13vHDviNuHsEcsNlfX1M6ec=; b=SywkeAPK0KX00nbvd0Cp6HCCIlqoAWQXdsC9+vov4lnm3Cxj2RHB887b4XcEqhtlZ+ F6/6eiWdN7vDQLpi7sSFxA9IgIUcKjP887FzzvjdOuCh/xShEdm8PHGjWPpMtMJpomPD 77n70DH/2k59QP6rAnV27UFVenCs824jJjPvw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=eP/YJWCQnjZnBuOumn0r13vHDviNuHsEcsNlfX1M6ec=; b=Rw+4a2Visg3uvS2fGC5+C6VvCqfvMReK6PDsJ2snkETYjpB4K4c7Cm5J4NsW054xmD XktFMGuoQez1DVLW05ib+U4HaIkKbnp9scN4WmSKdRuFZQuec6jyJEYpzA0tPcM4K1u6 a17sE3hXM6OaE6ShfT04m/jPpYVNpxa/AWQFMvDd9hkmp/SnWc/mvHZ0Oj2XMMkbuWnE NBg+zEs3tFj8JzcKtX51EClDayClVLacAzrHHA3npJDdJQgkxvMZNMS5q0ThB794gTkM DRIi2H3OslAl1dPRUF9g475hg0+9M2wH6scVKmFbolP3K0a33Sa0Qcg6UZd0RzrxUnEQ la6g== X-Gm-Message-State: ACgBeo2rIOksa9GtTNTYg3Z8zIKiKSm0ew817QDNTUSGT1yqIb/jkBH1 +7guZGPLcXrEPDLJu8PXMu5fpJ1KAOD4dgO8aHW3H8K8q5bndcc1chaKcvlu8UgQN/77ZKPyj6H tFxcNiYh3jgHleOGPl9PA/PT76wVpagPQO3SP8k4nIgdxjxg6hGVwWo1Gu+g30g/50RID/B46Ly 63C6kbXZl+ X-Google-Smtp-Source: AA6agR4vfondY0aY1KltXkfpEd9aswGHwYYeuOwpSZdJsPe1RqudeM5CJRN47R49QlekY02GdtjXkw== X-Received: by 2002:a17:90b:180f:b0:1f5:160c:a656 with SMTP id lw15-20020a17090b180f00b001f5160ca656mr10730282pjb.193.1659618017715; Thu, 04 Aug 2022 06:00:17 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w15-20020aa7954f000000b0052e2a1edab8sm934645pfq.24.2022.08.04.06.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 06:00:16 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH v2 00/15] mpi3mr: Added Support for SAS Transport Date: Thu, 4 Aug 2022 18:42:11 +0530 Message-Id: <20220804131226.16653-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. V2: - Accommodated the changes suggested by Himanshu Madhani 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 | 892 ++++++- drivers/scsi/mpi3mr/mpi3mr_os.c | 444 +++- drivers/scsi/mpi3mr/mpi3mr_transport.c | 3283 ++++++++++++++++++++++++ 6 files changed, 4835 insertions(+), 52 deletions(-) create mode 100644 drivers/scsi/mpi3mr/mpi3mr_transport.c