Message ID | 20190213185324.21652-2-hmadhani@marvell.com (mailing list archive) |
---|---|
State | Superseded |
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-2.web.codeaurora.org (Postfix) with ESMTP id 7E30D13B4 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D3082C95A for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 613E12DEAD; Wed, 13 Feb 2019 18:54:43 +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 440C02C95A for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394302AbfBMSyl (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 13 Feb 2019 13:54:41 -0500 Received: from mail-eopbgr810043.outbound.protection.outlook.com ([40.107.81.43]:27771 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2394299AbfBMSyk (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 13 Feb 2019 13:54:40 -0500 Received: from SN4PR0701CA0015.namprd07.prod.outlook.com (2603:10b6:803:28::25) by CY1PR0701MB1930.namprd07.prod.outlook.com (2a01:111:e400:58fa::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 18:54:38 +0000 Received: from DM3NAM05FT044.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::205) by SN4PR0701CA0015.outlook.office365.com (2603:10b6:803:28::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1622.16 via Frontend Transport; Wed, 13 Feb 2019 18:54:38 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT044.mail.protection.outlook.com (10.152.98.157) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Wed, 13 Feb 2019 18:54:37 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Wed, 13 Feb 2019 10:53:28 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x1DIrSDC021691; Wed, 13 Feb 2019 10:53:28 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x1DIrS7X021690; Wed, 13 Feb 2019 10:53:28 -0800 From: Himanshu Madhani <hmadhani@marvell.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <hmadhani@marvell.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v2 01/12] qla2xxx: Fix LUN discovery if loop id is not assigned yet by firmware Date: Wed, 13 Feb 2019 10:53:13 -0800 Message-ID: <20190213185324.21652-2-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190213185324.21652-1-hmadhani@marvell.com> References: <20190213185324.21652-1-hmadhani@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 131945576780979887;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(136003)(376002)(396003)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(11346002)(446003)(2616005)(105606002)(106466001)(476003)(85426001)(486006)(80596001)(69596002)(498600001)(2906002)(53936002)(51416003)(87636003)(76176011)(86362001)(26826003)(50226002)(26005)(336012)(356004)(6666004)(81156014)(16586007)(42186006)(110136005)(54906003)(81166006)(1076003)(8676002)(316002)(4326008)(36906005)(8936002)(36756003)(68736007)(48376002)(97736004)(50466002)(126002)(305945005)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1930;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT044;1:cmM43YCc/OG4anpC8kDO7qK5CdrTXsKDomyfuQr5vdqQOpOjXzptcbHO/rd03uZBrar6tcqzLRP5Hdm3j3qxeFHY/Qz9OUxMLB7YnoofuPgnFU0tCJAHkW5PA0RgCwxQMYlY73X/Fnb7pBj2K/iIGw== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2dabd001-0ab0-4b9a-9049-08d691e4b42d X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:CY1PR0701MB1930; X-MS-TrafficTypeDiagnostic: CY1PR0701MB1930: X-Microsoft-Antispam-PRVS: <CY1PR0701MB19307E74B801EB82A05679A6D6660@CY1PR0701MB1930.namprd07.prod.outlook.com> X-Forefront-PRVS: 094700CA91 X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1930;23:i3oaxEj1eEQXkLWqil3g8ziU7w9/kZQcEQSVPCFH1F44TYSzcDjZaSFJVH/w3ikpAzkil7dkF9MeIH+TWe657UZMRxB0Rts9n9BdfL2AxfRDeWYjGKsmnPxipKARjqNSvd30UbXLRX+2HBpSibu+mTiMEPRZGHf0UuFitytB8257ywiuOtXpI1xYBdJUMHLBLJpsqangxMU1gR644QvMlTff8+ryiIsij6Xejw10QWn83bL2TVue3HJsQhEusIDJvqTZKrXQRqfgvO1rA9zvPYi17q/AySRcJOnhjUqlouzh/DolsnGCrsgLidKqsBAn/20ikVpwQQDsFaAtVNWPUoxqaPXx9VMEhWGyVOtMHYJd8vIuUdVYQTBaivfV7IvvXheZyzhB9b9vrfX0s86U0RpfnvmYf2d4uP0WGuRHROAaxmPfK0/9cM9jp9gc3EJ5m928DKgJOyFa9DZhQxVUlBq1og0loCcxpDdjuvtAfBbhka2ozcIBUzYMKQssU/gqqsC1hYbx46TFlieaSmN7qX9WPWwh9jPw8FqewXVno1gczptuc+4mUQ4U/V28trKy9O8KrZ+zKGQj+/5kj2rPo6XRNIiKMJXwybjPSQ711tkpzJ6Nf83g8L8/UIOZLIjTEEZbeh4eDWmjqBzkhmz7h+TJa/s7/lZKu4b4ERHMB5IbQn42CfanldkC18jvMX0MN2BRVZuMLIpIrgPIDbyBUEZRFFVr/O3mdZUPlYqtl8FssGmTZSR0am1ot5xJYo8SCDAW3kiJp8EqxW1RPo5/q7TV401Q1aknJBRuyPBK9runbFLwPHmOb/xKVRK8y723TMhnwapQJWDCFVfhQK82hUEsPHAsm/2ddthd+mN5ViMvxkIJYSI2rzlg6kn1JvUxomtyJ86VtqvXg1/FOTiu09zk6eoABFjPTpTPDVPf4mT1onozyolIFobCOZoaoXhxmx+ytbMrJfr1S03RsJx1RSbKiod2MUmj0TvqBYtN2SN8beAlQcxNdPtU21Ud9QhtMZXOGJx6UxVceG5Tqb3CqAbmrP8N1yEoaHhwp9Sm2l0YitlbpAyvQ/AXrZuBQolgUsQLIebDgVWEsTl4uj1rCd5SscbqosURKvhZ90+by25DJUuJNspL3p5n2HqK7auqjwMjk1Nk2Ea99Dx0FcOwLK5MwxemBpiO8vkjl+Xcj1698g4LsWltb3opjuaoJR2H X-Microsoft-Antispam-Message-Info: cjeXEuNoEcZ1sG7een+3OIHybB65kkEduae+YGeMwfEia1H1kAr6/rJIt/fOURVUSjtNHqG58r/9CyKZW9nFWCQJnUB2JTTSdG5/+JK1oIpwXcjxmJOgKEdSuwI/5E3vLH6nBdBLlwW1AQi9uKZ+5gD735Y++Alur9ANd4NOJpBxFIT/3pdkAuz4ucMw5zNFaneaY0PaJCsnZYokoFw30YZ4mnzXjZpwwR3UumHM3CvxmYzKwz3G3yhvcUxlcSGam1oDa46snVO85hnk4y5mTiRdK90wn1gt4I1lt3HnGJr/rz3ScZlJ1S7J5x08c/A35oTgRTzDisXlfUO4Qm9INwYUU1NYAS48rw7xqHA9l2P5vS2riRmdpXRQAgHQ+sDvCOkmQLtHAm3f6oOBHcpPYCoZlFQSX1Dx6mdYHVGTnOI= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2019 18:54:37.7487 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2dabd001-0ab0-4b9a-9049-08d691e4b42d X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1930 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 |
Series |
qla2xxx: Misc bug fixes for the driver
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 8307eac796a2..cdf57eb643b3 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -644,11 +644,14 @@ static void qla24xx_handle_gnl_done_event(scsi_qla_host_t *vha, break; case DSC_LS_PORT_UNAVAIL: default: - if (fcport->loop_id != FC_NO_LOOP_ID) - qla2x00_clear_loop_id(fcport); - - fcport->loop_id = loop_id; - fcport->fw_login_state = DSC_LS_PORT_UNAVAIL; + if (fcport->loop_id == FC_NO_LOOP_ID) { + qla2x00_find_new_loop_id(vha, fcport); + fcport->fw_login_state = + DSC_LS_PORT_UNAVAIL; + } + ql_dbg(ql_dbg_disc, vha, 0x20e5, + "%s %d %8phC\n", __func__, __LINE__, + fcport->port_name); qla24xx_fcport_handle_login(vha, fcport); break; }
This patch fixes LUN discovery when loop ID is not yet assigned by the firmware during driver load/sg_reset operations. Driver will now search for new loop id before retrying login. Fixes: 48acad099074 ("scsi: qla2xxx: Fix N2N link re-connect") Cc: stable@vger.kernel.org #4.19 Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> --- drivers/scsi/qla2xxx/qla_init.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)