diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2019-05-23 18:31:00 -0400 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2019-06-13 09:03:12 -0400 |
commit | d9c53aa440b332059f7f0ce3f7868ff1dc58c62c (patch) | |
tree | 557c86aaa1c062e3ee53d27ccee3aeb5520983e9 | |
parent | 2b0569b3b7e6eac7a0c5aef741aeebe5675e1640 (diff) |
NTB: Describe the ntb_msi_test client in the documentation.
Add a blurb in Documentation/ntb.txt to describe the ntb_msi_test tool's
debugfs interface. Similar to the (out of date) ntb_tool description.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
-rw-r--r-- | Documentation/ntb.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/ntb.txt b/Documentation/ntb.txt index 074a423c853c..87d1372da879 100644 --- a/Documentation/ntb.txt +++ b/Documentation/ntb.txt | |||
@@ -200,6 +200,33 @@ Debugfs Files: | |||
200 | This file is used to read and write peer scratchpads. See | 200 | This file is used to read and write peer scratchpads. See |
201 | *spad* for details. | 201 | *spad* for details. |
202 | 202 | ||
203 | NTB MSI Test Client (ntb\_msi\_test) | ||
204 | ------------------------------------ | ||
205 | |||
206 | The MSI test client serves to test and debug the MSI library which | ||
207 | allows for passing MSI interrupts across NTB memory windows. The | ||
208 | test client is interacted with through the debugfs filesystem: | ||
209 | |||
210 | * *debugfs*/ntb\_tool/*hw*/ | ||
211 | A directory in debugfs will be created for each | ||
212 | NTB device probed by the tool. This directory is shortened to *hw* | ||
213 | below. | ||
214 | * *hw*/port | ||
215 | This file describes the local port number | ||
216 | * *hw*/irq*_occurrences | ||
217 | One occurrences file exists for each interrupt and, when read, | ||
218 | returns the number of times the interrupt has been triggered. | ||
219 | * *hw*/peer*/port | ||
220 | This file describes the port number for each peer | ||
221 | * *hw*/peer*/count | ||
222 | This file describes the number of interrupts that can be | ||
223 | triggered on each peer | ||
224 | * *hw*/peer*/trigger | ||
225 | Writing an interrupt number (any number less than the value | ||
226 | specified in count) will trigger the interrupt on the | ||
227 | specified peer. That peer's interrupt's occurrence file | ||
228 | should be incremented. | ||
229 | |||
203 | NTB Hardware Drivers | 230 | NTB Hardware Drivers |
204 | ==================== | 231 | ==================== |
205 | 232 | ||