libera/#maemo-leste/ Tuesday, 2021-10-26

freemangordonuvos: are you sure modesetting uses double-buffering?07:41
freemangordonas I see nowhere in the code (and also in the traces of the calls to glamor replacement) a back-buffer to be created07:42
freemangordonand yes, reading through internet confirms that modesetting/glamor use only one front buffer07:46
freemangordon*only one buffer - front buffer07:46
freemangordonand they should prevent tearing "by using DRI page flipping", whatever this is supposed to mean07:47
freemangordonso, either this page flipping is broken on ms (which I doubt) ot it is broken in omapdrm07:48
freemangordon..or, ms expects draws to happen during VBLANK only, which may work on destop, but I don;t see how it can work in our case08:08
Wizzupfreemangordon: did you see the patches online that added 'tearfree' to modesetting (not for rotated displays)08:33
freemangordonno, but all around internet they say modestiing is tear-free08:34
freemangordonbu, let me check those08:34
Wizzupmodesetting is not tear free, also on my ryzen laptop08:36
WizzupI have to do this, which also hurts perf: xrandr --output eDP --set TearFree on08:36
Wizzupheh my laptop seems to use intel xorg module, not radeon or modesetting, will need to look into that...08:38
freemangordonso, basically we don't have double-buffering?08:38
freemangordonand without that I would say MS is useless08:39
freemangordonin our use-case that is08:39
freemangordonnot only id doesn't support double-buffer, but it supports SW rotation only08:40
freemangordons/id/it08:40
freemangordonhmm, is it possible I am getting this wrong and the actual issue to be in either clutter or hildon-desktop or in pvr drivers09:08
freemangordonbecause I don;t see how MS can repeat the last 3 frames given it uses only one FB09:09
freemangordonso it should be something in clutte09:09
freemangordon*clutter09:09
freemangordonor, glReadPixels is broken09:10
freemangordonok, I will have to trace mesa calls09:11
uvosfreemangordon: no i have no idea if ms has a back buffer10:30
uvosdident you assert that (maybe i missunderstood)10:30
uvossphone update: evolution support, external scripting, more modularisation etc10:40
uvosanyone know a good tool to explore evolution stores?10:40
uvosfor some reason on my device there are multiple address books and the right one is not the default10:41
uvosalso i have a empty store called system-address-book thats not even marked as an adressbook...10:41
uvosanyhow if you have the same problem you can point sphone to the right source: https://github.com/maemo-leste/sphone/blob/d117a99a16e4c9f943df1c240b9a46de81498421/config/sphone.ini#L6210:42
Wizzupuvos: maybe look at the syncevolution stuff11:02
Wizzupnot sure if it helps somehow11:02
uvosWizzup: i think the syncevolution ui is what broke my setup like this11:03
uvosWizzup: buy yeah we should fix it11:03
Wizzupwhat do you mean broke your setup11:03
uvosit added a bounch of stores11:03
uvosthat dont work11:03
uvosand made them default i think11:03
uvossince i tried to use it several times before setting up evolution by hand11:04
uvosand it crashes out when you do that before finishing11:04
Wizzupweird, I did not have problems with syncevo and it did seem to sync the right rhings11:04
uvosyou also setup the stores by hand11:05
Wizzupmaybe you need more osso-abook support11:05
uvosand then just used syncevo ui to sync11:05
uvososso-abook has exatcly the same problem on my device11:05
uvos(as it allso uses the default address book)11:05
uvos(as provided by evolution)11:06
Wizzupuvos: upgrading to latest sphone now :)11:48
Wizzupyeah so the contacts button doesn't do anything for me, but I don't think I tried to sync contacts yet11:54
WizzupI could actually sync my fremantle contacts to this leste d4 using syncevo11:54
uvosit should not, that button just pushes to a datapipe thats supposed to open the contact in an external application (or implement a window itself). i have a tiny module that opens gnome-contacts, but there is nothing else behind there atm11:55
uvosthe evolution contacts support is about displaying the right name etc11:56
uvoswhen a call comes in and sutch11:56
Wizzupaha11:56
Wizzupcheck11:56
uvosbasicly this is placeholder for abook11:57
uvoson maemo11:57
Wizzupok11:58
uvosupps12:00
uvosit built without contacts-evolution support on jenkins12:00
uvossec12:00
Wizzuprandom note: if we turn on keyboard leds, let's also turn on ts buttons leds12:01
Wizzup(for als purposes)12:01
siceloI think both you and I disabled that. Wasn't it that way before? :-)12:03
Wizzuphm, maybe yeah12:03
Wizzupor maybe before we had ts buttons12:03
Wizzupwhere it made less sense12:03
siceloAt least I found it distracting, and iirc I disabled it on my local install12:04
uvosWizzup: yeah basicly it works that way by default in mce12:04
Wizzupoh12:04
Wizzupheh12:04
uvosthere are some brigness values where the ts-buttons will be off but the kbd on12:05
uvosthats down to the fact that the ts-buttons are 1 bit12:05
uvosand the kbd is 8bit12:05
WizzupI think I managed to send myself a zero char sms via sphone by accidenet12:05
uvosso mce can dim the kbd12:05
Wizzupthen the window didn't really work anymore12:05
uvosbut has to choose on or off for tsbuttons12:06
Wizzupdoesn't really matter, just ran into it12:06
uvosWizzup: hmm ok12:06
Wizzupright @ 1bit12:06
Wizzupuvos: I did receive the sms hehe12:06
WizzupI regularly send myself smses to kick the modem for data connections12:06
uvosok yeah the old backend might have stopped you from sending whithout text12:06
uvosso you want it to stay? i think its maybe not so great for most users.12:07
Wizzupit's not so great, but I plan to use the non existent conversations stuff12:07
Wizzupso it was more like a 'do not bother fixing it for me'12:07
uvosanyhow im rebuilding sphone hopfully with evolution module being built too12:08
uvosHildon support enabled12:08
uvosProfiled support enabled12:08
uvosGStreamer support enabled12:08
uvosPulseaudio support enabled12:08
uvosEvolution address book support enabled12:09
uvoslooks like it worked now12:09
uvosok so sphone in repos should be ok now12:18
Wizzupwill update12:19
uvosi dident update the version number12:20
uvosso you have to reinstall12:20
WizzupI think it would be nice to give it the x-maemo-icon and stuff, then ham will also show it12:20
Wizzupow12:20
WizzupI think we auto bump the epoch no?12:20
uvosno idea12:20
uvosi do we?12:20
Wizzupyup12:20
uvosmhh12:20
uvosok12:21
Wizzupapt upgrade pulls it12:21
uvoswrt x-maemo-icon12:21
uvosits not in extras12:21
uvosso that wont work12:21
uvosalso surely the intention is to have it in the metapackage as soon as n900 stops crashing with it12:22
WizzupI think it should still work12:22
Wizzupfor update purposes12:22
Wizzupas in, I do not think only happens for -extras12:22
Wizzupas far as ham knows it is just another repo12:22
uvosi thought it only read from hildon-application-manager.list12:22
Wizzupnot sure...12:23
uvoswhich contains only deb https://maedevu.maemo.org/extras beowulf main contrib non-free12:23
Wizzupcontacts button still does not open anything but I might not have the evo ui installed12:29
uvosthats correct behavior as mentioned before12:29
uvosthere is no module that provides contactui in mainline sphone12:29
uvosatm12:29
uvosthere is also no sutch thing as evo ui:P12:30
Wizzupah check12:36
freemangordonuvos: well, I was *expecting* ms to have back buffer14:34
freemangordonbut, obviously it doesnt14:34
freemangordonso, those 'repeating frames' in the video are because of something else14:35
uvosyeah14:35
uvosbut it tearing is no supprise14:35
freemangordonactually h-d scrolling does not tear14:36
freemangordonon fremantle it does14:36
uvos(altho with cm-mode display you could avoid taring by only updating it when your done with the front buffer)14:36
freemangordonbut, it suffers from the same "frame repeat"14:36
uvoseffectively using the display as the front bufer14:36
uvoswhat freemantle?14:36
freemangordonno14:36
uvosok14:36
freemangordonon fremantle there is tearing14:36
uvosright14:36
freemangordonbut no "frame repeat"14:37
uvosright14:37
freemangordonon 1.17 there is no tearing14:37
freemangordonas far as I can see14:37
uvosyou should not expect tearing in compositing wm14:37
uvosif it vsyncs its gl buffers14:37
uvosanyhow14:37
uvosis there some other gles 2 compositing wm14:38
uvos?14:38
uvosto eleminate clutter/hildon having a bug14:38
uvos(tho i still mostly suspect the kernel)14:38
uvoslooks like kwin has gles support14:39
freemangordonmutter?14:39
uvosno idea14:40
freemangordonyep, it uses clutter14:41
freemangordonbut maybe it is no longer available14:42
freemangordonI wonder if it makes sense to RE the missing parts from pvr_dri14:43
uvoswell we would want something that _dosent_ use clutter14:43
Wizzupfreemangordon: could it be the flush behaviour you set to 2 somehow/14:43
freemangordonit will use clutter 1 anyways14:43
freemangordonWizzup: I tried with different settngs for that, makes no difference14:43
Wizzupok14:44
freemangordonactually this flush behavior tells PRV blobs what to do on glFlush()/glFinish()14:44
freemangordonby default they do nothing ;)14:44
uvosfreemangordon: so do twm or x with built in wm have issuse on gles surfaces created by clients14:44
uvos?14:45
freemangordonlemme try twm14:45
freemangordonoh, I have to do that on n900 :(14:45
freemangordonbtw, pvr-dri in blobs reports egl 1.5, chromeos 1.414:46
uvoswould make some sense if chromeos is based on older tree then ti blobs14:47
freemangordonmhm14:48
freemangordonfor sure it is14:48
freemangordonthere are differences in the code14:48
freemangordonthat's why I think I shall RE the missing stuff14:49
freemangordonthat way we will have working clmark on d414:49
freemangordon*glmark14:49
freemangordontwm:  unable to open fontset "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"14:51
freemangordon:(14:51
Wizzupcompton can make things compositing14:52
uvoson gles?14:53
Wizzupoh, yeah..14:53
uvosi dont think there is any modern gles 2 compositing wm besides kwin14:54
uvos(from googling around the last couple of min(14:54
freemangordonrunning es2gears on d4 with twm, hxorg hangs as soon as I try to move the window14:56
uvoshmm :(14:57
freemangordonhangs == uses 100% cpu and is not responding14:57
freemangordonlast frame in gdb is:14:58
freemangordon#3  0xb5bf0fbc in ?? () from /usr/lib/arm-linux-gnueabihf/libsrv_um.so.114:58
freemangordonlet me try on n90015:00
freemangordonsame happens with closed blobs, on both d4 and n90015:24
uvosweeee bugs15:27
uvosdose the calls stack involve deleating or creating surfaces by anny chance?15:27
freemangordonI doubt, but I can check waht is the last call in 'my' ddx15:32
freemangordonwell, in glamor replacement15:33
freemangordonok, when I use 'slow path' to copy PRESENT textures, Xorg does not hang15:41
freemangordonwith twm when moving es2gears that is15:44
tmlindi've seen few small gray squares not getting updated still, much smaller than earlier and rarer17:08
freemangordonuvos: after all, it is modesetting driver causing those repeating frames, after disabling PageFlip it looks fine18:11
freemangordonI have to understand what this option is supposed to do18:12
freemangordonalso, any hint how to fix font sizes?18:12
uvosfreemangordon: pageflip was added for vrr18:22
uvosfreemangordon: it changes the way x waits for vsync18:22
uvosi dont know how really18:22
uvoswrt font sizes18:22
uvosyou need to break the dpi setting again18:22
uvosx as a commandline option for dpi18:22
uvosor you can override the size of the display18:22
freemangordon96x96?18:23
uvosyes18:23
freemangordonok, thanks18:23
uvosesaiest way is to add DisplaySize to Section "Monitor" in xorg.conf18:24
uvosjust caluclate what size the display would be at 96dpi18:24
uvosdroid 4 would be 250 x 140mm18:25
freemangordonok18:27
uvosso page flip not working suggests something is wrong in omapdrm18:27
uvosbtw18:27
uvossince this is all about adding a new path that was added to drm at a later iirc18:28
uvos*later date18:29
freemangordonnot sure, because I am still to understand what exactly it tries to flip18:36
uvosok18:36
uvosif the "legacy" path works18:36
uvosi would ignore this for now and work on the other bugs18:36
uvosunless you belive it intersects ofc18:37
freemangordonit lowers the performance for fulscreen applications it seems18:38
freemangordonthough, I am not sure18:38
freemangordonbut yeah, I am goingt o ignore this for now18:38
freemangordonI have another low-hanging fruit first, in terms of performance - 16 bpp18:39
uvos16 bpp will likely never be viable18:39
uvosi know you like it18:39
freemangordonXorg starts and everything besides hildon-desktop works fine18:39
uvosbut i belive its a waste of time18:39
uvosyeah but lots of x applications just assume 32bit18:39
freemangordonnot in fremantle :p18:39
uvosand all they have as a fallback is converting 32bit to 16 to output the surface to x18:40
uvosso that absolutly kills perf18:40
freemangordonbut, we have FPS doubling for 3d18:40
freemangordonhave to cook, ttyl18:41
uvosttyl18:41
bencohfps doubling? what the heck18:41
uvosbencoh: well on ddk1.9 gears runs at 25fps18:41
bencohah, I see18:41
uvosfps doubling just means running ok :P18:41
bencohnevermind :)18:41
uvosyeah its on  ddk1.9 its 26fps with hildon running and 50 without and 28 on llvmpipe :P18:45
uvosalso dosent matter if you run gears or if you run something like neverball18:46
uvoseverything gets the same fps18:46
uvos(ie its not related to render complexity its just how fast the cpu can copy the buffer to display in sw)18:47
Wizzupfreemangordon: so if this is solved, the weird reverts, and the x11pers problems do not show in h-d, that's quite an achievement19:05
Wizzupx11perf19:05
freemangordonuvos: this is on d4?19:26
freemangordonWizzup: yeah, seems x11perf problems are solved when it runs in h-d19:27
freemangordonbut performance is low19:27
uvosfreemangordon: YES19:27
freemangordonoh, that's nasty19:28
freemangordonsomething has to be fixed on d4, as h-d doesn;t render19:28
Wizzupfreemangordon: how low?19:28
Wizzupoh19:29
uvosmaybe because you disabled xorgs vrr support? try with hdmi...19:29
freemangordonon N900:19:29
freemangordonx11perf -comppixwin500:19:29
freemangordon120 reps @  44.8331 msec (    22.3/sec): Composite 500x500 from pixmap to window19:29
freemangordongtkperf, n900:19:30
freemangordonTotal time: 185.4719:30
freemangordonthis is with every pixmap backed by a mmap-ed BO19:30
freemangordonand without any PVR 2D rendering19:31
Wizzupok19:32
WizzupI mean, it doesn't sound too bad, right?19:32
* Wizzup needs to find the old perf numbers19:32
freemangordonuvos: no matter what I do, h-d does not render on d419:32
freemangordonbut I suspect pvr_dri19:32
Wizzupis this a new problem?19:32
freemangordonno19:32
Wizzupok19:33
freemangordonI mean - not from today :)19:33
Wizzupright19:33
Wizzupyeah I was asking when/if you recalled it working on ddk 1.1719:33
Wizzupmeanwhile, I got to a place in sofia, and I need to find some food before things close19:33
freemangordonI don;t think it ever worked, because we didn;t have support for x11 in blobs19:34
Wizzupok19:34
freemangordonand my shim is still missing some functions needed by glmar/h-d to run19:34
freemangordonalso, I don;t think I should invest more time in shim, no?19:34
freemangordonI'd rather fix chromeos mesa19:35
Wizzupprobably makes sense yeah, but I don't know I know enough to give an informed opinion19:35
freemangordonwell, no matter how good my shim is, it will never be as good as native support in mesa19:36
Wizzupagreed19:36
freemangordonthe situation was desperate back then, that's why I started writing it19:38
Wizzupfreemangordon: does it make sense for me to look at if we can package this for n900?20:01
freemangordontoo early I guess20:02
freemangordonlets have something that works most of the time20:02
tmlindfreemangordon: +1 for fixing the chromeos mesa20:03
freemangordonyeah, I am on it20:04
freemangordonhmm, seems blobg provide GL support too20:04
freemangordon*blobs20:04
tmlindso i'm getting PVR:(Error): PVRDisplayBufferCreate: Failed to create display buffer (err=13) [0, ] but can't find where PVRDisplayBufferCreate is20:04
tmlindnot in mesa, not in blobs, not in kernel.. is that some generated name for PVRDisplayBufferCreate?20:05
freemangordonit should be in pvr_dri20:05
tmlindshould20:05
freemangordonsec, my d4 needs some time to boot, I'll verify in a minute20:06
tmlindah it is20:06
freemangordonno, it is not :)20:08
freemangordonat least not in the source code20:08
freemangordontmlind: PVRDRIBufferCreate is imported by pvr_dri20:08
freemangordonmaybe it is exported by libpvr_dri_support.so20:09
tmlindok20:11
freemangordonoh, pvr_dri in blobs has mutex per drawable, this one is missing in chomeos mesa20:57
freemangordonhmm, actually it seems chromeos mesa pvr to be newer than the one in the blobs21:39
uvosidk where it comes from21:40
uvos(well the google repo)21:40
uvosbut i mean what chome device21:40
uvosmaybe we can get the newer blobs somewhere to examine?21:40
uvosthey likely will be for the wrong core revision so we cant use them21:40
uvosbus still21:40
uvoslooks like modern (ish) chomeos devices with pvr are MTK devices21:52
uvosthat makes sense i dont think imtek has any customers left except mtk and sort of apple at least large scale21:53
uvoshttps://pcsupport.lenovo.com/de/en/products/laptops-and-netbooks/lenovo-chromebooks-series/lenovo-chromebook-c330/solutions/ht103653-lenovo-digital-download-recovery-service-ddrs-download-the-files-needed-to-create-a-lenovo-usb-recovery-key22:01
uvosugh22:01
uvos(loop0p3): couldn't mount as ext2 due to feature incompatibilities22:16
uvoslovely22:17
uvoswhats google doing22:17
uvosusr/lib/libpvr_dri_support.so.1.13.5824814: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[xxHash]=69767606493c2acc, stripped22:18
uvos:(22:18
uvosthats pvr blobs from chomeos 93.0.4577.10722:22
uvosfor lenovo Hana22:22
freemangordonhmm, seems older22:23
uvosyeah22:23
uvosand that version was released on 2021-08-3122:23
uvosaccording to wikipedia22:23
uvoshttps://en.wikipedia.org/wiki/Google_Chrome_version_history22:23
uvosso this must be what current chomeos source corrisponds to too22:23
freemangordonthe only major difference so far I see is mutexes protecting screen and drawable structures22:24
freemangordonwhich kinda makes sense22:24
uvosmaybe PVR GX dosent need those22:24
uvosfor some reason22:24
freemangordonno multithreading?22:24
uvosheh no22:25
freemangordon:)22:26
freemangordonwell, if it is sort of android :P22:26
uvosnot really22:27

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