From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0054.outbound.protection.outlook.com [104.47.37.54]) by dpdk.org (Postfix) with ESMTP id 206FB1B39A; Wed, 1 Aug 2018 20:30:11 +0200 (CEST) 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=0jVHjMqR81HfRV7/+e/MboITfY+/CUF+B0v4SWh2/mI=; b=IkWU28IWKUVAeWGkFjz48ZV6bXEuSfQTTgP4zXk8stVlVGHuaSK0rBz2CEdtT2+lU6PtKoCgCLJL6PGiKNcBz7h/ZSj1u+UhMAzMHUPom/kN612A/pRcXf02vnEOJPnLIqiplShM1j9oyFAhd0jbKyEuesiVH8IklFTaypkdIxY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasesh.Mody@cavium.com; Received: from cavium.com (198.186.1.5) by BYAPR07MB5365.namprd07.prod.outlook.com (2603:10b6:a03:64::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.4; Wed, 1 Aug 2018 18:19:41 +0000 From: Rasesh Mody To: dev@dpdk.org Cc: Rasesh Mody , ferruh.yigit@intel.com, Dept-EngDPDKDev@cavium.com, stable@dpdk.org Date: Wed, 1 Aug 2018 11:19:20 -0700 Message-Id: <1533147560-10897-1-git-send-email-rasesh.mody@cavium.com> X-Mailer: git-send-email 1.7.10.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [198.186.1.5] X-ClientProxiedBy: CO2PR06CA0063.namprd06.prod.outlook.com (2603:10b6:104:3::21) To BYAPR07MB5365.namprd07.prod.outlook.com (2603:10b6:a03:64::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b83a7c2-6e96-4eb0-0a35-08d5f7db59ec X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5365; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5365; 3:zov4W1viSyTQ6cfSzYNf1HzlQi6VWJVxLnqMLkmgx6yUmrRvHqQm/9KWHK3tVTclyKriHoQZOGYiSWKABEbM20q7D7pYVqzaql9sVW9BfEDcjJ3SRx6ovZP9ZXVygmBeBNEcvgDQBX8quBGlzyTfcFJi0lvDnZM2Ia1CcHzCP78Bs4jZptSqkM9y789EVILy295ppOEAhsSTHbGQTpS/MKVuVF2Zc3+fgvjfOZCGYU1PiLSvO8MVidISHF6q37nN; 25:rh1JICX0tuy4J9DOvNliKkdx8o/Jml12KG6XqvBq0NGzWeA+UkU+Y3AozhEP0T4hGVl+14StJT6Y81lX3/9yQV3S9eujirtAqt8MnuR/BsSSDqfV4p+8Wluz8uUHKXRKJWqwHl3qibKPPMQ84rmee7eRpPBNwSG2bQk7XG3q1C4wp0D1GEUQ/tUyikoWZIIP2eVCh9oy7O0cIAZO5PIj10A3fSy+pqdbw5WW1c2PJVTYBWcodQS6DfY23VOmNXbWyNYoV6PNgVcmm+zQYTv8y/XOqSNLNw/sh/VevDgJZQh3ru7P9d0rc7av6wM5BfQC3lI1EaMk8q3U+Aw4J2QiGg==; 31:aVOhuLD+yThuuW5Wr9I+4aZA4/nANVTK7UvPgO4h/w2b/dPf6PHqHocQ5vcZtiK3bfck+rBLwMZzsgyJ/LymOPHrh8rNFbB6pyFrR2Zy3E9LM31FD/IChWIbkNlIjDrvi+439056T187Z1NfMsAG31fT/0p6aH809I6ZMjmL8EDAbpFmWWh4dZ2ZEShtkZiwQP0qurEeW2Fwun39Ud3MEY4Ir1H6m3Aa14YrgbtSnlo= X-MS-TrafficTypeDiagnostic: BYAPR07MB5365: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB5365; 20:GNCmYRagIq61yQBWcAggSRwSsy7SgzFFQc6Qwx/uj/mZlBrcxa9qy3zy/Y1yRMqqWfKgoJ+QFb3fLm7BtjXkwdj6lls4rMntpV4b97quCUA6n80k5690R4E4Eq8KPucoiC9IRqVJaIaTt2xkKNEMlSq84GGLYq7IuZPsc3YMK8cX/YrFHYPeft5Sl1BuZ/tbl+Nz9CPpLbTfDAjOpaScaS4U94brL8FNh7XE0uZBQxn+xHNHipS5pC+Ko4daoTPAY7+Ppa01/ZYkescEyjwnpjinHa89wNWZEfPONG9/w8A2Vmg0wiSLCUHwW853reowst9DfJMw5Xuu341ulSrHdsB0OTMjz/zZWj3plmIIhPOnYSsyRARTCy45ZXO7yKMBZ5v+Prv/+7IXz/ZL5nRf1A6rzhNrZeUTIf6o6xlGZ3LjqvrIGjItyMnVmUfATXTPlB8TIJQZUjYzrO0BrtQ1MiRB7Dwr30Ui4x4IUmbKOhIE/3GYrPcS35iTzQ8ZmtDn; 4:/Mozdi7vUQz5IS/6tz+TYqvakuu0apyruPtXeT+7/EamvRlNf07ZmE2EKXbOPQ9HbOCLmDdCNNznoWT4FuY7zcdaL6WMwIq2mMsN6tPz5A4gItiyHabwvOzUDXKypyMM+HRicriO2oJdhbAKj7I9FQM8yzWigEgq5r8uRcbIxvdnY7Z+g3PJb6AhyRQtHK9opU9sxzaaR2g77xtPqA0KuA4uuhMz9yVtWVoQBYbl2rTlm7UK1p3m4GM7gJP8bWBwiRT0TfkV/T4aPc32yBuyfQ== X-Microsoft-Antispam-PRVS: 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)(8121501046)(5005006)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:BYAPR07MB5365; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5365; X-Forefront-PRVS: 0751474A44 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(136003)(39850400004)(346002)(376002)(189003)(199004)(16586007)(8676002)(81156014)(47776003)(386003)(476003)(1857600001)(2361001)(21086003)(81166006)(956004)(316002)(69596002)(26005)(25786009)(4720700003)(53936002)(14444005)(55016002)(3846002)(478600001)(72206003)(305945005)(2616005)(6666003)(2906002)(97736004)(66066001)(6116002)(7736002)(2351001)(8936002)(5660300001)(44832011)(105586002)(186003)(486006)(50226002)(36756003)(68736007)(106356001)(48376002)(52116002)(4326008)(51416003)(6916009)(86362001)(16526019)(7696005)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5365; H:cavium.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB5365; 23:Af+x+n80JaUqpG+UhPrh9GPemvk4awtTNzLXvx0l6?= =?us-ascii?Q?JhYW2U+J/S/NF//+kZSb4Lp26wlbyhPZ9UFth4CnMiwZJsgSIV/mNEkA9lwg?= =?us-ascii?Q?MYKz93ebcdALUuE/L6OT2DHscnbQsjxSGb0BbKF8Yu50MFTWdW9b66jF0ADa?= =?us-ascii?Q?N0WWowWSrVa0yWRZXlqNp3cZZz8QNFLrCbak0neL5DHWyLLuAMIta61MDHIj?= =?us-ascii?Q?Zy8uBuzTK0cBMNGzt4ae5aLGd4nbIY6qySd+u2ix+VdujdYqqu8fntmoBV+R?= =?us-ascii?Q?43LOH4WIruLbFRom7l+ynFWf3lo3B0d1Qr3ccj6oUp8wkLc8gfpAyUKMIuWR?= =?us-ascii?Q?fxyHbCYjDNthsMD0DbJodfmhjgd3kM2Voj3jLsQ0dODthQxIAFXI3w9/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HgMjROSAd4YCdUQCHwr3AW3WlQa3LWSUmV9RbeFx6x6FE=; 7:3J7+kSyHQuNaV95/Awte7OSpbfz5704U0xWhoqHavYKVnGHICH60URHUpbt+CL0epLloXlHQCNEdYhvbQ5fKQN9SN8/Sr7B31du/nV2W/5Bdksk/+R9jTHlYXzu+C98x+bvNsG6bDL4tDd8PR5pwiuck9nHX9burGd1yAzL2i0I2+gz90Jxmo6TKjtKaOnnWQQ2ZW6tLXUYYVcftyF0pmxHocE0WHaxvIGKbSkdznTLtw5aKh1R/hA80O6jthUOa SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2018 18:19:41.7426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b83a7c2-6e96-4eb0-0a35-08d5f7db59ec X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5365 Subject: [dpdk-stable] [PATCH] net/bnx2x: fix FW cmd timeout duting device stop 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: Wed, 01 Aug 2018 18:30:11 -0000 This patch fixes firmware command timeout error seen during device stop while stopping queues. It patially reverts an earlier preventive change commit 91b7e432bcef ("net/bnx2x: disable fast path interrupts") to now enable fast path interrupts. The original issue of performance degradation is not observed anymore, with or without the fix. Fixes: 91b7e432bcef ("net/bnx2x: disable fast path interrupts") Cc: stable@dpdk.org Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index 84ade5f..6228744 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -4490,6 +4490,8 @@ static void bnx2x_handle_fp_tq(struct bnx2x_fastpath *fp, int scan_fp) struct bnx2x_softc *sc = fp->sc; uint8_t more_rx = FALSE; + PMD_DRV_LOG(DEBUG, "---> FP TASK QUEUE (%d) <--", fp->index); + /* update the fastpath index */ bnx2x_update_fp_sb_idx(fp); @@ -4506,7 +4508,7 @@ static void bnx2x_handle_fp_tq(struct bnx2x_fastpath *fp, int scan_fp) } bnx2x_ack_sb(sc, fp->igu_sb_id, USTORM_ID, - le16toh(fp->fp_hc_idx), IGU_INT_DISABLE, 1); + le16toh(fp->fp_hc_idx), IGU_INT_ENABLE, 1); } /* -- 1.7.10.3