From patchwork Thu Dec 20 20:02:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Brace X-Patchwork-Id: 10739539 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 9CFED1399 for ; Thu, 20 Dec 2018 20:02:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C7FC28C3F for ; Thu, 20 Dec 2018 20:02:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A83928CE2; Thu, 20 Dec 2018 20:02:32 +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 07FF628C7B for ; Thu, 20 Dec 2018 20:02:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731824AbeLTUCb (ORCPT ); Thu, 20 Dec 2018 15:02:31 -0500 Received: from mail-eopbgr720086.outbound.protection.outlook.com ([40.107.72.86]:5696 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725372AbeLTUCb (ORCPT ); Thu, 20 Dec 2018 15:02:31 -0500 Received: from BN6PR19CA0101.namprd19.prod.outlook.com (2603:10b6:404:a0::15) by DM5PR19MB1625.namprd19.prod.outlook.com (2603:10b6:3:150::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.17; Thu, 20 Dec 2018 20:02:27 +0000 Received: from BY2FFO11FD027.protection.gbl (2a01:111:f400:7c0c::168) by BN6PR19CA0101.outlook.office365.com (2603:10b6:404:a0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1446.19 via Frontend Transport; Thu, 20 Dec 2018 20:02:27 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.23) smtp.mailfrom=microsemi.com; linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.com; 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 BY2FFO11FD027.mail.protection.outlook.com (10.1.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.1446.11 via Frontend Transport; Thu, 20 Dec 2018 20:02:26 +0000 Received: from AVMBX2.microsemi.net (10.100.34.32) 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; Thu, 20 Dec 2018 12:02:25 -0800 Received: from [127.0.1.1] (10.238.32.34) by avmbx2.microsemi.net (10.100.34.32) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Thu, 20 Dec 2018 12:02:25 -0800 Subject: [PATCH V2 1/3] smartpqi: increase fw status register read timeout From: Don Brace To: , , , , , , , , , , , CC: Date: Thu, 20 Dec 2018 14:02:25 -0600 Message-ID: <154533614496.21615.12974808267681275484.stgit@brunhilda> In-Reply-To: <154533583052.21615.11349449030149525021.stgit@brunhilda> References: <154533583052.21615.11349449030149525021.stgit@brunhilda> User-Agent: StGit/0.19-dirty 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)(7916004)(346002)(39850400004)(376002)(136003)(396003)(2980300002)(199004)(189003)(2906002)(103116003)(9686003)(5660300001)(4326008)(478600001)(53936002)(47776003)(230700001)(81156014)(23676004)(81166006)(97736004)(58126008)(110136005)(16576012)(50466002)(106466001)(106002)(2486003)(76176011)(68736007)(316002)(8936002)(33716001)(8676002)(336012)(33896004)(26005)(186003)(69596002)(77096007)(2201001)(126002)(305945005)(14444005)(486006)(446003)(86362001)(44832011)(476003)(356004)(11346002)(921003)(1121003)(2101003)(83996005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR19MB1625;H:AVMBX3.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD027;1:kqbkJvc9gjcMdD6s9w76EDvGiFIoPCvhXHj4puEASW/cJ/RW4XppdYGbhkTq7uDLQfdr6PBv0ygYgJoI7WVei/MgvhFbELIH2kOsAEdoP3GnyoV8mb3gvjjStAfxa+Ma X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a3f905fc-47ea-411d-90d5-08d666b61097 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:DM5PR19MB1625; X-Microsoft-Exchange-Diagnostics: 1;DM5PR19MB1625;3:xg7LJerp+P27IHqC68GTbSVTUCF8SrtglikaqzVIigsItpcrF+1YImhyrC2M9GkndHpAVSyQq6MB7pKtJXF+ZOgX8eIFDjGadNvlgvRTnFKbc75tB4IMjJrB/ZIe2Ckuoe0I54HqL1zNOexe16+8EbFYvum+M9UJbitX+wbACVoRACfEmw0kRFubk+FWs7v75Gmi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HYbWQo6UHmHWi7DHyuEUSarTrzyusMIp5PAjxA8nNUe/yCAbd59O60nb7vh5Z2FOxrTahKKeeCmun1PDVTMIfyH0ANx7Qi0NO6QsZ1czdBL+UABQd3NBSCmZDnqDVAxXYYr0ifSwtnH22fKDQHuL6EEuv9foYAE8mYdzR6sqbtsse64dPN8xAIo3PTZMtxV/04hnK2vP83TZZvtupgp7JilsGMaK9d2RjRgigrBdiga5o4a7ql03mExmVulsfsl+RQ4HW1KL/SX065z7bP91XHMJqhL0lqmBrpkchyxX+6ST7o1JtpBoms5/76BvWbWqEwADVGm2XJaYJ1Fb4otS23L6DaDpror2Lw6ukzUrf8= X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(5005026)(6040522)(2401047)(8121501046)(10201501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93004095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:DM5PR19MB1625;BCL:0;PCL:0;RULEID:;SRVR:DM5PR19MB1625; X-Microsoft-Exchange-Diagnostics: 1;DM5PR19MB1625;4:+eIUm8hKJDp6x6FLO2jHKBBUnm3Zxm5IjEx1/xs/yK77NmPZHTBjFjeHIU3HKRHOXaP+bPR2SmhrKxU1xwqX4P6iJxppERYNeBbcAZcv4zZQIwHQlvThJMOw58EOjjwSX/yLzL2Fj5u3NYr7ZLfdOPrFbEwhAXcpx/W6LsZbyvcA48bQx0BYtN02F1w77fZQXV4EjjAxclgYddviLhtApqoTp+jDpGpbPZBdpy7WXWG58F8N0YUH3XTsaeIV4hBMbD+CQt/QgXpDZkcMjESt9g== X-Forefront-PRVS: 0892FA9A88 X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BDM5PR19MB1625=3B23=3ANwEc64Q?= =?utf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0Zam2zfuMQg/L31hGNfNg78MW6kqto4yERKBXEhODQMmr587Poffy/1FjP//4Wr/k5wHDa6MUok27PDZXFPLtq4dpX8vB9hWRxfPhNIRKQr9U/Gm2UHH60kx8nubo3nf2EopuU4fIR0ErRIABjw+jPPyqu/wXmR/A6dFQ7F0xAxSq7xQRA==;5:dny/Iy6iEzkt55EzdIp3OiYbaz+uV3FHm5qqYVoUwfGyGL0vLnyzslJ9HE1v5kv25ZwCILpEtOPTA3fUhmxfbvLnXhBu3W9xj4SinETEWmAarB5kqEm0S3iFQ3vOC2RIz4mvomr4xiOQtQz77KOsr/Tdw+Q91bXA/wGb2RETmZ4=;7:V4x8lmcxrixH9bOOIcPRXBedtKc+ssiNSo8mzjx2kADeuuSBfB5Pfo+7Ay5Xcn3HDU3sMrvqLz/bEj/Tm/ROxHzGLGVlvkOvqN/aiFOsOJwv2qHGXfv2XvReOlVUfFwnVImdgvJIT1GLH9OJrek7cQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2018 20:02:26.7640 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3f905fc-47ea-411d-90d5-08d666b61097 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: DM5PR19MB1625 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: Mahesh Rajashekhara Problem: - during the driver initialization, driver will poll fw for KERNEL_UP in a 30 seconds timeout. - if the firmware is not ready after 30 seconds, driver will not be loaded. Fix: - change timeout from 30 seconds to 3 minutes. Reported-by: Feng Li Reviewed-by: Ajish Koshy Reviewed-by: Murthy Bhat Reviewed-by: Dave Carroll Reviewed-by: Kevin Barnett Signed-off-by: Mahesh Rajashekhara Signed-off-by: Don Brace --- drivers/scsi/smartpqi/smartpqi_sis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/smartpqi/smartpqi_sis.c b/drivers/scsi/smartpqi/smartpqi_sis.c index ea91658c7060..9d3043df22af 100644 --- a/drivers/scsi/smartpqi/smartpqi_sis.c +++ b/drivers/scsi/smartpqi/smartpqi_sis.c @@ -59,7 +59,7 @@ #define SIS_CTRL_KERNEL_UP 0x80 #define SIS_CTRL_KERNEL_PANIC 0x100 -#define SIS_CTRL_READY_TIMEOUT_SECS 30 +#define SIS_CTRL_READY_TIMEOUT_SECS 180 #define SIS_CTRL_READY_RESUME_TIMEOUT_SECS 90 #define SIS_CTRL_READY_POLL_INTERVAL_MSECS 10