Rockchip RK3399 + MCP2515 overrun Issue

Hi all!

Unfortunately, I’m having an issue with incoming packets being lost. I found a similar problem on the forum:

It feels like there is a delay between interrupts due to Android. On the Debian build is fine, on Android everything is bad, see below. In both cases, a second device is used to generate via cangen

3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE restart-ms 100
bitrate 125000 sample-point 0.875
tq 500 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
mcp251x: tseg1 3…16 tseg2 2…8 sjw 1…4 brp 1…64 brp-inc 1
clock 8000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
RX: bytes packets errors dropped overrun mcast
1897440 331329 7926 0 7926 0
TX: bytes packets errors dropped carrier collsns
13202 1670 0 0 0 0

I assume that need to somehow raise the priority for the spi interrupt handler.

Thank you in advance!