Panfrost Status on Odroid N2

superpowter77
Posts: 315
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: N2(x2),N2+,C4,HC4
Has thanked: 91 times
Been thanked: 25 times
Contact:

Re: Panfrost Status on Odroid N2

Post by superpowter77 »

tobetter wrote:
Fri Oct 30, 2020 8:32 pm
superpowter77 wrote:
Fri Oct 30, 2020 8:24 pm
Changes made to line 19 as suggested. Blue light keeps blinking but there's no Video. Same as before. I have latest Petiboot on HC4.
Aren't you able to ping or sshing when the blue LED blinks?
Nope, no pinging or sshing possible.

arp -a
_gateway (192.168.1.1) at 28:ff:3e:3d:ae:42 [ether] on eth0
? (192.168.1.32) at <incomplete> on eth0
➜ ~ ping 192.168.1.32
PING 192.168.1.32 (192.168.1.32) 56(84) bytes of data.
From 192.168.1.30 icmp_seq=1 Destination Host Unreachable
From 192.168.1.30 icmp_seq=2 Destination Host Unreachable
From 192.168.1.30 icmp_seq=3 Destination Host Unreachable
From 192.168.1.30 icmp_seq=4 Destination Host Unreachable
From 192.168.1.30 icmp_seq=5 Destination Host Unreachable
From 192.168.1.30 icmp_seq=6 Destination Host Unreachable
^Z
[3] + 1844 suspended ping 192.168.1.32
➜ ~ ssh 192.168.1.32
ssh: connect to host 192.168.1.32 port 22: No route to host
➜ ~ ssh alarm@192.168.1.32
ssh: connect to host 192.168.1.32 port 22: No route to host

User avatar
ajcard
Posts: 79
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by ajcard »

ajcard wrote:
Fri Oct 30, 2020 3:00 pm
Quick-Tested this one:
pros: * green line is gone, nice
cons: * boots very slow, * have some strange ppp errors, mate network manager shows false state
unchanged: panfrost/gpu same xorg probs as unpatched 5.10rc1
fyi:
Ok, today I updated the kernel source. With this kernel the network applet shows wrong state too.
This one boots slow too.
These users thanked the author ajcard for the post:
jgmdev (Sun Nov 01, 2020 10:01 am)

User avatar
ajcard
Posts: 79
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by ajcard »

today there are many panfrost commits at mesa git.
no xorg improvements found, :-(

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

It seems mesa master merged the fixes from alyssa repository so if using the archlinux repository one can get back again to mesa-arm-git from mesa-panfrost-git for a working panfrost experience.

On kernel side, it seems chewitt is applying all newest panfrost/other-stuff fixes/patches to this branch https://github.com/chewitt/linux/tree/amlogic which is based on v5.9.2 of the kernel. I took tobetter odroid-5.9.y branch (which has more patches/fixes) and rebased it on top of the mentioned chewitt branch and since tobetter merged v5.9.3 one gets latest changes/fixes which include proper poweroff/reboot if I'm correct https://github.com/jgmdev/linux/tree/od ... hewitt-aml I compiled/installed and it works properly (also available on my archlinux repo ready for install), seems like panfrost rendering is more stable now.

Also I added the retux game for testing, which uses supertux resources but is easier to play. I think it is software rendered but performs better on panfrost when run in fullscreen than non panfrost on X.

Finally, enabling layers.acceleration.force-enabled on firefox works and gives better overall performance (scrolling now feels like my bigger x86_64 machine), but sometimes when switching from one tab to another causes rendering artifacts that require minimize/maximize or toggle fullscreen to restore normal rendering.
Last edited by jgmdev on Wed Nov 04, 2020 7:19 am, edited 1 time in total.
These users thanked the author jgmdev for the post:
m8kbv (Wed Nov 04, 2020 5:13 am)

m8kbv
Posts: 119
Joined: Thu Nov 14, 2019 6:27 pm
languages_spoken: English
ODROIDs: 2x Odroid N2 4GB
Odroid Go Advance
Location: Poland
Has thanked: 35 times
Been thanked: 16 times
Contact:

Re: Panfrost Status on Odroid N2

Post by m8kbv »

would you describe (step by step), how to remove mesa-panfrost-git and install mesa-arm-git?

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

m8kbv wrote:
Wed Nov 04, 2020 5:13 am
would you describe (step by step), how to remove mesa-panfrost-git and install mesa-arm-git?
Basic package maintenance:

Code: Select all

$ sudo pacman -S mesa-arm-git
resolving dependencies...
looking for conflicting packages...
:: mesa-arm-git and mesa-panfrost-git are in conflict (mesa). Remove mesa-panfrost-git? [y/N] 
Hint: say "yes" to replace the conflicting package.
These users thanked the author jonathon for the post:
m8kbv (Wed Nov 04, 2020 5:48 am)
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

Hehe, was reading phoronix and some other great news:

https://www.phoronix.com/scan.php?page= ... GL-31-Next

https://www.collabora.com/news-and-blog ... -graphics/

Tested firefox WebGL and runs better than on the mali closed source driver.

brad
Posts: 1351
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 113 times
Been thanked: 167 times
Contact:

Re: Panfrost Status on Odroid N2

Post by brad »

Yes good news, push to enable bifrost support without the DEBUG variable set is now done in master branch and mesa 20.3 should be released shortly :)

I have been doing some tests with Ubuntu and have gnome working relatively well there. Some recent patches for 5.9.x were needed to make the kernel driver stable but with them applied no more lockups / deadlocks. I can now run my QT apps which were crashing with libMali and kde plasma starts but still seeing some artifacts (ie some blacked text and some blacked out windows).

Ive upgraded to Ubuntu 20.10 and panfrost working there also but unable to install kde there for testing as yet due to some issues with plasma dependencies with QT version so looking into this next to see if it resolves some more of the issues.

X11 gnome is not working for me at the moment, enabling some debug it appears it is related to screen scaling on xorg startup and how it try's to detect screen scaling from the meson DRM and modeset, more investigation needed.
These users thanked the author brad for the post:
jgmdev (Wed Nov 04, 2020 11:40 am)

brad
Posts: 1351
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 113 times
Been thanked: 167 times
Contact:

Re: Panfrost Status on Odroid N2

Post by brad »

These are the settings im using at the moment for compile and gnome flys :) will add in the optimization ones and see what happens.

-Dplatforms=wayland,x11 -Ddri-drivers= -Dvulkan-drivers= -Dgallium-drivers=panfrost,kmsro -Dgles2=true -Dglvnd=true -Dglx-direct=true -Dgbm=true -Ddri3=true -Dlibunwind=false -Dllvm=false

User avatar
ajcard
Posts: 79
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by ajcard »

brad wrote:
Wed Nov 04, 2020 10:37 am
X11 gnome is not working for me at the moment, enabling some debug it appears it is related to screen scaling on xorg startup and how it try's to detect screen scaling from the meson DRM and modeset, more investigation needed.
Can you tell me how to enable debugging in Xorg? I know the startx "-logverbose 6" option.

Ah and for info, afaik the "PAN_MESA_DEBUG=bifrost" var is not needed anymore.

brad
Posts: 1351
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 113 times
Been thanked: 167 times
Contact:

Re: Panfrost Status on Odroid N2

Post by brad »

ajcard wrote:
Wed Nov 04, 2020 9:48 pm
brad wrote:
Wed Nov 04, 2020 10:37 am
X11 gnome is not working for me at the moment, enabling some debug it appears it is related to screen scaling on xorg startup and how it try's to detect screen scaling from the meson DRM and modeset, more investigation needed.
Can you tell me how to enable debugging in Xorg? I know the startx "-logverbose 6" option.

Ah and for info, afaik the "PAN_MESA_DEBUG=bifrost" var is not needed anymore.
I have just being using the systemd logs when it starts via systemd (ie "sudo journalctl -xe") but I need to work out how to turn up verbose as well. I'm looking at /etc/X11/Xsession to see if I can work something in there.

User avatar
ajcard
Posts: 79
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by ajcard »

@brad
ok, fine tell us if you got it. I checked out xorg from git and installed it.
next time ill try it with debug, but I dont know whats happening then ;)

ah, and some kind of warning:
if I start xorg with glamor enabled, xorg crashes as told before.
but I noticed that my filesystem (ext4) gets corrupted sometimes, so on next boot
it will be mounted ro. a fsck is needed than. does this happen at your system too?

brad
Posts: 1351
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 113 times
Been thanked: 167 times
Contact:

Re: Panfrost Status on Odroid N2

Post by brad »

ajcard wrote:
Wed Nov 04, 2020 10:28 pm
@brad
ok, fine tell us if you got it. I checked out xorg from git and installed it.
next time ill try it with debug, but I dont know whats happening then ;)

ah, and some kind of warning:
if I start xorg with glamor enabled, xorg crashes as told before.
but I noticed that my filesystem (ext4) gets corrupted sometimes, so on next boot
it will be mounted ro. a fsck is needed than. does this happen at your system too?
hmmm no my filesystem seems ok, but I did notice something interesting

- I get to the login screen (gdm which starts in wayland mode for the login)
- Login to X11 session where my screen goes black
- ALT + CTRL + F2 (This is tty where X is starting) and I see XORG session for a few seconds
- ALT + CTRL + F3 (This is just another terminal TTY)
- ALT + CTRL + F2 (If I move my mouse I can see the X session in the background

When I check the logs after this I can see the X session was waiting on the FB device, I suspect the original wayland login screen was still holding the device open.

Do you try to run your X org session with lightdm display manager or something else? I would be interested to hear how it works with no wayland configuration at all.

BTW: which kernel are you running and do you have recent patches applied?

User avatar
ajcard
Posts: 79
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by ajcard »

- I get to the login screen (gdm which starts in wayland mode for the login)
- Login to X11 session where my screen goes black
- ALT + CTRL + F2 (This is tty where X is starting) and I see XORG session for a few seconds
- ALT + CTRL + F3 (This is just another terminal TTY)
- ALT + CTRL + F2 (If I move my mouse I can see the X session in the background
hmm, thats weired ;) I get no black screen, Xorg doesnt start, and my keyboard is frozen
When I check the logs after this I can see the X session was waiting on the FB device, I suspect the original wayland login screen was still holding the device open.
my last xorg.log entries if started with glamor are:

Code: Select all

[   143.768] (II) Loading /usr/lib/xorg/modules/libfb.so
[   143.775] (II) Module fb: vendor="X.Org Foundation"
[   143.775]    compiled for 1.20.8, module version = 1.0.0
[   143.775]    ABI class: X.Org ANSI C Emulation, version 0.4
[   143.775] (II) UnloadModule: "fbdev"
[   143.775] (II) Unloading fbdev
[   143.776] (II) UnloadSubModule: "fbdevhw"
[   143.776] (II) Unloading fbdevhw
Do you try to run your X org session with lightdm display manager or something else? I would be interested to hear how it works with no wayland configuration at all.
I dont use lightdm (whats this? ;) ) I boot into a plain tty, login, startx -> Xorg and Mate comes up.
BTW: which kernel are you running and do you have recent patches applied?
At the moment Im on clean 5.10rc2 wout any patches, mesa git, libdrm git, xorg git.

brad
Posts: 1351
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 113 times
Been thanked: 167 times
Contact:

Re: Panfrost Status on Odroid N2

Post by brad »

ajcard wrote:
Wed Nov 04, 2020 11:54 pm
At the moment Im on clean 5.10rc2 wout any patches, mesa git, libdrm git, xorg git.
I believe you will need some kernel patches to resolve some bugs, I see what I get from command line and startx later on when I have a chance

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

ajcard wrote:
Wed Nov 04, 2020 11:54 pm
At the moment Im on clean 5.10rc2 wout any patches
Which distro? Which config?
ajcard wrote:
Wed Nov 04, 2020 10:28 pm
if I start xorg with glamor enabled, xorg crashes as told before.
Is enabling glamor documented somewhere?
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

brad
Posts: 1351
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 113 times
Been thanked: 167 times
Contact:

Re: Panfrost Status on Odroid N2

Post by brad »

ajcard wrote:
Wed Nov 04, 2020 11:54 pm

hmm, thats weired ;) I get no black screen, Xorg doesnt start, and my keyboard is frozen
If I try with startx from command line X does start sometimes but it is using llvmpipe not panfrost, so i'm not sure sorry

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

jonathon wrote:
Thu Nov 05, 2020 7:37 am
Is enabling glamor documented somewhere?
Answered my own question. It's enabled by default with kernel 5.9 and mesa-arm-git, it just doesn't work (yet):

Code: Select all

[   427.786] (II) Loading sub module "glamoregl"
[   427.786] (II) LoadModule: "glamoregl"
[   427.786] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   427.791] (II) Module glamoregl: vendor="X.Org Foundation"
[   427.791]    compiled for 1.20.9, module version = 1.0.1
[   427.791]    ABI class: X.Org ANSI C Emulation, version 0.4
[   427.867] (EE) modeset(0): glamor acceleration requires GL_OES_EGL_image
[   427.869] (EE) modeset(0): glamor initialization failed
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

I've just noticed vsync and picom working with mesa-arm-git 20.3.0_devel.130792.0f96a9ab3b0-1. It's getting there!

Code: Select all

[    13.676] (II) Loading sub module "glamoregl"
[    13.676] (II) LoadModule: "glamoregl"
[    13.676] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    13.690] (II) Module glamoregl: vendor="X.Org Foundation"
[    13.690]    compiled for 1.20.9, module version = 1.0.1
[    13.690]    ABI class: X.Org ANSI C Emulation, version 0.4
[    14.270] (II) modeset(0): glamor X acceleration enabled on Mali G52 (Panfrost)
[    14.270] (II) modeset(0): glamor initialized
...
[    14.539] (II) modeset(0): [DRI2] Setup complete
[    14.539] (II) modeset(0): [DRI2]   DRI driver: meson
[    14.539] (II) modeset(0): [DRI2]   VDPAU driver: meson
These users thanked the author jonathon for the post (total 3):
brad (Fri Nov 06, 2020 7:05 am) • jgmdev (Fri Nov 06, 2020 7:27 am) • odroid (Fri Nov 06, 2020 4:53 pm)
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

jonathon wrote:
Fri Nov 06, 2020 6:16 am
I've just noticed vsync and picom working with mesa-arm-git 20.3.0_devel.130792.0f96a9ab3b0-1. It's getting there!
...
Right now I'm jumping between a trimmed gnome shell and wayfire desktop environments, cant wait to go back into XFCE :D But I have noticed less rendering artifacts recently under wayfire than gnome-shell, specially when enabling on firefox layers.acceleration.force-enabled.

User avatar
ajcard
Posts: 79
Joined: Fri Jun 07, 2019 4:46 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by ajcard »

@jonathon
Well done! Any perfomance improvements noticed?


@brad - your post about lightdm and startx
found something about it, says that there could be a prob running
startx from console without lightdm/gbm. Maybe I have some more time on sunday.

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

ajcard wrote:
Fri Nov 06, 2020 4:44 pm
Well done!
Not really because of me - it's the MESA developers and some jgmdev packaging. ;)
ajcard wrote:
Fri Nov 06, 2020 4:44 pm
Any perfomance improvements noticed?
Yes - hardware video acceleration in VLC is working (manually select XVideo or X11 video output) - x264 and x265 videos will play with <100% CPU (previously it was at 400% and skipping frames).

WM compositing isn't quite there yet (window movement with Marco and picom compositing is both a bit jerky) but things like Firefox scrolling is pretty smooth. Firefox is also showing various hardware accel under about:support. Gamma/colour control isn't there yet so Redshift doesn't work.

I'm hoping that my 16:10 HDMI output timings will be fixed by a kernel update and then this little box is going to be pretty sweet.
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

So after the great report by @Psiborg viewtopic.php?p=311298#p311298 of good panfrost performance on KDE X11 I decided to give it a try on XFCE and wow just wow!!! WIth compositing disabled on XFCE I got the following numbers from glmark2 before it crashed

Code: Select all

➜  ~ glmark2
=======================================================
    glmark2 2020.04
=======================================================
    OpenGL Information
    GL_VENDOR:     Panfrost
    GL_RENDERER:   Mali G52 (Panfrost)
    GL_VERSION:    2.1 Mesa 21.0.0-devel (git-f89b29f708)
=======================================================
[build] use-vbo=false: FPS: 312 FrameTime: 3.205 ms
[build] use-vbo=true: FPS: 347 FrameTime: 2.882 ms
[texture] texture-filter=nearest: FPS: 404 FrameTime: 2.475 ms
[texture] texture-filter=linear: FPS: 405 FrameTime: 2.469 ms
[1]    2153 segmentation fault (core dumped)  glmark2
Games like openarena, neverball, globulation 2, supertux2, supertuxkart, cendric, serious sam tfe, warzone 2100, minetest and love2d engine games like mari0 work under X11!

And that's not all, video acceleration works too (tested with mpv)!!! Also setting layers.acceleration.force-enabled on firefox to true works :D, I also ran gnome X11 and it seemed that animations where working smoother than on gnome wayland or maybe was an emotion placebo effect lol. Anyways, great work by all the Panfrost developers!

Edit: kodi x11 also works with video acceleration!
These users thanked the author jgmdev for the post (total 4):
harddroid (Thu Nov 12, 2020 6:52 pm) • tobetter (Thu Nov 12, 2020 6:57 pm) • brad (Thu Nov 12, 2020 7:03 pm) • istanbulls (Thu Nov 12, 2020 7:08 pm)

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

jgmdev wrote:
Thu Nov 12, 2020 6:50 pm
So after the great report by @Psiborg viewtopic.php?p=311298#p311298 of good panfrost performance on KDE X11 I decided to give it a try on XFCE and wow just wow!!! WIth compositing disabled on XFCE I got the following numbers from glmark2 before it crashed
Ah, thank you for confirming my post above!

There are some panfrost-related commits in 5.9.7 which fix an occasional GPU hang too, so X is pretty smooth without compositing. I've put builds of linux-amlogic-panfrost-59-5.9.8 over here for ALARM: https://repo.m2x.dev/current/odroid/aarch64/
These users thanked the author jonathon for the post:
jgmdev (Fri Nov 13, 2020 3:56 am)
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

mad_ady
Posts: 8825
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 529 times
Contact:

Re: Panfrost Status on Odroid N2

Post by mad_ady »

X11 accelerated support sounds great, after all this time!
Looking forward to setting up a N2 with linux for a backup "home schooling" computer.

These users thanked the author mad_ady for the post:
jgmdev (Fri Nov 13, 2020 4:33 am)

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

jonathon wrote:
Thu Nov 12, 2020 8:26 pm
There are some panfrost-related commits in 5.9.7 which fix an occasional GPU hang too, so X is pretty smooth without compositing.
Nice, the most visible issue is that mouse cursor keeps blinking.
jonathon wrote:
Thu Nov 12, 2020 8:26 pm
I've put builds of linux-amlogic-panfrost-59-5.9.8 over here for ALARM: https://repo.m2x.dev/current/odroid/aarch64/
Are you merging https://github.com/chewitt/linux/tree/amlogic and https://github.com/tobetter/linux/tree/odroid-5.9.y into 5.9.8? Or are some of those fixes no longer necessary? and if so, any git repo where I can pull from? (so I don't have to do the rebasing/merging if you already have done it :D) Thanks for sharing!

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

jgmdev wrote:
Fri Nov 13, 2020 4:33 am
Nice, the most visible issue is that mouse cursor keeps blinking.
I suspect this might be worked around by disabling hardware cursor. 🤔
jgmdev wrote:
Fri Nov 13, 2020 4:33 am
Are you merging https://github.com/chewitt/linux/tree/amlogic and https://github.com/tobetter/linux/tree/odroid-5.9.y into 5.9.8? Or are some of those fixes no longer necessary? and if so, any git repo where I can pull from? (so I don't have to do the rebasing/merging if you already have done it :D) Thanks for sharing!
I merged Greg KH's upstream 5.9.y (e.g. https://github.com/gregkh/linux/tree/linux-5.9.y) into a fork of your https://github.com/jgmdev/linux/tree/odroid-5.9.chewitt branch to pick up the odroid-specific patches. I have this available but it's in a mixed-purpose repo I had previously been using for `linux-zen` on x86_64... I'll clean this up a bit.

Is there a "better"/"best" central repo which has odroid patches? It seems like there are three or more repos all doing slightly different things... (odroid, tobetter, chewitt, jgmdev, ...) and I'm a bit confused where development is happening...
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: Panfrost Status on Odroid N2

Post by tobetter »

jonathon wrote:
Fri Nov 13, 2020 5:38 am
I merged Greg KH's upstream 5.9.y (e.g. https://github.com/gregkh/linux/tree/linux-5.9.y) into your https://github.com/jgmdev/linux/tree/odroid-5.9.chewitt branch to pick up the odroid-specific patches. I have this available but it's in a mixed-purpose repo I had previously been using for `linux-zen` on x86_64... I'll clean this up a bit.

Is there a "better"/"best" central repo which has odroid patches? It seems like there are three or more repos all doing slightly different things... (odroid, tobetter, chewitt, jgmdev, ...) and I'm a bit confused where development is happening...
Hardkernel's Github branch does not have 5.9 kernel patches, but my branches odroid-5.9.y and odroid-5.10.y branch have. @jgmdev's branch is also based on mine but more patches for Panfrost. I need to manage the branch to support ARM Mali Wayland drivers for sometime and will merge Panfrost patches sometime soon. If you are looking for more ODROID-N2/N2Plus/C4/HC4 specific patches, it would be my Github branch that does have more patches not contributed to Linux kernel patchwork yet. There is another great developer @brad, he is preparing the Panfrost patches on top of my 5.9 branch by himself.
These users thanked the author tobetter for the post (total 5):
jonathon (Fri Nov 13, 2020 5:57 am) • harddroid (Fri Nov 13, 2020 6:04 am) • jgmdev (Fri Nov 13, 2020 6:27 am) • superpowter77 (Fri Nov 13, 2020 6:43 am) • istanbulls (Fri Nov 13, 2020 8:07 am)

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

OK, cool. I can see both your and chewitt's commits being merged into mainline in the kernel mailing list so this means both are viable development forks. I can't see a "brad" fork on GitHub. :?

I'll keep an eye on your repo until I get more familiar with the development flow.

I put together a test repo so I can see what's going on across the various repo branches I can find, e.g. this comparison is all out-of-tree differences to Greg KH's 5.9.y: https://github.com/m2x-dev/linux/compar ... .m2x-5.9.y (there are a number of "WIP" commits which I suspect don't really want to be included...).

However, I'll probably try a build against this "combination branch" and see what happens. :D
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: Panfrost Status on Odroid N2

Post by tobetter »

jonathon wrote:
Fri Nov 13, 2020 7:59 am
OK, cool. I can see both your and chewitt's commits being merged into mainline in the kernel mailing list so this means both are viable development forks. I can't see a "brad" fork on GitHub. :?

I'll keep an eye on your repo until I get more familiar with the development flow.

I put together a test repo so I can see what's going on across the various repo branches I can find, e.g. this comparison is all out-of-tree differences to Greg KH's 5.9.y: https://github.com/m2x-dev/linux/compar ... .m2x-5.9.y (there are a number of "WIP" commits which I suspect don't really want to be included...).

However, I'll probably try a build against this "combination branch" and see what happens. :D
Would be nice to share the branch and commits, but my intention is only ODROID...not other SBCs. :)

FYI, I am now working to bring up 5.9.6 kernel and having an issue that it does not make run ARM Mali Wayland driver any more...so I am digging to resolve it. After this, I would look into 5.9.7 and 5.9.8, then Panfrost.
These users thanked the author tobetter for the post:
jonathon (Fri Nov 13, 2020 8:14 am)

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

tobetter wrote:
Fri Nov 13, 2020 8:08 am
FYI, I am now working to bring up 5.9.6 kernel and having an issue that it does not make run ARM Mali Wayland driver any more...so I am digging to resolve it. After this, I would look into 5.9.7 and 5.9.8, then Panfrost.
Ah, I just read something about something like that over in the Armbian repo, might be related: https://github.com/armbian/build/pull/2318/files
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: Panfrost Status on Odroid N2

Post by tobetter »

jonathon wrote:
Fri Nov 13, 2020 8:16 am
tobetter wrote:
Fri Nov 13, 2020 8:08 am
FYI, I am now working to bring up 5.9.6 kernel and having an issue that it does not make run ARM Mali Wayland driver any more...so I am digging to resolve it. After this, I would look into 5.9.7 and 5.9.8, then Panfrost.
Ah, I just read something about something like that over in the Armbian repo, might be related: https://github.com/armbian/build/pull/2318/files
Thanks...
My issue is different...Mali driver complains two symbols are missing.
And I am not going to disable the Panfrost driver, I will manage the packages to load Panfrost and ARM Mali driver exclusively.

jonathon
Posts: 68
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 24 times
Been thanked: 17 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jonathon »

jgmdev wrote:
Fri Nov 13, 2020 4:33 am
Are you merging https://github.com/chewitt/linux/tree/amlogic and https://github.com/tobetter/linux/tree/odroid-5.9.y into 5.9.8? Or are some of those fixes no longer necessary? and if so, any git repo where I can pull from? (so I don't have to do the rebasing/merging if you already have done it :D) Thanks for sharing!
OK, I've set up a couple of branches.

First, https://github.com/m2x-dev/linux/tree/o ... .8.chewitt is a merge of 5.9.8 into your odroid-5.9.chewitt branch (so it's what's used for `linux-amlogic-panfrost-59` but updated to 5.9.8). Differences are here: https://github.com/m2x-dev/linux/compar ... .8.chewitt

Second, https://github.com/m2x-dev/linux/tree/m2x-5.9.y is a merge of odroid-5.9.y and amlogic-5.9.y into linux-5.9.y. This one has all of tobetter's and chewitt's patches to date. Differences to mainline 5.9.8 are here: https://github.com/m2x-dev/linux/compar ... .m2x-5.9.y
These users thanked the author jonathon for the post:
jgmdev (Sat Nov 14, 2020 4:11 am)
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.9 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

jonathon wrote:
Sat Nov 14, 2020 12:51 am
OK, I've set up a couple of branches.
Great work! Also, last time I read from chewitt on panfrost irc log he mentioned that latest panfrost patches/fixes where added to https://github.com/chewitt/linux/tree/amlogic if I understood correctly. That is why I created this other branch https://github.com/jgmdev/linux/tree/od ... hewitt-aml that is at v5.9.3 which is what I'm using for the linux-amlogic-panfrost-59 package. So I'm not sure if the chewitt amlogic-5.9.y branch is enough. Anyways, I will build later your https://github.com/m2x-dev/linux/tree/o ... .8.chewitt branch and see if there are any noticeable differences in stability, thanks!

jgmdev
Posts: 213
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 80 times
Been thanked: 148 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

Reporting that XFCE + Compiz combo works pretty well, added a compiz package to repo which can be installed with sudo pacman -S compiz if testing is desired by others (one would need to install mesa-arm-git, disable any mali blobs and install the linux panfrost enabled kernel in order to enable panfrost)

After testing compiz with compiz --replace one can replace xfce's xfwm4 with compiz at startup by running:

Code: Select all

xfconf-query --channel xfce4-session --property /sessions/Failsafe/Client0_Command --type string --set 'compiz' --type string --set '--replace'
Also in order to get a standard look, the window decoration on compiz can be set to exec /usr/bin/gtk-window-decorator --replace and to set a proper window theme something like:

Code: Select all

gsettings set org.gnome.metacity.theme type metacity
gsettings set org.gnome.desktop.wm.preferences theme "Arc-Darker"
I enabled 3cube workspace rotation and it is working great :D

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: Panfrost Status on Odroid N2

Post by tobetter »

I made some progress to run Panfrost on ODROID-N2/C4/HC4 with Ubuntu 20.10 and uploaded the image to play with. Please visit the link for more detail and keep posting there if you have any question regarding to Ubuntu 20.10 + Panfrost. I've not tested the Panfrost much as you guys did here, but will keep updating and testing more.

viewtopic.php?p=312615#p312615
These users thanked the author tobetter for the post:
jgmdev (Sun Nov 22, 2020 2:13 pm)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 0 guests