KL730 SDK v2.0.0 host_stream: restart hangs after kill -9, USB3 UVC camera gaps with DMA/encoder
Hi, I am using the host_stream solution on a KLM730 EVM (Leipzig SDK v2.0.0, BSP 2.0.0, kernel 6.1). I found two problems and would like to know the recommended handling.
1. host_stream does not start again after kill -9
- After
kill -9of kp_firmware_host_stream, the next start stops right after the NEF is loaded (during VSRC init) and never outputs frames. Only a reboot fixes it. - After SIGTERM and waiting about 15 s, the restart is always fine.
- When two host_stream processes run at the same time by mistake, the board resets (watchdog).
- The RTSP server also does not start again if it is killed instead of terminated.
Which driver or resource is left in a bad state? Is there a recovery step without a reboot (for example reloading a driver)?
2. USB3 UVC camera gaps while host_stream runs
- Camera: UVC 1.10, SuperSpeed, 1600×1300 16-bit at 60 fps, on the EVM USB3 port in host mode.
- While host_stream runs (ISP, NPU, H.264 encoder, 2D DMA copy), the camera drops frames and pauses for about 100 ms.
- Main cause: the default uvcvideo queue (5 URBs × 32 KB, only about 0.6 ms at 250 MB/s). With 16 URBs × 256 KB (UVC_URBS and UVC_MAX_PACKETS changed in uvcvideo.h), gaps over 50 ms went from 57–70 per 40 s to 7 per 60 s.
- The 2D DMA copy and the H.264 encoder still cause some gaps. In BL2 (TF-A, lpddr4_func.c), the DDR port QoS is set for ports 6, 10 and 12–15, but USB ports 4/5 stay 0. Setting them to 0x000F000F helped only partly.
Is there a recommended DDR or AXI QoS setting for USB3 cameras? Could the larger uvcvideo queue be included in the BSP? Is a UVC camera source planned for host_stream?
Thanks!
