Hi, TI Experts,
The am574x_IDK comes with 8 remoteproc.
How to set remoteproc as suspended/offline/running during kernel loading?
For example, I programmed a code for blinking LED with pru_2_0(remoteproc4).
How to set remoteproc4 as suspended/offline/running during kernel loading?
Best regards,
Greatcat
//---Currently status.
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc0/state
suspended
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc1/state
suspended
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc2/state
suspended
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc3/state
suspended
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc4/state
offline
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc5/state
offline
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc6/state
running
root@am57xx-evm:~# cat /sys/class/remoteproc/remoteproc7/state
running
root@am57xx-evm:~# dmesg | grep remoteproc0
[ 11.782331] remoteproc remoteproc0: 58820000.ipu is available
[ 12.531981] remoteproc remoteproc0: powering up 58820000.ipu
[ 12.537775] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 6887428
[ 12.586266] remoteproc remoteproc0: registered virtio0 (type 7)
[ 12.595014] remoteproc remoteproc0: remote processor 58820000.ipu is now up
root@am57xx-evm:~# dmesg | grep remoteproc1
[ 11.878213] remoteproc remoteproc1: 55020000.ipu is available
[ 12.505659] remoteproc remoteproc1: powering up 55020000.ipu
[ 12.511592] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3747220
[ 12.746720] remoteproc remoteproc1: registered virtio1 (type 7)
[ 12.752683] remoteproc remoteproc1: remote processor 55020000.ipu is now up
root@am57xx-evm:~# dmesg | grep remoteproc2
[ 12.021905] remoteproc remoteproc2: 40800000.dsp is available
[ 14.525476] remoteproc remoteproc2: powering up 40800000.dsp
[ 14.549817] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 20482288
[ 14.590390] remoteproc remoteproc2: registered virtio2 (type 7)
[ 14.597479] remoteproc remoteproc2: remote processor 40800000.dsp is now up
root@am57xx-evm:~# dmesg | grep remoteproc3
[ 12.148035] remoteproc remoteproc3: 41000000.dsp is available
[ 14.782259] remoteproc remoteproc3: powering up 41000000.dsp
[ 14.793545] remoteproc remoteproc3: Booting fw image dra7-dsp2-fw.xe66, size 20482288
[ 15.081639] remoteproc remoteproc3: registered virtio3 (type 7)
[ 15.101674] remoteproc remoteproc3: remote processor 41000000.dsp is now up
root@am57xx-evm:~# dmesg | grep remoteproc4
[ 15.438956] remoteproc remoteproc4: 4b234000.pru is available
root@am57xx-evm:~# dmesg | grep remoteproc5
[ 15.514671] remoteproc remoteproc5: 4b238000.pru is available
root@am57xx-evm:~# dmesg | grep remoteproc6
[ 15.567085] remoteproc remoteproc6: 4b2b4000.pru is available
[ 18.116982] remoteproc remoteproc6: powering up 4b2b4000.pru
[ 18.133503] remoteproc remoteproc6: Booting fw image ti-pruss/am57xx-pru0-prueth-fw.elf, size 7228
[ 18.188381] remoteproc remoteproc6: remote processor 4b2b4000.pru is now up
root@am57xx-evm:~# dmesg | grep remoteproc7
[ 15.626588] remoteproc remoteproc7: 4b2b8000.pru is available
[ 17.933163] remoteproc remoteproc7: powering up 4b2b8000.pru
[ 17.958906] remoteproc remoteproc7: Booting fw image ti-pruss/am57xx-pru1-prueth-fw.elf, size 7256
[ 18.016665] remoteproc remoteproc7: remote processor 4b2b8000.pru is now up
//---
Board : am574x_IDK TMDSIDK5749 REV 1.0C
root@am57xx-evm:~# uname -ar
Linux am57xx-evm 4.19.94-gbe5389fd85 #1 SMP PREEMPT Sun Apr 19 02:36:36 UTC 2020 armv7l GNU/Linux
root@am57xx-evm:~# /usr/share/ti/examples/opencl/platforms/platforms
[ 198.396103] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[ 198.434292] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
[ 198.440224] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
[ 198.447143] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 198.453038] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
PLATFORM: TI AM57x
Version: OpenCL 1.2 TI product version 01.02.00.02 (b1dfed9)
Vendor : Texas Instruments, Inc.
Profile: FULL_PROFILE
DEVICE: TI Multicore C66 DSP
Type : ACCELERATOR | CUSTOM
CompUnits : 2
Frequency : 0.75 GHz
Glb Mem : 360448 KB
GlbExt1 Mem: 0 KB
GlbExt2 Mem: 0 KB
Msmc Mem : 1024 KB
Loc Mem : 128 KB
Max Alloc : 344064 KB
DEVICE: TI Embedded Vision Engine (EVE)
Type : CUSTOM
CompUnits : 1
Frequency : 0.65 GHz
Glb Mem : 360448 KB
Loc Mem : 0 KB
Max Alloc : 344064 KB
DEVICE: TI Embedded Vision Engine (EVE)
Type : CUSTOM
CompUnits : 1
Frequency : 0.65 GHz
Glb Mem : 360448 KB
Loc Mem : 0 KB
Max Alloc : 344064 KB