Skip to content

Commit 45d76f4

Browse files
emuslndavem330
authored andcommitted
pds_core: set up device and adminq
Set up the basic adminq and notifyq queue structures. These are used mostly by the client drivers for feature configuration. These are essentially the same adminq and notifyq as in the ionic driver. Part of this includes querying for device identity and FW information, so we can make that available to devlink dev info. $ devlink dev info pci/0000:b5:00.0 pci/0000:b5:00.0: driver pds_core serial_number FLM18420073 versions: fixed: asic.id 0x0 asic.rev 0x0 running: fw 1.51.0-73 stored: fw.goldfw 1.15.9-C-22 fw.mainfwa 1.60.0-73 fw.mainfwb 1.60.0-57 Signed-off-by: Shannon Nelson <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 25b450c commit 45d76f4

File tree

7 files changed

+1418
-4
lines changed

7 files changed

+1418
-4
lines changed

Documentation/networking/device_drivers/ethernet/amd/pds_core.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,53 @@ messages such as these::
2626
pds_core 0000:b6:00.0: 252.048 Gb/s available PCIe bandwidth (16.0 GT/s PCIe x16 link)
2727
pds_core 0000:b6:00.0: FW: 1.60.0-73
2828

29+
Driver and firmware version information can be gathered with devlink::
30+
31+
$ devlink dev info pci/0000:b5:00.0
32+
pci/0000:b5:00.0:
33+
driver pds_core
34+
serial_number FLM18420073
35+
versions:
36+
fixed:
37+
asic.id 0x0
38+
asic.rev 0x0
39+
running:
40+
fw 1.51.0-73
41+
stored:
42+
fw.goldfw 1.15.9-C-22
43+
fw.mainfwa 1.60.0-73
44+
fw.mainfwb 1.60.0-57
45+
46+
Info versions
47+
=============
48+
49+
The ``pds_core`` driver reports the following versions
50+
51+
.. list-table:: devlink info versions implemented
52+
:widths: 5 5 90
53+
54+
* - Name
55+
- Type
56+
- Description
57+
* - ``fw``
58+
- running
59+
- Version of firmware running on the device
60+
* - ``fw.goldfw``
61+
- stored
62+
- Version of firmware stored in the goldfw slot
63+
* - ``fw.mainfwa``
64+
- stored
65+
- Version of firmware stored in the mainfwa slot
66+
* - ``fw.mainfwb``
67+
- stored
68+
- Version of firmware stored in the mainfwb slot
69+
* - ``asic.id``
70+
- fixed
71+
- The ASIC type for this device
72+
* - ``asic.rev``
73+
- fixed
74+
- The revision of the ASIC for this device
75+
2976
Health Reporters
3077
================
3178

0 commit comments

Comments
 (0)