Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2766991ybf; Mon, 2 Mar 2020 15:17:01 -0800 (PST) X-Google-Smtp-Source: ADFU+vs2NBgqSRw7bAavYQ9b7P44l/hqLsDJZVFNTaA1QjPNmkIRIQ9itv/FHIJ5ZNBQIq5f6PKX X-Received: by 2002:aca:be09:: with SMTP id o9mr553979oif.177.1583191021388; Mon, 02 Mar 2020 15:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583191021; cv=none; d=google.com; s=arc-20160816; b=oIDPWZIHvI85+P3Ce9KpMetd/qwrTS3KYeD9aB3ShfDSWHJP3xp5yDqx5IPfOjdJ3r XfV5Dh+LnU9O3MhAKB7g2aFrO6A3QPrtaYstW4SM1F8DCUJ5YBq/6f2UTgI74mwMtwVf e1T2GQExeyvj3AnepLw1lkP3GLcKAwfDagoilybyIsMDF6C/RbJccQaD2nn90zZ5NgdF /xRoBVqL3FUxGVpRxO2yZEQauwQipqGgnHkIkybzT4NUhE8DYy8s1nqibqHl2NKTAn2d Ez23yE1fiU4rx3PWp03MKhwAOtrwwqu5jJt5adZq1OYyMYmvH9ww/WixlTZYl2kOuxF0 zGtQ== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :ironport-sdr:dkim-signature; bh=+UWYgNwVFrpqbsiNpxtMLg5PLNo6oZ8uC9opvMf5BxM=; b=ZUIXr+C9kUKy8RcWwh5ImJ88jXGtapMyIXyfUjSGY7hgrm0U5rAaW82YfgBusFd6Tw e2MboBIptsUUzjsnxs7HL8NOtHVIGMbcgQTU+ppZF6H3ou19zDOnh8+ryPggJXYsKeRm ffpzdX9eJQ0wtZDlzmCPuByNAo5IJcIwCzje9gTgklQIUtcEbDecYISJ9vyQ53GBuCpS /Y6K5VC7Juvv1fTMlP36znRJ1Ys6OHNXzZaow5AQa2GQMM+edLIjc6eVOLmGGZLS/RcE lrVAOKlhvB4lylQNqsDmVVfdOaQQS8Fsunx49y6YwZXbuV+ja1kZUHGbz9G6B3oat1KX OTBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=l7tmVuEd; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23si2844277otr.31.2020.03.02.15.16.48; Mon, 02 Mar 2020 15:17:01 -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=@amazon.com header.s=amazon201209 header.b=l7tmVuEd; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgCBXQi (ORCPT + 99 others); Mon, 2 Mar 2020 18:16:38 -0500 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:55550 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726700AbgCBXQi (ORCPT ); Mon, 2 Mar 2020 18:16:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1583190996; x=1614726996; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=+UWYgNwVFrpqbsiNpxtMLg5PLNo6oZ8uC9opvMf5BxM=; b=l7tmVuEdKKjSETcMNDAmO+0n+0TkXhUOpDquXdI/8bEHlKCjSY2FfWIH hJDX4Xt/5coGy+K29VzVC0/LeS/a0vgUQ2ibmF64EPpqQ6W2YvxR+AEvM ol2F8vAEa43E1BYD0dC85xk8Ia5v7Wnv3oaReop1937hksg1O2I2MQa02 k=; IronPort-SDR: XLFV+FAbo74E1bixS7QRul4MEISP8hS7PAr4ilEI1Meh59OGdRLNE/QAoxqdvhOztIdQ4SQCcD aWv1Zg7OTn2g== X-IronPort-AV: E=Sophos;i="5.70,508,1574121600"; d="scan'208";a="20370808" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-81e76b79.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 02 Mar 2020 23:16:34 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-81e76b79.us-west-2.amazon.com (Postfix) with ESMTPS id 1B10CA2D8B; Mon, 2 Mar 2020 23:16:34 +0000 (UTC) Received: from EX13D22EUB002.ant.amazon.com (10.43.166.131) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Mon, 2 Mar 2020 23:16:33 +0000 Received: from EX13D10EUB001.ant.amazon.com (10.43.166.211) by EX13D22EUB002.ant.amazon.com (10.43.166.131) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Mar 2020 23:16:32 +0000 Received: from EX13D10EUB001.ant.amazon.com ([10.43.166.211]) by EX13D10EUB001.ant.amazon.com ([10.43.166.211]) with mapi id 15.00.1497.006; Mon, 2 Mar 2020 23:16:32 +0000 From: "Machulsky, Zorik" To: Josh Triplett , "Belgazal, Netanel" , "Kiyanovski, Arthur" , "Tzalik, Guy" , "Bshara, Saeed" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ena: Speed up initialization 90x by reducing poll delays Thread-Topic: [PATCH] ena: Speed up initialization 90x by reducing poll delays Thread-Index: AQHV7pdH5S0f1nvr+k6qVAg9VSe/lqg1beyA Date: Mon, 2 Mar 2020 23:16:32 +0000 Message-ID: <8B4A52CD-FC5A-4256-B7DE-A659B50654CE@amazon.com> References: <20200229002813.GA177044@localhost> In-Reply-To: <20200229002813.GA177044@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.165.216] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQrvu79PbiAyLzI4LzIwLCA0OjI5IFBNLCAiSm9zaCBUcmlwbGV0dCIgPGpvc2hAam9zaHRyaXBs ZXR0Lm9yZz4gd3JvdGU6DQoNCiAgICBCZWZvcmUgaW5pdGlhbGl6aW5nIGNvbXBsZXRpb24gcXVl dWUgaW50ZXJydXB0cywgdGhlIGVuYSBkcml2ZXIgdXNlcw0KICAgIHBvbGxpbmcgdG8gd2FpdCBm b3IgcmVzcG9uc2VzIG9uIHRoZSBhZG1pbiBjb21tYW5kIHF1ZXVlLiBUaGUgZW5hIGRyaXZlcg0K ICAgIHdhaXRzIDVtcyBiZXR3ZWVuIHBvbGxzLCBidXQgdGhlIGhhcmR3YXJlIGhhcyBnZW5lcmFs bHkgZmluaXNoZWQgbG9uZw0KICAgIGJlZm9yZSB0aGF0LiBSZWR1Y2UgdGhlIHBvbGwgdGltZSB0 byAxMHVzLg0KICAgIA0KICAgIE9uIGEgYzUuMTJ4bGFyZ2UsIHRoaXMgaW1wcm92ZXMgZW5hIGlu aXRpYWxpemF0aW9uIHRpbWUgZnJvbSAxNzMuNm1zIH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DAgYWZ0ZXIgMTky MCB1c2Vjcw0KICAgIA0KICAgIFNpZ25lZC1vZmYtYnk6IEpvc2ggVHJpcGxldHQgPGpvc2hAam9z aHRyaXBsZXR0Lm9yZz4NCiAgICAtLS0NCiAgICAgZHJpdmVycy9uZXQvZXRoZXJuZXQvYW1hem9u L2VuYS9lbmFfY29tLmMgfCAyMiArKysrKysrKysrKystLS0tLS0tLS0tDQogICAgIDEgZmlsZSBj aGFuZ2VkLCAxMiBpbnNlcnRpb25zKCspLCAxMCBkZWxldGlvbnMoLSkNCiAgICANCiAgICBkaWZm IC0tZ2l0IGEvZHJpdmVycy9uZXQvZXRoZXJuZXQvYW1hem9uL2VuYS9lbmFfY29tLmMgYi9kcml2 ZXJzL25ldC9ldGhlcm5ldC9hbWF6b24vZW5hL2VuYV9jb20uYw0KICAgIGluZGV4IDFmYjU4Zjlh ZDgwYi4uMjAzYjIxMzBkNzA3IDEwMDY0NA0KICAgIC0tLSBhL2RyaXZlcnMvbmV0L2V0aGVybmV0 L2FtYXpvbi9lbmEvZW5hX2NvbS5jDQogICAgKysrIGIvZHJpdmVycy9uZXQvZXRoZXJuZXQvYW1h em9uL2VuYS9lbmFfY29tLmMNCiAgICBAQCAtNjIsNyArNjIsNyBAQA0KICAgICANCiAgICAgI2Rl ZmluZSBFTkFfUkVHU19BRE1JTl9JTlRSX01BU0sgMQ0KICAgICANCiAgICAtI2RlZmluZSBFTkFf UE9MTF9NUwk1DQogICAgKyNkZWZpbmUgRU5BX1BPTExfVVMJMTANCiAgICAgDQogICAgIC8qKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKi8NCiAgICAgLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLw0KICAgIEBAIC01 NzIsNyArNTcyLDcgQEAgc3RhdGljIGludCBlbmFfY29tX3dhaX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