aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/ioat/ioatcontrol.8
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2015-10-29 04:16:16 +0000
committerConrad Meyer <cem@FreeBSD.org>2015-10-29 04:16:16 +0000
commite9497f9bbd2ac5e16b9d913c89ff2d2a08f52cd7 (patch)
tree63b6a27f2cd8595b1327c9198eead709529ef4bc /tools/tools/ioat/ioatcontrol.8
parent52eab858c03174e617ed86357ec600af94d49615 (diff)
downloadsrc-e9497f9bbd2ac5e16b9d913c89ff2d2a08f52cd7.tar.gz
src-e9497f9bbd2ac5e16b9d913c89ff2d2a08f52cd7.zip
ioatcontrol(8): Add and document "raw" testing mode
Allows DMA from/to arbitrary KVA or physical address. /dev/ioat_test must be enabled by root and is only R/W root, so this is approximately as dangerous as /dev/mem and /dev/kmem. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=290129
Diffstat (limited to 'tools/tools/ioat/ioatcontrol.8')
-rw-r--r--tools/tools/ioat/ioatcontrol.834
1 files changed, 33 insertions, 1 deletions
diff --git a/tools/tools/ioat/ioatcontrol.8 b/tools/tools/ioat/ioatcontrol.8
index 7e3234825eda..2306d3876a36 100644
--- a/tools/tools/ioat/ioatcontrol.8
+++ b/tools/tools/ioat/ioatcontrol.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 26, 2015
+.Dd October 28, 2015
.Dt IOATCONTROL 8
.Os
.Sh NAME
@@ -40,6 +40,14 @@
.Ar [ bufsize
.Ar [ chain-len
.Ar [ duration ] ] ]
+.Nm
+.Fl r
+.Op Fl v
+.Op Fl V
+.Op Fl w
+.Ar channel_number
+.Ar address
+.Ar [ bufsize ]
.Sh DESCRIPTION
.Nm
allows one to issue some number of test operations to the
@@ -55,6 +63,29 @@ tests copy)
Verify copies/fills for accuracy
.El
.Pp
+Alternatively one can use
+.Nm
+.Fl r
+to issue DMA to or from a specific
+.Ar address .
+The arguments in "raw" mode are:
+.Bl -tag -width Ds
+.It Fl v
+.Ar address
+is a kernel virtual address (by default,
+.Ar address
+is assumed to be a physical address)
+.It Fl V
+Dump the resulting hex to syslog
+.It Fl w
+Write to the specified
+.Ar address
+(by default,
+.Nm
+.Fl r
+reads)
+.El
+.Pp
.Nm
operates in one of two modes; if the
.Ar duration
@@ -77,6 +108,7 @@ argument determines the size of buffers to use for each
.Fn ioat_copy
invocation.
The default is 256 KB.
+In raw mode, the default is 4 KB.
.Pp
The
.Ar chain-len