Message ID | 20180703065231.18488-1-manish.rangankar@cavium.com (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 0DAC0601D3 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 3 Jul 2018 14:54:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F149028C5D for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 3 Jul 2018 14:54:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E495828C69; Tue, 3 Jul 2018 14:54:44 +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,DKIM_SIGNED, DKIM_VALID, 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 3219D28C5D for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 3 Jul 2018 14:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932219AbeGCOyn (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 3 Jul 2018 10:54:43 -0400 Received: from mail-sn1nam02on0043.outbound.protection.outlook.com ([104.47.36.43]:57808 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932209AbeGCOym (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 3 Jul 2018 10:54:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FoElWLZDgvtegmbBTh2JwobCJ6mqZXWxdOKe0lRuVd0=; b=OLizVq2fLEMIuXnmWHGeeNYB5MMXHH1ZGoTL5T+sH5muh7ZtvyTXpGwkh+TivxUd++04jm85ZxTf6x0HHo61hbQoMlUjhAs1Fqg0cEbTOh9/mHct1eQ3/72iXQaoc7KxpDPJExuOWnG6/YXpd2QOGZ86fvjbVX3rTRsw5xXtShA= Received: from SN1PR0701CA0030.namprd07.prod.outlook.com (2a01:111:e400:5173::40) by MW2PR07MB4076.namprd07.prod.outlook.com (2603:10b6:907:7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.24; Tue, 3 Jul 2018 14:54:39 +0000 Received: from BY2NAM05FT015.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::207) by SN1PR0701CA0030.outlook.office365.com (2a01:111:e400:5173::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.930.19 via Frontend Transport; Tue, 3 Jul 2018 14:54:38 +0000 Authentication-Results: spf=pass (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2NAM05FT015.mail.protection.outlook.com (10.152.100.152) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.930.2 via Frontend Transport; Tue, 3 Jul 2018 14:54:38 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 3 Jul 2018 07:54:36 -0700 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 w636qW8t018531; Mon, 2 Jul 2018 23:52:32 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w636qVG6018522; Mon, 2 Jul 2018 23:52:31 -0700 From: Manish Rangankar <manish.rangankar@cavium.com> To: <martin.petersen@oracle.com>, <lduncan@suse.com>, <cleech@redhat.com> CC: <linux-scsi@vger.kernel.org>, <QLogic-Storage-Upstream@cavium.com> Subject: [PATCH] qedi: Send driver state to mfw. Date: Mon, 2 Jul 2018 23:52:31 -0700 Message-ID: <20180703065231.18488-1-manish.rangankar@cavium.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(376002)(346002)(39860400002)(396003)(136003)(2980300002)(438002)(189003)(199004)(4326008)(51416003)(26005)(186003)(107886003)(5660300001)(1857600001)(336012)(80596001)(8676002)(2201001)(1076002)(86362001)(50226002)(72206003)(69596002)(2906002)(2616005)(42186006)(110136005)(486006)(87636003)(316002)(478600001)(106466001)(356003)(47776003)(54906003)(305945005)(36756003)(48376002)(14444005)(8936002)(106002)(50466002)(81156014)(81166006)(476003)(16586007)(44832011)(126002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR07MB4076; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Pass; LANG:en; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT015; 1:/NxpmFFRPRsNyhv9OCpvuQsaK7/AEkdhySPUB6SsQVCGqS7IeYGRXToLL6MVVHZX29lhlAD6f99mYJ36Z2zAjyDqeuHVxnkoPR96CT0awrlhZRPZvmgU/jJXQuZuXwBg X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c177172c-3b93-471f-31ef-08d5e0f4e67e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060); SRVR:MW2PR07MB4076; X-Microsoft-Exchange-Diagnostics: 1; MW2PR07MB4076; 3:4x2W4QZH12BacQY8F6HEItrqsZXP+uSPmFC4CxO35a7GIol5+CCBlwxizbu70wsdmpLpCotDtU5Ibs5isy72O2g83myOt5ZEWZkf02mmGbU5uwdxlHUVcJQw/QLRSj3u4LatI6sQa1jVoeKDuoeoTjXA4FhWRbe2z+5WdEbkGmDFd71sjxsFWsChfM5p1ukSHpsjzlsNnvrTigTZ/qdpzB6I2N/lmGp3h+2c2VeFWHDG4HKAMPyuLaJYcpdqbOc9Kje8hE5iive9wDHMTne6YeNcJXPOMxVmm68v7iH9EQXT2wy2D+aoKE1QZd4OtVkvrt0nzNjlf0AarFhNIbz3wn5GfCDwLGpfWJz0YwoKbxs=; 25:FqTZrw8/OJMDQNudSnAnHt8nfWHHV5VYKwmvjOZlJUkV9sDHf2nvLI+cwUErbhufwoA8FM7V0KingjrlYh/VPBp91qvOWB0fZrveM68Ks0344uJB+81EalYEXr4OGmsoXjlVXi9OEsxRQaqcsPKo9ah1/5EqPZwhLyPAXr+7Rl0U/FKU5J+ZWJeYikQTpxVz36ogg9Uj6bhgINAlCp2Iu1ozhZhEHcxnPu5N+OZbRTxfVO6n4b1xNDwNh7tMBK8klX3syDvtdimSyTX6M2YNZugv5z/xQG7wWxhWHg0sLfLsB3rl3KIzYJ5tOKsYHPU/nuETcL4qhitRlkNXwmYBVw== X-MS-TrafficTypeDiagnostic: MW2PR07MB4076: X-Microsoft-Exchange-Diagnostics: 1; MW2PR07MB4076; 31:t6NoAqn8LWivv49ieoob97LuYEf7qG+f4EsODVT/w002vyhLtZihVN3fmeN8YM4tBPGIa1O95hFSFI2yI4Zm8LMuhZgxhmXi6p1nnh660Lg2X5TdtK5e/EAR5dUiTTRbuFDY5zUPfgzMRWJxwJeJYCVoH8ICZFLqiMuLhnh9r0TBAYUHQJRw4liuK0S1ElmaZBy+fpvHe1G8ueo60zMPUCRA4y5StBNYbE5snULYWuw=; 20:qBEgDlaimVHBWordOhwhdmYLTy0MYeE8y3Fj/mu4oVw29rJXAWLk9OfyEN91NTo7JgPZXWAd4hUTUtTBDgAP2vE7e3464nutD7H6rmfwZqNWflb1z4wWa4POhiCcFYfGlgPNTERZlbZ+QygGlFVRP17wIoZbfKqS3ufk8b5351U+/NcUBNfdaRrga+rQU4Blb8htNtPnRs58fv+WNF+hYnAylVvGbjln0Qaj1beX3ytmrNCGY9IZjN8Ma/jRaqpdZ70KKEkwEIpbnTcw7QnGJqv1l6VF7BOcHtnWymbJ6Swsb34oJdpJZW54xOY8NbQLCT3m6YCdOzkkPpid2X1PhamtTV0X3h1f7iw3gJ5EqCuUGJVC/yqheJ/q7psDbrEFbe8eoGXF1oN0EjjH5EevWq4ceKm2YExN/a5UpLpvJgzoohqtCrlZty22drpksulrbpm9pUItA1aOA4FaNGGYqprDthO49I0mq3rcwkCYEFIXizchqEbyz8kZA8KPGNR6 X-Microsoft-Antispam-PRVS: <MW2PR07MB4076E73D3B69568BA9197BBFE3420@MW2PR07MB4076.namprd07.prod.outlook.com> 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)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:MW2PR07MB4076; BCL:0; PCL:0; RULEID:; SRVR:MW2PR07MB4076; X-Microsoft-Exchange-Diagnostics: 1; MW2PR07MB4076; 4:x0FMxJ6v+cVCDWNYiZoxAHbEjzlsb5HfgNtUfjOu9Q+601NNUzLfmcGjgXLiMsNqHNmmqG9kymXrzBmbGOgWhRImU9NmIUpzrGTwdAWx4kAbb12lgGZV6mit+2jIc0pIR5XglmBk1yzPy0SQGIRrEdB6Qe2mHs32AJEf9Os7heRppSSTS3eQcWgWe4rkLhQgUu5ykQEkga7xpiqO6YdyDBUHDYEQUl2BS2qo1UqDLogBEe3rXdCfppACl4wD8Snbx6ayufEfY8imSdb3dSE8VA== X-Forefront-PRVS: 0722981D2A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MW2PR07MB4076; 23:ILb8rugbsfPrBU7LsiPFlt2lqJF0EB8ESP5t+8b9r?= =?us-ascii?Q?n2Xl8eEFohxMAtGCwEj+CpeGVQjoMFL16YjdGqYyWVTI64VvloWBLgXiFKR6?= =?us-ascii?Q?k4WF9lgDB0JeKzMwfudeotfLT4KKqfCZBci/wfcuq6TIlips5ozBH3audbwp?= =?us-ascii?Q?AMF1Wl/PaizmmnVcwfqgTlNHLkar7Lxb2kpJ+stTs8U935Qxg7gcBX1kJ5dv?= =?us-ascii?Q?eRZr0RKm41D5W6A0QYXzuzcj8WMSxV8q09ccH4yJ0xwrmrhXdxxua95BQb8j?= =?us-ascii?Q?kaZ4GGXZkLNFVS0SXaaFYkAuyo9uue7lMUWRaMLpgUFjiE/5mSEigikR15jD?= =?us-ascii?Q?9FJ5HQj1gMb43H8a9o14j3FW9QfJiFrKHD0tgpOqwh44atbrK0fh2yQgZWh7?= =?us-ascii?Q?RyaEE+cKPDQnjaWPpLRjw5JxM9SEhCxiJ7TKUkptwySPoVwD+UCbk5wdIvqH?= =?us-ascii?Q?/IjkqKx8OjCUBWnTVtJ7y4JI2cUu8qtBKjTarHj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: NSPM X-Microsoft-Exchange-Diagnostics: 1; MW2PR07MB4076; 7:Kon/R6ZSnnwQA7nAqOXODnmDNml/vaGhifWIKVt+3p7ktMN+1ariFKk+em9OwgBCS6jABWEVSjsVapQCZjHG9MH7h3T5M0qwL6YBYL5YPwKiOC0RXVd0bUYXwyLCEtznSfp7d1mD23g9vmSZC/SlaxjQFbNDdFtOcqCtJxT5svnDtbr3RSHsFnXVFcztv5YTFdSKZkBx9UO4mySdZtdkqLZDed0DlJLAaXlHaAEBBneu0dUSHiS2H750ln2WVgGS X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 14:54:38.4433 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c177172c-3b93-471f-31ef-08d5e0f4e67e X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR07MB4076 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 |
Manish, > In case of iSCSI offload BFS environment, mfw requires to mark > virtual link based upon qedi load status. Applied to 4.18/scsi-fixes, thank you!
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index 682f3ce..253f305 100644 --- a/drivers/scsi/qedi/qedi_main.c +++ b/drivers/scsi/qedi/qedi_main.c @@ -2273,6 +2273,7 @@ static int qedi_setup_boot_info(struct qedi_ctx *qedi) static void __qedi_remove(struct pci_dev *pdev, int mode) { struct qedi_ctx *qedi = pci_get_drvdata(pdev); + int rval; if (qedi->tmf_thread) { flush_workqueue(qedi->tmf_thread); @@ -2302,6 +2303,10 @@ static void __qedi_remove(struct pci_dev *pdev, int mode) if (mode == QEDI_MODE_NORMAL) qedi_free_iscsi_pf_param(qedi); + rval = qedi_ops->common->update_drv_state(qedi->cdev, false); + if (rval) + QEDI_ERR(&qedi->dbg_ctx, "Failed to send drv state to MFW\n"); + if (!test_bit(QEDI_IN_OFFLINE, &qedi->flags)) { qedi_ops->common->slowpath_stop(qedi->cdev); qedi_ops->common->remove(qedi->cdev); @@ -2576,6 +2581,12 @@ static int __qedi_probe(struct pci_dev *pdev, int mode) if (qedi_setup_boot_info(qedi)) QEDI_ERR(&qedi->dbg_ctx, "No iSCSI boot target configured\n"); + + rc = qedi_ops->common->update_drv_state(qedi->cdev, true); + if (rc) + QEDI_ERR(&qedi->dbg_ctx, + "Failed to send drv state to MFW\n"); + } return 0;
In case of iSCSI offload BFS environment, mfw requires to mark virtual link based upon qedi load status. Signed-off-by: Manish Rangankar <manish.rangankar@qlogic.com> --- drivers/scsi/qedi/qedi_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+)