net/ice: fix incorrect firmware version
PATCH 1/1 net/ice: fix incorrect firmware version
Kernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
--- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
@@ -4388,7 +4388,7 @@ ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size) build = hw->nvm.orom.build; ret = snprintf(fw_version, fw_size, - "%d.%d 0x%08x %d.%d.%d", + "%x.%02x 0x%08x %d.%d.%d", hw->nvm.major_ver, hw->nvm.minor_ver, hw->nvm.eetrack,
Signature · 1 line
2.17.1
Quoted 11 lines
-----Original Message-----
From: Wang, ShougangX <[email protected]>
Sent: Thursday, August 6, 2020 16:25
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, ShougangX <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix incorrect firmware version
Quoted 4 lines
Kernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
Fixes ac882a0eda69 ("net/ice/base: store NVM version in extracted format")
Fix line not correct, should be the code you fixed
Quoted 23 lines
Signed-off-by Shougang Wang <[email protected]>--- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ice/ice_ethdev.c +1
-1@@ -4388,7 +4388,7 @@ ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size) build = hw->nvm.orom.build; ret = snprintf(fw_version, fw_size, - "%d.%d 0x%08x %d.%d.%d", + "%x.%02x 0x%08x %d.%d.%d", hw->nvm.major_ver, hw->nvm.minor_ver,
hw->nvm.eetrack,
--
2.17.1
Quoted 19 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Thursday, August 6, 2020 5:16 PM
To: Wang, ShougangX <[email protected]>; [email protected]
Cc: Zhang, Qi Z <[email protected]>; [email protected]
Subject: RE: [PATCH] net/ice: fix incorrect firmware versionQuoted 9 lines
-----Original Message-----
From: Wang, ShougangX <[email protected]>
Sent: Thursday, August 6, 2020 16:25
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, ShougangX <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix incorrect firmware version
Quoted 7 lines
Quoted 5 lines
Kernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
Fixes ac882a0eda69 ("net/ice/base: store NVM version in extractedformat")
Fix line not correct, should be the code you fixed
OK, I will correct it.
Thanks
Shougang
PATCH v2 1/1 net/ice: fix incorrect firmware version
In reply to Shougang WangKernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
---
v2:
corrected fixes version
--- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
@@ -4388,7 +4388,7 @@ ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size) build = hw->nvm.orom.build; ret = snprintf(fw_version, fw_size, - "%d.%d 0x%08x %d.%d.%d", + "%x.%02x 0x%08x %d.%d.%d", hw->nvm.major_ver, hw->nvm.minor_ver, hw->nvm.eetrack,
Signature · 1 line
2.17.1
Quoted 37 lines
-----Original Message-----
From: Wang, ShougangX <[email protected]>
Sent: Thursday, August 6, 2020 18:28
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, ShougangX <[email protected]>; [email protected]
Subject: [PATCH v2] net/ice: fix incorrect firmware versionKernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
Fixes f9204d8a23c3 ("net/ice: fix firmware version result of ethtool")Signed-off-by Shougang Wang <[email protected]>---
v2:
corrected fixes version--- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ice/ice_ethdev.c +1
-1@@ -4388,7 +4388,7 @@ ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size) build = hw->nvm.orom.build; ret = snprintf(fw_version, fw_size, - "%d.%d 0x%08x %d.%d.%d", + "%x.%02x 0x%08x %d.%d.%d", hw->nvm.major_ver, hw->nvm.minor_ver,
Quoted 3 lines
hw->nvm.eetrack,
--
2.17.1
PATCH v3 1/1 net/ice: fix incorrect firmware version
In reply to Shougang WangKernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
---
v3:
code rebase
v2:
corrected fixes version
--- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
@@ -4415,7 +4415,7 @@ ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size) build = hw->flash.orom.build; ret = snprintf(fw_version, fw_size, - "%d.%d 0x%08x %d.%d.%d", + "%x.%02x 0x%08x %d.%d.%d", hw->flash.nvm.major, hw->flash.nvm.minor, hw->flash.nvm.eetrack,
Signature · 1 line
2.17.1
Zhang, Qi Z
AppliedQuoted 11 lines
-----Original Message-----
From: Wang, ShougangX <[email protected]>
Sent: Friday, September 11, 2020 10:41 AM
To: [email protected]
Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, ShougangX <[email protected]>; [email protected]
Subject: [PATCH v3] net/ice: fix incorrect firmware version
Quoted 8 lines
Kernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver.
Fixes f9204d8a23c3 ("net/ice: fix firmware version result of ethtool")Signed-off-by Shougang Wang <[email protected]>Acked-by Qiming Yang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi