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 F277745C57; Mon, 4 Nov 2024 03:07:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C71E640A72; Mon, 4 Nov 2024 03:07:08 +0100 (CET) Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by mails.dpdk.org (Postfix) with ESMTP id CCA134021F; Mon, 4 Nov 2024 03:07:02 +0100 (CET) X-QQ-mid: bizesmtp91t1730686017tzp0see1 X-QQ-Originating-IP: BC8oYEk1RZjHCy/kfkwbX6DTfdX51JpXQs4ZzdscpGc= Received: from wxdbg.localdomain.com ( [60.186.23.108]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 04 Nov 2024 10:06:56 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14898314101884142409 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH v3 01/13] net/txgbe: fix swfw mbox failure Date: Mon, 4 Nov 2024 10:29:55 +0800 Message-Id: <20241104023007.782475-2-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241104023007.782475-1-jiawenwu@trustnetic.com> References: <20241028023147.60157-1-jiawenwu@trustnetic.com> <20241104023007.782475-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: NtSAiPg0gWU5C/+MDJ2UDRbIgQpSJ+F2jHCBv1zfsG6gmgjuIVi5++3r X86PTELAeOi6w8FtA7xbn4iNWoreh7oTOUe5r+mTVuIM+ZUAA1RYHycc4vSSretHjc5l5rL LyqEebvL5SfvLTz8qqTIgFwkKHSXPfUVXzFQlb4oyMzQPyhyLH7EQeVqKhV7rVvZJStEg9P uEEOx87StwBB76gBO9wYIZfDfR8dvIngz0XtTVsJgIyI6j7SLxXCK54T70HdiCHXUQscIQ3 M7Qyo1Ki63o4k5eglyvl26ICOTGcHiqWxNXchWyU67koS7zAjUCzZp9mJSn6wrYjKlm6g+7 FWNOQGgyB/F6+xa1KAUyxuR7CO2/Lcr3/5/k4jPOgQDVjST9ql6ilS0Ob7UAW/pdWBkkEUz DGOyk2TedmqYJHv3TvS7v8euIlGAqhgqWqgKrWl/3chaDMRvD0O+ukoW6gdHjLOrLSwiIER EA/MsdVhG2Y1qlM71XljvZjb4ADxZCxXFHJbKciKR+s2/Ro1ddIH9+/AGfnXXaOoU/BpzQo V/1rzwyrgDteIVWlpc+qV9EQYwWjU6Ew3VcLqodd8C427KaQ6iYGYrdFIfdi2yUHqlnacT2 4Rt4JrCM6wWz0wvuvkSLccNwm5o4s9WmCD50Z0v7d1MUVKnOVMpGsQSSEkoi78/U/alGq3q 0H9nIJM1ZpXzvHsKaMUHyeXHvvU6bob1CtozGumIEle6Sh5sAM6X9tiozlRrhMuDFW2lcC8 Hr/Eq8neDLZTsot6NhBjiv5oPIXdwUcs5k/NjO8CwN/qYq/Vos6w5CYG46vXWUTz7eTz/Rp V6Kiiy839ULfPmZmfmZ5jQWNG+5bnSwSgo1Hh6I+02ViUwvEvSCZbFrRubn0lsMVRv/Ns1I IFRG9GeKN49e5xZ7EX53KIPQHlWorBCZTWoFFDSWArkSz2ylXDL0QRqmnBx1E38TEPb219e PDIkWT5XrVb8rbQ== X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= 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