3 3
NicoD

Unable to make Panfrost work on H6

Recommended Posts

31 minutes ago, fsb4000 said:

But I guess  board-h6-orangepi-lite2-fix-missing-all.patch  is needed for something else...


We would need some help with cleaning this up. Upstream is also changing a bit, many fixes were made ad hoc ... which is why things are getting messy. I merged this in.

Share this post


Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

Panfrost running in OrangePi 3, Focal is nice. I had to use the server image, https://dl.armbian.com/orangepi3/archive/Armbian_20.05.4_Orangepi3_focal_current_5.4.45.img.xz

and run sudo apt-get install ubuntu-desktop.


 

Spoiler

 

armbian@orangepi3:~$ lsb_release -a ; uname -a ; glxinfo -B
Distributor ID:    Ubuntu
Description:    Ubuntu 20.04 LTS
Release:    20.04
Codename:    focal
Linux orangepi3 5.7.8-sunxi64 #trunk.40 SMP Fri Jul 17 19:09:21 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Panfrost (0xffffffff)
    Device: Mali T720 (Panfrost) (0xffffffff)
    Version: 20.0.8
    Accelerated: yes
    Video memory: 1926MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali T720 (Panfrost)
OpenGL version string: 2.1 Mesa 20.0.8
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

 

 

Share this post


Link to post
Share on other sites
51 minutes ago, 062621AM said:

and run sudo apt-get install ubuntu-desktop.

 

And maybe switched the kernel? ;)

 

Quote

5.7.8-sunxi64 #trunk.40

 

Share this post


Link to post
Share on other sites
1 hour ago, Werner said:

And maybe switched the kernel? ;)

 

 

yup. but i am not sure if i need to switch kernel and into nightly build to get Panfrost to work.

There is sound. I don't think Bluetooth is working.

Share this post


Link to post
Share on other sites
2 minutes ago, 062621AM said:

yup. but i am not sure if i need to switch kernel and into nightly build to get Panfrost to work.

There is sound. I don't think Bluetooth is working.

Actually no, you do not have to. Though the performance seems slightly better with kernel >=5.6.x

Share this post


Link to post
Share on other sites

I still don't understand how you did it. So far I have rebuilt panfrost, drm, mesa 

but I didn't even have a device /dev/fb0 or /dev/dri/card0 on my OrangePi Zero (Allwinner H2+ Mali-400)((

Share this post


Link to post
Share on other sites
On 7/19/2020 at 12:30 PM, 062621AM said:

Panfrost running in OrangePi 3, Focal is nice. I had to use the server image, https://dl.armbian.com/orangepi3/archive/Armbian_20.05.4_Orangepi3_focal_current_5.4.45.img.xz

and run sudo apt-get install ubuntu-desktop.

 

This way I have verified that Panfrost Driver is enabled, but when I run glxgear the OS freezes. The kernel remains unchanged OS image What should I check?

Share this post


Link to post
Share on other sites
2 hours ago, d.uchida said:

The kernel remains unchanged OS image What should I check?

You could try upgrading your kernel to a later version. With : sudo armbian-config -> system -> other

Share this post


Link to post
Share on other sites
1 minute ago, NicoD said:

You could try upgrading your kernel to a later version. With : sudo armbian-config -> system -> other

Won't help it is the cause I was thinking about. Still present in 5.7 which are current and dev on now.

@Clément Peron Did some initial work on the dvfs stuff I think and it will take some more time until it gets upstreamed.

Share this post


Link to post
Share on other sites
1 minute ago, Werner said:

Won't help it is the cause I was thinking about.

I haven't tried the H6 in a long time, so it was just a guess. If I weren't too busy with the N2+ I'd check it out. I wonder how it performs.
 

Share this post


Link to post
Share on other sites
4 minutes ago, NicoD said:

I haven't tried the H6 in a long time, so it was just a guess. If I weren't too busy with the N2+ I'd check it out. I wonder how it performs.
 

Not very good...But I dont wanna spoiler you :lol:

Share this post


Link to post
Share on other sites

@Werner @NicoD There seems to have an issue with the clock implementation in the kernel.

You can look at @megi explanation about PLL lock of the NKMP clock.

 

Allwinner GPU clock is actually prone to overshooting which make the GPU DVFS not usable at the time.

Share this post


Link to post
Share on other sites

One way to verify if it's this NKMP clock issue is to fix the voltage at some relatively high level for all OPPs and just keep chganging the clock. If it still crashes, it's most probably the NKMP clock.

Share this post


Link to post
Share on other sites
On 8/3/2020 at 5:15 PM, jernej said:

In the past, I tested @Clément Peron's patches on Tanix TX6 which has fixed GPU regulator and it has same problem. I'm pretty sure at this point that it's clock driver issue.

It makes sense for it to be a clock driver issue, setting a fixed frequency for the GPU makes it more stable for me. There are also some weird problems with HDMI when VGA to HDMI adapters are used, I wonder if it's somehow related to this (I doubt it since it would most probably be an HDMI PHY or Display Engine problem).

Share this post


Link to post
Share on other sites
On 8/2/2020 at 12:52 PM, NicoD said:

I haven't tried the H6 in a long time, so it was just a guess. If I weren't too busy with the N2+ I'd check it out. I wonder how it performs.
 


I use opi3 as my headless work station.  Using emmc for os and ssd on usb 3 for home dir and docker.  It’s fairly spry and very stable.

 

Currently testing unaccelerated desktop with 3gig pine h64b.   Very usable, but Firefox can bog down a bit.   Not as spunk as my opi4 or N2-.   ....but it does see all my monitor 4K resolutions and I can set it to my desired 1440p res through the standard desktop settings tool.

Share this post


Link to post
Share on other sites
15 hours ago, JORGETECH said:

There are also some weird problems with HDMI when VGA to HDMI adapters are used, I wonder if it's somehow related to this (I doubt it since it would most probably be an HDMI PHY or Display Engine problem).

GPU, Display Engine and HDMI all have different clock sources. It could still be HDMI clock issue, just different...

Share this post


Link to post
Share on other sites
On 8/10/2020 at 7:14 PM, jernej said:

GPU, Display Engine and HDMI all have different clock sources. It could still be HDMI clock issue, just different...

I forgot about that, thanks for the info!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
3 3