* [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init
@ 2023-11-29 17:56 Sachin Bahadur
2023-11-29 22:27 ` Jacob Keller
2023-11-30 15:56 ` Andrew Lunn
0 siblings, 2 replies; 6+ messages in thread
From: Sachin Bahadur @ 2023-11-29 17:56 UTC (permalink / raw)
To: intel-wired-lan; +Cc: netdev
Print NIC FW version during PF initialization. FW version in dmesg is used
to identify and isolate issues. Particularly useful when dmesg is read
after reboot.
Example log from dmesg:
ice 0000:ca:00.0: fw 6.2.9 api 1.7.9 nvm 3.32 0x8000d83e 1.3146.0
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Pawel Kaminski <pawel.kaminski@intel.com>
Signed-off-by: Sachin Bahadur <sachin.bahadur@intel.com>
---
v1->v2: Added example log message
---
drivers/net/ethernet/intel/ice/ice_main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index 1f159b4362ec..71d3d8cfdd1d 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -4568,6 +4568,12 @@ static int ice_init_dev(struct ice_pf *pf)
dev_err(dev, "ice_init_hw failed: %d\n", err);
return err;
}
+ dev_info(dev, "fw %u.%u.%u api %u.%u.%u nvm %u.%u 0x%08x %u.%u.%u\n",
+ hw->fw_maj_ver, hw->fw_min_ver, hw->fw_patch, hw->api_maj_ver,
+ hw->api_min_ver, hw->api_patch, hw->flash.nvm.major,
+ hw->flash.nvm.minor, hw->flash.nvm.eetrack,
+ hw->flash.orom.major, hw->flash.orom.build,
+ hw->flash.orom.patch);
/* Some cards require longer initialization times
* due to necessity of loading FW from an external source.
--
2.25.1
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init
2023-11-29 17:56 [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init Sachin Bahadur
@ 2023-11-29 22:27 ` Jacob Keller
2023-11-30 15:56 ` Andrew Lunn
1 sibling, 0 replies; 6+ messages in thread
From: Jacob Keller @ 2023-11-29 22:27 UTC (permalink / raw)
To: intel-wired-lan
On 11/29/2023 9:56 AM, Sachin Bahadur wrote:
> Print NIC FW version during PF initialization. FW version in dmesg is used
> to identify and isolate issues. Particularly useful when dmesg is read
> after reboot.
>
> Example log from dmesg:
> ice 0000:ca:00.0: fw 6.2.9 api 1.7.9 nvm 3.32 0x8000d83e 1.3146.0
>
> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
> Reviewed-by: Pawel Kaminski <pawel.kaminski@intel.com>
> Signed-off-by: Sachin Bahadur <sachin.bahadur@intel.com>
> ---
> v1->v2: Added example log message
> ---
> drivers/net/ethernet/intel/ice/ice_main.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
> index 1f159b4362ec..71d3d8cfdd1d 100644
> --- a/drivers/net/ethernet/intel/ice/ice_main.c
> +++ b/drivers/net/ethernet/intel/ice/ice_main.c
> @@ -4568,6 +4568,12 @@ static int ice_init_dev(struct ice_pf *pf)
> dev_err(dev, "ice_init_hw failed: %d\n", err);
> return err;
> }
> + dev_info(dev, "fw %u.%u.%u api %u.%u.%u nvm %u.%u 0x%08x %u.%u.%u\n",
> + hw->fw_maj_ver, hw->fw_min_ver, hw->fw_patch, hw->api_maj_ver,
> + hw->api_min_ver, hw->api_patch, hw->flash.nvm.major,
> + hw->flash.nvm.minor, hw->flash.nvm.eetrack,
> + hw->flash.orom.major, hw->flash.orom.build,
> + hw->flash.orom.patch);
>
Seems ok. I guess we print something like this in a lot of our drivers
already.
devlink info reports most of this as well though with more verbose naming:
pci/0000:af:00.0:
driver ice
serial_number 00-01-00-ff-ff-00-00-00
versions:
fixed:
board.id K91258-000
running:
fw.mgmt 6.1.5
fw.mgmt.api 1.7.9
fw.mgmt.build 0x6986bfdb
fw.undi 1.3025.0
fw.psid.api 3.10
fw.bundle_id 0x80008e6a
fw.app.name ICE OS Default Package
fw.app 1.3.35.0
fw.app.bundle_id 0xc0000001
fw.netlist 3.10.2000-3.1e.0
fw.netlist.build 0x4154dfac
stored:
fw.undi 1.3025.0
fw.psid.api 3.10
fw.bundle_id 0x80008e6a
fw.netlist 3.10.2000-3.1e.0
fw.netlist.build 0x4154dfac
But I guess a succinct log could be useful to have when reviewing a bug
report from customers who just copy the kernel log.
> /* Some cards require longer initialization times
> * due to necessity of loading FW from an external source.
> --
> 2.25.1
>
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@osuosl.org
> https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init
2023-11-29 17:56 [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init Sachin Bahadur
2023-11-29 22:27 ` Jacob Keller
@ 2023-11-30 15:56 ` Andrew Lunn
2023-11-30 17:08 ` Bahadur, Sachin
1 sibling, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2023-11-30 15:56 UTC (permalink / raw)
To: Sachin Bahadur; +Cc: netdev, intel-wired-lan
On Wed, Nov 29, 2023 at 09:56:04AM -0800, Sachin Bahadur wrote:
> Print NIC FW version during PF initialization. FW version in dmesg is used
> to identify and isolate issues. Particularly useful when dmesg is read
> after reboot.
>
> Example log from dmesg:
> ice 0000:ca:00.0: fw 6.2.9 api 1.7.9 nvm 3.32 0x8000d83e 1.3146.0
>
> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
> Reviewed-by: Pawel Kaminski <pawel.kaminski@intel.com>
> Signed-off-by: Sachin Bahadur <sachin.bahadur@intel.com>
Is this information available via devlink info?
It has a section to report firmware version.
Andrew
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init
2023-11-30 15:56 ` Andrew Lunn
@ 2023-11-30 17:08 ` Bahadur, Sachin
2023-11-30 18:13 ` Andrew Lunn
0 siblings, 1 reply; 6+ messages in thread
From: Bahadur, Sachin @ 2023-11-30 17:08 UTC (permalink / raw)
To: Andrew Lunn; +Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org
> From: Andrew Lunn <andrew@lunn.ch>
> Sent: Thursday, November 30, 2023 7:57 AM
> To: Bahadur, Sachin <sachin.bahadur@intel.com>
> Cc: intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org
> Subject: Re: [PATCH iwl-next v2] ice: Print NIC FW version during init
>
> On Wed, Nov 29, 2023 at 09:56:04AM -0800, Sachin Bahadur wrote:
> > Print NIC FW version during PF initialization. FW version in dmesg is
> > used to identify and isolate issues. Particularly useful when dmesg is
> > read after reboot.
> >
> > Example log from dmesg:
> > ice 0000:ca:00.0: fw 6.2.9 api 1.7.9 nvm 3.32 0x8000d83e 1.3146.0
> >
> > Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
> > Reviewed-by: Pawel Kaminski <pawel.kaminski@intel.com>
> > Signed-off-by: Sachin Bahadur <sachin.bahadur@intel.com>
>
> Is this information available via devlink info?
> It has a section to report firmware version.
>
> Andrew
Yes, this info is available via the "devlink dev info" command.
Adding this info in dmesg ensures the version information is
available when someone is looking at the dmesg log to debug an issue.
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init
2023-11-30 17:08 ` Bahadur, Sachin
@ 2023-11-30 18:13 ` Andrew Lunn
2023-12-01 7:40 ` Jiri Pirko
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2023-11-30 18:13 UTC (permalink / raw)
To: Bahadur, Sachin; +Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org
> Yes, this info is available via the "devlink dev info" command.
> Adding this info in dmesg ensures the version information is
> available when someone is looking at the dmesg log to debug an issue.
Ideally you would train your users to use devlink info, since you get
more useful information, and it should work for any vendors NIC, not
just Intel which is spamming the log with firmware versions.
Andrew
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init
2023-11-30 18:13 ` Andrew Lunn
@ 2023-12-01 7:40 ` Jiri Pirko
0 siblings, 0 replies; 6+ messages in thread
From: Jiri Pirko @ 2023-12-01 7:40 UTC (permalink / raw)
To: Andrew Lunn
Cc: intel-wired-lan@lists.osuosl.org, Bahadur, Sachin,
netdev@vger.kernel.org
Thu, Nov 30, 2023 at 07:13:11PM CET, andrew@lunn.ch wrote:
>> Yes, this info is available via the "devlink dev info" command.
>> Adding this info in dmesg ensures the version information is
>> available when someone is looking at the dmesg log to debug an issue.
>
>Ideally you would train your users to use devlink info, since you get
>more useful information, and it should work for any vendors NIC, not
>just Intel which is spamming the log with firmware versions.
+1
>
> Andrew
>
>
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-12-01 7:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-29 17:56 [Intel-wired-lan] [PATCH iwl-next v2] ice: Print NIC FW version during init Sachin Bahadur
2023-11-29 22:27 ` Jacob Keller
2023-11-30 15:56 ` Andrew Lunn
2023-11-30 17:08 ` Bahadur, Sachin
2023-11-30 18:13 ` Andrew Lunn
2023-12-01 7:40 ` Jiri Pirko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox