m][sko
Posts: 134
Joined: Fri Jul 20, 2012 6:37 am
Location: Slovakia

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 8:40 am

aBUGSworstnightmare wrote:
Wed Oct 21, 2020 8:27 am
m][sko wrote:
Wed Oct 21, 2020 8:24 am
How can I test/check if I am really using vc4-fkms-v3d or vc4-kms-v3d ??
So I am sure that I am not really using fake kms driver
check your config.txt

Code: Select all

#dtoverlay=vc4-fkms-v3d
dtoverlay=vc4-kms-v3d
if you have enabled KMS overlay or not.
If it is possible to verify that in dmesg or some different set of modules in lsmod or some other way :)

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4345
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:05 am

Try both and look for a difference? :)

m][sko
Posts: 134
Joined: Fri Jul 20, 2012 6:37 am
Location: Slovakia

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:09 am

So I am testing ubuntu 20.04(viewtopic.php?f=131&t=279323)
with kernel 5.9 and real kms driver (sudo apt install linux-image-5.9-rpi-lobo-arm64 -y)
and latest mesa driver (sudo add-apt-repository ppa:oibaf/graphics-drivers)

And gnome is looking/working nice :) (sudo apt install ubuntu-desktop)
Also firefox is working nice with webrender
glmark2 and weston-simple-egl show some weird image
mesa bug report(https://gitlab.freedesktop.org/mesa/mesa/-/issues/3672

I don't recommend 2GB rpi version for gnome :)
I think it is time to buy 8GB version now

So finally nice work
thx for KMS driver
Last edited by m][sko on Wed Oct 21, 2020 11:03 am, edited 2 times in total.

jimknopf2
Posts: 34
Joined: Mon Jul 27, 2020 7:39 am

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:24 am

Updated to test if tearing is fixed.

Code: Select all

pi@raspberrypi:/boot $ uname -a
Linux raspberrypi 5.9.1-v7l+ #1355 SMP Mon Oct 19 14:15:23 BST 2020 armv7l GNU/Linux

Code: Select all

dtoverlay=vc4-kms-v3d
Results:
Tearing is fixed with the full KMS driver :-). Tearing is still present with the fake FKMS driver.

m][sko
Posts: 134
Joined: Fri Jul 20, 2012 6:37 am
Location: Slovakia

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 11:26 am

Btw are there any connection between linux kernel cma
and what broadom gpu use for gpu_mem ??
And is cma used for any gpu drm anything ?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 12353
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 11:47 am

m][sko wrote:
Wed Oct 21, 2020 11:26 am
Btw are there any connection between linux kernel cma
and what broadom gpu use for gpu_mem ??
And is cma used for any gpu drm anything ?
Not really beyond they both have to fit into the bottom 1GB of RAM as that is all many of the hardware blocks can address.

gpu_mem is used by the VPU. It is used for the camera and MJPEG/MPEG-2/MPEG-4/H263/H264/VC-1 video codecs (NOT HEVC).

CMA is controlled by the Linux kernel when it wants contiguous blocks of memory. That is used by DRM/KMS, HEVC decoder, USB2, and a few other blocks.

There is code around that replaces gpu_mem with calls across to the kernel to allocate memory from the CMA heap instead, but the migration to use that isn't straightforward.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

m][sko
Posts: 134
Joined: Fri Jul 20, 2012 6:37 am
Location: Slovakia

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 11:57 am

As Compute module 4 IO board has PCIE
Are you finally able to connect and somehow setup big nvidia/AMD GFX cards ?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 12353
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 1:31 pm

m][sko wrote:
Wed Oct 21, 2020 11:57 am
As Compute module 4 IO board has PCIE
Are you finally able to connect and somehow setup big nvidia/AMD GFX cards ?
Have you got ARM drivers for them?
NVidia are notorious for only shipping closed source blobs for their drivers, and then only amd64 versions thereof.

AMD are somewhat better in providing mainline Linux support, but you'll also have to find one which only requires a 1 PCI-e lane.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
bensimmo
Posts: 5534
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 1:49 pm

Just had a look and you can get ARM 32 and and AArch drivers too, recent as well.
it's on their download page. (you have to select show more OS, then select.again to get the list.).


I search under there is also a similar spec, you can buy one for the Pcie2 X1 slot.
not the fastest card in the world


Nvidia has SBC and Consoles, etc using Linux and the graphics tech.
Iirc Jetson uses Maxwell GPU technology in Switch, Jetson, Shield, which started with the 700 series. My humble Before 750 Ti is based on the same.
So Linux drivers are probably needed.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 12353
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 1:53 pm

bensimmo wrote:
Wed Oct 21, 2020 1:49 pm
Just had a look and you can get ARM 32 and and AArch drivers too, recent as well.
it's on their download page. (you have to select show more OS, then select.again to get the list.).


I search under there is also a similar spec, you can buy one for the Pcie2 X1 slot.
not the fastest card in the world


Nvidia has SBC and Consoles, etc using Linux and the graphics tech.
Iirc Jetson uses Maxwell GPU technology in Switch, Jetson, Shield, which started with the 700 series. My humble Before 750 Ti is based on the same.
So Linux drivers are probably needed.
The joy of closed source
https://forums.developer.nvidia.com/t/n ... 5-9/157263
It may be only cuda and opencl that are affected.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

trejan
Posts: 3980
Joined: Tue Jul 02, 2019 2:28 pm

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 1:55 pm

Has the PCI BAR problem been fixed or worked around to allow a GPU to be used?

User avatar
bensimmo
Posts: 5534
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 2:24 pm

6by9 wrote:
Wed Oct 21, 2020 1:53 pm
bensimmo wrote:
Wed Oct 21, 2020 1:49 pm
Just had a look and you can get ARM 32 and and AArch drivers too, recent as well.
it's on their download page. (you have to select show more OS, then select.again to get the list.).


I search under there is also a similar spec, you can buy one for the Pcie2 X1 slot.
not the fastest card in the world


Nvidia has SBC and Consoles, etc using Linux and the graphics tech.
Iirc Jetson uses Maxwell GPU technology in Switch, Jetson, Shield, which started with the 700 series. My humble Before 750 Ti is based on the same.
So Linux drivers are probably needed.
The joy of closed source
https://forums.developer.nvidia.com/t/n ... 5-9/157263
It may be only cuda and opencl that are affected.
Given the GT710 and it Quadro counterpart are about half the speed of a basic iGPU on intels CPU, they're not the fastest accelerators.

I guess we'll find out when someone tries and drivers are released. Someone will try.
Still a month or two to get a driver changed and tested isn't too bad. There are some open driver and the cards are about 5 years old now? (not checked).

m][sko
Posts: 134
Joined: Fri Jul 20, 2012 6:37 am
Location: Slovakia

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 2:24 pm

6by9 wrote:
Wed Oct 21, 2020 1:31 pm
m][sko wrote:
Wed Oct 21, 2020 11:57 am
As Compute module 4 IO board has PCIE
Are you finally able to connect and somehow setup big nvidia/AMD GFX cards ?
Have you got ARM drivers for them?
NVidia are notorious for only shipping closed source blobs for their drivers, and then only amd64 versions thereof.

AMD are somewhat better in providing mainline Linux support, but you'll also have to find one which only requires a 1 PCI-e lane.
As far as I know bitcoin miners use adapter(pci-e to USB3) that is just 1 PCI-e lane https://www.aliexpress.com/item/33010996761.html
And we can use open source drivers
AMD drivers should be just fine
And nVIDIA drivers will be slower then binary
So Just to make it work

I asked same question on linaro forum
https://discuss.96boards.org/t/how-to-m ... ards/10448

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 30436
Joined: Sat Jul 30, 2011 7:41 pm

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 2:36 pm

m][sko wrote:
Wed Oct 21, 2020 2:24 pm
6by9 wrote:
Wed Oct 21, 2020 1:31 pm
m][sko wrote:
Wed Oct 21, 2020 11:57 am
As Compute module 4 IO board has PCIE
Are you finally able to connect and somehow setup big nvidia/AMD GFX cards ?
Have you got ARM drivers for them?
NVidia are notorious for only shipping closed source blobs for their drivers, and then only amd64 versions thereof.

AMD are somewhat better in providing mainline Linux support, but you'll also have to find one which only requires a 1 PCI-e lane.
As far as I know bitcoin miners use adapter(pci-e to USB3) that is just 1 PCI-e lane https://www.aliexpress.com/item/33010996761.html
And we can use open source drivers
AMD drivers should be just fine
And nVIDIA drivers will be slower then binary
So Just to make it work

I asked same question on linaro forum
https://discuss.96boards.org/t/how-to-m ... ards/10448
None of this is related to the 5.9 kernel move - please take it elsewhere.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

smith110
Posts: 10
Joined: Tue Jul 16, 2019 7:21 am

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 8:25 pm

Makes no sense to wait a while for 5.10?

https://www.phoronix.com/scan.php?page= ... .10-Coming

trejan
Posts: 3980
Joined: Tue Jul 02, 2019 2:28 pm

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 8:37 pm

smith110 wrote:
Wed Oct 21, 2020 8:25 pm
Makes no sense to wait a while for 5.10?

https://www.phoronix.com/scan.php?page= ... .10-Coming
dom wrote:
Wed Oct 14, 2020 3:10 pm
(*) The next upstream LTS (Long Term Support) kernel is our target. That is expected to be 5.9 or 5.10. If it is 5.10 we will shift this testing to 5.10 when it is ready.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 12353
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:02 pm

smith110 wrote:
Wed Oct 21, 2020 8:25 pm
Makes no sense to wait a while for 5.10?

https://www.phoronix.com/scan.php?page= ... .10-Coming
All those patches are already in our 5.9 branch as we're actively working with Maxime in developing and testing them.
5.10 isnt likely to be released until just before Christmas.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Double L
Posts: 28
Joined: Thu Aug 29, 2019 12:26 pm

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:13 pm

Not sure if this is of any use, but youtube does not work either fkms or kms driver :?:

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4345
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:24 pm

Not sure if this is of any use, but youtube does not work either fkms or kms driver
Can you be more precise than "does not work"?

Double L
Posts: 28
Joined: Thu Aug 29, 2019 12:26 pm

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 9:40 pm

PhilE wrote:
Wed Oct 21, 2020 9:24 pm
Not sure if this is of any use, but youtube does not work either fkms or kms driver
Can you be more precise than "does not work"?
Yes. When a video starts to play the screen remains grey, the sound continues as normal. Occasionally the video turns a fluorescent green.

User avatar
Gavinmc42
Posts: 6443
Joined: Wed Aug 28, 2013 3:31 am

Re: Moving Linux Kernel to 5.9

Wed Oct 21, 2020 11:20 pm

Not sure if this is of any use, but youtube does not work either fkms or kms driver :?:
Worked for me.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Double L
Posts: 28
Joined: Thu Aug 29, 2019 12:26 pm

Re: Moving Linux Kernel to 5.9

Thu Oct 22, 2020 9:03 am

Gavinmc42 wrote:
Wed Oct 21, 2020 11:20 pm
Not sure if this is of any use, but youtube does not work either fkms or kms driver :?:
Worked for me.
Maybe it is because I have Chromium (Media Edition) installed. Will try to remove it and see what happens :-)

Double L
Posts: 28
Joined: Thu Aug 29, 2019 12:26 pm

Re: Moving Linux Kernel to 5.9

Thu Oct 22, 2020 11:12 am

Double L wrote:
Thu Oct 22, 2020 9:03 am
Gavinmc42 wrote:
Wed Oct 21, 2020 11:20 pm
Not sure if this is of any use, but youtube does not work either fkms or kms driver :?:
Worked for me.
Maybe it is because I have Chromium (Media Edition) installed. Will try to remove it and see what happens :-)
I have now reinstalled Raspberry Pi OS using the Raspberry Pi imager. Then updated to the 5.9 kernel as described on the first post, but youtube still does not work with either fkms or kms driver. With kms driver I can get sound but no picture. With the fkms driver. Neither sounds nor picture :?

cjan
Posts: 945
Joined: Sun May 06, 2012 12:00 am

Re: Moving Linux Kernel to 5.9

Thu Oct 22, 2020 11:28 am

EW-7811Un wifi used 8192cu module(blacklist-rtl8192cu) before 5.4.
in 5.9 used rtl8192cu only and become slower.

User avatar
pasman1
Posts: 231
Joined: Mon Aug 10, 2020 3:01 pm
Location: Poland

Re: Moving Linux Kernel to 5.9

Thu Oct 22, 2020 11:58 am

Double L wrote:
Thu Oct 22, 2020 11:12 am
I have now reinstalled Raspberry Pi OS using the Raspberry Pi imager. Then updated to the 5.9 kernel as described on the first post, but youtube still does not work with either fkms or kms driver. With kms driver I can get sound but no picture. With the fkms driver. Neither sounds nor picture :?
attach output of the terminal command

Code: Select all

xrandr
and in browser

Code: Select all

chrome://gpu/
Pi4-4G RaspiOS 32 BuLlSeYe

Return to “Advanced users”