Could you test 5.9-hdmi if lima works with tuxracer or glxgears? If yes i can post patch to mainline (if it is ok for you)
Glxgears Works!
extreme tux racer - works!
supertuxkart - works!
openarena - out of memory
[ 590.538090] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-c8.scope,task=ioquake3,pid=2773,uid=1000
[ 590.554847] Out of memory: Killed process 2773 (ioquake3) total-vm:1336936kB, anon-rss:161932kB, file-rss:31052kB, shmem-rss:80012kB, UID:1000 pgtables:576kB oom_score_adj:0
[ 590.692414] oom_reaper: reaped process 2773 (ioquake3), now anon-rss:0kB, file-rss:0kB, shmem-rss:80168kB
Iām totally fine , maybe we shoul check regulators name, but i think itās fine
UPD. I fonund some instability on DE resolution change - on both 5.4 and 5.9
it makes a lot of output on 5.4 - so iāve rebooted it. and 5.9 shows:
[ 770.437126] lima 13040000.gpu: mmu command 3 timeout
[ 770.949376] [drm:lima_sched_timedout_job [lima]] *ERROR* lima job timeout
[ 770.956335] lima 13040000.gpu: fail to save task state from Xorg pid 2345: error task list is full
[ 770.965373] lima 13040000.gpu: gp task error int_state=0 status=a
[ 790.923764] broken atomic modeset userspace detected, disabling atomic
on 5.9
Likely gp task error
is a DRM/mesa issue both of which are already in mainline. So it should be ok to send patch to mainline (i donāt have any other mali-powered board to check itās behavior )
With lima unloaded ewerything is ok.
P.S. only for DE - fullscreen games seems fine.
Thanks for testing. I guess oom is not a lima/drm issue. I got oom_reapers also while using git (bare repo in lxc) at the moments git wants to repack. I solved it with a 4g swap-file on ssdā¦maybe it helps you here too
swapfile=/var/swap.img
if [[ ! -e $swapfile ]];then
dd if=/dev/zero of=$swapfile bs=1M count=4096
fi
chmod 0600 $swapfile
mkswap $swapfile
swapon $swapfile
No ssd on test board (yet, awaiting for a case) But iāve created a swap partition on SD, just need to activate it.
arena with swap:
loading:
started - there are some atrifacts
testing:
ā¦
andā¦
OOM killer with swap, anyway - not a lima problem
renamed the regulator to look more than the others and moved mali-node to have alphabetical order:
https://patchwork.kernel.org/patch/11746419/
btw. how big is your swap (partition)?
4Gb, but it seems not to be used at all
Have you mounted it as swap (maybe swapon is also needed)? You can also try my file approach
Sure it shows 4GB of available swap
No difference.
Anyway itās out fo topic
P.S. You can also test it apt-get insall openarena
Dts is now also merged including lima regulator
https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.9-next/dts32
Only the tdms-patch is now open (ck asked someone from mtk about it).
@dwmw2 for your Patch (i owned because i moved many additional nodes) i got message from Steven Rottwell:
Fixes tag
Fixes: 1f6ed224594 (āarm: dts: mt7623: add Mali-450 device nodeā)
has these problem(s):
- SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11 or later) just making sure it is not set (or set to āautoā).
It was only 11 chars but fixed by matthias to 1f6ed2245946 just as note for further Patches