libera/#maemo-leste/ Thursday, 2021-10-21

freemangordonomg, SW rendering works :D10:45
uvosfreemangordon: yay :)11:11
uvosfreemangordon: hows performance? comperable to ddk1.9?11:12
uvos(with -video-omap)11:12
Wizzupfreemangordon: \o/11:32
WizzupMVP ;)11:32
Wizzupof the month or somethin11:32
Wizzupg11:32
uvosyeah this is massive boon for leste11:33
uvossoon we can have just one kernel for everything11:33
Wizzupmhm11:48
freemangordonWizzup: no idea, it is 2d only still12:27
freemangordonwould you recommend 2d benchmark?12:27
Wizzupfreemangordon: I recall one, just a minute...12:29
Wizzupx11perf?12:30
freemangordonok, thanks12:33
freemangordoncould you run it on d4 with omap driver (and no h-d running)?12:34
Wizzupmaybe some others from https://www.phoronix.com/scan.php?page=news_item&px=GLAMOR-EXA-2D-Ubuntu-16.0412:34
Wizzupyeah, sure, I can do that12:34
Wizzupnow?12:34
freemangordonno, when you have time12:35
freemangordonI want to have some values to compare to12:35
Wizzupok12:35
Wizzuptrying to find xperf in debian atm12:36
Wizzuplooks like it is x11-apps, but my d4 cannot find it12:37
Wizzupok, the repo cache was unhappy or something, installing no12:39
Wizzupw12:39
Wizzupany idea what in particular to benchmark?12:39
freemangordonx11perf -scroll50012:39
Wizzupfunny, it's worse without h-d running12:40
Wizzupwith h-d:12:40
Wizzup        600 reps @   8.7288 msec (   115.0/sec): Scroll 500x500 pixels12:40
Wizzupwithout h-d:12:40
Wizzup        400 reps @  13.7097 msec (    72.9/sec): Scroll 500x500 pixels12:40
uvosim not sure how usefull xperf is12:41
uvosno  one draws xorgs primitives anymore12:41
uvosmostly pixmaps are blited12:41
Wizzupwhat do you suggest then?12:41
uvoshow fast you can blit and transform a pixmap is more relevant12:41
Wizzupgtkperf?12:41
uvosthat would work yeah (gtk2 3 would use gl), but there was a12:42
uvosnother utility for this..12:42
Wizzuprunning gtkperf atm12:42
uvosxperf copywin* actually should be ok12:44
Wizzupyes that is also what I was thinking12:44
Wizzupbut gtkperf is running now12:44
uvosalso cpyplane and putimage12:44
Wizzupit has a scroll test12:44
uvosnot sure how its implemented tho12:44
uvosi would shy away from that one12:44
Wizzupfreemangordon: gtkperf https://dpaste.com/58WAC4Z7Q12:45
uvosbut yeah xperf has more relevant tests than i tought12:45
Wizzuphow about -comppixwin50012:45
uvosyeah12:46
Wizzupx11perf -comppixwin500 =        4000 trep @  10.2475 msec (    97.6/sec): Composite 500x500 from pixmap to window12:46
Wizzupwithout h-d12:46
Wizzupwith h-d running:12:48
Wizzup       4000 trep @  10.7185 msec (    93.3/sec): Composite 500x500 from pixmap to window12:48
Wizzupfreemangordon: ^^12:48
uvoshow dose x11perf -copypixwin50012:49
uvosdo12:49
uvosinterestingly on desktop (glamor) this perfroms the same as comp12:50
freemangordonlemme check12:54
freemangordonwhat is x11perf -rect500 ?12:56
freemangordon3600 reps @   1.4711 msec (   680.0/sec): Composite 500x500 from pixmap to window12:59
freemangordon 3600 reps @   1.4348 msec (   697.0/sec): Copy 500x500 from pixmap to window13:01
freemangordonbut, this is without sync13:02
Wizzupfreemangordon: -rect500 is       10000 trep @   2.9374 msec (   340.0/sec): 500x500 rectangle13:32
Wizzupwithout h-d13:32
Wizzupso whatever you have already seems faster13:34
Wizzup(by a lot)13:35
freemangordon20000 reps @   0.4609 msec (  2170.0/sec): 500x500 rectangle13:35
freemangordonyeah13:35
freemangordonand this is without pvr 2d accelleration13:35
Wizzupso the code you have now, it can also render 3d in x?13:36
Wizzupas in, h-d can work and stuff?)13:36
freemangordon3d is trough mesa as of now13:38
freemangordonon d4 and 5.15 there is some issue with 3d13:38
freemangordonhmm, why TS does not work?13:38
uvosyou built a kernel without touchscreen-buttons13:38
uvosi presume13:38
uvoswayland 3d works fine on d413:38
uvosbut yeah with chromeos mesa13:39
uvoson d4 has issues13:39
freemangordonchromeos mesa here too13:39
freemangordonyeah13:39
Wizzupfreemangordon: I guess you don't know for sure about n900 and you're testing on d4 for speed reasons?13:39
freemangordonyes13:39
Wizzupok13:39
freemangordonbut, I don;t see a reason for 3d to work ATM as I still have to implemnt the code that renders PRESENT bos :)13:40
uvosfreemangordon: if you have a kernel without ts-buttons13:40
uvosfreemangordon: you have to drop https://github.com/maemo-leste/leste-config/blob/master/leste-config-mapphone/lib/udev/rules.d/85-input-devices.rules.leste13:40
uvossince it makes libinput ignore the other ts driver13:40
freemangordonuvos: ok, thanks. I have to reboot the device after that, right?13:43
uvosudevadm --trigger13:43
uvosshould be enough13:43
freemangordonok13:43
uvosits  udevadm trigger13:43
freemangordonwait, I alredy have 85-input-devices.rules -> 85-input-devices.rules.leste13:45
uvosyou have to remove it13:45
freemangordonah13:45
uvos"you have to drop ...."13:45
freemangordonah, *drop* :D13:45
freemangordonI read that as 'drop there"13:45
uvosah ok13:45
freemangordonok, works now13:46
freemangordonwell, h/d is trough llvmpipe13:47
Wizzupbecause of the 3d problem?13:47
freemangordonmhm13:47
freemangordonWizzup: re n900 - so far I saw no isses13:57
freemangordonbut until I implement EGL rendering of bo, 3d will simply not be visible13:58
freemangordonunless through llvmpipe ofc13:58
freemangordoncool, rotation works :)13:58
Wizzupright @ n90014:00
freemangordonWizzup: https://pastebin.com/kMJjJ1CP15:13
freemangordon:)15:13
freemangordon10x improvement without HW acceleration is not that bad I would say15:14
bencohindeed :)15:19
uvosaslo means it will do atleast ok on n90015:24
freemangordonmhm15:25
uvossince n900 is about 1/5 the speed on threaded loads15:25
freemangordonyeah, but lets see how it will behave when we have both 2d and 3d, implementing ATM15:25
_inkyhey hey, will your gfx improvements affect pinephone?15:49
freemangordonthey should16:03
freemangordonbut we can;t be sure until we try it16:03
_inkyheh16:14
_inkyshould i update from -devel?16:14
lyubov /close16:54
uvos_inky: no its not something installable yet16:56
_inkyokay (:17:20
Wizzupfreemangordon: how will that improve pinephone? with glamor disabled you mean?17:41
freemangordonno, I mean I am not using pvr2d and still have 10x faster than omap driver we use currently17:42
freemangordonah17:42
freemangordonI think rendering in 3d text and such is stupid17:42
Wizzupright, but pinephone uses glamor with lima17:42
uvosrendering 3d text ans sutch is not supid on modern desktop hardware17:43
freemangordonso? it has 4 cores that I am sure can perform 2d ops faster17:43
uvosnot by any strech17:43
freemangordonon mobile17:43
uvosWizzup: it helps pp by avoiding bugy opengl on it17:43
freemangordonthis one too17:43
uvosso it gets slower but is useable17:43
Wizzupyeah ok17:43
freemangordonis it? I remember terrible rendering artifacts last time I tried it17:43
WizzupI think for lima artifacts and stability are more of a problem than scrolling perf17:44
freemangordonbut thing could have improved since then, yeah17:44
Wizzupand others *might* fix tha tt for us17:44
freemangordonoh, it is GL, not GLES?17:45
Wizzupfreemangordon: yeah mali driver was better than lima in terms of stability and perf, but eh17:45
Wizzupyes lima driver does both17:45
freemangordonok17:45
freemangordonbecause I aim es2 only17:45
uvosthats fine17:45
uvosits ogl thats broken17:45
freemangordonok17:45
freemangordongood17:45
uvos(according to others)17:45
uvosi dont have a pp ofc17:46
freemangordonso, we should see an improvement, because X renders directly on mmaped video memory17:46
freemangordoninstead of rendering to memory pixmap and then bliting17:46
uvosok17:47
uvosdepends on kernel bahvior17:47
uvosofc17:47
uvoshw wise the kernel should be able to just ajust the mmu to move the ram from cpu to gpu area and back17:47
freemangordonand for 3d/present, we (will) have a simple shader that just renders a texture17:47
uvosno idea if the kernel dose so in practice17:47
freemangordonit does17:47
uvosok17:47
uvosgreat17:47
freemangordonat least thta's what I think happens17:47
freemangordonfor SGX17:47
freemangordonbecause I see driver traces setting SGX mmu in chunks of a page17:48
freemangordoneven if we are hit by a perf penalty because of cache flushes and such, we still should be faster than copying17:48
freemangordonin theory (tm)17:49
uvosyeah ofc17:49
tmlindnice17:49
uvosthat shouldbe very performant17:49
freemangordonand we see it17:49
tmlindfreemangordon: any luck getting droid4 to update the display?17:49
freemangordon10x improvement for 2d17:49
freemangordontmlind: the issue is that SGX recovery gets triggered17:49
tmlindah17:50
freemangordonnot that display is not updated17:50
tmlindok17:50
freemangordonsee backscroll, with my (half-baked) xf86-video-modesetting-module-gbm we see ~10x improvement in 2d ops compared to omap driver17:51
uvosare you calling the drm display update thing17:51
uvosthere is an ioctl to update comannd mode displays17:52
freemangordonthis is modesetting with a glamor replacement which performs all 2d in SW (so far, I plan to implement 2d in SGX)17:52
uvosiirc17:52
freemangordonuvos: no, I guess modesetting does that for me17:52
freemangordonmind you, I am replacing glamor, not the whole ddx17:52
freemangordonglamors just renders on BOs provided by MS17:52
freemangordondrm interaction is out of scope17:53
freemangordonbut, obviously something updates the display, will record a video of gtkperf running when I get tired17:54
freemangordonthough my n90 won;t be able to capture it I guess (30fps)17:54
freemangordon*n90017:54
freemangordonhmm, is it possible that NEON core cannot read mmaped video memory?20:13
freemangordontmlind: ^^^?20:13
freemangordonhmm, no, it is not that20:17
Wizzupfreemangordon: debugging the d4 problem?20:34
freemangordonno, Xorg was segfaulting20:48
freemangordonbut I found the reason20:48
Wizzupok20:52
freemangordongtkperf on n900:21:01
freemangordonTotal time: 72.8721:01
Wizzupfaster than our current d4 path21:02
freemangordonmhm21:02
freemangordonglmark2 Score: 2121:08
freemangordonbut! this is with memcpy of 3d memory to 2d21:08
siceloMagic :-)21:16
Wizzupfreemangordon: so 3d render shows on screen now?21:20
freemangordonyes21:21
Wizzup:-o21:22
freemangordongoing to implement the fast (hopefully) path - GL render of Bo texture21:22
Wizzupcheck21:25
Wizzupwith the simple shader?21:25
freemangordonI hope so21:25
* Wizzup too21:25
Wizzupfreemangordon: unrelated but I am getting this:    string "Method "SendReceive" with signature "" on interface "com.nokia.modest" doesn't exist22:28
Wizzupoh22:31
WizzupI think I know what the problem is22:31
WizzupI think dns is fubar on my device22:32
Wizzupnote if the files in /etc/dnsmasq.d/00_leste_dns seem to exist22:33
Wizzupparazyd: ^^22:33
Wizzupuhhh dnsmasq   5377  0.0  0.2   8172  2076 ?        S    22:33   0:00 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d22:37
Wizzup/run/dnsmasq/resolv.conf is empty22:38
WizzupI think this happens because resolvconf is installed22:39
Wizzup(per the dnsmasq initscript)22:40
Wizzupyup, that's it...22:41
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/583 (Installing resolvconf breaks our dnsmasq setup)22:43
lelMerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/583 (Installing resolvconf breaks our dnsmasq setup)22:43
Wizzuppls fix22:43

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!