This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62A: Camera Streaming Error after wakeup from suspend

Part Number: PROCESSOR-SDK-AM62A


Hello,

I am using GPIO1_10 as wakeup source from suspend. I enabled it by adding following devicetree overlay k3-am62x-sk-lpm-wkup-sources.dtbo.
When I wake system from suspend and use gstreamer command to stream from IMX 219 sensor. It is giving the following error.

root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 v4l2src device=/dev/video-rpi-cam0 io-mode=5 ! queue leaky=2 ! video/x-bayer, width=1920, height=1080,format=rggb ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a.bin format-msb=7 ! tiovxmultiscaler ! video/x-raw, format=NV12, width=1920, height=1080 ! kmssink driver-name=tidss sync=false
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=6) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
  1008.625459 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
  1008.627548 s:  VX_ZONE_INIT:Enabled
  1008.627583 s:  VX_ZONE_ERROR:Enabled
  1008.627592 s:  VX_ZONE_WARNING:Enabled
  1008.629628 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
  1008.631188 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
Setting pipeline to PAUSED ...
[ 1002.428345] Console: switching to colour frame buffer device 240x67
[ 1002.451600] tidss 30200000.dss: [drm] fb0: tidssdrmfb frame buffer device
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 1003.746742] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1003.756824] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1003.763032] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1004.738726] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
[ 1004.748722] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1004.802724] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1004.812796] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1004.819003] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1004.898724] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
[ 1004.908706] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1005.858723] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1005.868795] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1005.875008] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1005.885729] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
[ 1005.892713] cpufreq: __target_index: Failed to change cpu frequency: -22
[ 1006.914721] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1006.924782] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1006.930984] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1007.970724] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1007.980783] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1007.986984] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1009.026740] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1009.036804] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1009.043007] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1009.053730] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
[ 1009.060715] cpufreq: __target_index: Failed to change cpu frequency: -22
[ 1010.082737] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1010.092805] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1010.099010] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1011.138738] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1011.148814] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1011.155023] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1012.194741] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
[ 1012.204804] ti-sci 44043000.system-controller: Mbox send fail -110
[ 1012.211008] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[ 1012.221732] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
[ 1012.228718] cpufreq: __target_index: Failed to change cpu frequency: -22

GStreamer Command:

gst-launch-1.0 v4l2src device=/dev/video-rpi-cam0 io-mode=5 ! queue leaky=2 ! video/x-bayer, width=1920, height=1080,format=rggb ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a.bin format-msb=7 ! tiovxmultiscaler ! video/x-raw, format=NV12, width=1920, height=1080 ! kmssink driver-name=tidss sync=false

Note:
The camera was streaming fine before suspend.
I am using SDK 9.1.0 through YOCTO.

  • Hello,

    Your camera streaming is working fine. Let me route your inquiry to our power management expert. However, the expert is out for the holiday season, please expect a response in early January.

    Regards,

    Jianzhong

  • Hello Jianzhong Xu,

    Can you follow up this issue?

  • Hello Jianzhong Xu,

    Is there any update on this?

  • Hello Sathiya,

    Sorry for our late response. Please check this guide on suspending camera streaming: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Camera/CSI2RX.html#suspend-to-ram.

    Please try to build the modules into the kernel. Please first use yavta capture to verify suspend and resume operation.

    Regards,

    Jianzhong

  • Hello Jianzhong Xu,

    This doesn't help.

    By the way, I want to mention one more thing. Camera is actually streaming fine after suspend to ram. But if I include ISP components, I am getting this kernel errors. So, the issue is not with camera but starting of ISP after suspend.

    Here is the more detailed trace of the dmesg with call trace:

    [ 1054.202148] PM: suspend entry (deep)
    [ 1054.210102] Filesystems sync: 0.004 seconds
    [ 1054.215126] Freezing user space processes
    [ 1054.221993] Freezing user space processes completed (elapsed 0.002 seconds)
    [ 1054.229003] OOM killer disabled.
    [ 1054.232257] Freezing remaining freezable tasks
    [ 1054.238003] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
    [ 1054.245447] printk: Suspending console(s) (use no_console_suspend to debug)
    [ 1054.287032] Disabling non-boot CPUs ...
    [ 1054.289840] psci: CPU1 killed (polled 4 ms)
    [ 1054.293859] psci: CPU2 killed (polled 4 ms)
    [ 1054.297858] psci: CPU3 killed (polled 4 ms)
    [ 1054.298338] Enabling non-boot CPUs ...
    [ 1054.298650] Detected VIPT I-cache on CPU1
    [ 1054.298715] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [ 1054.298765] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [ 1054.299450] CPU1 is up
    [ 1054.299672] Detected VIPT I-cache on CPU2
    [ 1054.299712] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
    [ 1054.299748] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [ 1054.300276] CPU2 is up
    [ 1054.300503] Detected VIPT I-cache on CPU3
    [ 1054.300545] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
    [ 1054.300583] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [ 1054.301115] CPU3 is up
    [ 1054.301577] ti-sci 44043000.system-controller: ti_sci_resume: wakeup source: 0x80
    [ 1054.525894] OOM killer enabled.
    [ 1054.529029] Restarting tasks ... done.
    [ 1054.533941] random: crng reseeded on system resumption
    [ 1054.539160] PM: suspend exit
    [ 1074.369823] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1074.379891] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1074.386103] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1075.297892] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
    [ 1075.307927] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1075.425819] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1075.435882] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1075.442086] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1075.452833] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
    [ 1075.462799] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1076.481807] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1076.491853] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1076.498049] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1076.508767] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1076.515745] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1077.537816] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1077.547886] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1077.554090] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1078.593814] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1078.603878] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1078.610077] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1079.649804] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1079.659854] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1079.666048] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1079.676761] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1079.683739] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1080.705808] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1080.715866] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1080.722065] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1081.761804] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1081.771848] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1081.778044] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1082.817828] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1082.827900] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1082.834102] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1082.844820] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1082.851801] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1083.873832] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1083.883883] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1083.890078] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1084.929805] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1084.939851] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1084.946044] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1085.985804] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1085.995851] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1086.002045] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1086.012757] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1086.019737] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1087.041803] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1087.051851] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1087.058045] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1088.097809] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1088.107864] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1088.114060] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1089.153807] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1089.163861] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1089.170057] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1089.180773] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1089.187750] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1090.209805] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1090.219851] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1090.226045] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1091.265802] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1091.275844] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1091.282036] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1092.321804] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1092.331848] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1092.338044] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1092.348757] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1092.355737] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1093.377807] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1093.387851] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1093.394046] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1094.433804] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1094.443846] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1094.450041] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1095.489815] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1095.499864] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1095.506061] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1095.516778] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1095.523758] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1096.545807] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1096.555854] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1096.562049] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1097.601812] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1097.611855] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1097.618050] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1098.657807] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1098.667862] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1098.674059] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1098.684776] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1098.691755] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1099.713806] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1099.723859] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1099.730056] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1100.769817] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1100.779886] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1100.786087] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1101.825814] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1101.835882] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1101.842080] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1101.852810] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1101.859793] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1102.881813] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_get_clock+0x28/0x34)
    [ 1102.891714] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1103.201815] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
    [ 1103.211794] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_device+0x18/0x24)
    [ 1103.221738] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1103.227947] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1103.905818] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1103.915873] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1103.922068] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1104.961817] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1104.971864] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1104.978062] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1106.017806] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1106.027845] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1106.034040] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1106.044760] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1106.051746] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1107.073805] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_clock+0x18/0x24)
    [ 1107.083681] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1107.089882] ti-sci-clk 44043000.system-controller:clock-controller: unprepare failed for dev=182, clk=0, ret=-110
    [ 1108.129808] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_put_clock+0x18/0x24)
    [ 1108.139687] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1108.145890] ti-sci-clk 44043000.system-controller:clock-controller: unprepare failed for dev=182, clk=4, ret=-110
    [ 1108.156188] ------------[ cut here ]------------
    [ 1108.160803] clk:182:3 already disabled
    [ 1108.164597] WARNING: CPU: 1 PID: 958 at drivers/clk/clk.c:1038 clk_core_disable+0xa4/0xb0
    [ 1108.172790] Modules linked in: xhci_plat_hcd rpmsg_ctrl snd_soc_hdmi_codec rpmsg_char dwc3 snd_soc_simple_card crct10dif_ce e5010_jpeg_enc tidss snd_soc_simple_card_utils rtc_ti_k3 sii902x k3_j72xx_bandgap dwc3_am62 drm_dma_helper display_connector drm_kms_helper m_can_platform m_can ti_k3_r5_remoteproc syscopyarea snd_soc_davinci_mcasp wave5 can_dev ti_k3_dsp_remoteproc sysfillrect virtio_rpmsg_bus snd_soc_ti_udma snd_soc_tlv320aic3x_i2c v4l2_mem2mem snd_soc_ti_edma snd_soc_tlv320aic3x rpmsg_ns sysimgblt snd_soc_ti_sdma fb_sys_fops ti_k3_common tps6598x typec optee_rng rng_core cryptodev(O) fuse drm drm_panel_orientation_quirks ipv6
    [ 1108.229058] CPU: 1 PID: 958 Comm: gmain Tainted: G           O       6.1.46+ #1
    [ 1108.236363] Hardware name: Texas Instruments AM62A7 SK (DT)
    [ 1108.241929] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 1108.248886] pc : clk_core_disable+0xa4/0xb0
    [ 1108.253079] lr : clk_core_disable+0xa4/0xb0
    [ 1108.257266] sp : ffff80000a31b8f0
    [ 1108.260574] x29: ffff80000a31b8f0 x28: 0000000000000205 x27: 0000000000000001
    [ 1108.267714] x26: fffffffffffffdfe x25: 0000000000040100 x24: ffff000800359240
    [ 1108.274852] x23: 00000000ffffffea x22: ffff0008017cfc00 x21: ffff00080162d010
    [ 1108.281992] x20: ffff000801685100 x19: ffff000801685100 x18: ffffffffffffffff
    [ 1108.289132] x17: 7261706572706e75 x16: 203a72656c6c6f72 x15: ffff80008a31b577
    [ 1108.296270] x14: 0000000000000000 x13: ffff800009121448 x12: 00000000000006ff
    [ 1108.303408] x11: 0000000000000255 x10: ffff800009179448 x9 : ffff800009121448
    [ 1108.310548] x8 : 00000000ffffefff x7 : ffff800009179448 x6 : 0000000000000000
    [ 1108.317687] x5 : ffff00087f849b60 x4 : 0000000000000000 x3 : 0000000000000027
    [ 1108.324826] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000800358e40
    [ 1108.331963] Call trace:
    [ 1108.334404]  clk_core_disable+0xa4/0xb0
    [ 1108.338246]  clk_disable+0x30/0x50
    [ 1108.341648]  csi2rx_stop+0x118/0x194
    [ 1108.345225]  csi2rx_disable_streams+0xa8/0xc0
    [ 1108.349581]  v4l2_subdev_disable_streams+0xf4/0x270
    [ 1108.354461]  ti_csi2rx_sd_disable_streams+0xd8/0x100
    [ 1108.359426]  v4l2_subdev_disable_streams+0xf4/0x270
    [ 1108.364304]  ti_csi2rx_stop_streaming+0x50/0xb0
    [ 1108.368834]  __vb2_queue_cancel+0x30/0x270
    [ 1108.372937]  vb2_core_queue_release+0x24/0x50
    [ 1108.377298]  _vb2_fop_release+0x90/0x9c
    [ 1108.381133]  vb2_fop_release+0x2c/0x60
    [ 1108.384881]  v4l2_release+0xbc/0xf0
    [ 1108.388376]  __fput+0x70/0x250
    [ 1108.391434]  ____fput+0x10/0x20
    [ 1108.394574]  task_work_run+0x80/0xe0
    [ 1108.398150]  do_exit+0x2e4/0x90c
    [ 1108.401380]  do_group_exit+0x34/0x90
    [ 1108.404953]  get_signal+0x72c/0x794
    [ 1108.408441]  do_notify_resume+0x174/0xd9c
    [ 1108.412455]  el0_svc+0x88/0xa0
    [ 1108.415511]  el0t_64_sync_handler+0xbc/0x140
    [ 1108.419781]  el0t_64_sync+0x18c/0x190
    [ 1108.423444] ---[ end trace 0000000000000000 ]---
    [ 1109.185813] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1109.195868] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1109.202069] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1110.241805] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1110.251850] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1110.258046] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1111.297804] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1111.307846] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1111.314040] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1111.324761] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1111.324779] ------------[ cut here ]------------
    [ 1111.331742] cpufreq: __target_index: Failed to change cpu frequency: -22
    [ 1111.343083] clk:182:3 already unprepared
    [ 1111.347071] WARNING: CPU: 1 PID: 958 at drivers/clk/clk.c:897 clk_core_unprepare+0xe4/0x10c
    [ 1111.355432] Modules linked in: xhci_plat_hcd rpmsg_ctrl snd_soc_hdmi_codec rpmsg_char dwc3 snd_soc_simple_card crct10dif_ce e5010_jpeg_enc tidss snd_soc_simple_card_utils rtc_ti_k3 sii902x k3_j72xx_bandgap dwc3_am62 drm_dma_helper display_connector drm_kms_helper m_can_platform m_can ti_k3_r5_remoteproc syscopyarea snd_soc_davinci_mcasp wave5 can_dev ti_k3_dsp_remoteproc sysfillrect virtio_rpmsg_bus snd_soc_ti_udma snd_soc_tlv320aic3x_i2c v4l2_mem2mem snd_soc_ti_edma snd_soc_tlv320aic3x rpmsg_ns sysimgblt snd_soc_ti_sdma fb_sys_fops ti_k3_common tps6598x typec optee_rng rng_core cryptodev(O) fuse drm drm_panel_orientation_quirks ipv6
    [ 1111.411697] CPU: 1 PID: 958 Comm: gmain Tainted: G        W  O       6.1.46+ #1
    [ 1111.419001] Hardware name: Texas Instruments AM62A7 SK (DT)
    [ 1111.424565] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [ 1111.431522] pc : clk_core_unprepare+0xe4/0x10c
    [ 1111.435964] lr : clk_core_unprepare+0xe4/0x10c
    [ 1111.440405] sp : ffff80000a31b8f0
    [ 1111.443713] x29: ffff80000a31b8f0 x28: 0000000000000205 x27: 0000000000000001
    [ 1111.450852] x26: fffffffffffffdfe x25: 0000000000040100 x24: ffff000800359240
    [ 1111.457992] x23: 00000000ffffffea x22: ffff0008017cfc00 x21: ffff00080162d010
    [ 1111.465132] x20: ffff0008017cf480 x19: ffff000801685100 x18: ffffffffffffffff
    [ 1111.472270] x17: 7261706572706e75 x16: 203a72656c6c6f72 x15: ffff80008a31b577
    [ 1111.479408] x14: 0000000000000000 x13: ffff800009121448 x12: 00000000000007a7
    [ 1111.486545] x11: 000000000000028d x10: ffff800009179448 x9 : ffff800009121448
    [ 1111.493683] x8 : 00000000ffffefff x7 : ffff800009179448 x6 : 0000000000000000
    [ 1111.500822] x5 : ffff00087f849b60 x4 : ffff00087f849b60 x3 : ffff00087f84cda0
    [ 1111.507960] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000800358e40
    [ 1111.515099] Call trace:
    [ 1111.517540]  clk_core_unprepare+0xe4/0x10c
    [ 1111.521636]  clk_unprepare+0x2c/0x44
    [ 1111.525212]  csi2rx_stop+0x120/0x194
    [ 1111.528789]  csi2rx_disable_streams+0xa8/0xc0
    [ 1111.533145]  v4l2_subdev_disable_streams+0xf4/0x270
    [ 1111.538025]  ti_csi2rx_sd_disable_streams+0xd8/0x100
    [ 1111.542990]  v4l2_subdev_disable_streams+0xf4/0x270
    [ 1111.547868]  ti_csi2rx_stop_streaming+0x50/0xb0
    [ 1111.552399]  __vb2_queue_cancel+0x30/0x270
    [ 1111.556502]  vb2_core_queue_release+0x24/0x50
    [ 1111.560862]  _vb2_fop_release+0x90/0x9c
    [ 1111.564697]  vb2_fop_release+0x2c/0x60
    [ 1111.568445]  v4l2_release+0xbc/0xf0
    [ 1111.571939]  __fput+0x70/0x250
    [ 1111.574995]  ____fput+0x10/0x20
    [ 1111.578137]  task_work_run+0x80/0xe0
    [ 1111.581712]  do_exit+0x2e4/0x90c
    [ 1111.584941]  do_group_exit+0x34/0x90
    [ 1111.588516]  get_signal+0x72c/0x794
    [ 1111.592004]  do_notify_resume+0x174/0xd9c
    [ 1111.596017]  el0_svc+0x88/0xa0
    [ 1111.599075]  el0t_64_sync_handler+0xbc/0x140
    [ 1111.603345]  el0t_64_sync+0x18c/0x190
    [ 1111.607008] ---[ end trace 0000000000000000 ]---
    [ 1112.641808] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1112.641809] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: k3_ringacc_ring_reset_sci+0x6c/0xbc)
    [ 1112.641864] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1112.651865] ti-sci 44043000.system-controller: RM_RA:Mbox config send fail -110
    [ 1112.662125] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1112.668314] ti-udma 4e230000.dma-controller: TISCI reset ring fail (-110) ring_idx 0
    [ 1113.697805] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: k3_ringacc_ring_reset_sci+0x6c/0xbc)
    [ 1113.697805] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1113.697855] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1113.708112] ti-sci 44043000.system-controller: RM_RA:Mbox config send fail -110
    [ 1113.718111] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1113.724298] ti-udma 4e230000.dma-controller: TISCI reset ring fail (-110) ring_idx 0
    [ 1114.753816] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xf0)
    [ 1114.753816] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: k3_ringacc_ring_reset_sci+0x6c/0xbc)
    [ 1114.753878] ti-sci 44043000.system-controller: Mbox send fail -110
    [ 1114.763880] ti-sci 44043000.system-controller: RM_RA:Mbox config send fail -110
    [ 1114.774141] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
    [ 1114.780322] ti-udma 4e230000.dma-controller: TISCI reset ring fail (-110) ring_idx 0
    [ 1114.787634] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
    [ 1114.813015] cpufreq: __target_index: Failed to change cpu frequency: -22

  • By the way, I want to mention one more thing. Camera is actually streaming fine after suspend to ram. But if I include ISP components, I am getting this kernel errors. So, the issue is not with camera but starting of ISP after suspend.

    Thanks for this information which will help us understand this issue. Please give me a few days to investigate. I'll try to get back early next week.

  • Hello Jianzhong Xu,

    Is there any update on this?

  • Hello Sathiya,

    I've checked internally. Currently the ISP suspend/resume hasn't been tested. We're working across teams to figure out a solution/fix. Please give us a few  more days.

    Thanks for your patience.

    Regards,

    Jianzhong

  • Hello Sathiya,

    The AM62A SW architecture does not allow suspend/resume of applications running on the DM (device management) R5 core. This is because when the SoC goes to suspend (or low power mode), the context of peripherals used by DM R5 will be lost.

    Since the ISP SW stack runs on DM R5, that's why the ISP can not resume after suspend.

    Regards,

    Jianzhong

  • Hello Jianzhong Xu,

    I really needed this feature.

    Can I expect a patch for this issue? Both AM62A and DM R5 side.

  • Is there any workaround I can do about it for now?

  • Hi Sathiya,

    This is a limitation of the AM62A SW architecture. It won't be solved by a simple patch. We would have to analyze this use case and decide if  we want to support suspend/resume on DMR5.

    Regards,

    Jianzhong

  • Hello,

    This issue has to be addressed by TI team in the future updates. As of now, I am closing this thread.

  • Hi Jianzhong Xu,

    Is there any BUG filed for this limitation ?

    Regards,
    Sushmitha K

  • Hi Sushmitha,

    I have filed a requirement to support VPAC suspend and resume.

    What is your use case? Does it require low power management?

    Regards,

    Jianzhong

  • Hi Jianzhong Xu,

    Since you had mentioned "This is a limitation of the AM62A SW architecture".

    Can you please share any documentation (BUG filed, mentioned in release notes etc) on the above statement.
    We just want to have it documented for our future reference and for our customer support.
    Hope you understand our requirement.

    Regards,
    Sushmitha K

  • Hi Sushmitha,

    This is documented for AM62x, but missed for AM62A. Please take a look at: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/09_01_00_39/exports/docs/api_guide_am62x/RELEASE_NOTES_09_01_00_PAGE.html.

    Regards,

    Jianzhong