Mainline kernel Tengine timvx models freezes the board

Which Khadas SBC do you use?

Vim3

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 22.04 mainline

Which version of system do you use? Khadas official images, self built images, or others?

official

Please describe your issue below:

Installed Tengine with NPU support as described in Tengine on VIM3, ran

khadas@Khadas:~/tengine-lite$ ./build/install/bin/tm_classification_timvx -m mobilenet_uint8.tmfile -i images/cat.jpg -g 224,224 -s 0.017,0.017,0.017 -w 104.007,116.669,122.679
tengine-lite library version: 1.5-dev

model file : mobilenet_uint8.tmfile
image file : images/cat.jpg
img_h, img_w, scale[3], mean[3] : 224 224 , 0.017 0.017 0.017, 104.0 116.7 122.7
Repeat 1 times, thread 1, avg time 4.41 ms, max_time 4.41 ms, min_time 4.41 ms
--------------------------------------
0.000000, 0
0.000000, 1
0.000000, 2
0.000000, 3
0.000000, 4
--------------------------------------

First off, the output does not make sense. Then the entire board freezes, no response to any input. Had to reset.

This reproduces for all vx models.