Dear Champs,
My customer is testing IPC example with IPU and failed to load IPU FW after unbind/bind as below.
Could you please check below log?
~~~~~~~~~~~~~~
echo 55020000.ipu > /sys/bus/platform/drivers/omap-rproc/unbind
echo 55020000.ipu > /sys/bus/platform/drivers/omap-rproc/bind
[ 235.520458] remoteproc remoteproc1: releasing 55020000.ipu
[ 235.610848] omap-rproc 55020000.ipu: ignoring dependency for device, assuming no driver
[ 235.619039] omap-rproc 55020000.ipu: ignoring dependency for device, assuming no driver
[ 235.627114] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[ 235.635281] remoteproc remoteproc1: 55020000.ipu is available
[ 235.855184] remoteproc remoteproc1: powering up 55020000.ipu
[ 235.860909] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 4132408
[ 235.868897] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
root@am57xx-evm:~# [ 235.891412] cma: cma_alloc: alloc failed, req-size: 4096 pages, ret: -16
[ 235.898186] omap-rproc 55020000.ipu: failed to allocate dma memory: len 0x1000000
[ 235.905765] remoteproc remoteproc1: Failed to process resources: -12
[ 239.795981] remoteproc remoteproc0: releasing 55020000.ipu
[ 239.882993] omap-rproc 55020000.ipu: ignoring dependency for device, assuming no driver
[ 239.891158] omap-rproc 55020000.ipu: ignoring dependency for device, assuming no driver
[ 239.900822] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[ 239.909707] remoteproc remoteproc0: 55020000.ipu is available
[ 240.119647] remoteproc remoteproc0: powering up 55020000.ipu
[ 240.125471] remoteproc remoteproc0: Booting fw image dra7-ipu2-fw.xem4, size 4132408
[ 240.134891] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
root@am57xx-evm:~# [ 240.154784] alloc_contig_range: 35 callbacks suppressed
[ 240.154791] alloc_contig_range: [97800, 98800) PFNs busy
[ 240.166202] alloc_contig_range: [97800, 98900) PFNs busy
[ 240.171879] alloc_contig_range: [97800, 98a00) PFNs busy
[ 240.178042] alloc_contig_range: [97800, 98b00) PFNs busy
[ 240.183957] alloc_contig_range: [97c00, 98c00) PFNs busy
[ 240.189613] alloc_contig_range: [97c00, 98d00) PFNs busy
[ 240.195700] alloc_contig_range: [97c00, 98e00) PFNs busy
[ 240.201342] alloc_contig_range: [97c00, 98f00) PFNs busy
[ 240.207022] alloc_contig_range: [98000, 99000) PFNs busy
[ 240.212389] cma: cma_alloc: alloc failed, req-size: 4096 pages, ret: -16
[ 240.219154] omap-rproc 55020000.ipu: failed to allocate dma memory: len 0x1000000
[ 240.226713] remoteproc remoteproc0: Failed to process resources: -12
At the booting time of linux, there is no issue to load IPU FW as below.
~~~~~~~~~~~~~~
[ 7.910088] omap-rproc 55020000.ipu: ignoring dependency for device, assuming no driver
[ 7.936306] omap-rproc 55020000.ipu: ignoring dependency for device, assuming no driver
[ 7.972171] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[ 8.024048] remoteproc remoteproc1: 55020000.ipu is available
[ 8.362402] remoteproc remoteproc1: powering up 55020000.ipu
[ 8.380583] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 4132408
[ 8.775087] remoteproc remoteproc1: registered virtio0 (type 7)
[ 8.805057] remoteproc remoteproc1: remote processor 55020000.ipu is now up
~~~~~~~~~~~~~~~~
Thanks and Best Regards,
SI.