From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 428F245BAC; Wed, 23 Oct 2024 08:28:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E31140E21; Wed, 23 Oct 2024 08:28:15 +0200 (CEST) Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by mails.dpdk.org (Postfix) with ESMTP id 01C8240E01; Wed, 23 Oct 2024 08:28:11 +0200 (CEST) X-QQ-mid: bizesmtpsz8t1729664889t53722r X-QQ-Originating-IP: oCA4IFe+jX17aU1Qxklw8ScmtdZVvrtxHRUO7uc7YTY= Received: from wxdbg.localdomain.com ( [125.122.84.15]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 23 Oct 2024 14:28:08 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4648927125785997218 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH 01/13] net/txgbe: fix swfw mbox failure Date: Wed, 23 Oct 2024 14:48:24 +0800 Message-Id: <20241023064836.2017879-2-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241023064836.2017879-1-jiawenwu@trustnetic.com> References: <20241023064836.2017879-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: Nl7eTg5yGHnwQMY9YkxAIMR8GyvAT+/wdXPzgVIeno+4C85z5Rh5CFJr Vu5JhhV/XpvZlzrddZvLsimPF+Zh5FpfUJATbQjmE0S3hRX+edeQXxaSa2hiyW050rkEP0+ iKSdij7+OPpRNee6EVqKcLL57dha0tohFJqgoe8wyTbPtSKlhQQaTQWu8nSOOqBlZIHfaYD 9aCg3zT0P11iFwJkjj65taidp4qhO/PdpvPHyyc45vhwnbI6VfYyXr1VuqIAY0hKOpY4tXr TKPrz0VenzX4Cs4HjbWiyMVS1PY9Z2eW+sGJm9jswHff/cW+zHa3CllM6mXHr3nA/mEQClJ /2DVd2bFluUt0TB/O83C5bYDHrpafOWDM3Uq/TZy+ifcshvvHhVbD2yYW9z+EVUTznJssLf CGLto22/Dwatgtz1e/pfiTLh0PlVAyBtmNyDP9ia5R+bLvcX9sTCOPM6ZV1j8S6FLTKev9V leUroN3rqdZrU1EnJ05T8CoFFM2qI1X5l5mafo/5ZKLxzVo+PQU/aELyos2DBGdJ8Uh6Lac 65MrxhMcLRJ4Zfk96sHI4HKeGmDWt3L8M7k/PtAtTGRX3qOijaJwgMsacK7x0dhMEvth0G2 iG+YPNrv0etzI+OOc4FX5tkd4g4IDgVhJtMUyP9VAg1Dv9N9C1VqcnB+2ncSYq07UpHgBti 6UzjL9HbcYV6D8z+MsOxUCIsKlJjrLfe/p0ALuKMbf1+cUooz4cCkPnCHHOLgLUtCurmEWk 2xyFxwGQWSQPwWTB3eitXhTZ5oX+8Awf9vsvTgjfq5I/e3NxVz/rBrzc0YvztWA3zpk6YSA 9cX0uU1+MlqaVg+QiYxZp95nVUymQQDpWcDkD4PVikLc3PfzridkU46G7XIBfkf/FbV46Nd SNk3LTGI1gUe+7NhDdW6Y8gSev3y+t/UOZX88cqm26hSYgHcwWuO5r8/nZIGfCf4 X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= X-QQ-RECHKSPAM: 0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org There is a unknown bug that the register TXGBE_MNGMBX cannot be written in the loop, when DPDK is built with GCC high version. Access any register before write TXGBE_MNGMBX can fix it. Bugzilla ID: 1531 Fixes: 35c90ecccfd4 ("net/txgbe: add EEPROM functions") Cc: stable@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/txgbe/base/txgbe_mng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/txgbe/base/txgbe_mng.c b/drivers/net/txgbe/base/txgbe_mng.c index 20db982891..7dc8f21183 100644 --- a/drivers/net/txgbe/base/txgbe_mng.c +++ b/drivers/net/txgbe/base/txgbe_mng.c @@ -58,6 +58,7 @@ txgbe_hic_unlocked(struct txgbe_hw *hw, u32 *buffer, u32 length, u32 timeout) dword_len = length >> 2; + txgbe_flush(hw); /* The device driver writes the relevant command block * into the ram area. */ -- 2.27.0