From patchwork Tue Sep 11 08:48:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 10595295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B9C20920 for ; Tue, 11 Sep 2018 08:48:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A54D529238 for ; Tue, 11 Sep 2018 08:48:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9879C29243; Tue, 11 Sep 2018 08:48:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4D3429238 for ; Tue, 11 Sep 2018 08:48:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbeIKNqj (ORCPT ); Tue, 11 Sep 2018 09:46:39 -0400 Received: from mail-eopbgr730064.outbound.protection.outlook.com ([40.107.73.64]:64736 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726587AbeIKNqj (ORCPT ); Tue, 11 Sep 2018 09:46:39 -0400 Received: from BN6PR02CA0044.namprd02.prod.outlook.com (2603:10b6:404:5f::30) by SN6PR02MB5309.namprd02.prod.outlook.com (2603:10b6:805:71::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Tue, 11 Sep 2018 08:48:18 +0000 Received: from BN1BFFO11FD004.protection.gbl (2a01:111:f400:7c10::1:175) by BN6PR02CA0044.outlook.office365.com (2603:10b6:404:5f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.15 via Frontend Transport; Tue, 11 Sep 2018 08:48:17 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.23) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.23 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.23; helo=AVMBX3.microsemi.net; Received: from AVMBX3.microsemi.net (208.19.100.23) by BN1BFFO11FD004.mail.protection.outlook.com (10.58.144.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1122.11 via Frontend Transport; Tue, 11 Sep 2018 08:48:17 +0000 Received: from AVMBX3.microsemi.net (10.100.34.33) by AVMBX3.microsemi.net (10.100.34.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Tue, 11 Sep 2018 01:48:09 -0700 Received: from localhost (10.187.72.82) by avmbx3.microsemi.net (10.100.34.33) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Tue, 11 Sep 2018 01:48:09 -0700 From: Viswas G To: CC: , , , , Subject: [PATCH V2 1/4] pm80xx : Fix for phy enable/disable functionality. Date: Tue, 11 Sep 2018 14:18:02 +0530 Message-ID: <20180911084805.4802-2-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.19.0-rc1 In-Reply-To: <20180911084805.4802-1-Viswas.G@microsemi.com> References: <20180911084805.4802-1-Viswas.G@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.23;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(376002)(39860400002)(346002)(136003)(2980300002)(438002)(189003)(199004)(106002)(316002)(47776003)(97736004)(86362001)(51416003)(54906003)(76176011)(4326008)(53936002)(2351001)(50466002)(48376002)(57986006)(76506005)(186003)(11346002)(50226002)(8936002)(68736007)(8676002)(2616005)(476003)(5024004)(126002)(446003)(1076002)(478600001)(36756003)(106466001)(69596002)(2906002)(2870700001)(336012)(81156014)(26005)(77096007)(305945005)(81166006)(356003)(5660300001)(486006)(6666003)(6916009);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR02MB5309;H:AVMBX3.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD004;1:khKOD0J11AXq8R7e+07t+rEgXwOBfagf7XD85dV4KU++LPEPoheJ4Jn5hVsC62zkD1R1Wa2w5CPzqIhchhX1lnM0pfhxhIt49Fe7D5B1mYrZwY0kUp+/yKNStjQblHx+ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea3a3403-93ce-4b6b-7eb2-08d617c3518b X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:SN6PR02MB5309; X-Microsoft-Exchange-Diagnostics: 1;SN6PR02MB5309;3:nFTMYfw2NtQCvbFsUPExw7gVLFkojYtXYV1MO7yvR1seVgqgZ9c9Qk6rOudWKnk1A+C6QzqY57Z9vUVXApTMee5bgQPZ6T/RR6zmWkDxoRYjCsmi9v18IabGYc6PWcbn0HhsCVnp/nDM8g91wS2r7C9rnYloGza/qwySxZj4DhUD5NnRQRLNE8T8BhfyipNeH85uyLdYEWcKb6OLWisdhGhSQUKeamRrJ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WjEbPGVDK19aSJiQhpeuEBa0E7j8YAyaVwbP6c+7TTK5XRdci3t/qmF3oRcf5fcuz7HzCqvGhhKhjcNamPCF73jcu5tNQEgjMugn/xTdIB0C1VJDT8wtnfoWnM42+P2pozRcEbl64dXiv/+z3Lj5GFILJMb572x9M+YwBF2EcG94NLtOeJf+UdPhIkUp1usZEIWWt2nM0nQOzQDZiC9gpEPxbNdZdquR8YIgD5d35yxEy6FeA5Kp0xvJ2d8jgk/xr5412XSDSHJ4/g48+f1R2lw7xfQPYMosTr9yu2zLWw0Hk5Uf2q2UBWCaFsOSUOX7/Q6muEtpQo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201708071742011)(7699050);SRVR:SN6PR02MB5309;BCL:0;PCL:0;RULEID:;SRVR:SN6PR02MB5309; X-Microsoft-Exchange-Diagnostics: 1;SN6PR02MB5309;4:0jLhxpNWVhw55t+grE/7QUjiAr511QFSMyXTzKidYN3obsVFOz44wQmD/cbxdI411iG8JVoawMKsyiHPGEZWVHnJAxmn8GIzn3rZ9Gjym8wz/lv3fMz13auaNMrjvEwRaxIADNFbOCj6EvXYjrtnSlBA2MhZHuBGRkmsr5cVEaEAznSRAGtkmdZKAinfxhJsxj0bdRiJZxXOmN33m6PyCmOv+TqguZdG9cCEa83hr9fkSAlLvXKAx8gAuLQIgNTXSQQFa/gNQV0xNsIZRLOF4Q== X-Forefront-PRVS: 0792DBEAD0 X-Microsoft-Exchange-Diagnostics: 1;SN6PR02MB5309;23:GXmRHXbojdgVrgJTQRJNgWEC5rJU1vbOG/L0yfrMitS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jp/MB9iecySvba3TumyGsJ9etT4l8Aztn0Sz24NzrV+JU8Y6iyBaiLCo3qWwNHV8OZz9R8VTszwY=;7:nmq0NtxMeoW2w9OOLwDdA0oT/EB0KzeCfI4ywDIpKXR8n2GC9H8hYO1ZnnKhUhl+L2NzLBmsmfgB+Q3rx291aicGuIxEIuLzMgjT+FJjOWom4lZinaRV+suzEoqpaWKht1nVy9O3L4SOEdPLdqUyV3TYrbiXRc+ajmC3Ck2JsSA47kuvliHzJ4BNkVu1qnPeKB2wT2I5ex2bM/CfTQH0XmeXSJmkLknxA7TOnSxCQwIqLxuJn2/oppBhHmt8CzCq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 08:48:17.1474 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea3a3403-93ce-4b6b-7eb2-08d617c3518b X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.100.23];Helo=[AVMBX3.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB5309 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Deepak Ukey Added proper mask for phy id in mpi_phy_stop_resp(). V2: -Initialized the PM8001F_RUN_TIME flag in pm8001_pci_probe(). -Differentiated PHY_LINK_UP state for SPC and SPCv controller. -Used PHY_LINK_DOWN macro for phy state down. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_defs.h | 8 ++++++++ drivers/scsi/pm8001/pm8001_hwi.c | 3 ++- drivers/scsi/pm8001/pm8001_hwi.h | 4 ---- drivers/scsi/pm8001/pm8001_init.c | 3 ++- drivers/scsi/pm8001/pm8001_sas.c | 28 +++++++++++++++++++++++++--- drivers/scsi/pm8001/pm80xx_hwi.c | 14 ++++++++------ drivers/scsi/pm8001/pm80xx_hwi.h | 6 ++++-- 7 files changed, 49 insertions(+), 17 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_defs.h b/drivers/scsi/pm8001/pm8001_defs.h index 199527dbaaa1..48e0624ecc68 100644 --- a/drivers/scsi/pm8001/pm8001_defs.h +++ b/drivers/scsi/pm8001/pm8001_defs.h @@ -132,4 +132,12 @@ enum pm8001_hba_info_flags { PM8001F_RUN_TIME = (1U << 1), }; +/** + * Phy Status + */ +#define PHY_LINK_DISABLE 0x00 +#define PHY_LINK_DOWN 0x01 +#define PHY_STATE_LINK_UP_SPCV 0x2 +#define PHY_STATE_LINK_UP_SPC 0x1 + #endif diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index 4dd6cad330e8..a14bf50a76d7 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -3810,7 +3810,8 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void* piomb) " status = %x\n", status)); if (status == 0) { phy->phy_state = 1; - if (pm8001_ha->flags == PM8001F_RUN_TIME) + if (pm8001_ha->flags == PM8001F_RUN_TIME && + phy->enable_completion != NULL) complete(phy->enable_completion); } break; diff --git a/drivers/scsi/pm8001/pm8001_hwi.h b/drivers/scsi/pm8001/pm8001_hwi.h index e4867e690c84..6d91e2446542 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.h +++ b/drivers/scsi/pm8001/pm8001_hwi.h @@ -131,10 +131,6 @@ #define LINKRATE_30 (0x02 << 8) #define LINKRATE_60 (0x04 << 8) -/* for phy state */ - -#define PHY_STATE_LINK_UP_SPC 0x1 - /* for new SPC controllers MEMBASE III is shared between BIOS and DATA */ #define GSM_SM_BASE 0x4F0000 struct mpi_msg_hdr{ diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 7a697ca68501..501830caba21 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -121,7 +121,7 @@ static void pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, int phy_id) { struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; struct asd_sas_phy *sas_phy = &phy->sas_phy; - phy->phy_state = 0; + phy->phy_state = PHY_LINK_DISABLE; phy->pm8001_ha = pm8001_ha; sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; sas_phy->class = SAS; @@ -1067,6 +1067,7 @@ static int pm8001_pci_probe(struct pci_dev *pdev, if (rc) goto err_out_shost; scsi_scan_host(pm8001_ha->shost); + pm8001_ha->flags = PM8001F_RUN_TIME; return 0; err_out_shost: diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index 947d6017d004..d8249675371e 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -157,9 +157,12 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, int rc = 0, phy_id = sas_phy->id; struct pm8001_hba_info *pm8001_ha = NULL; struct sas_phy_linkrates *rates; + struct sas_ha_struct *sas_ha; + struct pm8001_phy *phy; DECLARE_COMPLETION_ONSTACK(completion); unsigned long flags; pm8001_ha = sas_phy->ha->lldd_ha; + phy = &pm8001_ha->phy[phy_id]; pm8001_ha->phy[phy_id].enable_completion = &completion; switch (func) { case PHY_FUNC_SET_LINK_RATE: @@ -172,7 +175,7 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, pm8001_ha->phy[phy_id].maximum_linkrate = rates->maximum_linkrate; } - if (pm8001_ha->phy[phy_id].phy_state == 0) { + if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); wait_for_completion(&completion); } @@ -180,7 +183,7 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, PHY_LINK_RESET); break; case PHY_FUNC_HARD_RESET: - if (pm8001_ha->phy[phy_id].phy_state == 0) { + if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); wait_for_completion(&completion); } @@ -188,7 +191,7 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, PHY_HARD_RESET); break; case PHY_FUNC_LINK_RESET: - if (pm8001_ha->phy[phy_id].phy_state == 0) { + if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); wait_for_completion(&completion); } @@ -200,6 +203,25 @@ int pm8001_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, PHY_LINK_RESET); break; case PHY_FUNC_DISABLE: + if (pm8001_ha->chip_id != chip_8001) { + if (pm8001_ha->phy[phy_id].phy_state == + PHY_STATE_LINK_UP_SPCV) { + sas_ha = pm8001_ha->sas; + sas_phy_disconnected(&phy->sas_phy); + sas_ha->notify_phy_event(&phy->sas_phy, + PHYE_LOSS_OF_SIGNAL); + phy->phy_attached = 0; + } + } else { + if (pm8001_ha->phy[phy_id].phy_state == + PHY_STATE_LINK_UP_SPC) { + sas_ha = pm8001_ha->sas; + sas_phy_disconnected(&phy->sas_phy); + sas_ha->notify_phy_event(&phy->sas_phy, + PHYE_LOSS_OF_SIGNAL); + phy->phy_attached = 0; + } + } PM8001_CHIP_DISP->phy_stop_req(pm8001_ha, phy_id); break; case PHY_FUNC_GET_EVENTS: diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index 42f0405601ad..91ff6a44e9d9 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -3118,8 +3118,9 @@ static int mpi_phy_start_resp(struct pm8001_hba_info *pm8001_ha, void *piomb) pm8001_printk("phy start resp status:0x%x, phyid:0x%x\n", status, phy_id)); if (status == 0) { - phy->phy_state = 1; - if (pm8001_ha->flags == PM8001F_RUN_TIME) + phy->phy_state = PHY_LINK_DOWN; + if (pm8001_ha->flags == PM8001F_RUN_TIME && + phy->enable_completion != NULL) complete(phy->enable_completion); } return 0; @@ -3211,7 +3212,7 @@ static int mpi_hw_event(struct pm8001_hba_info *pm8001_ha, void *piomb) return 0; } phy->phy_attached = 0; - phy->phy_state = 0; + phy->phy_state = PHY_LINK_DISABLE; break; case HW_EVENT_PORT_INVALID: PM8001_MSG_DBG(pm8001_ha, @@ -3384,13 +3385,14 @@ static int mpi_phy_stop_resp(struct pm8001_hba_info *pm8001_ha, void *piomb) u32 status = le32_to_cpu(pPayload->status); u32 phyid = - le32_to_cpu(pPayload->phyid); + le32_to_cpu(pPayload->phyid) & 0xFF; struct pm8001_phy *phy = &pm8001_ha->phy[phyid]; PM8001_MSG_DBG(pm8001_ha, pm8001_printk("phy:0x%x status:0x%x\n", phyid, status)); - if (status == 0) - phy->phy_state = 0; + if (status == PHY_STOP_SUCCESS || + status == PHY_STOP_ERR_DEVICE_ATTACHED) + phy->phy_state = PHY_LINK_DISABLE; return 0; } diff --git a/drivers/scsi/pm8001/pm80xx_hwi.h b/drivers/scsi/pm8001/pm80xx_hwi.h index 889e69ce3689..dead05a55aab 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.h +++ b/drivers/scsi/pm8001/pm80xx_hwi.h @@ -170,6 +170,10 @@ #define LINKRATE_60 (0x04 << 8) #define LINKRATE_120 (0x08 << 8) +/*phy_stop*/ +#define PHY_STOP_SUCCESS 0x00 +#define PHY_STOP_ERR_DEVICE_ATTACHED 0x1046 + /* phy_profile */ #define SAS_PHY_ANALOG_SETTINGS_PAGE 0x04 #define PHY_DWORD_LENGTH 0xC @@ -216,8 +220,6 @@ #define SAS_DOPNRJT_RTRY_TMO 128 #define SAS_COPNRJT_RTRY_TMO 128 -/* for phy state */ -#define PHY_STATE_LINK_UP_SPCV 0x2 /* Making ORR bigger than IT NEXUS LOSS which is 2000000us = 2 second. Assuming a bigger value 3 second, 3000000/128 = 23437.5 where 128 From patchwork Tue Sep 11 08:48:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 10595319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 452DC920 for ; Tue, 11 Sep 2018 08:50:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 311A42924F for ; Tue, 11 Sep 2018 08:50:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 251DA29255; Tue, 11 Sep 2018 08:50:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8B3D2924F for ; Tue, 11 Sep 2018 08:50:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbeIKNsi (ORCPT ); Tue, 11 Sep 2018 09:48:38 -0400 Received: from mail-bl2nam02on0071.outbound.protection.outlook.com ([104.47.38.71]:16064 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726798AbeIKNsi (ORCPT ); Tue, 11 Sep 2018 09:48:38 -0400 Received: from MWHPR0201CA0033.namprd02.prod.outlook.com (2603:10b6:301:74::46) by BN7PR02MB5300.namprd02.prod.outlook.com (2603:10b6:408:2b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Tue, 11 Sep 2018 08:48:26 +0000 Received: from BY2FFO11FD010.protection.gbl (2a01:111:f400:7c0c::117) by MWHPR0201CA0033.outlook.office365.com (2603:10b6:301:74::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.17 via Frontend Transport; Tue, 11 Sep 2018 08:48:26 +0000 Authentication-Results: spf=pass (sender IP is 208.19.99.221) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.99.221 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.99.221; helo=AUSMBX1.microsemi.net; Received: from AUSMBX1.microsemi.net (208.19.99.221) by BY2FFO11FD010.mail.protection.outlook.com (10.1.14.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1122.11 via Frontend Transport; Tue, 11 Sep 2018 08:48:26 +0000 Received: from AUSMBX1.microsemi.net (10.201.34.31) by AUSMBX1.microsemi.net (10.201.34.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Tue, 11 Sep 2018 03:48:12 -0500 Received: from localhost (10.187.72.82) by ausmbx1.microsemi.net (10.201.34.31) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Tue, 11 Sep 2018 03:48:11 -0500 From: Viswas G To: CC: , , , , Subject: [PATCH V2 2/4] pm80xx : Corrected dma_unmap_sg() parameter. Date: Tue, 11 Sep 2018 14:18:03 +0530 Message-ID: <20180911084805.4802-3-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.19.0-rc1 In-Reply-To: <20180911084805.4802-1-Viswas.G@microsemi.com> References: <20180911084805.4802-1-Viswas.G@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.99.221;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(376002)(396003)(346002)(39860400002)(2980300002)(438002)(199004)(189003)(14444005)(26005)(305945005)(48376002)(77096007)(54906003)(356003)(97736004)(47776003)(81156014)(8676002)(86362001)(81166006)(186003)(6916009)(2351001)(69596002)(2906002)(76176011)(126002)(36756003)(4326008)(68736007)(106002)(2870700001)(57986006)(478600001)(446003)(51416003)(50226002)(8936002)(76506005)(50466002)(476003)(2616005)(1076002)(316002)(53936002)(106466001)(336012)(5660300001)(11346002)(6666003)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR02MB5300;H:AUSMBX1.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD010;1:QERUQYC7VWbaxKqbW9GgiwF3BSzYEa1TftJ8LWpTM24skQ9uxItei1jWEqWpptejKws7NUUj7Bj6RHA6vjmLokA3eD41vl28ypKZNyDaAMOJmXBVX+G/VO/8yuk4+g4i X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 486d1ef8-eafe-4073-7a78-08d617c356c6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR02MB5300; X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB5300;3:RBU0q2BGSP4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hFFdjphnFD7KzjxjOWVktZKJz+e5CsdtdqLNET87OMWGNnTMHbykaF5shrEnT5CM9v67KWIGXlvtlPMafkHW0qOt1YJV/1YzXMnCewz3VP9wOx/+yj/Zb8ChTzUHY86rNZDEwGKo22AaVHBxixc0KnsFsmFG1AMFPBlPpee+vn+64ODY5bENHKIE8DlwgE1aOtXV+c71/evD2Uwuj5dpBiVwiNMY3AIRqWayc4umVfMj5Ds11MhQYb2gg8AFftpG0mp/2skUoW+JqI30iKL+Q4MCzq3YRNghtdnxSST1+YE5GJgKZ7yBz9u1ULXRAYxQ70IH5AVAp0uBAmxqabZt85zBbMmb/grZuRSIUInEcAh0+zc9NbtgC9G54BuOKe2s0hSGgKgWMtDhH/PYaD5b5mapa/HD+GQqVPQ54GRQSYu0JHqaUiA6xb85o9MLi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:BN7PR02MB5300;BCL:0;PCL:0;RULEID:;SRVR:BN7PR02MB5300; X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB5300;4:45KEXcI+x+u00ZhFYse1ZgaOGyKVj4VxIqit7RZAELzcnvyXCTH1nzTjK0iCbWO4jsjgJS1OULo6vXlHS8ryyDWXCstcvYWenkJNOUZ7KOm0ug56lhhDoc0mlkAr75hhIq4d/F8bHAAXyr2XcAbwwttqfIMPwX9D0s/dBtvSvPICUVMJexEWkf8kNmhrTEdYFmFuI7prYFT2vyF+kIH0ZW/3ibvrxjEvS/F61oMdz8oSs+AphxvAxppba4DguXF54aiumFD1lf3WlCsrX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Mj0gPbE9tQW2ZsCAWhQL4JCVQzIUcVzPRQ02sJzdp2YzRHg==;5:V00IOQ7nSB2zW5YcVgomTvCfgY/2Q7Ony9VJUyt66kM7EP8rt7qNIaRhKgsp5mErjrTkEmT1lrg+XounBB8SaZQUZOjk06z1yVEyKvwh7142gvcipHsIx0fyXk1/t13sqfcES2IudzY/PDVlwwKFSOEhkpBW2bayCDJk5H+FeKA=;7:jxIhy75fHPVN56Jxb7WpCIhrKZ5rlJ9+qVwn0LFZ5S2Um8lLSsVJrDaMjHQhPXTFlEhydpxwpW08zQB2y/ebjxQyBRHsW1RgMe/02X389qOqvHysn579RUSueIxL9tOwP7jKzAzMtNbdI59bSw66Q/t+x+7D1Fd6pRiuIQ8eEcH2D/4yHcqSP201NvwBOLNgCtNQ6SEAr3fCcOa9G7Qw4rl4zCYxEl5pfsS/+wLbOLry8EAOpZMxBFAAgBO860zX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 08:48:26.0319 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 486d1ef8-eafe-4073-7a78-08d617c356c6 X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.99.221];Helo=[AUSMBX1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB5300 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Deepak Ukey For the function dma_unmap_sg(), the parameter should be number of elements in the scatter list prior to the mapping, not after the mapping. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index d8249675371e..e063faad66f5 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -488,7 +488,7 @@ static int pm8001_task_exec(struct sas_task *task, dev_printk(KERN_ERR, pm8001_ha->dev, "pm8001 exec failed[%d]!\n", rc); if (!sas_protocol_ata(t->task_proto)) if (n_elem) - dma_unmap_sg(pm8001_ha->dev, t->scatter, n_elem, + dma_unmap_sg(pm8001_ha->dev, t->scatter, t->num_scatter, t->data_dir); out_done: spin_unlock_irqrestore(&pm8001_ha->lock, flags); From patchwork Tue Sep 11 08:48:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 10595317 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 38CD7921 for ; Tue, 11 Sep 2018 08:49:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 261B32924C for ; Tue, 11 Sep 2018 08:49:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1970F29252; Tue, 11 Sep 2018 08:49:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C700C2924C for ; Tue, 11 Sep 2018 08:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726548AbeIKNru (ORCPT ); Tue, 11 Sep 2018 09:47:50 -0400 Received: from mail-dm3nam03on0070.outbound.protection.outlook.com ([104.47.41.70]:56788 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726587AbeIKNru (ORCPT ); Tue, 11 Sep 2018 09:47:50 -0400 Received: from BL0PR02CA0064.namprd02.prod.outlook.com (2603:10b6:207:3d::41) by BN7PR02MB4036.namprd02.prod.outlook.com (2603:10b6:406:fe::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Tue, 11 Sep 2018 08:48:26 +0000 Received: from BN1AFFO11FD019.protection.gbl (2a01:111:f400:7c10::147) by BL0PR02CA0064.outlook.office365.com (2603:10b6:207:3d::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.16 via Frontend Transport; Tue, 11 Sep 2018 08:48:26 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.21 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.21; helo=AVMBX1.microsemi.net; Received: from AVMBX1.microsemi.net (208.19.100.21) by BN1AFFO11FD019.mail.protection.outlook.com (10.58.52.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1122.11 via Frontend Transport; Tue, 11 Sep 2018 08:48:25 +0000 Received: from AVMBX2.microsemi.net (10.100.34.32) by AVMBX1.microsemi.net (10.100.34.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Tue, 11 Sep 2018 01:48:14 -0700 Received: from localhost (10.187.72.82) by avmbx2.microsemi.net (10.100.34.32) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Tue, 11 Sep 2018 01:48:14 -0700 From: Viswas G To: CC: , , , , Subject: [PATCH V2 3/4] pm80xx : Fixed system hang issue during kexec boot. Date: Tue, 11 Sep 2018 14:18:04 +0530 Message-ID: <20180911084805.4802-4-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.19.0-rc1 In-Reply-To: <20180911084805.4802-1-Viswas.G@microsemi.com> References: <20180911084805.4802-1-Viswas.G@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(346002)(376002)(136003)(396003)(2980300002)(438002)(189003)(199004)(476003)(2870700001)(57986006)(81156014)(6916009)(486006)(86362001)(575784001)(36756003)(8936002)(48376002)(2906002)(97736004)(126002)(50226002)(11346002)(26005)(4326008)(77096007)(186003)(53936002)(446003)(6666003)(76506005)(2351001)(47776003)(356003)(81166006)(50466002)(69596002)(68736007)(305945005)(106466001)(14444005)(478600001)(2616005)(54906003)(316002)(106002)(1076002)(5660300001)(8676002)(76176011)(51416003)(336012);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR02MB4036;H:AVMBX1.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD019;1:zqM/MmL0tmr2CACB6w/Jt0u1CM8OYMNcy2lZxIEuRrCzGFriZQOF0wVdHJ0noq94QELmOwXqYCYYMMIcRNmVV9pqRg7I6AtWOj8u2HQJcPTuJ1XQpZRorVg3YI6G1Q0K X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 114a06dd-d911-42c8-e1d5-08d617c356dd X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR02MB4036; X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB4036;3:a+H41KFYY+QpHYGEJUPnhbTgh8J6VkovDyVYbLJzj1X7yo5lgiUQ72yOEC9B/Vb1qG24FqaGJL1oFu8qnEg029IqZsXZ5ldtVMkEBOONbwuL4UgDGl5T+ROfQ1gQhQi9P72VjvFy7uEUiv8bZ937fts6gs8lcY+3xxc0CN7EjCpN8WOxcoVBN/DO9eu/aIW+Fwenw310vNXpyHS8aZUYrXai/vsLtCb3rmKAZEZNQHyZ+SNS8R3Map+AIezjO78KwzP8iEKBuY+9TSi55KBRb+4wT/Cv6/NH1YDFaWVnkxWpHso4NzDpzdG8DIB2NDJj0g+ma5NpFJD/D/OpQpmot8CSSlrG4jhv4WsdW3Kg2kw=;25:oTnx8X7fWfPUYeZlFJaFkgcLGn2pfWtJkoFbZOUKUykj1xgvsMzOv2RvAvds7kdR+h/lfl9Y5dHWKrSla0SyLHplyY0ARMlgCopqlwCPGUy5C9gxxnd7AiLwSggHeDZZ5lh/rEiOG2n2dtFpgMLGbAQTBSx7Kq/JtKYgozggQRsYgQ8G9fRU/qDkqOZk9NM4k9kHEijexjBWjH5BvhdvJNxKZet/Je13k242N5zVou44B0xguspNJILXeCVJprMkLRPBsxzrsIkr2CVY+XZfIRKjUhRWehNc7H+noGJZDYaByO4jN7H6p9Uf3Owo8liAB4t02g51X9kgKHOArypevw== X-MS-TrafficTypeDiagnostic: BN7PR02MB4036: X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB4036;31:apkgM3BwbhNooHbTfxReZA7w9Cx894aImebZOKP14H7xXdI7KfXZGgjy+SZQw5FXaAQu8dH+yWoK4fon0aJ6V3L+TP2FiLpMpjZnc535x8cT2VDzphXadjLrrmdHdqRumaj4kN89PectHEx9nNzZDzw0G4YMV+bfF2mtiBhKdr24Em4RlkVjBz+Oosa1BYuydXoQBAcCEoxR2AveELDLAKdNVEt2IqdrD49niWypvDg=;20:J4i2eEC+I91q1HS4cqBJAbZHxQvxaoRW1f8ANaKQENmUmcLLhDBi4VDdW0ng8BUXbPlsbW5RZ/iuUs+Gt2nOac6FaAgts4Qr5glVXNcKSMP8mFs243M5zOxqfbgb3hDW9l/mZo7Z+GabA8+BtHSzJ9UqJsyxm0UgA/7BKT3xvu2cJObbo7q4z3dRjpxMxOGke/d35RtO7XFLKOMzISyf0daV1ZdQjSyRjLNJ1WFVjkiMacaqMC7hnrRxop46RqMGFuwWSjCf7QXOB26bCKTfWUCFa2LvMLNrapflzmpUiBcyRFm45v7SUtrtfbRLWwXqlF9UzzJ09DrSuyRxtrozaHbUKWiaS9aAaWHcGxwK9A3iqJ8/cF/64BOsgi4s82vKB00SsJ0rJ8iCelirv4DkRe+sZFw7PfHgABFEWIaKXmr9AFhWfLMe74RS4aqH0m8PVTDk2KBlE+OXJgnV/IuI2B+11jDLfQnEMD/zylimIyw8s9V4hzqrb6CNvrYiKE2hv4S7dH65MaPXxvtkpVwW5gQ7zKkUfftp3tojSrmSvztZTA6zT0yITw1+Ks3eezyV/n2N9CN1Ixtvuhzpp64DaU95Jsax7jJit41VT4+Opp0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3002001)(10201501046)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201708071742011)(7699050);SRVR:BN7PR02MB4036;BCL:0;PCL:0;RULEID:;SRVR:BN7PR02MB4036; X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB4036;4:Jzxkk26sIckkt5iPUCRbLpbxs/ewa3rb8Jx/CFG7Rp3OsNeimf7NyqVUuIGnXHTBFDunGpopKXi25EZMBVrhgWUn/sMP5FXVq8AHov3DTZpv3r2H/g4c+obu7CWj0vtNs/JyktoxcXyE66//IlqC8u3pf6dHBKS+d6WnD8dK12ndeHkFUcWKVrRewHv9jJKNiTwUB6INVl8t1+LbPpr5kYHC6EU3HZtNKotwl9WD6ZPF7P5/pqFTawirrFcj6owE1iOXxiCpgxrDKLB/UUvR6g== X-Forefront-PRVS: 0792DBEAD0 X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB4036;23:h+mVOLzTloyMiDyQkl9SUOje09USudhXjGgi6WPQ11uxcFX8yYnQf2t0yjooNkV3mbv39B31GLbyDmXvD0fWghMABwBweAFwUkumUtE1Aj5E8nby4cbulOkw8qW+QEf3X/C2RJj8DpuEdOEFIjwsXnjLe2QXvEf+kA5cRVx1vB4976NH2nV3VW/WPMmXj2rFdwakfqKyB7AxvSvANSByvewKbeag7hUhfzAgNHXYetuQGQHeEwrpDfFe9Zlbli4tsZm15E9KTONRydlCvIf87jWr8vJkuNTg19xNM3wbnK1Y81X7FedpB6hKtG+aFANyIWqjyZUr44ZWGqrkCuOPIVRWi7t5io5zSFG0tYmx0qEG9JK8ZQshi1RipsnDP2EJ8oD75IdnOo02s5RhGs7IavgKUbpAa/cjtmWy2DFzyKsj/o6i9q3mL5VJlNpUWQMefPhmPKyT6eg4yyjhusI8qsRUGn0GE0mWc873PKqOvL8ER4PwNQcUSQNVjWBR3Iss114tL5ui7NvT4gyaU8AA3bHXF7mUdgOs/gAd7BrQXIavfsI9rg1POcb0rgz4pS0UMfagCvW48HyEfjf2ExYt51rwgi2VRpN4sdvCWLlJQ9KwYnG+hot49BULGBDat298bMJ8o7nduztkmoZr7hXVGF6gidUMmF0zjKM7bY3rljRvs3s2o7qZnrGEZ+08yLwaEn5vJmfJW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9rjw/h/EuB9q7umXLqS8ipSUycs7ZmEDQrGJYZFtUhy1JnUrxiU5HOAENbL9oCdWgiE1PZtaN+ToISXwECIvK1SQk9YODnJd5CfHroVnofEIA2AI5h5XDQxULkTCq1mtTZrEMTyI26sHR4gbq1bryxmkAsiRDhlatZbJz6BLhjVhbHleJr/Jc3vlSnDWRMDZsYCU/DblHidtaukS0/HzzC5zv131AjvIli8Z+EgiVp4zEgqccKD/PV9SGPANDkIjfZ+HLbXeUiYOn7sJVjU1cIFobagZ3bqQsEKoYxt5IYFWARtv3xeadTWfkvSnfRoLAki8Sg==;5:TeD+YJBNuyi+IjLyJwRhRvAM3Xyt6tpy2Av7pJsMDt+nfa+7p5U8UWTj9lH3CdVsf0G78za3+RlzlXrL3vdbYYttG2qiUrxKLtVQuu0XtGmIPbduZ9Qh/i6Ef55NrdZkBonU8WNvdUHrNBO0w10nMqF849G24GrXnts9Nsd71h4=;7:I9cc8p/ARminXaDINWfHY+f9345QNlG13Z8dEnE3X2E8cQ4NEM5rSRu/eFi0XwAvItwISxFZ1ypUGJDejduNmbXEatJVJbwgo9NUuZFDwu/iWT6tlHJ8m1YpwVYrpSy/E7lR50Ui04y+kO3R5Oe7x4aTJcosnuq3Fw/TFZKKZy33zOuJBTixj+RhUV4QBg+jMYmd0OAIhQk3JjJzHkraFMNi8FGLDrLhSaP0CJmYSeuCj0iqCGJGhypdVC4jkXp3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 08:48:25.9822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 114a06dd-d911-42c8-e1d5-08d617c356dd X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.100.21];Helo=[AVMBX1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB4036 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Deepak Ukey When the firmware is not responding, execution of kexec boot causes a system hang. When firmware assertion happened, driver get notified with interrupt vector updated in MPI configuration table. Then, the driver will read scratchpad register and set controller_fatal_error flag to true. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_hwi.c | 6 +++ drivers/scsi/pm8001/pm8001_sas.c | 7 +++ drivers/scsi/pm8001/pm8001_sas.h | 1 + drivers/scsi/pm8001/pm80xx_hwi.c | 80 +++++++++++++++++++++++++++++--- drivers/scsi/pm8001/pm80xx_hwi.h | 3 ++ 5 files changed, 91 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index a14bf50a76d7..e37ab9789ba6 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -1479,6 +1479,12 @@ u32 pm8001_mpi_msg_consume(struct pm8001_hba_info *pm8001_ha, } else { u32 producer_index; void *pi_virt = circularQ->pi_virt; + /* spurious interrupt during setup if + * kexec-ing and driver doing a doorbell access + * with the pre-kexec oq interrupt setup + */ + if (!pi_virt) + break; /* Update the producer index from SPC */ producer_index = pm8001_read_32(pi_virt); circularQ->producer_index = cpu_to_le32(producer_index); diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index e063faad66f5..b1e7d2699311 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -396,6 +396,13 @@ static int pm8001_task_exec(struct sas_task *task, return 0; } pm8001_ha = pm8001_find_ha_by_dev(task->dev); + if (pm8001_ha->controller_fatal_error) { + struct task_status_struct *ts = &t->task_status; + + ts->resp = SAS_TASK_UNDELIVERED; + t->task_done(t); + return 0; + } PM8001_IO_DBG(pm8001_ha, pm8001_printk("pm8001_task_exec device \n ")); spin_lock_irqsave(&pm8001_ha->lock, flags); do { diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h index 80b4dd6df0c2..1816e351071f 100644 --- a/drivers/scsi/pm8001/pm8001_sas.h +++ b/drivers/scsi/pm8001/pm8001_sas.h @@ -538,6 +538,7 @@ struct pm8001_hba_info { u32 logging_level; u32 fw_status; u32 smp_exp_mode; + bool controller_fatal_error; const struct firmware *fw_image; struct isr_param irq_vector[PM8001_MAX_MSIX_VEC]; u32 reset_in_progress; diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index 91ff6a44e9d9..b641875b8ad7 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -577,6 +577,9 @@ static void update_main_config_table(struct pm8001_hba_info *pm8001_ha) pm8001_ha->main_cfg_tbl.pm80xx_tbl.pcs_event_log_size); pm8001_mw32(address, MAIN_PCS_EVENT_LOG_OPTION, pm8001_ha->main_cfg_tbl.pm80xx_tbl.pcs_event_log_severity); + /* Update Fatal error interrupt vector */ + pm8001_ha->main_cfg_tbl.pm80xx_tbl.fatal_err_interrupt |= + ((pm8001_ha->number_of_intr - 1) << 8); pm8001_mw32(address, MAIN_FATAL_ERROR_INTERRUPT, pm8001_ha->main_cfg_tbl.pm80xx_tbl.fatal_err_interrupt); pm8001_mw32(address, MAIN_EVENT_CRC_CHECK, @@ -1110,6 +1113,9 @@ static int pm80xx_chip_init(struct pm8001_hba_info *pm8001_ha) return -EBUSY; } + /* Initialize the controller fatal error flag */ + pm8001_ha->controller_fatal_error = false; + /* Initialize pci space address eg: mpi offset */ init_pci_device_addresses(pm8001_ha); init_default_table_values(pm8001_ha); @@ -1218,13 +1224,17 @@ pm80xx_chip_soft_rst(struct pm8001_hba_info *pm8001_ha) u32 bootloader_state; u32 ibutton0, ibutton1; - /* Check if MPI is in ready state to reset */ - if (mpi_uninit_check(pm8001_ha) != 0) { - PM8001_FAIL_DBG(pm8001_ha, - pm8001_printk("MPI state is not ready\n")); - return -1; + /* Process MPI table uninitialization only if FW is ready */ + if (!pm8001_ha->controller_fatal_error) { + /* Check if MPI is in ready state to reset */ + if (mpi_uninit_check(pm8001_ha) != 0) { + regval = pm8001_cr32(pm8001_ha, 0, MSGU_SCRATCH_PAD_1); + PM8001_FAIL_DBG(pm8001_ha, pm8001_printk( + "MPI state is not ready scratch1 :0x%x\n", + regval)); + return -1; + } } - /* checked for reset register normal state; 0x0 */ regval = pm8001_cr32(pm8001_ha, 0, SPC_REG_SOFT_RESET); PM8001_INIT_DBG(pm8001_ha, @@ -3754,6 +3764,46 @@ static void process_one_iomb(struct pm8001_hba_info *pm8001_ha, void *piomb) } } +static void print_scratchpad_registers(struct pm8001_hba_info *pm8001_ha) +{ + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_SCRATCH_PAD_0: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_SCRATCH_PAD_0))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_SCRATCH_PAD_1:0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_SCRATCH_PAD_1))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_SCRATCH_PAD_2: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_SCRATCH_PAD_2))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_SCRATCH_PAD_3: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_SCRATCH_PAD_3))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_HOST_SCRATCH_PAD_0: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_0))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_HOST_SCRATCH_PAD_1: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_1))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_HOST_SCRATCH_PAD_2: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_2))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_HOST_SCRATCH_PAD_3: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_3))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_HOST_SCRATCH_PAD_4: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_4))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_HOST_SCRATCH_PAD_5: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_5))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_RSVD_SCRATCH_PAD_0: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_6))); + PM8001_FAIL_DBG(pm8001_ha, + pm8001_printk("MSGU_RSVD_SCRATCH_PAD_1: 0x%x\n", + pm8001_cr32(pm8001_ha, 0, MSGU_HOST_SCRATCH_PAD_7))); +} + static int process_oq(struct pm8001_hba_info *pm8001_ha, u8 vec) { struct outbound_queue_table *circularQ; @@ -3761,10 +3811,28 @@ static int process_oq(struct pm8001_hba_info *pm8001_ha, u8 vec) u8 uninitialized_var(bc); u32 ret = MPI_IO_STATUS_FAIL; unsigned long flags; + u32 regval; + if (vec == (pm8001_ha->number_of_intr - 1)) { + regval = pm8001_cr32(pm8001_ha, 0, MSGU_SCRATCH_PAD_1); + if ((regval & SCRATCH_PAD_MIPSALL_READY) != + SCRATCH_PAD_MIPSALL_READY) { + pm8001_ha->controller_fatal_error = true; + PM8001_FAIL_DBG(pm8001_ha, pm8001_printk( + "Firmware Fatal error! Regval:0x%x\n", regval)); + print_scratchpad_registers(pm8001_ha); + return ret; + } + } spin_lock_irqsave(&pm8001_ha->lock, flags); circularQ = &pm8001_ha->outbnd_q_tbl[vec]; do { + /* spurious interrupt during setup if kexec-ing and + * driver doing a doorbell access w/ the pre-kexec oq + * interrupt setup. + */ + if (!circularQ->pi_virt) + break; ret = pm8001_mpi_msg_consume(pm8001_ha, circularQ, &pMsg1, &bc); if (MPI_IO_STATUS_SUCCESS == ret) { /* process the outbound message */ diff --git a/drivers/scsi/pm8001/pm80xx_hwi.h b/drivers/scsi/pm8001/pm80xx_hwi.h index dead05a55aab..84d7426441bf 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.h +++ b/drivers/scsi/pm8001/pm80xx_hwi.h @@ -1386,6 +1386,9 @@ typedef struct SASProtocolTimerConfig SASProtocolTimerConfig_t; #define SCRATCH_PAD_BOOT_LOAD_SUCCESS 0x0 #define SCRATCH_PAD_IOP0_READY 0xC00 #define SCRATCH_PAD_IOP1_READY 0x3000 +#define SCRATCH_PAD_MIPSALL_READY (SCRATCH_PAD_IOP1_READY | \ + SCRATCH_PAD_IOP0_READY | \ + SCRATCH_PAD_RAAE_READY) /* boot loader state */ #define SCRATCH_PAD1_BOOTSTATE_MASK 0x70 /* Bit 4-6 */ From patchwork Tue Sep 11 08:48:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viswas G X-Patchwork-Id: 10595297 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7CFA5921 for ; Tue, 11 Sep 2018 08:48:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B9DA2924C for ; Tue, 11 Sep 2018 08:48:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6007B29262; Tue, 11 Sep 2018 08:48:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C37532924C for ; Tue, 11 Sep 2018 08:48:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726876AbeIKNqv (ORCPT ); Tue, 11 Sep 2018 09:46:51 -0400 Received: from mail-sn1nam02on0086.outbound.protection.outlook.com ([104.47.36.86]:31520 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726804AbeIKNqv (ORCPT ); Tue, 11 Sep 2018 09:46:51 -0400 Received: from BL0PR02CA0097.namprd02.prod.outlook.com (2603:10b6:208:51::38) by DM6PR02MB4043.namprd02.prod.outlook.com (2603:10b6:5:96::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.17; Tue, 11 Sep 2018 08:48:31 +0000 Received: from BN1AFFO11FD015.protection.gbl (2a01:111:f400:7c10::167) by BL0PR02CA0097.outlook.office365.com (2603:10b6:208:51::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.15 via Frontend Transport; Tue, 11 Sep 2018 08:48:30 +0000 Authentication-Results: spf=pass (sender IP is 208.19.99.222) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.99.222 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.99.222; helo=AUSMBX2.microsemi.net; Received: from AUSMBX2.microsemi.net (208.19.99.222) by BN1AFFO11FD015.mail.protection.outlook.com (10.58.52.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1122.11 via Frontend Transport; Tue, 11 Sep 2018 08:48:30 +0000 Received: from AUSMBX2.microsemi.net (10.201.34.32) by AUSMBX2.microsemi.net (10.201.34.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Tue, 11 Sep 2018 03:48:17 -0500 Received: from localhost (10.187.72.82) by ausmbx2.microsemi.net (10.201.34.32) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Tue, 11 Sep 2018 03:48:17 -0500 From: Viswas G To: CC: , , , , Subject: [PATCH V2 4/4] pm80xx : Update driver version to 0.1.39 Date: Tue, 11 Sep 2018 14:18:05 +0530 Message-ID: <20180911084805.4802-5-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.19.0-rc1 In-Reply-To: <20180911084805.4802-1-Viswas.G@microsemi.com> References: <20180911084805.4802-1-Viswas.G@microsemi.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.99.222;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(396003)(376002)(346002)(39860400002)(2980300002)(438002)(189003)(199004)(76506005)(186003)(336012)(48376002)(97736004)(486006)(36756003)(2616005)(2870700001)(446003)(11346002)(50466002)(126002)(476003)(5660300001)(57986006)(106002)(356003)(77096007)(305945005)(50226002)(69596002)(478600001)(106466001)(2906002)(81156014)(1076002)(51416003)(316002)(6666003)(54906003)(4326008)(47776003)(86362001)(6916009)(26005)(76176011)(15650500001)(53936002)(575784001)(68736007)(8676002)(81166006)(2351001)(8936002)(14444005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR02MB4043;H:AUSMBX2.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD015;1:F2lXxZOJ0NCwrAp4KQaNFCDQVvAK26gVvPPfCWmAKZrsG5YH09o7glNPrpVsy3jaFIt8kwy/4xo+iOKufpdyVGfWUVqiLB7lkP0kfGXFDM/fyYziA+icXat0RvYjuCa8 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c61e773-7036-4e95-1861-08d617c35972 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM6PR02MB4043; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4043;3:KzSuYuCvW9SadBD2mqu+dNuNH/qdsqM0ILJLviXQQsZS027MxKN071T02/8UMWFu0fOtfIgSaIYPZBDVvXjHpqgoUAy0K2z9iak8vlltJ8KiS0pgpy747lPdrT0ZJNg4cQ+MNI9mEWqVKSCv0Sw9K9nLXRmMeBoqgIytElXIZHixEdVDFeMa6sI6DIP8t7h+bQKwoU12SSJTVjLOYtkEgw4xrqwK5SdIK1Rs4LcS8sQQPd00Pq3wa6I/dHsYCvsqeB/Mav02Xr4FERSpxtKvia6YJUZNHjq7zssVK98XzPiIBQ4MepxCHo6cmR7flWanksuip2OPp0PoY1ObA06dU+Vnk/T3z0Pjm2/vZkVI+xg=;25:D1S0nD23Q9KkJnFwHj2740+KvJJk5XbGmuxOeDPuSF4uDBPgddoRjp9rE3jAP0Si5UQ1TmjZnilA9Vsy7/25tjgbj+trVOaEO/3kRfyWnDqq0hjfTi8xZp4LjbTPSZOUX0hXBncycKRVmg1yhMPU6J+3Mqi/nHX04n99iVPDDkYEPMMv3ABbwYncXO3MWUwbI8NcN0gDN2fDovO3nKuQOyW0zU3yPEbCtlAS0DuBsPnO0yjbEG6VTYDZrNUIsuUFHQUWLtBnLji6pM1B3z9ArkrstM1LLNMZah5LE8/wnrW5qD+PhCsme3Ams7BspF4klryH4nMPaAdl+eLskJc+ow== X-MS-TrafficTypeDiagnostic: DM6PR02MB4043: X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4043;31:2gLzOJo/AVryDz/5RKOMpQUShwqBWaj9ED5a1CdwgwtL3amapXm76nYBVIRZ0CBlvF5t45TYQibPIsB5iq93NifJUdpukhUAQw1Llrc6Nk4blnfWjf5v4YKI9NXvUPSKiBmdXfIRHWEdNFeDwQOLgjimaBhAPO5EhjlqsHLUmXxyVe0ncygyezzJXPLfKwsMzV2Uk875pe9OnaMbdPt+8HJwpBuinf5dAb4BpTIvAVs=;20:bRJ7ex7TcbjRYTrKMpdmGMYfftaA2qqUJDiqdKmztyeETatEZ19UlzfIud+4MWH28BsIzNOOxyb6Ou8Utul+2fE/czzpVOHT/GAgMUlPKLD2om2aqn1aPCxS8Yf6vDfgW9A/kl099hRRrIcLUKPMKZp4HVvXPjrNTE+bkH2jNubj+GoVI1Qkb4yq2XaldYIxUpKZl2jdIJDiOMPQrGal7XapI0cWmPGbH3+OX4wGRAzjQrUgY/eUG85q07PuMy+6hXdvCcmCqG7lBCs+5xy7HmFWQTM6myp5ewTHB4GtoSjXwHgQqF6FpwFCleFw6QU0xSSmqaF2DdBx51N3WPbSyLyKgeuQAK8l2kLijq3qQJMtnUD8ocEZxo4w41UCYQLq6T4MseuG+YUR/EfeaxDPuDOypm0ptWNQs0hL00mcJLWh3bQvn3uaFIlNjwJpguRX+VxzFp/uDp5jRdRFuCSXPDflClnTuKVCeIL8Fs2SpZicJDYfWpUQTtRXLiJngT0x X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3002001)(3231311)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:DM6PR02MB4043;BCL:0;PCL:0;RULEID:;SRVR:DM6PR02MB4043; X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4043;4:nMEEP3m/NT8ev7LjauKo1GwN+upfCcVVwsyFQ+VX0mG6L9jOyJ3/VqR8Sct5IsX2r4Do3/Rd55n87nMM+AXhv3YvUj7mwsMXSAog5WVU9hTkTTatMhLan4vokCB7jKhIuyD5M+HQeyy8VbpBDyy2I8J7UM7I5b2u1qKqiBI5qOAM0M6h9l4k+MsXtJ9emPK7j4ulNBP7HvrD59msydFNHc8sF689dh+SldhrowwY0Lj7ZlhrwnagXSmj2MpQ6K7+UuEZtIG9ofADH79UMMl0Mw== X-Forefront-PRVS: 0792DBEAD0 X-Microsoft-Exchange-Diagnostics: 1;DM6PR02MB4043;23:tlDe5pOMXAjtoc9k3jhr4JGtH0DjFVLGmLYEmtaIdSJoaYNHSbC22STYfxzRj5mnOmPZIiiQoposOKwCaO3I5TcODjfClEpIC9W0PV3i42ZSeVRYfbvtoBR5cJfPCF9EooSJzTmH0Qu7qo1TAJkGkqzvz7g7K1MVLSO4wTM9ABeHo5L6rE1QsgYeNQ/ZcajYWPfddqr3P67q5vUdFcOA4KKECCLPvRGbOUV7fn2gpFx10bOjB8+yvMVmxC1ZgsX2/TkgkTzftb3AnEyzigqnyd6fHhrez7wGSWIlqYyJf+RkthlYTAFdf8BlPLX0uEYpTEwRxsLajMx+wi1PwI3+eF1A2sFKt5nlxyufFm+I3r7hVyBolOceSQjvu2ipyfLvQ4t8EHW0oJFs40/HnE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agnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 08:48:30.4964 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c61e773-7036-4e95-1861-08d617c35972 X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.99.222];Helo=[AUSMBX2.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB4043 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Deepak Ukey Updated the driver version from 0.1.38 to 0.1.39. Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_sas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h index 1816e351071f..f88b0d33c385 100644 --- a/drivers/scsi/pm8001/pm8001_sas.h +++ b/drivers/scsi/pm8001/pm8001_sas.h @@ -58,7 +58,7 @@ #include "pm8001_defs.h" #define DRV_NAME "pm80xx" -#define DRV_VERSION "0.1.38" +#define DRV_VERSION "0.1.39" #define PM8001_FAIL_LOGGING 0x01 /* Error message logging */ #define PM8001_INIT_LOGGING 0x02 /* driver init logging */ #define PM8001_DISC_LOGGING 0x04 /* discovery layer logging */