From patchwork Wed May 10 16:39:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghava Aditya Renukunta X-Patchwork-Id: 9719263 Return-Path: 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 B3C7360236 for ; Wed, 10 May 2017 06:24:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5433284D5 for ; Wed, 10 May 2017 06:24:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A28528552; Wed, 10 May 2017 06:24:26 +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=-5.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, 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 2E75D284D5 for ; Wed, 10 May 2017 06:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbdEJGYZ (ORCPT ); Wed, 10 May 2017 02:24:25 -0400 Received: from mail-sn1nam01on0079.outbound.protection.outlook.com ([104.47.32.79]:21268 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751552AbdEJGYQ (ORCPT ); Wed, 10 May 2017 02:24:16 -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=xz9l+/AttuIUjVBhAoT097qbrvXoTasVHLXkt90SRdQ=; b=CRrH0F+7FoegWkFSRLZT9uEj0CpnIRt5+IHBkN6fPFBY99VF+Yv44UyCQDokXiL+VT/D1Lied27AHD20Cm/Ff1NnTna2JbT1EAG1hcbvW4eDlOOOWY0h5op88b4bmLRkhahkNHLOew4xLPfG13upTGa02dL8OvZuaUQ4FHY34E0= Received: from CY4PR02CA0034.namprd02.prod.outlook.com (10.175.57.148) by DM2PR0201MB0734.namprd02.prod.outlook.com (10.160.94.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Wed, 10 May 2017 06:24:14 +0000 Received: from BN1BFFO11FD011.protection.gbl (2a01:111:f400:7c10::1:131) by CY4PR02CA0034.outlook.office365.com (2603:10b6:903:117::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Wed, 10 May 2017 06:24:14 +0000 Authentication-Results: spf=neutral (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=none action=none header.from=microsemi.com; Received-SPF: Neutral (protection.outlook.com: 208.19.100.21 is neither permitted nor denied by domain of microsemi.com) Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BN1BFFO11FD011.mail.protection.outlook.com (10.58.144.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1047.9 via Frontend Transport; Wed, 10 May 2017 06:24:13 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.339.0; Tue, 9 May 2017 23:24:04 -0700 From: Raghava Aditya Renukunta To: , , CC: , , , Subject: [PATCH V2 09/19] aacraid: Using single reset mask for IOP reset Date: Wed, 10 May 2017 09:39:43 -0700 Message-ID: <1494434393-17261-10-git-send-email-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> References: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@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)(6009001)(39450400003)(39840400002)(39850400002)(39410400002)(39400400002)(39860400002)(2980300002)(199003)(189002)(9170700003)(50466002)(50226002)(2906002)(8936002)(81166006)(107886003)(76506005)(5660300001)(72206003)(57986006)(2201001)(4326008)(8676002)(305945005)(106466001)(77096006)(38730400002)(86362001)(575784001)(478600001)(2950100002)(104016004)(36756003)(6666003)(76176999)(53936002)(50986999)(105586002)(189998001)(54906002)(5003940100001)(356003)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0734; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Neutral; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD011; 1:WpOAh9PDaECIWk4cW8fh46hIqZgKg02ZgP7EVRm1lIw20aw2dIWjhhvPUlaeU6NQcsSCJcjk0U8M4tJ6/krQxxu9Nct+WWXfHp/KhgwHV6UrIZT97lhWM+5XAtpRYQyg4w1a3nPsdMuWETzYwFviUenT5hZWVSq//8dlsQmDFR8BPRepSbV4vSVPRBoQEzMwT1Ewwq7HskCh8qzcExuZctUMIyVCaIizTSIn/RTymA37SG63aUqGrQAgaEvfuCdepRS/PUvQg/M24k+2Y2HX0EzkVGlE8mcUWKketGauW6rRc9Fa1NE4R3aSmSeJq9+Q+8Gh2CJOTk68IEiBPfySM4Jd8pp+SRM7EgG0fAslHvwTaDM33Y/1sqEe+vlL0Kx1DexvkESbjp7DbRkFp5nOtGP3gg/uB6pBtb31D3wTeP/rFXB3VhsN1Z3iCoZZeT/iw5wS6FnJHaLrklGE42Se8tfUYRva1S6m2TGrmkHJhPDQ0IbuC8RBKfNhxcjKU2qrEqpg/IAAi3GUJPZCB8umqKoq07nV1/knQK/0LYqo8hXwnvTUxh4oUF1lIzyt5Pl9K0+ZLUHLwi/4k+1GtyFnMg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d479500c-c62e-49cb-aeaf-08d4976d2d97 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR0201MB0734; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0734; 3:C77xSsNE7W6PRR0KZ6cucUu4DtLRPPYbHnQu5+/2PwaCpFNfIHGBkFHnAoD2otRqvNNN/pNdWRHq5Hz555PA6hzjmMworRZ6+uxQxTL8ih1GhmNI/8IJOPuX4QklLgJ7aq2yv8IEUIEmnPrzBUytK34v8fw4Xc1/7+9HYR2FMlSvN5Hr18zDIh0pG0T57sPllFtCeL11s54M2fK1jPLFV86UL+2vl0kwRxR8ikYOMeEQGH0MCxbfJx3p4mGAszG4VCipTP7XYS+r8tB8P/FyYsZPm18PnRSeLxNnBSvwZQec9aHThV+lLwX6efJbwp/S5y/W83W789d9iSPeCDwAqe+QBCyrz4n2iFc7ZZ+b63zfajZJgqGcHKTzYqV8tf+VLY4ov6OshgSYrPmR15ao8LWJJpcUqQKKPruvbhA0N+gs8UGCbaP3DqUQSOzcom/el9mSg/mxUYpTgXByAWOCuA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0734; 25:2dMFGiOcpMrszl7475MYVHlacM91TtkRY6QE8nyo2EAjas6zaU4V2ZFXiLO+ugi+Mr9oSNGOEJa+jaxE1NjObrIfEhR8Dc3dmHfMdVsnIJFyfe0+VE+O8LOsl4FSUDJ0kvPp0KofQsjQmS1MJx3Tq0CDxM5Z+rx/gG/s/tK2BpM3xz+HsHoYM0KEe2pCWCqwu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M2OIqujW9AMWshFzymyGEBXqDGGAJpKCBegREceX8rglq41v5+W44mTMKF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13023025)(8121501046)(13018025)(13024025)(5005006)(13017025)(13015025)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148); SRVR:DM2PR0201MB0734; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0734; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0734; 4:WKMO8CLI5O5ZU7mBmUNprhZbUmTiChAjG8M0bR5igyG2rBZOVkMTgDSheSnJY4ymj7JtQoBEbjYTICRbuo8oBG9T5Dt4z5IPm5Gk9hjUjBrPuzf5qS5CzrNCOR/6F08Kj8LThw9FHY8RWSFGtwwZoYeYHcKa7l+P2QsNDDKc7vCpeeU3H94f8L4mhIGTLGQJW7O8e84vWlSF7JmTatKEt/zMVIqX1yrbjkNndNknHoGR9HzN2bTHW7vVkjT1po3MbqF+00907SoF66xV7aV1SGvnnYxEC5UzA+ySUEQyRg90tqVibZFA4gFfxtorylKkYQ4+MeyRsA4oJYrRc+mqGivRICwHHLZsuW3mVi/ePy2k09t8V9sJm2ZoQ7ARAAyp0kO63n4k8G9nPdH5CtGt8BkXf2nSb2qyISsEZ1pcNM1Xpl9AOycgIwnQKD2StIPXlVlEBX+k/Uawzl/Qtz8eYdLf7eEZZ195L2ntUNn2Nn4YrWf2eBS42b4aDz/FCKWg5iSskzSJo9d+b8eIrudFZdfImIhJNC1ABw32H9zmvDx52Cw9QP/+VUMjgmeexDAgtDKlfls8WN/xDHPK1kBP1DHlk3GdEdfiyiz1BKbMkYYS2Uy6KjKTSUMeeytgqL+fKIr3n/CrTwRJR5k85MCU4ycxEuVBvnnpTngtNOys53NIPuJNBFHXDHXjgR/Ej+7uDvxmM03ulrGDMpgCnUhy0jjkjEMLWuKvSMqnisTMuFIIa7eXf/FqiIl1Agb39S0G2FRzyZb0gBviMIxM41RCJ3cPFSXFluwuxOusmFwI6OWo14azyLzgeY0lMWVbA5DXwQttNbYPWgeOtyY9yDmhi4l543dR1gtltAejyLa6Cky9p4PXxVMXRurjg7/NVWYTQB3qUHzDYsHoJ7bI2U4jKhmdYQOBUgXKyJIiC5Fx dAURJPQCYim3WWN4MCdr1Iwq X-Forefront-PRVS: 03030B9493 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0201MB0734; 23:0suwSdsgutiHfjrrI9g3LjaezltSyEJbiorrkbT?= =?us-ascii?Q?8RS1Kbta+70dcVy8qoeV1LVHi9AP7aT+A7ytGDngFyUH+OiDcL3xvSTHNyyt?= =?us-ascii?Q?INL6zcV3903y3H9+Si79UIyFtk/TSkdAKLCV4My8x55cOGhpzOeHph6tA7J+?= =?us-ascii?Q?bJmR45xfYF58XHT3UI3BkNO+W2HcEODPdNxftuWWgw6TGdnqcK9mN5+mFYMB?= =?us-ascii?Q?Cc8lPRLvSde3iEVdpTEVxAkKo4oMla3Yu8XuP/cjoZmXhkgR3sPviiyhm6Hj?= =?us-ascii?Q?T4tquALQtiSLzMEKhk/L/GXIIUCeFmQBrMEtnf4/PNZo2XQAtp0zIgOV1/BT?= =?us-ascii?Q?0XG7blkPp4T/jaIS+C85e3Sgz+KgMGX38XeUFWd7n+ujrLzJLkDE78D4rT11?= =?us-ascii?Q?/BxtDlmJU7uPvEozM3YRt7PnvayrwSBW/AlGRJrBKNuSrDfaDj7sb50xXFiL?= =?us-ascii?Q?Ego7zknzeK8t47FH7ci9bZ4FEorEReoIacaKI3NKWYI0GVrfZGHNJqqhpyrK?= =?us-ascii?Q?jWV0OkHFLQKxX/H3Ok7VXXUujgSDNL3OE6dRYsit+4ePFJEOuP2WziK3K+6j?= =?us-ascii?Q?fiIBDYPdmFK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LmZcKDEW+vy1jDmDzUKOEZjWqoEZsUPbH+gaDnG89xErAZOWs+knSIVdoc3iEhqaVbQCm8rNxR1RrJxdV4U5MWgPp7skQABKg2AWHTOkBRBdJpuWBcoxYgvi5ijcBL5gDejyBPT2Cp1k7pauxod/9KOodV15yWWr8sp3/wwejT2q7vp9142DOqq5c=; 5:/XciEBq/ZCrbhXc70KTRcUKHu4IeL0YRnXCSSoqCCSEcOi03LXdklA9KDWQU9WouosLFdHmlwPc/PpqSgASOwCUIwh2cLaZaBD3F2GuFgxTv9L/CwlVx1m/zmeiYf/2W2LOqaQ3NDsH5CtOpR4fH0Q==; 24:Ugg096KmxJzhM8v2l/5m6g/i8Ablu9Gn5SZemA8OpMAUuJ3vNeX/1r4WmtLXgyGP1JInsctH8adQKSN9XsDtCWZyGLLuM/pXKaiH2xjeDjc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0734; 7:1I9tiwbFfgKVFpmCko+SrFNM1UozGsh9Urj7BfJ+XKLikFAq0sOjjvp3rC84+aN2XTUbhhjStgsT0tUXg9AwfAs61lAhN/MrqySvtSPw0Pb/oDNwSuujWFh0LXswYe+R1Sk5bFA/qcp7k5AFI7587ke/hFXPMIP1fftIRpQ2m6ApU8fm7W1C662XT8908Ml1Zc8lOjB8MGGHAVDuSZacIicZXoCPWe7uZFpqO+Fie5zhh2Ta0WEaHDEy+Hb9WDhLXD9wbhXzq2BPZW9bmhwUfgbYq23KgvO6JJUR3jBgiI6RtwmXBMHvyj5pm04LRztmwD4s1VSmoQzk/kEzaEQw/w== X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 06:24:13.4951 (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: DM2PR0201MB0734 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 The driver can now trigger IOP reset with a single reset mask. Removed code that retrieves a reset_mask from the firmware. Signed-off-by: Raghava Aditya Renukunta Reviewed-by: David Carroll --- Changes in V2: None drivers/scsi/aacraid/aacraid.h | 5 ++++- drivers/scsi/aacraid/src.c | 16 ++-------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 3ede6de..993f134 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h @@ -2381,6 +2381,7 @@ struct revision #define SOFT_RESET_TIME 60 + struct aac_common { /* @@ -2491,7 +2492,9 @@ struct aac_hba_info { #define IOP_RESET_FW_FIB_DUMP 0x00000034 #define IOP_RESET 0x00001000 #define IOP_RESET_ALWAYS 0x00001001 -#define RE_INIT_ADAPTER 0x000000ee +#define RE_INIT_ADAPTER 0x000000ee + +#define IOP_SRC_RESET_MASK 0x00000100 /* * Adapter Status Register diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c index 2e5338d..c0e5242 100644 --- a/drivers/scsi/aacraid/src.c +++ b/drivers/scsi/aacraid/src.c @@ -704,22 +704,10 @@ static void aac_send_iop_reset(struct aac_dev *dev, int bled) 0, 0, 0, 0, 0, 0, &var, &reset_mask, NULL, NULL, NULL); - if ((bled || var != 0x00000001) && !dev->doorbell_mask) - bled = -EINVAL; - else if (dev->doorbell_mask) { - reset_mask = dev->doorbell_mask; - bled = 0; - var = 0x00000001; - } - aac_set_intx_mode(dev); - if (!bled && (dev->supplement_adapter_info.supported_options2 & - AAC_OPTION_DOORBELL_RESET)) { - src_writel(dev, MUnit.IDR, reset_mask); - } else { - src_writel(dev, MUnit.IDR, 0x100); - } + src_writel(dev, MUnit.IDR, IOP_SRC_RESET_MASK); + msleep(30000); }