KMS broken on rpi4 with linux-aarch64?

This is for ARMv8 based devices

KMS broken on rpi4 with linux-aarch64?

Postby greyltc » Wed Aug 30, 2023 12:02 am

Hi. The HDMI display connected to my raspberry pi 4, 8GB goes blank part way through the boot unless I use nomodeset in my kernel boot parameters
I'm using linux-aarch64
Anyone know how to get kms working?
Do I have to put something special in /boot/config.txt?

I've tried a few different displays with the same result.

Thanks!
Last edited by greyltc on Thu Aug 31, 2023 7:58 am, edited 1 time in total.
greyltc
 
Posts: 6
Joined: Fri Mar 04, 2016 8:51 pm

Re: KMS broken on rpi4 with linux-aarch64?

Postby solskogen » Wed Aug 30, 2023 7:35 am

Any special reason why you use linux-aarch64 and not linux-rpi kernel?
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: KMS broken on rpi4 with linux-aarch64?

Postby greyltc » Wed Aug 30, 2023 11:40 am

Why do you ask? I should expect mainline to have vc4 and KMS support by now, right? I've tried both sets of install instructions shown onmake_clickable_callback(MAGIC_URL_FULL, ' ', 'https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4', '', ' class="postlink"') and in both cases I'm getting black screens unless I use nomodeset. Anyone know why that might be?
greyltc
 
Posts: 6
Joined: Fri Mar 04, 2016 8:51 pm

Re: KMS broken on rpi4 with linux-aarch64?

Postby darksky » Wed Aug 30, 2023 11:59 am

Your situation may be different as I never boot the upstream kernel with uboot and it has been over a year since I tested the upstream kernel when they added vc4-kms-v3d. At that time I was getting the black screen like you and I had to add cma=512M to my cmdline.txt which would be in your kernel boot parameters.

I also added snd_bcm2835.enable_headphones=1 so I could also have headphone support.
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm

Re: KMS broken on rpi4 with linux-aarch64?

Postby greyltc » Thu Aug 31, 2023 7:57 am

Thanks, I'll try using cma=512 instead of nomodeset and report back here!
greyltc
 
Posts: 6
Joined: Fri Mar 04, 2016 8:51 pm

Re: KMS broken on rpi4 with linux-aarch64?

Postby solskogen » Thu Aug 31, 2023 8:12 am

the linux-aarch64 is from april (6.2.10 as this time of writing), so I would rather use linux-rpi kernel. It should work out of the box.
solskogen
 
Posts: 161
Joined: Mon Nov 18, 2013 10:41 am

Re: KMS broken on rpi4 with linux-aarch64?

Postby graysky » Thu Aug 31, 2023 5:49 pm

Highly recommend running the linux-rpi package on RPi hardware.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: KMS broken on rpi4 with linux-aarch64?

Postby darksky » Thu Aug 31, 2023 7:29 pm

I am in agreement with the others here. The RPi kernel is the best kernel. They only do support for their devices and does it well. Plus there is a huge community support. It takes a long time for upstream to offer new features if they do at all.

The last time I booted the upstream kernel to test their new v3d addition it seemed to be ok but running kodi-rpi with HW decoding was a no go. The HW decoding is the one thing that is important to me as I am a big movie fan. Since firefox 116 came out with pi4 v4l2m2m h264 HW decoding I am testing youtube with the enhanched-h264iy firefox plugin and it seems to be doing ok playing mp4 videos.

Look at the difference playing the jellyfish-40-mbps-hd-hevc-10bit-mkv test video. Notice the cpu %, speed, and temp playing with mpv using SW and HW decoding on my pi400 on htop.

SW v4l2m2m decoding:make_clickable_callback(MAGIC_URL_FULL, '
', 'https://drive.google.com/file/d/11gDp0xeo8SyyZl-F4YLVYkaFdrPa3AsZ/view?usp=sharing', '', ' class="postlink"')

HW v4l2m2m decodingmake_clickable_callback(MAGIC_URL_FULL, '
', 'https://drive.google.com/file/d/1Fi1oRx7Jc-yuk9epKLzEtqhcBEKC1jzF/view?usp=sharing', '', ' class="postlink"')
darksky
 
Posts: 35
Joined: Thu Oct 15, 2020 5:57 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 3 guests