18c2ecf20Sopenharmony_ciWhat:		/sys/class/remoteproc/.../firmware
28c2ecf20Sopenharmony_ciDate:		October 2016
38c2ecf20Sopenharmony_ciContact:	Matt Redfearn <matt.redfearn@mips.com>
48c2ecf20Sopenharmony_ciDescription:	Remote processor firmware
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci		Reports the name of the firmware currently loaded to the
78c2ecf20Sopenharmony_ci		remote processor.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci		To change the running firmware, ensure the remote processor is
108c2ecf20Sopenharmony_ci		stopped (using /sys/class/remoteproc/.../state) and write a new filename.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciWhat:		/sys/class/remoteproc/.../state
138c2ecf20Sopenharmony_ciDate:		October 2016
148c2ecf20Sopenharmony_ciContact:	Matt Redfearn <matt.redfearn@mips.com>
158c2ecf20Sopenharmony_ciDescription:	Remote processor state
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci		Reports the state of the remote processor, which will be one of:
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci		- "offline"
208c2ecf20Sopenharmony_ci		- "suspended"
218c2ecf20Sopenharmony_ci		- "running"
228c2ecf20Sopenharmony_ci		- "crashed"
238c2ecf20Sopenharmony_ci		- "invalid"
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci		"offline" means the remote processor is powered off.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci		"suspended" means that the remote processor is suspended and
288c2ecf20Sopenharmony_ci		must be woken to receive messages.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci		"running" is the normal state of an available remote processor
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci		"crashed" indicates that a problem/crash has been detected on
338c2ecf20Sopenharmony_ci		the remote processor.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci		"invalid" is returned if the remote processor is in an
368c2ecf20Sopenharmony_ci		unknown state.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci		Writing this file controls the state of the remote processor.
398c2ecf20Sopenharmony_ci		The following states can be written:
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci		- "start"
428c2ecf20Sopenharmony_ci		- "stop"
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		Writing "start" will attempt to start the processor running the
458c2ecf20Sopenharmony_ci		firmware indicated by, or written to,
468c2ecf20Sopenharmony_ci		/sys/class/remoteproc/.../firmware. The remote processor should
478c2ecf20Sopenharmony_ci		transition to "running" state.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci		Writing "stop" will attempt to halt the remote processor and
508c2ecf20Sopenharmony_ci		return it to the "offline" state.
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciWhat:		/sys/class/remoteproc/.../name
538c2ecf20Sopenharmony_ciDate:		August 2019
548c2ecf20Sopenharmony_ciKernelVersion:	5.4
558c2ecf20Sopenharmony_ciContact:	Suman Anna <s-anna@ti.com>
568c2ecf20Sopenharmony_ciDescription:	Remote processor name
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci		Reports the name of the remote processor. This can be used by
598c2ecf20Sopenharmony_ci		userspace in exactly identifying a remote processor and ease
608c2ecf20Sopenharmony_ci		up the usage in modifying the 'firmware' or 'state' files.
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ciWhat:		/sys/class/remoteproc/.../coredump
638c2ecf20Sopenharmony_ciDate:		July 2020
648c2ecf20Sopenharmony_ciContact:	Bjorn Andersson <bjorn.andersson@linaro.org>, Ohad Ben-Cohen <ohad@wizery.com>
658c2ecf20Sopenharmony_ciDescription:	Remote processor coredump configuration
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci		Reports the coredump configuration of the remote processor,
688c2ecf20Sopenharmony_ci		which will be one of:
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci		"disabled"
718c2ecf20Sopenharmony_ci		"enabled"
728c2ecf20Sopenharmony_ci		"inline"
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci		"disabled" means no dump will be collected.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci		"enabled" means when the remote processor's coredump is
778c2ecf20Sopenharmony_ci		collected it will be copied to a separate buffer and that
788c2ecf20Sopenharmony_ci		buffer is exposed to userspace.
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci		"inline" means when the remote processor's coredump is
818c2ecf20Sopenharmony_ci		collected userspace will directly read from the remote
828c2ecf20Sopenharmony_ci		processor's device memory. Extra buffer will not be used to
838c2ecf20Sopenharmony_ci		copy the dump. Also recovery process will not proceed until
848c2ecf20Sopenharmony_ci		all data is read by usersapce.
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ciWhat:		/sys/class/remoteproc/.../recovery
878c2ecf20Sopenharmony_ciDate:		July 2020
888c2ecf20Sopenharmony_ciContact:	Bjorn Andersson <bjorn.andersson@linaro.org>, Ohad Ben-Cohen <ohad@wizery.com>
898c2ecf20Sopenharmony_ciDescription:	Remote processor recovery mechanism
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci		Reports the recovery mechanism of the remote processor,
928c2ecf20Sopenharmony_ci		which will be one of:
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci		"enabled"
958c2ecf20Sopenharmony_ci		"disabled"
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci		"enabled" means, the remote processor will be automatically
988c2ecf20Sopenharmony_ci		recovered whenever it crashes. Moreover, if the remote
998c2ecf20Sopenharmony_ci		processor crashes while recovery is disabled, it will
1008c2ecf20Sopenharmony_ci		be automatically recovered too as soon as recovery is enabled.
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci		"disabled" means, a remote processor will remain in a crashed
1038c2ecf20Sopenharmony_ci		state if it crashes. This is useful for debugging purposes;
1048c2ecf20Sopenharmony_ci		without it, debugging a crash is substantially harder.
105