ChanServ changed the topic of #lima to: Development channel for open source lima driver for ARM Mali4** GPUs - Kernel has landed in mainline, userspace driver is part of mesa - Logs at https://people.freedesktop.org/~cbrill/dri-log/index.php?channel=lima and https://freenode.irclog.whitequark.org/lima - Contact ARM for binary driver support!
<anarsoul> likely it's mismatch between struct sizes on 32 bit and 64 bit, see mesa/include/drm-uapi/lima_drm.h
<anarsoul> I can't find obvious problem there by skimming though it, feel free to poke it and submit an MR if you find the issue
<mrfixit2001> Will be happy to have a look... although many applications don't actually *crash*... they just don't render anything on the screen. The screen goes black, and the backlight lights up like it's about to render something... but then it doesn't. No errors to capture and nothing in the dmesg
<anarsoul> goes black how?
<mrfixit2001> Well for example some of these applications specifically skim all the crtc modes and will change the resolution. I've confirmed that works and that the resolution changes. Then the screen goes blank and nothing is on it. But it app doesn't crash at all.
<anarsoul> can you check if it's actually doing something?
<anarsoul> check /proc/interrupts
<anarsoul> there's pp and gp interrupts
<anarsoul> are the numbers increasing?
<mrfixit2001> pp_bcast is continuing to increase and so is gp.
<mrfixit2001> gpmmu stays at 1, and everything else is 0
<anarsoul> what hw is it?
<mrfixit2001> Rock64 rk3328
<mrfixit2001> I compiled the latest bleeding edge commits from 5.4rc1 and mesa from today
<mrfixit2001> These are the only new entries in dmesg: https://pastebin.com/Tzupvry2
<mrfixit2001> and lima is clearly working, as kmscube runs perfectly too. Very strange.
<anarsoul> mrfixit2001: so it's rendering something
<anarsoul> maybe it failed to import bo from display driver, no idea
<mrfixit2001> any thoughts on how to debug further without any actual error messages?
<mrfixit2001> retroarch oddly renders *something* to the screen... once again, no errors... it's interface is usually bright blue with a slightly animated ribbon in the background. I get a gray animated ribbon in the middle of the screen and nothing else at all haha
<anarsoul> likely you have to debug display part
<anarsoul> I guess you can try dumping framebuffer that lima renders into, see lima_draw.c:_lima_flush()
<anarsoul> call lima_submit_wait(ctx->pp_submit, PIPE_TIMEOUT_INFINITE); at the end, then you can call lima_bo_map() on framebuffer BOs and then you can actually dump it to file (use regular fopen/fwrite/fclose)
<anarsoul> see lima_pack_wb_cbuf_reg() on how to get resource for framebuffer
<anarsoul> likely you'll get a lot of intermediate images if your app renders into FBOs
<mrfixit2001> Much appreciated. Will tinker a bit further this week. Interestingly, retroarch rendered perfectly when rendered fully aarch64.
<anarsoul> note that calling lima_submit_wait() on pp submit will kill performance for sure since it serializes jobs
<anarsoul> but with dumping fb to file that wouldn't be a bottleneck :)
<mrfixit2001> anarsoul any of this concerning to you during lima commit? Or is it fairly standard / expected: https://pastebin.com/etez3vYk
<mrfixit2001> *init, not commit
<anarsoul> is it with extra debug?
<mrfixit2001> Not sure which config setting specifically you're asking about, but these are all enabled: CONFIG_DEBUG_INFO, CONFIG_DEBUG_KERNEL, CONFIG_DEBUG_MISC, CONFIG_DEBUG_BUGVERBOSE
<anarsoul> mrfixit2001: it's unlikely to be the issue (you're running the same kernel anyway)
yuq825 has joined #lima
yuq825 has quit [Remote host closed the connection]
yuq8251 has joined #lima
<anarsoul> finally X11 cursor lag is fixed :)
<bshah|matrix> Oooh
<bshah|matrix> I wonder how this affects the performance of kwin/plasma
<anarsoul> not a lot if it was wayland compositor
<anarsoul> and probably significantly in case of X11
<bshah|matrix> Ah. Yes my context was wayland.
<anarsoul> try it? :)
<bshah|matrix> I will.
<bshah|matrix> Unfortunately not soon enough. I've another travel coming up so next 2 days are quite packed
<anarsoul> :)
<anarsoul> I did get LIMA_PP_IRQ_INVALID_PLIST_COMMAND though, so something's wrong :\
jrmuizel has quit [Remote host closed the connection]
<anarsoul> bbrezillon: are you around?
yuq8251 has quit [Remote host closed the connection]
yuq825 has joined #lima
<anarsoul> looks like we're generating pp stream incorrectly for some cases
<anarsoul> :(
<MoeIcenowy> anarsoul: for the misrender issue?
<MoeIcenowy> oh looks like for your new commits
<MoeIcenowy> anarsoul: I failed to make a reproducer...
<anarsoul> :(
<anarsoul> *sigh* glmark2 doesn't work anymore for me with blob
dddddd has quit [Remote host closed the connection]
marvs has joined #lima
<anarsoul> and now I can't reproduce the issue
<anarsoul> wtf
<anarsoul> fwiw my MR really helps q3a, it now goes up to 60fps in 1024x768
<anarsoul> 39.4fps in timedemo
Barada has joined #lima
<MoeIcenowy> anarsoul: sigh
<MoeIcenowy> anarsoul: I did a grep on my local piglit summary at master
<MoeIcenowy> found some `pp error irq state=201 status=40`
<MoeIcenowy> anarsoul: oops to locate where the error happens seems that serialization of jobs is needed
Barada has quit [Quit: Barada]
<bbrezillon> anarsoul: yep
megi has joined #lima
<rellla> anarsoul: i'm doing sth wrong with installing the blob... how did you do that? i strictly followed https://bootlin.com/blog/mali-opengl-support-on-allwinner-platforms-with-mainline-linux/ with r6p2 and used the arm64/r6p2/wayland blobs
<rellla> i get EGL_BAD_ALLOC during eglInitialize ..
<rellla> ah... trying to reconfigure kernel now.
monstr has joined #lima
adjtm_ has quit [Ping timeout: 265 seconds]
<MoeIcenowy> anarsoul: serialized run of piglit shows no this pp error now...
yuq8251 has joined #lima
yuq825 has quit [Remote host closed the connection]
adjtm_ has joined #lima
<rellla> ok, so no more lima work today since my opipc2 isn't reachable over ssh anymore. thanks mali binary blob!
<MoeIcenowy> setting up kernel over ssh is really brave...
<rellla> yeah :)
<rellla> it booted, after a modprobe mali i got kernel memory errors, lima and mali weren't able to be rmmod'ed and after a reboot it's not reachable anymore :(
_whitelogger has joined #lima
Barada has joined #lima
niceplaces has joined #lima
niceplace has quit [Ping timeout: 252 seconds]
dddddd has joined #lima
Barada has quit [Quit: Barada]
<narmstrong> anarsoul: lima is getting CI support https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2243
<narmstrong> it will run dEQP on the s905x libretech-cc and the sun8i-h3-libretech-all-h3-cc in our lab to cover mali-400 and mali-450 armhf/arm64
jrmuizel has joined #lima
<anarsoul> narmstrong: great, thanks, I saw tomeu's MR yesterday
<anarsoul> MoeIcenowy: so you mean this error happens even without my change?
<MoeIcenowy> anarsoul: yes
<MoeIcenowy> but serializing kills it
<anarsoul> not for me
<anarsoul> I just checked that
<MoeIcenowy> anarsoul: okay, so you can reproduce it now?
<anarsoul> MoeIcenowy: "lima 1c40000.gpu: pp error irq state=201 status=40"?
<anarsoul> yes, I can with my MR
<MoeIcenowy> anarsoul: yes
yuq8251 has quit [Remote host closed the connection]
<MoeIcenowy> anarsoul: now I'm trying to spam 100 piglit runs
<anarsoul> MoeIcenowy: I'm a bit tired of debugging gpu errors by trial and error
<MoeIcenowy> but we have no doc, right?
<anarsoul> I'm going to implement something like i915_error_state for lima
<anarsoul> so we can look at actual job that caused the error
monstr has quit [Remote host closed the connection]
<Danct12> hey guys, I cannot start X
<Danct12> AlGLX just look at swrast_dri.so instead of lima
<anarsoul> Danct12: you need to enable GLX
<Danct12> is that a module you can load?
<anarsoul> when you build mesa
<Danct12> ah
<anarsoul> that's cached meson cmdline
<anarsoul> Danct12: also make sure you don't disable glamor
<anarsoul> rellla: IIRC you need to modify your demo to work with mali blob
<anarsoul> it doesn't like ARGB8888 format so you have to use XRGB
<anarsoul> basically get it working with kmscube
<anarsoul> and then compare kmscube egl initialization to your demo and make necessary adjustments
<rellla> anarsoul: i randomly looked into https://github.com/yuq/gfx and adjusted them, but i missed sth. and now i somehow crashed my soc and first have to see what happened :p
<rellla> i kind of try&error recompiled the kernel with CMA_SIZE and CONFIG_DRM_FBDEV_OVERALLOC adjusted - and built mali with debug enabled.
<rellla> there was some step included, which my soc did not like :(
<anarsoul> :(
<rellla> as MoeIcenowy said, hacking the kernel over ssh is .... bad :)
<anarsoul> yeah
<anarsoul> rellla: hacking kernel when all you have is LCD and usb is even worse :) I did that back in 2006 though
<Danct12> anarsoul: -Dglx=dri in the apkbuild, however dri3 is not mentioned anywhere in the compile flags, will add that and try
<anarsoul> Danct12: sounds good
<Danct12> anarsoul: nope, doesn't seem to work for me
<Danct12> [ 84.203] (EE) AIGLX error: sun4i-drm does not export required DRI extension
<Danct12> [ 84.203] (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/swrast_dri.so failed (Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory)
<Danct12> still trying to load this swrast thing
<warpme_> hmm: I'm also getting (EE) AIGLX error: sun4i-drm does not export required DRI extension on h6 (t720). Just curious what is root cause of this error. As exactly that same kernel/mesa/app works ok on s905 and rk3328 - this must be allwinner drm related thing. has anybody idea how to move forward with this error?
drod has joined #lima
mrueg has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<anarsoul> warpme_: h6 uses panfrost, rk3328 uses lima
<anarsoul> s905x also uses lima, not sure about regular s905
* Danct12 uploaded a video: VID_20191010_225859.webm (615KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/EhlbiGBCWOcHdmPnHsXSDZAK >
<Danct12> seems like moving windows are pretty bugged with twm ^^
drod has quit [Read error: Connection reset by peer]
<anarsoul> :)
mrueg has joined #lima
<anarsoul> Danct12: fwiw I've never seen it with openbox
<anarsoul> also X11 really needs my recent MR but we have a bug somewhere
<anarsoul> you'll likely get "pp error irq state=201 status=40" eventually with it
asriel has joined #lima
<asriel> howdy all mali users :)
<anarsoul> hi asriel
<anarsoul> what's new in kde world? :)
<asriel> Did we met somewhere?
<asriel> Because you knew I was using KDE
<anarsoul> check your whois info
<anarsoul> :P
<asriel> Oh, that's KDE Matrix homeserver, hahahaha
<asriel> But that's accurate, I use KDE
<Danct12> hey asriel
<Danct12> totally didn't expect you here
<asriel> Heh, I'm here because I'm pretty interested in the Lima development progress, I see that you guys got Q3A running on it..
<Danct12> well now it can run gl4es
<Danct12> anarsoul: just let you know that i managed to fix the swrast error
<Danct12> solution? well just install it and boom
<Danct12> and just in case if you thought that's now how it's supposed to work, i checked glxinfo and it said Mali400
drod has joined #lima
<Danct12> and glxheads comes up with GL_RENDERER being Mali400
<anarsoul> cool
<Danct12> glxinfo output: https://paste.ubuntu.com/p/zGQFMQsp9w/
<Danct12> runs quake3 perfectly fine \o/
<Danct12> i was able to run extreme tux racer but it's very glitchy :D
<anarsoul> we'll fix it eventually
<anarsoul> one step at a time
jrmuizel has quit [Remote host closed the connection]
<Danct12> anyway i forgot to mention that sometimes i ran into this issue where the game only stuck at two frames repeating itself forever
<anarsoul> check your dmesg and you'll see an error
<anarsoul> once app submits a job that fails driver ignores further jobs from it. So it basically renders nothing but still flips buffers
<anarsoul> Danct12: what error is it btw?
cwabbott has quit [Read error: Connection reset by peer]
cwabbott has joined #lima
<Danct12> does alloc_config_range logs counts?
<anarsoul> no
<Danct12> was just this
<anarsoul> yeah, that's it
<anarsoul> restart it? :)
<Danct12> sure i guess
<Danct12> currently the penguin is sliding on drugs
<asriel> <Danct12 "currently the penguin is sliding"> That gave me a good laugh.
<Danct12> yes the tux from extreme tux racer is on drugs
<Danct12> thats why the game glitches
<anarsoul> :)
<anarsoul> Danct12: let me know if you get another app to freeze and you see "pp error irq state=201 status=40" in dmesg
adjtm_ has quit [Ping timeout: 240 seconds]
jrmuizel has joined #lima
<rellla> ok, loading mali kernel driver crashes my system. maybe i should undo all changes.
drod has quit [Read error: Connection reset by peer]
<anarsoul> rellla: that's weird
deesix has quit [Ping timeout: 252 seconds]
dddddd has quit [Ping timeout: 268 seconds]
dddddd has joined #lima
deesix has joined #lima
drod has joined #lima
adjtm has joined #lima
Net147 has quit [Ping timeout: 246 seconds]
Net147 has joined #lima
sphalerite has quit [Quit: WeeChat 2.4]
sphalerite has joined #lima
sphalerite has quit [Client Quit]
Elpaulo1 has joined #lima
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo1 is now known as Elpaulo
jrmuizel has quit [Remote host closed the connection]
jbrown has quit [Ping timeout: 246 seconds]
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]
warpme_ has quit [Quit: Connection closed for inactivity]
drod has quit [Remote host closed the connection]
jbrown has joined #lima