RBPI4 and aarch64: hw accel and IRQ warnings

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

RBPI4 and aarch64: hw accel and IRQ warnings

Postby k1w1 » Sun Jan 09, 2022 10:36 am

Hello, long time ALARM user, but first time I actually need to post on the forums.

This is my current setup:

$this->bbcode_second_pass_code('', '# ~ cat /proc/device-tree/model
Raspberry Pi 4 Model B')

$this->bbcode_second_pass_code('', '# ~ uname -a
Linux phi 5.15.5-1-ARCH #1 SMP Wed Dec 1 01:26:36 UTC 2021 aarch64 GNU/Linux')

$this->bbcode_second_pass_code('', '# ~ pacman -Q {linux,uboot-raspberrypi}
linux-aarch64 5.15.13-1
uboot-raspberrypi 2021.04-1')

Much like this thread, it does seem like I'm not getting access to the VC4 graphics.

$this->bbcode_second_pass_code('', '# ~ ls /dev/dri
total 0
drwxr-xr-x 2 60 Jan 8 22:41 "by-path"
crw-rw---- 1 226, 0 Jan 8 22:41 "card0"')

The solution seems to be to migrate to the linux-rpi kernel. Is this correct? If so, what is the procedure? Do I need to uninstall linux-aarch64 and uboot-rasbperrypi, and install linux-rpi, and that's it?

--

Another question is that I'm getting every so often a few log entries regarding IRQs, like this one:

$this->bbcode_second_pass_code('', 'Jan 08 22:40:47 phi kernel: irq 10, desc: 00000000d4a9d25c, depth: 0, count: 0, unhandled: 0
Jan 08 22:40:47 phi kernel: ->handle_irq(): 00000000c4a0792b, brcmstb_l2_intc_irq_handle+0x0/0x1e0
Jan 08 22:40:47 phi kernel: ->irq_data.chip(): 00000000d0242673, gic_data+0x0/0x768
Jan 08 22:40:47 phi kernel: ->action(): 000000008762e3b6
Jan 08 22:40:47 phi kernel: ->action->handler(): 00000000486dda3a, bad_chained_irq+0x0/0x50
Jan 08 22:40:47 phi kernel: IRQ_LEVEL set
Jan 08 22:40:47 phi kernel: IRQ_NOPROBE set
Jan 08 22:40:47 phi kernel: IRQ_NOREQUEST set
Jan 08 22:40:47 phi kernel: IRQ_NOTHREAD set')

I still haven't figured out what's causing them, since the installation is fresh. Should this be a worry?

Thanks for the help.
k1w1
 
Posts: 2
Joined: Sun Jan 09, 2022 7:09 am

Re: RBPI4 and aarch64: hw accel and IRQ warnings

Postby graysky » Sun Jan 09, 2022 11:52 am

$this->bbcode_second_pass_quote('k1w1', 'I')f so, what is the procedure? Do I need to uninstall linux-aarch64 and uboot-rasbperrypi, and install linux-rpi, and that's it?


Just install linux-rpi, pacman will handle the rest.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: RBPI4 and aarch64: hw accel and IRQ warnings

Postby k1w1 » Sun Jan 09, 2022 3:54 pm

$this->bbcode_second_pass_quote('graysky', 'J')ust install linux-rpi, pacman will handle the rest.


Yep, this seems to have done the trick. The IRQ warnings also seemingly have faded. Thanks a lot, graysky!
k1w1
 
Posts: 2
Joined: Sun Jan 09, 2022 7:09 am

Re: RBPI4 and aarch64: hw accel and IRQ warnings

Postby lategoodbye » Sat Jan 15, 2022 11:11 pm

@k1w1 Thank you very much for your report about these IRQ warnings. I was able to see them once. Do you know how to trigger them fast?
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: RBPI4 and aarch64: hw accel and IRQ warnings

Postby graysky » Sun Jan 16, 2022 10:08 am

I think you can do it by running kodi-rpi and trying to playback x265 or h264 content. You need to have linux-rpi for HW decoding so another kernel can't handle the calls perhaps triggering the warns.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: RBPI4 and aarch64: hw accel and IRQ warnings

Postby lategoodbye » Sun Jan 16, 2022 5:35 pm

Thanks for your reply. It's much more simpler, just turning the HDMI monitor off and on again triggers the issue. It has nothing to do with HW video decoding. I sent out a bug report to linux-arm-kernel.
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am

Re: RBPI4 and aarch64: hw accel and IRQ warnings

Postby lategoodbye » Sat Jan 29, 2022 3:22 pm

We figured out the reason for these IRQ warnings. It is caused by mixing the mainline kernel with a vendor DTB. This is very fragile, please avoid this.
lategoodbye
 
Posts: 116
Joined: Sat Dec 29, 2018 1:24 am


Return to ARMv8

Who is online

Users browsing this forum: Google [Bot] and 3 guests