Received: by 10.213.65.68 with SMTP id h4csp2113379imn; Sun, 8 Apr 2018 20:03:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx48kYXq3qsewQNEiW6d7EDqlc/pTrqA+OvfiO/5dulegSb3UZULR9QR9itmxN2hGlYKwz4CA X-Received: by 2002:a17:902:8d98:: with SMTP id v24-v6mr36775777plo.21.1523243002191; Sun, 08 Apr 2018 20:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243002; cv=none; d=google.com; s=arc-20160816; b=TA+NAt0/nbdH2Wx0XLZ4ZMGf4y0GKfLV3Wi4neEhcGL+Heu8gSO/CzJoes095/sNt4 ysSTUJaudLPaLPKOHtGz5ByZJhFS4OxObHQ2JXCDRUpxNjwVU0LUTACJiZ78MPneTQ4H S1nQ7oQZopWRcJYUabt0ZTubwHsQCW/QfhEYryfvosEy1z2ZSx+JLni9QsxHRT9hen5Q oCmw/pggRrQsv5/LP1bwb2MidJW0oyicgQX0z3w8EKKhKmWYIZrAxOgEeosulnTmI2jY AA+/2fE8XCVM/edTqHCJQvmFAkk3eGP9vqXY4jHJXR8imY7Ln8bVc1hzW08YE7qjatIp HSgg== 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=zs9eTyeT53DblVHA1Ugdw/a3MhPN3DHqqnZ59JYhiIM=; b=frR9NfKQwbMM3nZonya8lTtwZVSUaqyiDd4woAvKFXB/2pBLRbw1CSlo+It4mIXSHr sjLFY8iWkRIz0AI3vZUSb40Im8IKsp8I09q/RIMma/Vta0a48R5h1/SS0lqc6TqyO9Mj d7Ezwzil7O14gVnIlHWTpRm0dUfQ/Dh0Y+kApv4eBgtK+SML/vi1TaXVba4/v4r2u/fa m7yVEljlUOBCqLUh2UdfgnNeIMXvGESM7/VQZ9F3aXN6dwmQHnGxWomtUwJM4r0tIE7v HPgnjA87RI5tWaKwbOQ1T1rhmowqxeJRpeTJCohGN7NDuX+FFsPNJwrPds394buRJbOm QFVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=cIEOKfFE; 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 b9-v6si8245802plb.160.2018.04.08.20.02.45; Sun, 08 Apr 2018 20:03:22 -0700 (PDT) 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=cIEOKfFE; 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 S1755604AbeDIA1b (ORCPT + 99 others); Sun, 8 Apr 2018 20:27:31 -0400 Received: from mail-cys01nam02on0094.outbound.protection.outlook.com ([104.47.37.94]:22752 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753174AbeDIA1Y (ORCPT ); Sun, 8 Apr 2018 20:27:24 -0400 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=zs9eTyeT53DblVHA1Ugdw/a3MhPN3DHqqnZ59JYhiIM=; b=cIEOKfFEF67JUQsFAimYimtAPZir+JxmD8P7UQqmSjrL/egM2QHrI2napnPCYJ5pyhKOYHagsCuEj6urlx1RbbbjOTw6xhkZwLp7mhYnVogvrBLv7JcnCrlWnD00Kb0H6B6ct9795L71luuDOuwsLLLFKdV5vSCnZhEkGTa2j4c= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1031.namprd21.prod.outlook.com (52.132.128.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:27:20 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:27:20 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Netanel Belgazal , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 036/293] net: ena: disable admin msix while working in polling mode Thread-Topic: [PATCH AUTOSEL for 4.9 036/293] net: ena: disable admin msix while working in polling mode Thread-Index: AQHTz5j1OKCacigDx0OOOZ5rS5L/Gw== Date: Mon, 9 Apr 2018 00:23:18 +0000 Message-ID: <20180409002239.163177-36-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB1031;7:rsZVc+ECW3ZBYURwLIlka3MvwH/69ewEyArgPIVX1P6Sma6GDtEOVQW95EqlGXLx3g0tODzjt+D3nt9CJme0qpRhMmgs6VAYKxtLJ+RpvkkChR1t2iTCRJthnkwZ/fPRaED57LlL7uhTuA5AepOPkSTjADhdlai0QVera3b1ioaw1gPduEYiRenpnIbzgF7QhgRIV2K5o6N+XWN22BCjTeefwPDixB+zg5HW5RXm2MdquZJW4Ps9ri6/GrQWX/+e;20:ltZiYVPGt5LLGIX3dtkyuflQRZ4bza4rgKcEjRNduuVN0NxIukbZjwlgihc9LPkg8BASUysJQifpzJHzn6EgBAe9QJ9etzFz5ZtdMXbuqNuqWMPJuHEcY4y+tHwZul4+5CGlh1FdJ4UR2vgOC4BawIYL4dkDE9OCUU8DEfnxmGE= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 33206f44-4498-4f8d-1bc8-08d59db0a85a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1031; x-ms-traffictypediagnostic: DM5PR2101MB1031: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(33061846794335)(47284530071512); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1031;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1031; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(366004)(39380400002)(346002)(39860400002)(189003)(199004)(2900100001)(10290500003)(99286004)(76176011)(14454004)(7736002)(11346002)(26005)(86612001)(72206003)(478600001)(36756003)(106356001)(66066001)(2616005)(186003)(575784001)(22452003)(86362001)(68736007)(305945005)(54906003)(102836004)(486006)(110136005)(316002)(6506007)(446003)(107886003)(53936002)(4326008)(105586002)(6436002)(6486002)(476003)(6512007)(5660300001)(5250100002)(25786009)(3846002)(6116002)(1076002)(97736004)(3280700002)(2501003)(2906002)(81156014)(8676002)(10090500001)(81166006)(8936002)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1031;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: VJl2zR7yVjThtm2J/WX0TCiGRUt+vSkRkLKimdvEbqGMn706b5ZSt7pEXiYonVLfEvsDF1XSrmpK+2x1UN6bMfY49btxKAWndapZV30OSuqSXjFqOKV9OxZV4RqQ88VfOkIc+s6u5YWDobSDCNo1LX0zEUCnakaxzkLZyoNXi4YMNDeBlybi5bKZwfp4BqcotD24IT2ODg+VNJ1J5jSCvNE3F3fMoFU6L2YH67/Ha/Ajs1kPh7jG12UmhC8LvvTTWsFZXWKkzk4+lFmQ/LP/I+RVqSAsf1GU3yiSMGdYQiLu1yPDzyNpkBJOkWO3u0eOEC7S5Vfge5B4VGatWFhqm7aTgaL6npCmRFeMjbV5eZceb4uWBxiOoG+ABsZb4iZbxXHFaSUoFlDiiLRMH0gPzplBtaiKekQtnK+kZtGY9U4= 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: 33206f44-4498-4f8d-1bc8-08d59db0a85a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:18.1279 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Netanel Belgazal [ Upstream commit a2cc5198dac102775b21787752a2e0afe44ad311 ] Fixes: 1738cd3ed342 ("Add a driver for Amazon Elastic Network Adapters (ENA= )") Signed-off-by: Netanel Belgazal Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amazon/ena/ena_com.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethern= et/amazon/ena/ena_com.c index f4c107b66af4..e13c9cd45dc0 100644 --- a/drivers/net/ethernet/amazon/ena/ena_com.c +++ b/drivers/net/ethernet/amazon/ena/ena_com.c @@ -61,6 +61,8 @@ =20 #define ENA_MMIO_READ_TIMEOUT 0xFFFFFFFF =20 +#define ENA_REGS_ADMIN_INTR_MASK 1 + /*************************************************************************= ****/ /*************************************************************************= ****/ /*************************************************************************= ****/ @@ -1448,6 +1450,12 @@ void ena_com_admin_destroy(struct ena_com_dev *ena_d= ev) =20 void ena_com_set_admin_polling_mode(struct ena_com_dev *ena_dev, bool poll= ing) { + u32 mask_value =3D 0; + + if (polling) + mask_value =3D ENA_REGS_ADMIN_INTR_MASK; + + writel(mask_value, ena_dev->reg_bar + ENA_REGS_INTR_MASK_OFF); ena_dev->admin_queue.polling =3D polling; } =20 --=20 2.15.1