Repository navigation
[Detector Support]: Hailo-8 hailo_pci 4.21.0 driver causes kernel oops (hailo_vdma_buffer_map) — request HailoRT 5.x upgrade #23196
Replies: 2 comments 19 replies
|
The Hailo is a community supported detector, the Hailo team may have more to say and you may be able to engage with them further on their community forums. |
3 replies
|
Hi @CharlesJ-1975 @NickM-27 @hawkeye217, I'm from Hailo. We actually finishing our work to bump Frigate to a newer Hailo-8 runtime and driver versions - The upstream PR submission is very close. The bug itself looks like related to: https://community.hailo.ai/t/bug-report-find-vma-called-before-mmap-read-lock-issued-in-usr-src-hailo-pci-4-23-0-linux-vdma-memory-c/19001 |
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem you are having
The hailo_pci 4.21.0 kernel driver crashes with a kernel oops in
hailo_vdma_buffer_map during active inference. This occurs when Frigate
sends frames to the Hailo-8 for object detection, typically within minutes
of startup or when a detection event occurs.
The oops causes filesystem I/O errors (Errno 5) on the recordings volume,
leading to filesystem corruption and Frigate becoming unable to write
recordings or access clips.
The bug is fixed in hailort-drivers 5.x, however Frigate's container
bundles libhailort.so.4.21.0 internally. This creates a hard version
dependency — the host driver must match the bundled library version exactly,
so upgrading the host driver to 5.x is not possible without Frigate also
upgrading its bundled HailoRT.
This issue has been present and reproducible across multiple kernel versions
(6.12.74, 6.12.85, 6.12.86) and persists after clean reinstallation of the
driver. The only workaround is an automated rmmod/modprobe cycle via a
systemd watchdog service to reset the driver after each oops event.
Requesting that Frigate upgrade its bundled HailoRT from 4.21.0 to 5.x to
allow users to run the fixed host driver stack.
Version
0.17.1-416a9b7
Frigate config file
docker-compose file or Docker CLI command
Relevant Frigate log output
Install method
Docker Compose
Object Detector
Other
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
Hardware: Hailo-8 full (26 TOPS, not 8L) via M.2 PCIe on Ryzen 5 3400G / B450M Pro4
Host OS: Debian Trixie, kernel 6.12.86+deb13-amd64
Installed packages: hailort 4.21.0, hailort-pcie-driver 4.21.0
Kernel oops from dmesg during inference:
hailo_vdma_buffer_map+0x90/0x500 [hailo_pci]
hailo_vdma_buffer_map_ioctl+0xc0/0x1b0 [hailo_pci]
hailo_pcie_fops_unlockedioctl+0x196/0x450 [hailo_pci]
Root cause: hailo_pci 4.21.0 bug in vdma buffer mapping, fixed in hailort-drivers 5.x.
Frigate bundles libhailort.so.4.21.0 internally, preventing host driver upgrade to 5.x due to version mismatch.
Workaround: rmmod/modprobe hailo_pci cycle restores inference. Automated via systemd watchdog.
Request: Upgrade bundled HailoRT to 5.x to allow users to run the fixed host driver stack.
All reactions