1 What: /sys/class/remoteproc/.../firmware
3 Contact: Matt Redfearn <matt.redfearn@mips.com>
4 Description: Remote processor firmware
6 Reports the name of the firmware currently loaded to the
9 To change the running firmware, ensure the remote processor is
10 stopped (using /sys/class/remoteproc/.../state) and write a new filename.
12 What: /sys/class/remoteproc/.../state
14 Contact: Matt Redfearn <matt.redfearn@mips.com>
15 Description: Remote processor state
17 Reports the state of the remote processor, which will be one of:
25 "offline" means the remote processor is powered off.
27 "suspended" means that the remote processor is suspended and
28 must be woken to receive messages.
30 "running" is the normal state of an available remote processor
32 "crashed" indicates that a problem/crash has been detected on
35 "invalid" is returned if the remote processor is in an
38 Writing this file controls the state of the remote processor.
39 The following states can be written:
44 Writing "start" will attempt to start the processor running the
45 firmware indicated by, or written to,
46 /sys/class/remoteproc/.../firmware. The remote processor should
47 transition to "running" state.
49 Writing "stop" will attempt to halt the remote processor and
50 return it to the "offline" state.
52 What: /sys/class/remoteproc/.../name
55 Contact: Suman Anna <s-anna@ti.com>
56 Description: Remote processor name
58 Reports the name of the remote processor. This can be used by
59 userspace in exactly identifying a remote processor and ease
60 up the usage in modifying the 'firmware' or 'state' files.
62 What: /sys/class/remoteproc/.../coredump
64 Contact: Bjorn Andersson <bjorn.andersson@linaro.org>, Ohad Ben-Cohen <ohad@wizery.com>
65 Description: Remote processor coredump configuration
67 Reports the coredump configuration of the remote processor,
74 "disabled" means no dump will be collected.
76 "enabled" means when the remote processor's coredump is
77 collected it will be copied to a separate buffer and that
78 buffer is exposed to userspace.
80 "inline" means when the remote processor's coredump is
81 collected userspace will directly read from the remote
82 processor's device memory. Extra buffer will not be used to
83 copy the dump. Also recovery process will not proceed until
84 all data is read by usersapce.
86 What: /sys/class/remoteproc/.../recovery
88 Contact: Bjorn Andersson <bjorn.andersson@linaro.org>, Ohad Ben-Cohen <ohad@wizery.com>
89 Description: Remote processor recovery mechanism
91 Reports the recovery mechanism of the remote processor,
97 "enabled" means, the remote processor will be automatically
98 recovered whenever it crashes. Moreover, if the remote
99 processor crashes while recovery is disabled, it will
100 be automatically recovered too as soon as recovery is enabled.
102 "disabled" means, a remote processor will remain in a crashed
103 state if it crashes. This is useful for debugging purposes;
104 without it, debugging a crash is substantially harder.