Skip to content

Commit c0a5c39

Browse files
mz-pdmstsquad
authored andcommitted
scmi: Add some notes on testing to README
Signed-off-by: Milan Zamazal <[email protected]>
1 parent 923fa43 commit c0a5c39

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

crates/scmi/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,25 @@ implemented.
7070
See source code (`scmi` crate) documentation for details and how to
7171
add more protocols, host device bindings or other functionality.
7272

73-
## Kernel support for testing
73+
## Testing
74+
75+
SCMI is supported only on Arm in Linux. This restriction doesn't
76+
apply to the host, which can be any architecture as long as the guest
77+
is Arm.
78+
79+
The easiest way to test it on the guest side is using the Linux SCMI
80+
Industrial I/O driver there. If an 3-axes accelerometer or gyroscope
81+
VirtIO SCMI device is present and the guest kernel is compiled with
82+
`CONFIG_IIO_SCMI` enabled then the device should be available in
83+
`/sys/bus/iio/devices/`. The vhost-device-scmi fake device is
84+
suitable for this.
85+
86+
Of course, other means of accessing SCMI devices can be used too. The
87+
following Linux kernel command line can be useful to obtain SCMI trace
88+
information, in addition to SCMI related messages in dmesg:
89+
`trace_event=scmi:* ftrace=function ftrace_filter=scmi*`.
90+
91+
### Kernel support for testing
7492

7593
`kernel` subdirectory contains
7694
[instructions](kernel/iio-dummy/README.md) how to create emulated

0 commit comments

Comments
 (0)