[BUG] Deadlock in hailo_pci driver on Raspberry Pi 5 (Kernel 6.12.x)

Just for reference, if anyone else encounters the same Hailo PCIe driver issue on Raspberry Pi 5 and needs to downgrade the kernel:

You can use rpi-update with a specific commit hash to install an older kernel version.
Here are some example hashes and their corresponding kernel versions:

192d8e0b9d  kernel: Bump to 6.6.78
8bd0d75837  kernel: Bump to 6.6.77
d4b5ad47f7  kernel: Bump to 6.6.76
146f82c885  kernel: Bump to 6.6.75

f810e0a27a  kernel: Bump to 6.12.32
a67b81f4f6  kernel: Bump to 6.12.31
7c8549924c  kernel: Bump to 6.12.30
9c88f7fe39  kernel: Bump to 6.12.29
6931ce24d5  kernel: Bump to 6.12.28
f54e67fef6  kernel: Bump to 6.12.27
c7c5c236b8  kernel: Bump to 6.12.25
0a0b3671d5  kernel: Bump to 6.12.22
b07b1331c2  kernel: Bump to 6.12.21
69e780abc9  kernel: Bump to 6.12.20
80a76d2185  kernel: Bump to 6.12.19
3608b77cd4  kernel: Bump to 6.12.18
9267e6101b  kernel: Bump to 6.12.17
dab3d92503  kernel: Bump to 6.12.16

To downgrade to the latest 6.6.x Kernel, use for example:

sudo rpi-update 192d8e0b9d

Afterwards, reboot:

sudo reboot

Check your kernel version with:

uname -a

Note:

  • The hashes are commit IDs from the rpi-firmware GitHub repository.
  • This method is useful if you need a specific kernel version that works with your Hailo setup and apt does not provide it.
  • Downgrading the kernel is only a workaround, not a permanent solution. Ideally, Hailo and kernel compatibility should be addressed in future updates.

Hope this helps someone!