flipping frames bug and workaround
#4
i forgot this link:

https://gitlab.com/postmarketOS/pmaports/-/issues/805



how to reproduce powersaving bug:

this is more difficult to replicate. what i know all pinephones are affected.

default settings are applied for gpu pwersaving. some kind of visible script is run on screen, which uses gpu somewhat, but in a way that gpu goes to powersaving for awhile. on a background, maybe ssh, one runs something which consumes networking and cpu power. mobile data and ethernet is more likely to reproduce this bug, but wifi is less likely. this may take hours.

Code:
# udev rule. this prevents frequency part only
# example file location /lib/udev/rules.d/98-test.rules
# reboot required
# powersaving part
#KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/autosuspend_delay_ms}="-1"
#KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/control}="on"
# frequency part, may not be needed
KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{min_freq}="432000000"
KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{max_freq}="432000000"



how to reproduce frequency bug:

only some pinephones are affected. fedora (dirty) kernel is/was not affected for frequency part).

isome settings for gpu needs to be initiated, because powersaving should be ruled out. something needs to be done a screen, maybe glxgears. on a background like ssh, frequency change script is run. crash probably happens in minutes.

Code:
# udev rule. this prevents powersaving part only
# example file location /lib/udev/rules.d/98-test.rules
# reboot required
# powersaving part
KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/autosuspend_delay_ms}="-1"
KERNEL=="1c40000.gpu", SUBSYSTEM=="platform", DRIVER=="lima", ATTR{power/control}="on"
# frequency part, may not be needed
#KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{min_freq}="432000000"
#KERNEL=="1c40000.gpu", SUBSYSTEM=="devfreq", ATTR{max_freq}="432000000"

Code:
# stupid bash script to forcibly change frequency at all time
# root or sudo required
# options are 432000000 312000000 120000000.
# you may need 432<>312 or 432<>120 or 312<>120

echo 432000000 > /sys/class/devfreq/1c40000.gpu/min_freq
echo 432000000 > /sys/class/devfreq/1c40000.gpu/max_freq

while true
do echo 432000000 > /sys/class/devfreq/1c40000.gpu/max_freq
echo 312000000 > /sys/class/devfreq/1c40000.gpu/max_freq
done



frequency bug happens only in some pinephones, so i ask, can you test frequency part in your pinephone, and also report hardware version.

https://wiki.pine64.org/wiki/PinePhone#H..._revisions

i put this thread for wider discussion about mali gpu and a driver for it. does mali chip have some deficiencies? has anyone some knowledge what's going on in lima driver? why some devices are affected and others aren't? is frequency change reliable?

even related information could be helpful.
  Reply


Messages In This Thread
flipping frames bug and workaround - by zetabeta - 01-01-2023, 04:05 AM
RE: flipping frames bug and workaround - by zetabeta - 02-12-2023, 07:26 AM
RE: flipping frames bug and workaround - by e1337 - 02-15-2023, 09:54 AM
RE: flipping frames bug and workaround - by Yaky - 03-27-2023, 07:11 PM
RE: flipping frames bug and workaround - by traut - 04-15-2023, 07:47 PM
RE: flipping frames bug and workaround - by aular - 12-21-2023, 08:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  poor call quality try flipping switch six D4rkh0rs3 0 1,362 05-12-2021, 12:09 PM
Last Post: D4rkh0rs3
  Importing vcf, country prefix problem workaround p1trson 3 4,448 12-02-2020, 09:29 AM
Last Post: cybercow

Forum Jump:


Users browsing this thread: 1 Guest(s)