Hailo PCI driver crashes GUI

I have rk3568. After installing driver and rebooting graphic interface of the system stops working, but the system in general has no problems, I can still do anything with via ssh. Here dmesg | grep hailo:
[ 14.374563] hailo_pci: loading out-of-tree module taints kernel.
[ 14.377580] hailo: Init module. driver version 4.20.1
[ 14.377923] hailo 0001:11:00.0: Probing on: 1e60:2864…
[ 14.377949] hailo 0001:11:00.0: Probing: Allocate memory for device extension, 13376
[ 14.378003] hailo 0001:11:00.0: enabling device (0000 → 0002)
[ 14.378028] hailo 0001:11:00.0: Probing: Device enabled
[ 14.378109] hailo 0001:11:00.0: Probing: mapped bar 0 - 00000000425938b0 16384
[ 14.378132] hailo 0001:11:00.0: Probing: mapped bar 2 - 00000000256510d3 4096
[ 14.378147] hailo 0001:11:00.0: Probing: mapped bar 4 - 00000000a5a966fb 16384
[ 14.378158] hailo 0001:11:00.0: Probing: Force setting max_desc_page_size to 128 (recommended value is 4096)
[ 14.378196] hailo 0001:11:00.0: Probing: Enabled 64 bit dma
[ 14.378204] hailo 0001:11:00.0: Probing: Using driver allocated vdma buffers
[ 14.378219] hailo 0001:11:00.0: Disabling ASPM L0s
[ 14.378231] hailo 0001:11:00.0: Successfully disabled ASPM L0s
[ 14.378644] hailo 0001:11:00.0: Writing file hailo/hailo8_fw.bin
[ 14.471345] hailo 0001:11:00.0: File hailo/hailo8_fw.bin written successfully
[ 14.471380] hailo 0001:11:00.0: Writing file hailo/hailo8_board_cfg.bin
[ 14.471519] Failed to write file hailo/hailo8_board_cfg.bin
[ 14.471527] hailo 0001:11:00.0: File hailo/hailo8_board_cfg.bin written successfully
[ 14.471535] hailo 0001:11:00.0: Writing file hailo/hailo8_fw_cfg.bin
[ 14.471583] Failed to write file hailo/hailo8_fw_cfg.bin
[ 14.471590] hailo 0001:11:00.0: File hailo/hailo8_fw_cfg.bin written successfully
[ 14.577276] hailo 0001:11:00.0: NNC Firmware loaded successfully
[ 14.577312] hailo 0001:11:00.0: FW loaded, took 198 ms
[ 14.589436] hailo 0001:11:00.0: Probing: Added board 1e60-2864, /dev/hailo0

I was experimenting with the version of driver and max_desc_page_size parameter, but nothing changes. Are there any additional hardware requirements, which my board might not provide? Because with rk3588 everything was working

I’ve found the solution. You need to add a service, that loads hailo_pci(modprobe hailo_pci) immediately after gui starts

1 Like