From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 9275623D for ; Mon, 15 Oct 2018 13:52:24 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id w5-v6so20963648wrt.2 for ; Mon, 15 Oct 2018 04:52:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nfb6BNkousb/iWiG/2EADT+T8pTdBrH2CucQElXZiIg=; b=EZtvvXRcx3n6Kc2QBWcvcu5xG9aYSOxNxIq9U875fcdEX19LLgjU4iRL37f11bIk62 VXajokcyTv3OpS/yTxPQ3C+U1VRJGky+Lv07QdD4le48dUYY+2bNpf8i3U+hSIN6fHbz 0R5aBHwvgmUeBDXQ2Rsf9wR7cWBdXlnP5vS5L6sIuvan8yh/ljSXcyA1sPDYYNTwhb9Y 1EVSAC8K2tVS+iSNC8B+PpNMmZ1x4c1gkgLXu8kplz2sTaHO8VQaiVkj+3XdBeb9hQBB 6Uzu/mRcwC/QamuPJUKgVYd4WhtERIuBOw21eqV+XWZA2KbP+UsF2lZ7BtIfSD30b6Vr jkdA== X-Gm-Message-State: ABuFfohfL0SKPee0qixZURrIrq1INsKRtcp1HBxnLEsby0e89a+mzBc+ LzHRyl4Ps3p2fCI8rZIuVj3UN/+j X-Google-Smtp-Source: ACcGV61+YIZpiJV3mMtml2h5lN5/l10e1n8bY+GeW2Ur2HCLePxrgab/xvllnV02VB+hIINfBAictw== X-Received: by 2002:adf:ce10:: with SMTP id p16-v6mr13421950wrn.118.1539604344191; Mon, 15 Oct 2018 04:52:24 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id t194-v6sm10428282wmd.48.2018.10.15.04.52.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 04:52:23 -0700 (PDT) From: Luca Boccassi To: Xiaoxin Peng Cc: Ajit Khaparde , dpdk stable Date: Mon, 15 Oct 2018 12:51:38 +0100 Message-Id: <20181015115144.27626-18-bluca@debian.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181015115144.27626-1-bluca@debian.org> References: <20181003162121.16364-1-bluca@debian.org> <20181015115144.27626-1-bluca@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bnxt: reduce polling interval for valid bit' has been queued to LTS release 16.11.9 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 11:52:24 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/17/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Luca Boccassi --- >>From 0590058e6f7d6bbc6cb3a8de21be174db1014f72 Mon Sep 17 00:00:00 2001 From: Xiaoxin Peng Date: Fri, 28 Sep 2018 19:00:06 -0700 Subject: [PATCH] net/bnxt: reduce polling interval for valid bit [ upstream commit a830900063768646a70e5aef1c23ba2530fbc323 ] Change polling interval for valid bit in bnxt_hwrm_send_message Poll every 1us instead of 600us. Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") Signed-off-by: Xiaoxin Peng Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index a644fb9c91..dd99c578bd 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -50,7 +50,7 @@ #include "bnxt_vnic.h" #include "hsi_struct_def_dpdk.h" -#define HWRM_CMD_TIMEOUT 2000 +#define HWRM_CMD_TIMEOUT 6000000 /* * HWRM Functions (sent to HWRM) @@ -97,7 +97,7 @@ static int bnxt_hwrm_send_message_locked(struct bnxt *bp, void *msg, if (*valid == HWRM_RESP_VALID_KEY) break; } - rte_delay_us(600); + rte_delay_us(1); } if (i >= HWRM_CMD_TIMEOUT) { -- 2.19.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-10-15 12:48:35.062242283 +0100 +++ 0018-net-bnxt-reduce-polling-interval-for-valid-bit.patch 2018-10-15 12:48:34.581096017 +0100 @@ -1,13 +1,14 @@ -From a830900063768646a70e5aef1c23ba2530fbc323 Mon Sep 17 00:00:00 2001 +From 0590058e6f7d6bbc6cb3a8de21be174db1014f72 Mon Sep 17 00:00:00 2001 From: Xiaoxin Peng Date: Fri, 28 Sep 2018 19:00:06 -0700 Subject: [PATCH] net/bnxt: reduce polling interval for valid bit +[ upstream commit a830900063768646a70e5aef1c23ba2530fbc323 ] + Change polling interval for valid bit in bnxt_hwrm_send_message Poll every 1us instead of 600us. Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") -Cc: stable@dpdk.org Signed-off-by: Xiaoxin Peng Reviewed-by: Ajit Khaparde @@ -16,19 +17,19 @@ 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c -index 76e443ec18..999976054d 100644 +index a644fb9c91..dd99c578bd 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c -@@ -26,7 +26,7 @@ - - #include +@@ -50,7 +50,7 @@ + #include "bnxt_vnic.h" + #include "hsi_struct_def_dpdk.h" --#define HWRM_CMD_TIMEOUT 10000 +-#define HWRM_CMD_TIMEOUT 2000 +#define HWRM_CMD_TIMEOUT 6000000 - #define HWRM_SPEC_CODE_1_8_3 0x10803 - #define HWRM_VERSION_1_9_1 0x10901 -@@ -135,7 +135,7 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg, + /* + * HWRM Functions (sent to HWRM) +@@ -97,7 +97,7 @@ static int bnxt_hwrm_send_message_locked(struct bnxt *bp, void *msg, if (*valid == HWRM_RESP_VALID_KEY) break; }