Received: by 10.223.176.5 with SMTP id f5csp973728wra; Sat, 3 Feb 2018 14:53:06 -0800 (PST) X-Google-Smtp-Source: AH8x226Kir+MzbU2V2kXFkhuXXVahZQfnwmV0gX5ywq6qYL1Ne6Ri5b2w2x8A8X6fv9uBlKURoCa X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr40117646plk.14.1517698386451; Sat, 03 Feb 2018 14:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517698386; cv=none; d=google.com; s=arc-20160816; b=Y5DtguV3RgepE+uk1vJ5JMwUAcO02coJTwr6x5lJch5998qMXxNMhex8TvPZI/4bZC ScWCCZVKJU5qpBpbClfV69hMfAShURTabUHFFm1n1fJ3ft5h+BxqKg8oe6ZFO2/A/6HI SjGqCNxLqGndKIZj3zGm5x2Jo/v0OKIhHantjZ8dfiAKaqovjJr2Fanckm3eg3pBcQdM Z6SESdY2OlQU2D4EmvpmqV8nGP1ZweNVTypScwZxF+3wB0MTZM3h8MRCAC11WC1BAjn/ YSbfcucjksX1DiS32dfzMZ2yunJ8knXZ+NfJ5kFnla3UOE3R2aPs516AwXJ+y4QV2ghU OZQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=MqDSvyCckUdl66n+gar7wbFOOB/7QFGSUaXZAHYAS/w=; b=r0eCxsnt8QqPymfcSzShxnvd9j1TslaTWPSvrn7o0AZhxvt9WpvWwv0ZkJ8rMXs84U DwuATU0eDzbpxGDVKJs8D3wKRkG7JjqQI1yt7M8MPuKtKlY8odQZyBV/EYLEnyaObwwH ILDtkBTlS+jLYQ1mlMQ8QO1l2mutFgb22UjCHqwk6NIHvtRM8TzioExmChvr/d64dIb+ s1ubqkFmFfjsM2Id0NDMH7yjkOIizbJ1lKSoXA89NkRno/T/gd2+JgaEorPHWW1J9ZDD uNzwP7NNno77zQ0SVq8/s+W3U8ZrNzt0NdhHr6ZgzKIzcc6Xd3ORlY+G9hNpcOWJjg1m g6uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=T1IP2FS6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d64si4332374pfa.40.2018.02.03.14.52.52; Sat, 03 Feb 2018 14:53:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=T1IP2FS6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755454AbeBCSsD (ORCPT + 99 others); Sat, 3 Feb 2018 13:48:03 -0500 Received: from mail-dm3nam03on0124.outbound.protection.outlook.com ([104.47.41.124]:55488 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752952AbeBCSBk (ORCPT ); Sat, 3 Feb 2018 13:01:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MqDSvyCckUdl66n+gar7wbFOOB/7QFGSUaXZAHYAS/w=; b=T1IP2FS6L+jxBsGshUL3OxqnisEuuaWeU28yx4x0vsWRoTdpa6uNxMgrvjUs7gC+e4/aBvLZ2XUI81JBKZEP6jEBDciEjVqBH58qCrwy0ZbgWfO0NCbVGF44KV1FsMLPyP6H2ATFHLV5h7PC06MpB+66jKqwQ1sysPHHezAvEnU= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1092.namprd21.prod.outlook.com (52.132.24.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.4; Sat, 3 Feb 2018 18:01:23 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:01:23 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Moshe Shemesh , Saeed Mahameed , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 043/110] net/mlx5: Stay in polling mode when command EQ destroy fails Thread-Topic: [PATCH AUTOSEL for 4.14 043/110] net/mlx5: Stay in polling mode when command EQ destroy fails Thread-Index: AQHTnRjsC4IEDHSSKUmzYJwcBTY+Aw== Date: Sat, 3 Feb 2018 18:00:49 +0000 Message-ID: <20180203180015.29073-43-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1092;7:0bnySCrM/XRZPNeJJ+UXmBelyeXmCWoxdZYaJeNE8hXd0AYiUSWNOLPMYjVoxI9he/YndEiQy6qK1R8JGTtFJ0EdOLRgBAZKCKntE0DNOggtefYryj56aZZH6GsARWcDkCe7lloG3HCDtj3PgMhko994BuAlu89s/ra+tDZRPfNrupS/SrtUbgmMUonK/dU5UAqu4HoKyryG2T3KOUF539nTzGvGpK2ZxQho9XzIRjv5gy3RNIMPuKvwL3NhZHfA x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0563e0c2-da2c-4827-560a-08d56b30230d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1092; x-ms-traffictypediagnostic: BL0PR2101MB1092: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL0PR2101MB1092;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1092; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(376002)(346002)(396003)(366004)(189003)(199004)(3280700002)(14454004)(3660700001)(105586002)(3846002)(6666003)(22452003)(6116002)(99286004)(305945005)(7736002)(2950100002)(66066001)(478600001)(54906003)(110136005)(68736007)(316002)(86362001)(106356001)(186003)(26005)(6506007)(76176011)(6346003)(10090500001)(102836004)(6436002)(4326008)(8936002)(2501003)(53936002)(86612001)(2900100001)(6486002)(2906002)(6512007)(25786009)(97736004)(72206003)(1076002)(107886003)(36756003)(5660300001)(5250100002)(8676002)(81156014)(81166006)(10290500003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1092;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: QLGsJHtU7BcWvHldsKZFhaavKtBFwtAiB3wmEZ57AMAyVD2YUVZelcay3P/9en3YR+5vsVV+DzD0t76o7xkd8A== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0563e0c2-da2c-4827-560a-08d56b30230d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:49.3315 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1092 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Moshe Shemesh [ Upstream commit a2fba188fd5eadd6061bef4f2f2577a43231ebf3 ] During unload, on mlx5_stop_eqs we move command interface from events mode to polling mode, but if command interface EQ destroy fail we move back to events mode. That's wrong since even if we fail to destroy command interface EQ, we do release its irq, so no interrupts will be received. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Moshe Shemesh Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/eth= ernet/mellanox/mlx5/core/eq.c index 494726f02e3e..eb91de86202b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c @@ -802,11 +802,9 @@ void mlx5_stop_eqs(struct mlx5_core_dev *dev) mlx5_cmd_use_polling(dev); =20 err =3D mlx5_destroy_unmap_eq(dev, &table->cmd_eq); - if (err) { + if (err) mlx5_core_err(dev, "failed to destroy command eq, err(%d)\n", err); - mlx5_cmd_use_events(dev); - } } =20 int mlx5_core_eq_query(struct mlx5_core_dev *dev, struct mlx5_eq *eq, --=20 2.11.0