Message ID | 150853628650.28275.7433236747576438555.stgit@brunhilda (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 591FF60234 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 20 Oct 2017 21:52:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AD2628F67 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 20 Oct 2017 21:52:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DDA228F6D; Fri, 20 Oct 2017 21:52:17 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 A266428F67 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 20 Oct 2017 21:52:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753497AbdJTVwP (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 20 Oct 2017 17:52:15 -0400 Received: from mail-bn3nam01on0058.outbound.protection.outlook.com ([104.47.33.58]:43149 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752816AbdJTVwN (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 20 Oct 2017 17:52:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YXIjRm+bv51vKwApF+lbI6gaeu42cLHXE4VFa54WP3k=; b=JdHUhxBrxIKLNbwCPbKR4tD2hwfmnbpp3yU14bQkNTt/DJy9v138/xzoITVIJN8eMDteXT8J7QqyMsdmdf+470CE/c3y4thwDc5XM1OSZx52EOsmNwvP8XJSQSEgoORZkVEWFgY0W4gujiN+XqTYKXsZzZZEB4o+ifHkCkSJYy0= Received: from BN6PR02CA0036.namprd02.prod.outlook.com (2603:10b6:404:5f::22) by BN1PR02MB133.namprd02.prod.outlook.com (2a01:111:e400:20::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 20 Oct 2017 21:52:10 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::134) by BN6PR02CA0036.outlook.office365.com (2603:10b6:404:5f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4 via Frontend Transport; Fri, 20 Oct 2017 21:52:10 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; 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=avsrvexchhts1.microsemi.net; Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Fri, 20 Oct 2017 21:52:09 +0000 Received: from [127.0.1.1] (10.238.32.34) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Fri, 20 Oct 2017 14:51:27 -0700 Subject: [PATCH 04/12] hpsa: add controller checkpoint From: Don Brace <don.brace@microsemi.com> To: <joseph.szczypek@hpe.com>, <gerry.morong@microsemi.com>, <john.hall@microsemi.com>, <jejb@linux.vnet.ibm.com>, <Kevin.Barnett@microsemi.com>, <bader.alisaleh@microsemi.com>, <hch@infradead.org>, <scott.teel@microsemi.com>, <Justin.Lindley@microsemi.com>, <scott.benesh@microsemi.com>, <POSWALD@suse.com> CC: <linux-scsi@vger.kernel.org> Date: Fri, 20 Oct 2017 16:51:26 -0500 Message-ID: <150853628650.28275.7433236747576438555.stgit@brunhilda> In-Reply-To: <150853443786.28275.17878578984391668998.stgit@brunhilda> References: <150853443786.28275.17878578984391668998.stgit@brunhilda> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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)(6009001)(7916004)(376002)(346002)(39860400002)(2980300002)(438002)(189002)(199003)(76176999)(54356999)(50986999)(50466002)(104016004)(2906002)(103116003)(47776003)(23676002)(33646002)(189998001)(97736004)(9686003)(106466001)(53936002)(69596002)(230700001)(305945005)(4326008)(33716001)(316002)(356003)(478600001)(81156014)(106002)(110136005)(16576012)(2950100002)(68736007)(77096006)(2201001)(58126008)(83506002)(5660300001)(81166006)(86362001)(8676002)(8936002)(921003)(83996005)(2101003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR02MB133; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD021; 1:9t7sXY/N4Wa4IRsMywZrP3cpK8NrhT75xrSmnrUir80jyPRxvS4OEjyyfGoRzBMGc+guXi6jW3S6ofx14UvuWHCW6t/ADwgvMx28+E8h1U29PT/ZCr3cqIUYenCOxPyx X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1bd2d28-741d-4cb6-cfa8-08d51804d095 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:BN1PR02MB133; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB133; 3:JAw8V6BzOumq/QiEevB1GodiipNhfpJ4U+a70MKJhhVhJ2u2g1leIuLVMbtruhyKbTmrOTsFXbBOXoMAYOBdOhlNH49rmjCyV1wdIzBT2gZpZMFjjENqZuuiI5NtcWG9LxRz7DpW1KsjHfmqEv3Yz7sVDUl3QKIMUmeCwdj6SZWxjwDIJ2qxvi0AUm2l0ggy2J+13gpRIuSMAmslkKK9/CIklf3bUYgvkAUnbruU9abhH85Jkdjk9EkZJpUry+zrdzV7eUIVhtUU1DSpYpDzULLt5V5WQ+rz1W2LuulqC5mQpU8ZCWAiU4Plz5PmDRPym49w+29De3kRlppmpNkUOgwdAzGk49oOrHI4p0MVJy0=; 25:oSjN0xIjNzTDaUT0sTVqevClR4W7foeQTwBCwT95odejzHqltMxTvoFuP+uwFPRkFvf10Xw1u90s4CyAnMFh8sGMSfEuWxSDVBZADyR+i3y++r06VQPvcqee4mLeQa81P3XaDd/+OTP93gP0CAt0igMaHV4CpB8VA3Wt7ByhMtVHjd59CEQK1YmH/H7ZJ8GEAsVHBwT8pwfz995BJT3eVEE+/jWaUMPDWJ6dd/BDabiyIb2eDWnxCV02sZOXdBsYTUquEk/dXrhvWJV97wdESMHB0Eqe0POQbAX/MU73CeASA4FGiVUkRqBQ6omTOMMH5nkTGPBKZAWcxBQHjp/ZRN2/PuN119uXa6uiHcmWOK4= X-MS-TrafficTypeDiagnostic: BN1PR02MB133: X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB133; 31:Z+zaumF52KCFBFL8XyGMEY8dml9SKnDS1OSzhWO4IiMa1yLweBH4VWZYZZY8SdLetltv0MYIFK2CvPRHmDTs1Jn6I1gwlJZkXXQQj1eUCBHjX+MNwMNuiT5SxGKsNIfETPwOmevGeLoi859Fpiiq3JLJ2ASJzAyZNZmQqdkCEkA9vc0z5VtRWj0UPP4Nc+VWkA1KV0fCJZqIOUANzCzMeg+JMX6hrT3mRKwTbYMdAB8=; 20:nJFumji8ZgHNtcgUTI37FYOejX5sQfCmICqURIBoDh3j4hHKeo/qmJtaJwdoc9ZjF1nh8iN9bl62V15N8acKuzLGdPR6FcWbQG/Ap9TEZzDmcJnXF9SkvFHAHI5/nUEqQItt7dSCdZhNizRn0aTd6RmQjM6Xhol2pYkXdqGdU6FbjtQRw0ZqZYa/FOc/gbLOw+Ii011K00XbqPQgGDg8r96hTpBGCPK7WSZR2XiA3LPUXQdGLfOKrN+Cey50CnsYB2Tn6NdH9z7m8/W3F8OaIclc8QhiCjXQuG+EfWjgUVH65i8D+CcymDEVE9pMRTsGLXBk2I5gkrtndETyD0Gr7ZHQXs+LP1dM8pXAsIUIlzQ+/URACz5AzTh5GwT1mHg9f9vVrMn2b/FFsD/bV+1hmviKl/l4ypRb1IAwzcDgB1g0SuavLTht4OLMFrs8KG6qsraRalFUtb/5CqFWkJkBJL1/QfvR+Xka+D24v/bxXIRanrjDhzyK4enUCinV06am X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: <BN1PR02MB13346811D7D490B1FFC9A87E1430@BN1PR02MB133.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3231020)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR02MB133; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR02MB133; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB133; 4:twjmJDSXHjwkVVUklb8zgxsDi5QyshwYHTxOn4krzZ+o74AsVgneodq64xyQGtJ1Kio0ZYmgr40T+DSF205Olwix8QniAuvkw/TFo/cyxrZ0S+PA1onuXQqkHvTfDAuH33ql4Dn/KLjRFnn8AjTkqLJUJrLIXNcWt1jS37hwfF7vbePg4NlFDRJ4+ZtQVPWynId6xgyRQ8+XW94CypQxWVS1hoXgFEBvMlM4PBFg+Npv8DhU9pqGwb38ejpv3YAbHW0y8B52tadD6IWmnoeNC93y+qc4h+olpKM4PL2oihk= X-Forefront-PRVS: 0466CA5A45 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFQUjAyTUIxMzM7MjM6VGRlcGIySVdNTGRVb0E0N2VYQ01kYUxCS0tY?= =?utf-8?B?OGFqTUFJQ3I1VTVla2lYU0VRTktLOU11MkdiNWRCRE9ETnU3RmxVdUlYWXRi?= =?utf-8?B?Y000TytZbDIvS1Qydml3VnZLY1NXQjIrOWRFc3U1WEViYkU1RGNja1VUWUpy?= =?utf-8?B?Um9lWVZyRmRSMmtVZzdWRkZxZkh5dnF0T0ViWHQ2N0JCSUl2Z0o0bGhsYk1R?= =?utf-8?B?ckdZV3V4SVlZOVVqcUF2T0N2TnJHRGpmd3ZTODlmSmxJTzhnbEQ1dzF2MGlS?= =?utf-8?B?UVVKTy81M0dlVVpqYUNvaUhqYmV4OEdLM3pRZTQrQXJRbUUxTVVJOHh6WUdZ?= =?utf-8?B?NXBrQmZnbHBFcHlmY0ljZEd2bktTaVFwNTVqYmYyM2E5OWpZR3Fnb2FrV1dm?= =?utf-8?B?bDlaZTBRSTkwRjJVWjV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S81+1w6B/tc/bawwY/UogWvhHaJNhInaEVEH2ma9749QkhvTwD1vXuZnw3ysx8HPBC4MsoHhm+KwEsp7W9OTGiNhP7dQQ3E+U6sNYeIjfPIZKv6n4rRySEnOK5SIy/iwkXXaPiocXUHWYBGGkQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2017 21:52:09.8711 (UTC) 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=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR02MB133 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 0330f17..9c491c5 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -8009,6 +8009,10 @@ static void controller_lockup_detected(struct ctlr_info *h) spin_unlock_irqrestore(&h->lock, flags); dev_warn(&h->pdev->dev, "Controller lockup detected: 0x%08x after %d\n", lockup_detected, h->heartbeat_sample_interval / HZ); + if (lockup_detected == 0xffff0000) { + dev_warn(&h->pdev->dev, "Telling controller to do a CHKPT\n"); + writel(DOORBELL_GENERATE_CHKPT, h->vaddr + SA5_DOORBELL); + } pci_disable_device(h->pdev); fail_all_outstanding_cmds(h); } diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h index 078afe4..78c3b64 100644 --- a/drivers/scsi/hpsa_cmd.h +++ b/drivers/scsi/hpsa_cmd.h @@ -142,6 +142,7 @@ #define DOORBELL_CTLR_RESET 0x00000004l #define DOORBELL_CTLR_RESET2 0x00000020l #define DOORBELL_CLEAR_EVENTS 0x00000040l +#define DOORBELL_GENERATE_CHKPT 0x00000080l #define CFGTBL_Trans_Simple 0x00000002l #define CFGTBL_Trans_Performant 0x00000004l