Skip to contentSkip to conversation

net/ice: fix incorrect firmware version

PATCH Superseded Shougang Wang 3 participants 7 messages Aug 6, 2020 – Sep 11, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

Fixes ac882a0eda69 ("net/ice/base: store NVM version in extracted format")
---
 drivers/net/ice/ice_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
index 8d435e889..88b8428b9 100644
@@ -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
#1 lore raw
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
---
 drivers/net/ice/ice_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +1 -1
index 8d435e889..88b8428b9 100644
@@ -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

#2 lore raw
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 version

Quoted 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 extracted

format")

Fix line not correct, should be the code you fixed

OK, I will correct it.

Thanks
Shougang

#3 lore raw

PATCH v2 1/1 net/ice: fix incorrect firmware version

In reply to Shougang Wang

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")

---
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
index 8d435e889..88b8428b9 100644
@@ -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
Acked-by on v2 1/1
#4 lore raw
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 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.

Fixes f9204d8a23c3 ("net/ice: fix firmware version result of ethtool")

---
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
index 8d435e889..88b8428b9 100644
@@ -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

#5 lore raw

PATCH v3 1/1 net/ice: fix incorrect firmware version

In reply to Shougang Wang

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")

---
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
index ca1f7d42e..4170a5446 100644
@@ -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
Applied
#6 lore raw
Quoted 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")

Applied to dpdk-next-net-intel.

Thanks
Qi