xref: /openbmc/linux/Documentation/ABI/testing/debugfs-scmi-raw (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
174225707SCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/message
274225707SCristian MarussiDate:		March 2023
374225707SCristian MarussiKernelVersion:	6.3
474225707SCristian MarussiContact:	cristian.marussi@arm.com
574225707SCristian MarussiDescription:	SCMI Raw synchronous message injection/snooping facility; write
674225707SCristian Marussi		a complete SCMI synchronous command message (header included)
774225707SCristian Marussi		in little-endian binary format to have it sent to the configured
874225707SCristian Marussi		backend SCMI server for instance <n>.
974225707SCristian Marussi		Any subsequently received response can be read from this same
1074225707SCristian Marussi		entry if it arrived within the configured timeout.
1174225707SCristian Marussi		Each write to the entry causes one command request to be built
1274225707SCristian Marussi		and sent while the replies are read back one message at time
1374225707SCristian Marussi		(receiving an EOF at each message boundary).
1474225707SCristian MarussiUsers:		Debugging, any userspace test suite
1574225707SCristian Marussi
1674225707SCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/message_async
1774225707SCristian MarussiDate:		March 2023
1874225707SCristian MarussiKernelVersion:	6.3
1974225707SCristian MarussiContact:	cristian.marussi@arm.com
2074225707SCristian MarussiDescription:	SCMI Raw asynchronous message injection/snooping facility; write
2174225707SCristian Marussi		a complete SCMI asynchronous command message (header included)
2274225707SCristian Marussi		in little-endian binary format to have it sent to the configured
2374225707SCristian Marussi		backend SCMI server for instance <n>.
2474225707SCristian Marussi		Any subsequently received response can be read from this same
2574225707SCristian Marussi		entry if it arrived within the configured timeout.
2674225707SCristian Marussi		Any additional delayed response received afterwards can be read
2774225707SCristian Marussi		from this same entry too if it arrived within the configured
2874225707SCristian Marussi		timeout.
2974225707SCristian Marussi		Each write to the entry causes one command request to be built
3074225707SCristian Marussi		and sent while the replies are read back one message at time
3174225707SCristian Marussi		(receiving an EOF at each message boundary).
3274225707SCristian MarussiUsers:		Debugging, any userspace test suite
3374225707SCristian Marussi
3474225707SCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/errors
3574225707SCristian MarussiDate:		March 2023
3674225707SCristian MarussiKernelVersion:	6.3
3774225707SCristian MarussiContact:	cristian.marussi@arm.com
3874225707SCristian MarussiDescription:	SCMI Raw message errors facility; any kind of timed-out or
3974225707SCristian Marussi		generally unexpectedly received SCMI message, for instance <n>,
4074225707SCristian Marussi		can be read from this entry.
4174225707SCristian Marussi		Each read gives back one message at time (receiving an EOF at
4274225707SCristian Marussi		each message boundary).
4374225707SCristian MarussiUsers:		Debugging, any userspace test suite
4474225707SCristian Marussi
4574225707SCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/notification
4674225707SCristian MarussiDate:		March 2023
4774225707SCristian MarussiKernelVersion:	6.3
4874225707SCristian MarussiContact:	cristian.marussi@arm.com
4974225707SCristian MarussiDescription:	SCMI Raw notification snooping facility; any notification
5074225707SCristian Marussi		emitted by the backend SCMI server, for instance <n>, can be
5174225707SCristian Marussi		read from this entry.
5274225707SCristian Marussi		Each read gives back one message at time (receiving an EOF at
5374225707SCristian Marussi		each message boundary).
5474225707SCristian MarussiUsers:		Debugging, any userspace test suite
5574225707SCristian Marussi
5674225707SCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/reset
5774225707SCristian MarussiDate:		March 2023
5874225707SCristian MarussiKernelVersion:	6.3
5974225707SCristian MarussiContact:	cristian.marussi@arm.com
6074225707SCristian MarussiDescription:	SCMI Raw stack reset facility; writing a value to this entry
6174225707SCristian Marussi		causes the internal queues of any kind of received message,
6274225707SCristian Marussi		still pending to be read out for instance <n>, to be immediately
6374225707SCristian Marussi		flushed.
6474225707SCristian Marussi		Can be used to reset and clean the SCMI Raw stack between to
6574225707SCristian Marussi		different test-run.
6674225707SCristian MarussiUsers:		Debugging, any userspace test suite
677860701dSCristian Marussi
687860701dSCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/channels/<m>/message
697860701dSCristian MarussiDate:		March 2023
707860701dSCristian MarussiKernelVersion:	6.3
717860701dSCristian MarussiContact:	cristian.marussi@arm.com
727860701dSCristian MarussiDescription:	SCMI Raw synchronous message injection/snooping facility; write
737860701dSCristian Marussi		a complete SCMI synchronous command message (header included)
747860701dSCristian Marussi		in little-endian binary format to have it sent to the configured
757860701dSCristian Marussi		backend SCMI server for instance <n> through the <m> transport
767860701dSCristian Marussi		channel.
777860701dSCristian Marussi		Any subsequently received response can be read from this same
787860701dSCristian Marussi		entry if it arrived on channel <m> within the configured
797860701dSCristian Marussi		timeout.
807860701dSCristian Marussi		Each write to the entry causes one command request to be built
817860701dSCristian Marussi		and sent while the replies are read back one message at time
827860701dSCristian Marussi		(receiving an EOF at each message boundary).
83*32a55bbdSCristian Marussi		Channel identifier <m> matches the SCMI protocol number which
84*32a55bbdSCristian Marussi		has been associated with this transport channel in the DT
85*32a55bbdSCristian Marussi		description, with base protocol number 0x10 being the default
86*32a55bbdSCristian Marussi		channel for this instance.
877860701dSCristian Marussi		Note that these per-channel entries rooted at <..>/channels
887860701dSCristian Marussi		exist only if the transport is configured to have more than
89*32a55bbdSCristian Marussi		one default channel.
907860701dSCristian MarussiUsers:		Debugging, any userspace test suite
917860701dSCristian Marussi
927860701dSCristian MarussiWhat:		/sys/kernel/debug/scmi/<n>/raw/channels/<m>/message_async
937860701dSCristian MarussiDate:		March 2023
947860701dSCristian MarussiKernelVersion:	6.3
957860701dSCristian MarussiContact:	cristian.marussi@arm.com
967860701dSCristian MarussiDescription:	SCMI Raw asynchronous message injection/snooping facility; write
977860701dSCristian Marussi		a complete SCMI asynchronous command message (header included)
987860701dSCristian Marussi		in little-endian binary format to have it sent to the configured
997860701dSCristian Marussi		backend SCMI server for instance <n> through the <m> transport
1007860701dSCristian Marussi		channel.
1017860701dSCristian Marussi		Any subsequently received response can be read from this same
1027860701dSCristian Marussi		entry if it arrived on channel <m> within the configured
1037860701dSCristian Marussi		timeout.
1047860701dSCristian Marussi		Any additional delayed response received afterwards can be read
1057860701dSCristian Marussi		from this same entry too if it arrived within the configured
1067860701dSCristian Marussi		timeout.
1077860701dSCristian Marussi		Each write to the entry causes one command request to be built
1087860701dSCristian Marussi		and sent while the replies are read back one message at time
1097860701dSCristian Marussi		(receiving an EOF at each message boundary).
110*32a55bbdSCristian Marussi		Channel identifier <m> matches the SCMI protocol number which
111*32a55bbdSCristian Marussi		has been associated with this transport channel in the DT
112*32a55bbdSCristian Marussi		description, with base protocol number 0x10 being the default
113*32a55bbdSCristian Marussi		channel for this instance.
1147860701dSCristian Marussi		Note that these per-channel entries rooted at <..>/channels
1157860701dSCristian Marussi		exist only if the transport is configured to have more than
116*32a55bbdSCristian Marussi		one default channel.
1177860701dSCristian MarussiUsers:		Debugging, any userspace test suite
118