Hi,
I have some troubles with pm-suspend command, executed on my IMX8 Plus board if some conditions are met:
The system is going to sleep if I execute pm-suspend command even if some processes are working in background. But if I start gstreamer, reading from video source - for example CMOS sensor with data processed by the MIPI->ISP or from sensor with already processed data through MIPI->ISI - there is a problem. Usually the pm-suspend script fails at line 297, exit code 128 - resource busy, the video stream to the HDMI output is still alive, the console is also active.
Similar setup on IMX6 Quad executes pm-suspend without problem even if the gstreamer is active and reading from video device over MIPI->IPU, the IMX6 successfully enters sleep mode and wake-up on button.
Please note that I prefer not to stop the gstreamer pipe, which is already in operation - this logic works fine with IMX6, but fails with IMX8. My setup is based on FSLC 5.15-2.0.x-imx, kernel 5.15.60, yocto kirkstone.
Is there some bug in this release, or the problem is the MIPI->ISP/ISI peripherals preventing the system to go to sleep mode and if so - what is the workaround? Except to stop the gstreamer obviously..