Skip to content

Commit 14f5d8e

Browse files
jacob-kellerdavem330
authored andcommitted
ice: add documentation for device-caps region
The recent change by commit 8d7aab3 ("ice: implement snapshot for device capabilities") to implement the device-caps region for the ice driver forgot to document it. Add documentation to the ice devlink documentation file describing the new region and add some sample output to the shell commands provided as an example. Fixes: 8d7aab3 ("ice: implement snapshot for device capabilities") Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6e9fdb6 commit 14f5d8e

1 file changed

Lines changed: 53 additions & 2 deletions

File tree

‎Documentation/networking/devlink/ice.rst‎

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,20 @@ The ``ice`` driver reports the following versions
8484
Regions
8585
=======
8686

87-
The ``ice`` driver enables access to the contents of the Non Volatile Memory
88-
flash chip via the ``nvm-flash`` region.
87+
The ``ice`` driver implements the following regions for accessing internal
88+
device data.
89+
90+
.. list-table:: regions implemented
91+
:widths: 15 85
92+
93+
* - Name
94+
- Description
95+
* - ``nvm-flash``
96+
- The contents of the entire flash chip, sometimes referred to as
97+
the device's Non Volatile Memory.
98+
* - ``device-caps``
99+
- The contents of the device firmware's capabilities buffer. Useful to
100+
determine the current state and configuration of the device.
89101

90102
Users can request an immediate capture of a snapshot via the
91103
``DEVLINK_CMD_REGION_NEW``
@@ -105,3 +117,42 @@ Users can request an immediate capture of a snapshot via the
105117
0000000000000000 0014 95dc 0014 9514 0035 1670 0034 db30
106118
107119
$ devlink region delete pci/0000:01:00.0/nvm-flash snapshot 1
120+
121+
$ devlink region new pci/0000:01:00.0/device-caps snapshot 1
122+
$ devlink region dump pci/0000:01:00.0/device-caps snapshot 1
123+
0000000000000000 01 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00
124+
0000000000000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
125+
0000000000000020 02 00 02 01 32 03 00 00 0a 00 00 00 25 00 00 00
126+
0000000000000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
127+
0000000000000040 04 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
128+
0000000000000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
129+
0000000000000060 05 00 01 00 03 00 00 00 00 00 00 00 00 00 00 00
130+
0000000000000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
131+
0000000000000080 06 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
132+
0000000000000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
133+
00000000000000a0 08 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
134+
00000000000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
135+
00000000000000c0 12 00 01 00 01 00 00 00 01 00 01 00 00 00 00 00
136+
00000000000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
137+
00000000000000e0 13 00 01 00 00 01 00 00 00 00 00 00 00 00 00 00
138+
00000000000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
139+
0000000000000100 14 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
140+
0000000000000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
141+
0000000000000120 15 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
142+
0000000000000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
143+
0000000000000140 16 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
144+
0000000000000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
145+
0000000000000160 17 00 01 00 06 00 00 00 00 00 00 00 00 00 00 00
146+
0000000000000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
147+
0000000000000180 18 00 01 00 01 00 00 00 01 00 00 00 08 00 00 00
148+
0000000000000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
149+
00000000000001a0 22 00 01 00 01 00 00 00 00 00 00 00 00 00 00 00
150+
00000000000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
151+
00000000000001c0 40 00 01 00 00 08 00 00 08 00 00 00 00 00 00 00
152+
00000000000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
153+
00000000000001e0 41 00 01 00 00 08 00 00 00 00 00 00 00 00 00 00
154+
00000000000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
155+
0000000000000200 42 00 01 00 00 08 00 00 00 00 00 00 00 00 00 00
156+
0000000000000210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
157+
158+
$ devlink region delete pci/0000:01:00.0/device-caps snapshot 1

0 commit comments

Comments
 (0)