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 3BE5D45BE5; Mon, 28 Oct 2024 03:09:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1A945406B4; Mon, 28 Oct 2024 03:09:14 +0100 (CET) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by mails.dpdk.org (Postfix) with ESMTP id 51BD740656; Mon, 28 Oct 2024 03:09:00 +0100 (CET) X-QQ-mid: bizesmtpsz8t1730081307tdzshwu X-QQ-Originating-IP: Xmex+swh0K4XPlFrJhgh7O0hTMSWMhuw6Z4v4X47+Rs= Received: from wxdbg.localdomain.com ( [36.24.66.21]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 28 Oct 2024 10:08:27 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 3655854909871179664 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH v2 01/13] net/txgbe: fix swfw mbox failure Date: Mon, 28 Oct 2024 10:31:35 +0800 Message-Id: <20241028023147.60157-2-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241028023147.60157-1-jiawenwu@trustnetic.com> References: <20241023064836.2017879-1-jiawenwu@trustnetic.com> <20241028023147.60157-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: Mmv2azxffly/qf6rnrs6vhXQjrjcg5brsVD7KMucyrEG3VezTZoPNxOP fYt4sIGRQT604Y1I+lJDmMT6sN584GalVlq2T7t4Cv0hopCglX1+Q9Qk5IJksYrk8b7CFKC TbUqCThkPNm1bLg/zTkhqUvcLmrZlLWU2c4WcHokY2f3T4+DTQuW0hFHqN0rJ/WFjY9eq3c EyJnrQmXYMotZ08//zDsjzDkTqAO5hZFVxDu3gEPNJpQDjp2iPQnqdDMD/AuAz0mGceOhIJ cU4ULldm6AZeWZirv1vWii/4sXn87HSN0OQmDFPs0KKPtnw3bPCjaFT91z9VR3zglmuEicI DoS4p0tcqqE9btT5uK73JrLshN5YhycAN3N9LWagE9PcAtBa8ZOn1x9IjxpNmm3/UXvtPWV 0OEAtt0r2aAxzJUNTcq4/H2KJvmFjpRky2OEIeG7C+87lFZo7d5FzFZMrTGFdxaKTFlP0PW QgzurCuASmTTF0+srpCjUPkGYobCnwOyhBMhH1UXdGY1gDZh5b26qLLAxptA9kTuRoTPgwQ kxmdDAVri4OUMWLNibwPTSpaf9k0yqjmlEteJyNdr/DhbKfUqK1epJTVUNgF/8bGSaa8FXg bQhwGHctZAe+4RrhEXmWVBcpGBOaKiOzK1rQr395ElizS28xj66IRPlQaPfXyFDMQr6qWFv ZXT+xGPLWVkvQGo7bjjk6Fd7xj66+odIbNRG5P7Sqib4jqZN9I3XDbPwPNrlVs1pgviD0VN VnSG4Zoi1XZ539lZ54JEZ5vpNQZoSEmBWc69dcWkwsM8XptOVQ31mEfeuLDsxOdFex6uOJC eIwbqhVUJw6GgPIWyfDn+uPo0AXyit6zo/S6ol5UVdEoppCFu57RfyFW/TesUoJRJg/wKlj cs5DYbk3NOAtyW0pVuOrsX4d7o55DG8F4570hKLrlS/6J6LDMzCOLlQGoxEmxrZV7NgCA3X h/uc= X-QQ-XMRINFO: Nq+8W0+stu50PRdwbJxPCL0= 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