Panfrost Status on Odroid N2

superpowter77
Posts: 348
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: N2(x2),N2+,C4,HC4
Has thanked: 116 times
Been thanked: 34 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.

Code: Select all

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: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 122
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: 17 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 1355
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: 117 times
Been thanked: 169 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: 1355
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: 117 times
Been thanked: 169 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: 1355
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: 117 times
Been thanked: 169 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: 1355
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: 117 times
Been thanked: 169 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: 1355
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: 117 times
Been thanked: 169 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

brad
Posts: 1355
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: 117 times
Been thanked: 169 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jonathon
Posts: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

mad_ady
Posts: 9075
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: 596 times
Been thanked: 579 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: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

User avatar
tobetter
Posts: 7152
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 380 times
Been thanked: 1047 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

User avatar
tobetter
Posts: 7152
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 380 times
Been thanked: 1047 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

User avatar
tobetter
Posts: 7152
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 380 times
Been thanked: 1047 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: 94
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 28 times
Been thanked: 25 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.10 - Desktop use
<sangy>,"jonathon: big fan, happy to see you back"

jgmdev
Posts: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 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: 7152
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 380 times
Been thanked: 1047 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)

Pawn
Posts: 7
Joined: Thu Sep 10, 2020 10:39 pm
languages_spoken: english
ODROIDs: N2+
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Panfrost Status on Odroid N2

Post by Pawn »

Hi tobetter,

Great Job ! I'm not an expert in custom kernel and Ubuntu. So I have question. Is there any particular reason why you use Ubuntu 20.10 instead of Ubuntu 20.4 ?

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

Re: Panfrost Status on Odroid N2

Post by tobetter »

Pawn wrote:
Mon Dec 07, 2020 6:41 pm
Hi tobetter,

Great Job ! I'm not an expert in custom kernel and Ubuntu. So I have question. Is there any particular reason why you use Ubuntu 20.10 instead of Ubuntu 20.4 ?
I would say it's because of package versions to support advanced desktop features from the latest Desktop software packages like Gnome, KDE and more. They are releasing new software version, but Ubuntu package server does not provide the very recent softwares not like ArchLinux. So for new desktop with recent software packages, we need newer OS image which is 20.10. As I mentioned in the thread of Ubuntu 20.10 support, Panfrost is not fully stable yet and it would not strange that any time Ubuntu 20.10 is crashed or not abot to boot. I have some users who use packages from my server, no idea how many are :), and most of them are running Ubuntu Desktop with ARM Mali Bifrost driver and they don't want to break the system.

So long story short, :), 20.04 is for stable desktop support and 20.10 for experimental features including kernes before 21.04.

mctom
Posts: 49
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+
Has thanked: 9 times
Been thanked: 1 time
Contact:

Re: Panfrost Status on Odroid N2

Post by mctom »

I got another question.

So is my understanding correct that upcoming Linux Kernel 5.10 LTS, which might get released around this month, is expected to include Panfrost?
When it comes around and it indeed does have Panfrost on board, is there anything specific I should do other than to update kernel? I guess this isn't that simple, judging from the previous techy posts..

Thanks!

chewitt
Posts: 65
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 0
Been thanked: 74 times
Contact:

Re: Panfrost Status on Odroid N2

Post by chewitt »

Just so people are aware, my 5.9 branch is partially tested and abandoned, and I wouldn't use it. The 5.10 branch is in good shape and (on-topic for this thread) has all the panfrost driver changes that are accepted/queued for 5.11 (that sadly missed 5.10).
These users thanked the author chewitt for the post (total 3):
brad (Tue Dec 08, 2020 12:50 am) • Sav (Tue Dec 08, 2020 6:11 pm) • jgmdev (Tue Dec 08, 2020 7:02 pm)

trwn2p
Posts: 25
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 5 times
Contact:

Re: Panfrost Status on Odroid N2

Post by trwn2p »

Thanks for this update info from Chewiit and tobetter. This thread was dead. Having to spoon feed users constantly must get frustrating. The reason and differences between Ubu 20.04 and 20.10 should be obvious and easily found with a quick google.
Stable vs experimental is as simple as it gets to understand. Panfrost is a WIP driver.
Just so people are aware, my 5.9 branch is partially tested and abandoned, and I wouldn't use it. The 5.10 branch is in good shape and (on-topic for this thread) has all the panfrost driver changes that are accepted/queued for 5.11 (that sadly missed 5.10).


When alerting us to your work please include how to use said work. Kinda pointless to say here's a new kernel with all the latest patches and no info on how to use said kernel on Odroid Ubuntu 20.10. It would help if you and tobetter could decide on using either your kernel or his. That way an apt update && apt upgrade gets us both of your latest efforts. Archetech

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

Re: Panfrost Status on Odroid N2

Post by tobetter »

Let me add more lines. Panfrost is supported with 5.10 kernel from my kernel branch and package, 5.9 is not since I don't apply patches to 5.9 branch. 5.9 will keep updating with ARM Mali Bifrost driver, while 5.10 will work with both Bifrost and Panfrost. So it's up to user which "Frost" you will use. :)

I have a couple of thread to support Debian and Ubuntu with upstream kernels and I usually upgrade the version every week whenever new mailine kernel is tagged.
viewtopic.php?f=182&t=37109
viewtopic.php?f=52&t=40761
These users thanked the author tobetter for the post:
Sav (Tue Dec 08, 2020 6:11 pm)

trwn2p
Posts: 25
Joined: Fri Oct 16, 2020 5:12 am
languages_spoken: english
ODROIDs: N2 Plus
Has thanked: 2 times
Been thanked: 5 times
Contact:

Re: Panfrost Status on Odroid N2

Post by trwn2p »

thanks tobetter. I am clear now on your way of handling the two drivers and kernels. Personally I prefer the old mali-bifrost for gnome at this time for it's stability. Performance is fine too. But that pesky panfrost won't cooperate yet with KDE plasma 5.20.x. I get page faults on arch and ubu still. Oh well. That's why I ask for how to try chewitts kernel. Hopefully he will give me/us the steps to replace your 5.10 for testing comparisons.

I can git clone the chewitt repo if I know the commands to build it. A pre-built (deb?) would be nice though.

chewitt
Posts: 65
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 0
Been thanked: 74 times
Contact:

Re: Panfrost Status on Odroid N2

Post by chewitt »

I don't build Ubuntu or any other desktop OS, but I put the code in public ..
These users thanked the author chewitt for the post:
istanbulls (Tue Dec 08, 2020 10:49 pm)

User avatar
rooted
Posts: 8277
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 728 times
Been thanked: 306 times
Contact:

Re: Panfrost Status on Odroid N2

Post by rooted »

chewitt wrote:I don't build Ubuntu or any other desktop OS, but I put the code in public ..
And the public thanks you :)
These users thanked the author rooted for the post:
istanbulls (Tue Dec 08, 2020 10:49 pm)

someone33
Posts: 12
Joined: Sat Dec 05, 2020 6:02 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Panfrost Status on Odroid N2

Post by someone33 »

is there some kind of roadmap or what is missing in mainline 5.10? e.g. can i play h264/h265?

chewitt
Posts: 65
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 0
Been thanked: 74 times
Contact:

Re: Panfrost Status on Odroid N2

Post by chewitt »

H264 is upstream and you can start playback but when the stream goes out of sync or your seek; it stalls and you often need to start over. HEVC is not upstream and works with 8-bit content but not 10-bit and has the same issues with seeking. FFmpeg is where the seeking issue needs to be fixed. Raspberry Pi Foundation are actively working on the changes needed to make this work with their H264 codec (Amlogic and Pi H264 are both stateful decoders and share a common code path) and I'm tracking the changes to give an additional angle on the work. Right now there is nice progress being made (seeking in H264 is not perfect but working well) but at some point soon there'll be a need to make changes in the Amlogic H264 code which is not being actively worked upon (the guy who wrote it has been radio silent since March). On an N2/N2+ device you can software decode all 1080p content except files with exotic encodings or super-high bitrates but I think we're a few months from where we want to be (at least with H264). The terrtiary challenge is; once we make it all work we need to tidy up the code and get it upstream, and that will take time and lots of iterations. Anyway.. that's the status.
These users thanked the author chewitt for the post (total 7):
istanbulls (Thu Dec 10, 2020 10:41 pm) • jonathon (Fri Dec 11, 2020 1:33 am) • odroidn2user (Fri Dec 11, 2020 4:26 am) • jgmdev (Sat Dec 12, 2020 1:55 am) • Sav (Sat Dec 12, 2020 9:01 am) • hjheins (Sat Dec 12, 2020 5:15 pm) • elatllat (Wed Dec 23, 2020 9:41 pm)

hjheins
Posts: 16
Joined: Sat Apr 06, 2013 6:23 pm
languages_spoken: english, german, dutch
ODROIDs: U2,XU3,HC1,N2+
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Panfrost Status on Odroid N2

Post by hjheins »

chewitt wrote:
Thu Dec 10, 2020 10:01 pm
H264 is upstream and you can start playback but when the stream goes out of sync or your seek; it stalls and you often need to start over. HEVC is not upstream and works with 8-bit content but not 10-bit and has the same issues with seeking. FFmpeg is where the seeking issue needs to be fixed. Raspberry Pi Foundation are actively working on the changes needed to make this work with their H264 codec (Amlogic and Pi H264 are both stateful decoders and share a common code path) and I'm tracking the changes to give an additional angle on the work. Right now there is nice progress being made (seeking in H264 is not perfect but working well) but at some point soon there'll be a need to make changes in the Amlogic H264 code which is not being actively worked upon (the guy who wrote it has been radio silent since March). On an N2/N2+ device you can software decode all 1080p content except files with exotic encodings or super-high bitrates but I think we're a few months from where we want to be (at least with H264). The terrtiary challenge is; once we make it all work we need to tidy up the code and get it upstream, and that will take time and lots of iterations. Anyway.. that's the status.
Thank you for your great work chewitt!

someone33
Posts: 12
Joined: Sat Dec 05, 2020 6:02 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Panfrost Status on Odroid N2

Post by someone33 »

thanks for the update and your work!

jgmdev
Posts: 279
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4, HC4
Has thanked: 103 times
Been thanked: 195 times
Contact:

Re: Panfrost Status on Odroid N2

Post by jgmdev »

While checking the panfrost irc log I read about how to change the GPU frequency. The panfrost driver runs on the simple_ondemand gpu governor which doesn't seems to work too well (at least yet). So if you are noticing laggy graphics you can force the minimum gpu frequency to its maximum.

First, check the max frequency (the ffe40000.gpu part may be different on your system):

Code: Select all

cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq
That would return at least on the Odroid N2: 799999987, now as root execute the following command:

Code: Select all

# echo 799999987 > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/min_freq
With that change graphic rendering should be better and desktop animations like those from gnome, compiz, etc..., should perform smoother.

Knowing this it would be nice to have a systemd unit file that does the change for us on system startup:

/etc/systemd/system/gpu-max-freq.service

Code: Select all

[Unit]
Description=GPU Max Frequency
After=default.target
DefaultDependencies=no

[Service]
User=root
Type=oneshot
RemainAfterExit=no
ExecStart=/bin/bash -c "/usr/bin/cat /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/max_freq > /sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu/min_freq"

[Install]
WantedBy=default.target
And finally enable it sudo systemctl enable gpu-max-freq
These users thanked the author jgmdev for the post (total 3):
istanbulls (Wed Dec 16, 2020 7:38 am) • Sav (Thu Dec 17, 2020 8:12 am) • sjuut (Wed Dec 23, 2020 6:24 pm)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest