libera/#maemo-leste/ Friday, 2021-12-10

uvosExecStart=/bin/sh -c 'echo never >  /sys/kernel/mm/transparent_hugepage/defrag'00:01
uvosheh i accutally do that on my laptop :P00:01
uvos(systemd serivce)00:01
WizzupI tried the sysctl and it didn't work00:03
Wizzupsetting it to 000:03
Wizzupdisabling the CONFIG_COMPATION now00:03
Wizzup(on top of 5.15)00:04
Wizzupif this works I'll be very happy :)00:04
Wizzupuvos: looks like that alone is not enough on 5.1500:18
uvoshmm00:19
WizzupI meant it idles better00:19
Wizzupbut it doesn't hit OFF mode00:19
Wizzupbut other things probably changed since v5.900:19
uvosdose it hit off on 5.9 with it removed?00:19
uvosthere must be a btter way to debug kernel timers00:19
Wizzupyou mean config right, not commit reverted?00:19
uvosecho never >  /sys/kernel/mm/transparent_hugepage/defrag00:20
uvosjust that00:20
uvoson your bisect end00:20
Wizzupbash: /sys/kernel/mm/transparent_hugepage/defrag: No such file or directory00:20
Wizzupuvos: looking at the commit, it always does the wakeup, no?00:20
uvosi dont think it should get there at all with defrag disabled00:22
* Wizzup going revert commit regardless00:22
uvosbut i dident read anything beyond that commit00:22
uvosmaybe also disable hugepages entirely00:22
uvosthose are mostly useless on n90000:22
uvoswhat are you gonna do? allocated a 64mb page on n900? :P00:23
Wizzupmhm00:26
Wizzupwell let me see if I reverted this commit correctly first00:26
Wizzupif it then works, then we can look at using config00:26
Wizzupit hits off only a bit with that commit reverted00:29
Wizzupso I guess next steps is to see what else breaks it00:29
uvoswee00:29
uvoslets best figure out how to trace kernel timers00:29
Wizzuproot@(none):/root# ./idle.sh00:29
WizzupST_SDRC,ST_OMAPCTRL00:29
WizzupOFF:1,RET:6200:29
Wizzupbetter than zero right00:29
uvossurely there is debug output with what timers are registered00:29
uvosand how often they fire00:29
Wizzuptmlind: might know, I definitely don't00:30
Wizzupiirc he suggested bisecting the problem00:30
uvosif linux cant provide that i suggest porting hildon to nt :P00:33
Wizzuplol00:34
WizzupI bet that alone might keep it awake or something00:34
uvosIm sure the thought keeps at least fmg awake.00:34
Wizzuplol00:36
WizzupI think there are probably more power regressions btw00:36
Wizzup5.15 idles at 0.019A vs 0.011A (yes, that is incl. the 0.004A of my serial)00:37
Wizzupuhh so 72mW vs 42mW00:37
Wizzupsome of that is off mode (I suspect 19mW00:37
Wizzup)00:37
Wizzupbut there's another 12mW that went somewhere00:37
bencoh:(00:42
Wizzuplet's hope it's just as bisectable00:43
Wizzupfirst trying v5.9.y with the commit reverted00:43
bencohalright, enabling /sys/kernel/debug/tracing/events/power/cpu_idle/enable is kinda stupid/useless00:45
Wizzupyeah so 5.9.y with the commit reverted and the config off looks mostly ok00:49
Wizzupwill try v5.9 for good measure (5.9.y doesn't idle the panel, but that's solved elsewhere...)00:50
Wizzupyeah plain v5.9 with the commit reverted idles for sure00:58
Wizzupuvos: ok yeah disabling the CONFIG_COMPACTION is enough on top of 5.901:06
Wizzupsame for v5.10, although the panel not idling the display makes it harder to read..01:20
Wizzuplooks like the other few mw might be drm related, but I think that's for another day01:22
Wizzupyup, that's panel/drm relatd01:24
WizzupSummary: 1.3 wakeups/second,  0.0 GPU ops/seconds, 0.0 VFS ops/sec and 0.3% CPU02:11
Wizzup:)02:11
enycWizzup: hrrm is that "powertop" showing wakeups/set, or other ways to notice that ?04:13
tmlindWizzup: nice find!07:32
sicelo🎉07:37
freemangordonnice!08:01
dsc_is there a way to detect leste is running on a droid4?10:07
Wizzupenyc: powertop10:36
Wizzupdsc_: thebquestion probably is why10:37
dsc_fair enough10:43
Wizzupdsc_: as in you can get the dpi from X10:53
Wizzupit might not give you the right dpi atm, but that is something we can fix without device specific hacks :P10:53
dsc_yeah nvm ;p10:54
Wizzuptmlind: my mail to ngupta got denied, by "outlook protection", let's hope the ml ones reach him ;)10:56
dsc_Wizzup: we'll have to start thinking about telepathy stuff soon10:58
Wizzupyes10:58
WizzupI hope that today I can bisect the modem breakage and the other pm problem10:58
Wizzupand apart from the audio not probing (probably easy fix) that means I could use the n900 for tp-idle10:58
Wizzupthere's also someone who wanted to help out with gnu-ring/jami and/or tox part of it10:59
uvosyou can not get dpi from x on leste11:01
uvoswe break it on purpose force setting 96dpi, otherwise x would report the correct dpi11:02
Wizzupwhy do we do that again?11:02
uvosbut gtk2 is extreamly broken then, because nokia just increased font and element size in the ui istead of scaling it properly11:02
Wizzupright11:03
dsc_uvos: so I query against el-v1.db via rtcom, filtered by "service_id: 3", which is `rtcom_el_get_service_id(el, "RTCOM_EL_SERVICE_SMS");`11:07
uvosright service 3 event type 1411:07
uvoser 1311:07
uvosyou have to query agains that service and the event type SMS11:07
dsc_regarding event_types, my database seems to always have `event_type: 11` when service_id is 311:08
uvosinteresting11:08
dsc_which is uhm11:08
dsc_RTCOM_EL_EVENTTYPE_SMS_MESSAGE11:08
uvoshuh thats wierd11:09
dsc_sqlite> select name from EventTypes where id=11;11:09
dsc_RTCOM_EL_EVENTTYPE_SMS_MESSAGE11:09
uvossms saves and querys as RTCOM_EL_EVENTTYPE_SMS_MESSAGE https://github.com/maemo-leste/sphone/blob/e5ad31827650099a3cd85ea9a2400cb76633dae9/src/modules/store-rtcom.c#L7411:09
uvosand i get id 13 in the database11:09
dsc_can you try `select name from EventTypes where id=14;`11:09
uvos14 is nothing11:10
uvos13 is RTCOM_EL_EVENTTYPE_SMS_MESSAGE11:10
dsc_ah k yep11:10
uvosas expected11:10
dsc_ok I know whats going on11:11
uvos11 is RTCOM_EL_EVENTTYPE_CHAT_LEAVE11:11
dsc_fault on my side probably11:11
uvosWizzup: can you give me os_idle_uc_audit_details.txt from  sleep 20; omapconf audit os_idle full_log on d4 5.15 with leste booted normaly11:15
Wizzupuvos: sure, wifi on ok?11:15
uvosyeah over ssh is fine11:15
uvoson wifi11:15
Wizzupwhat are you looking for btw?11:16
uvosmy device stopped ideling11:16
Wizzuphuh11:16
uvosyeah no idea11:16
Wizzupuvos: https://dpaste.com/ENSJAUWD511:23
uvosdiff: |     GFX                      | Running             | Gated          | FAIL        |11:25
uvoshmm ists sgx11:25
tmlindWizzup: yeah ok let's hope his email still works11:28
Wizzupmhm11:28
WizzupI'm going to see if I can quickly identify why 5.10.y doesn't idle at 0.007A but rather at 0.012A11:29
Wizzupit seems to be related to the panel being probed11:29
Wizzupas in, on v5.9 having panel probed doesn't cause the extra power hit11:30
Wizzupbut there were only two small panel changes, so I suspect something else perhaps11:30
dsc_uvos: when you have time kindly test latest `conversations`, it may have fixed the SMS thingy11:30
dsc_devel is updated11:31
uvosdsc_: works11:34
dsc_thanks!11:35
uvosbut it dosent pick up the contact names11:35
dsc_im reading `remote_uid` from table `Events`11:35
Wizzuptmlind: as in, it's not normal for the panel to use more power just when it's probed, right? or do I need to do additional work to idle it properly beyond setting backlight to 011:36
uvosright but sphone saves the number there11:36
uvossphone saves the contact name in local_name so that it dosent have to look up the contacts so often in eds (its slow)11:37
uvosbut i dont know if thats correct11:37
Wizzupthere is a table in rtcom with remote info11:37
Wizzupso that it doesn't need to go in the event11:37
dsc_the database I have *sometimes* saves the name into `remote_uid`: https://i.imgur.com/O8YwhdD.png11:38
dsc_suppose local_name has precedence11:38
uvosthe ones with names are just special numbers11:38
uvosor chat contacts that are unsernames11:38
uvosnot contact names11:38
uvossphone saves the remote user name or number in remote_uid11:39
uvos(ie what the backend needs to send a message to this person)11:39
dsc_kk11:39
uvosand the name the user has saved in contacts for this person as local_name11:39
uvosbut saving it in some other table might be better yeah11:40
uvoslooks like your freemantle database dosent sue it at all11:40
dsc_dont think there is another table for that11:40
dsc_local_name is fine11:40
dsc_ill fix it11:40
uvosno idea why they need selfhandle since the outgoing incoming prop also exists11:40
dsc_right11:40
Wizzupafaik the table 'remotes' to be checked here11:42
Wizzupthat is what the remote_uid is for?11:42
uvos[11:39] <uvos> sphone saves the remote user name or number in remote_uid11:43
uvos[11:39] <uvos> (ie what the backend needs to send a message to this person)11:43
uvosthats also what it looks to be for11:43
dsc_oh.11:43
uvosthe better question what the heck local_name is for if remotes table exists11:43
Wizzuplikely librtcom-el has functions to match remote uids11:43
Wizzuplocal_name is *yourself*11:44
Wizzup    local_uid TEXT, -- plugin local uid ('account' on a plugin/protocol)11:44
Wizzup    local_name TEXT, -- seems to own irc nickname, etc <SelfHandle> for telepathy-ring11:44
Wizzupwhy it is necessary is a good question11:45
Wizzuptmlind: ok it's probably some drm interaction, I'll have to check that later, not sure how to continue atm - v5.10 is broken without stable patches (and also those need at least one commit reverted to work, so bisect might be quite hard)11:46
dsc_the big question is, does the rtcomlib do a JOIN in order to resolve remote_uid's or not11:47
Wizzupuse the source luke :-p11:47
Wizzupbrb11:47
dsc_ok11:48
dsc_uvos: use the `Remote` table and set `remote_uid` accordingly :P11:49
dsc_`Remotes`*11:49
dsc_(if you arent yet)11:50
lelsanderfoobar closed an issue: https://github.com/maemo-leste/conversations/issues/2 (Ensure TextPlain)12:00
tmlindWizzup: yeah that's time consuming with extra patches carried for bisect12:01
uvosdsc_: wait no12:04
uvosdsc_: its not right12:04
uvosdsc_: now it dosent show commtest threads12:04
uvosthose are saved as RTCOM_EL_SERVICE_CHAT RTCOM_EL_EVENTTYPE_CHAT_MESSAGE12:05
dsc_thats right, I'm only filtering for SMS currently12:05
uvosok12:05
dsc_I need to make a navigation bar where you can specify/filter on message types12:05
uvosok12:05
uvosgenerally id also like a way to see what backend a thread is on, but im sure you have it planned12:06
dsc_right12:06
dsc_ill most likely change the chat window title for that `Conversations (SMS)`12:07
dsc_`Conversations (IRC)`12:07
dsc_suggestions welcome though :P12:08
Wizzupdsc_: re: backends, we'll get to that13:33
WizzupI have some ideas about that too :)13:33
Wizzuptmlind: maybe I can rebase v5.10 and remove the other regressions (or insert the fixes right next to the offending commits) and bisect that rebased branch13:40
Wizzupuvos: btw when/if you have an idea about glamor and gles let me know and I'll try to build xorg-server on the pp13:51
Wizzupif we can alleviate some of the pains it's likely quite worth it13:51
Wizzupfreemangordon: also if you recall what patches were needed for newer X / how you built it, please lmk13:51
Wizzupuvos: btw got a droid razr and droid razr maxx in post (shipped with this droid3)13:55
Wizzupnot sure if they still work13:56
freemangordonWizzup: for sure I disabled XWayland14:09
Wizzupbut that would just be a configure, so you build it on your own device I guess, not with dpkg-buildpackage ?14:12
tmlindWizzup: you can carry extra commits with git bisect, forgot the option for that14:18
Wizzuptmlind: ok14:20
tmlindWizzup: see git bisect --help for hot-fix14:23
tmlindthere's a sample script for bisecting with a hot-fix, i'm pretty sure there was some git specific command earlier for that, but i guess it's gone14:24
Wizzupok14:26
Wizzupsomeone on the internet suggests this:  git cherry-pick --no-commit hot-fix14:28
uvosWizzup: what version of xt91x exactly?14:32
freemangordonWizzup: I used debian packaging of 'our' xserver14:33
Wizzupfreemangordon: ok, any new xproto required?14:33
freemangordonalso, some newer xorg-protocols or somesich14:33
freemangordonyes14:33
Wizzupuvos: uh14:33
Wizzupuvos: where do you want me to check14:34
freemangordonyes, newer xproto14:34
freemangordonactually the latest one14:34
Wizzuptmlind: going for this:14:34
Wizzupgit merge-base --is-ancestor 21b2cec61c04bd175f0860d9411a472d5a0e7ba1 HEAD && git cherry-pick f1e1be898042aff9be3e17c6c1e77513b52e4c4d --no-commit14:34
Wizzupgit merge-base --is-ancestor fb2c599f056640d289b2147fbe6d9eaee689f1b2 HEAD && git cherry-pick 3992aa31bffa73683089d86b5fad3315e3c17fcd --no-commit14:34
freemangordonoctober 2021 or something14:34
uvosWizzup: in android is there is in settings but on all other devices its written on it somewhere too14:34
uvosi think xt910 just has it written on the back14:35
Wizzupok I haven't booted them just yet14:35
uvosjust flip one over :P14:36
Wizzupxt912 and xt91214:37
Wizzupbut one is maxx14:37
Wizzup(yes same numbers)14:37
uvosthey are the same yeah14:37
uvosits the same pcb14:37
uvoswith just a different battery14:37
uvosrip14:37
Wizzupboth non removable :D14:37
uvosyeah14:37
uvosthats the only variant with locked bootloader14:37
WizzupI think once we've resolved all these n900 pm regressions we need to seriously considering setting up automated testing w/ power monitoring14:38
uvosWizzup: so i seam to have lost the gles forcing patch, but its just forcing all context creation above here https://github.com/maemo-leste-upstream-forks/xorg-server/blob/maemo/ascii/glamor/glamor_egl.c14:43
Wizzupso just define GLAMOR_GLES2 ?14:44
uvosno14:45
uvossry14:45
uvosi linked that wrong14:45
uvosbecause the code is different in older xserver14:45
uvossec14:45
uvoshttps://gitlab.freedesktop.org/xorg/xserver/-/blob/master/glamor/glamor_egl.c#L102114:45
uvosjust make everything above that fail14:45
uvosthat creates a context14:45
uvos(ie comment it out)14:45
uvosie comment from https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/glamor/glamor_egl.c#L98014:46
uvosto https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/glamor/glamor_egl.c#L103514:47
uvosshould force gles14:47
uvosalternative approche to just test if gles is better is just to rm libgl.so14:47
Wizzupok14:48
uvosalso note gles glamor has had quite a few bug fixes14:48
uvosthat are not in our old version14:48
Wizzupyeah we probably want new X14:48
uvosi dimly remember that gles on radon also only worked on latest master14:50
uvoswith some additional prs applied14:50
uvosthis one at least https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/40114:51
uvosi think14:51
Wizzupif someone tells me how to build xproto stuff I can do it in my lxc thing14:51
Wizzupoh shit that's not even merged14:51
uvosyeah and it ainchent14:52
uvosand clearly correct14:52
uvosi dont get these people14:52
Wizzupwell I get ignored by them so I'm not even going to bother14:52
uvosright14:53
uvoswe might want to add an option to force gles in xorg.conf14:53
uvosbut yeah they proububly will ignore it14:53
freemangordonWizzup: could we discuss xorg tomorrow, I'll provide you glamor patches that are needed, for d4 at least14:54
freemangordonI don;t have time now14:54
uvosim pretty confident that it worked with master and just that patch on mesa14:54
uvoson llvm and on radeonsi14:54
Wizzupyes, tomorrow is fine although I might be afk some of the time then14:54
freemangordonme too, the point was that I cannot do it *now* :)14:56
freemangordonuvos: no reason to not have the patches needed for SGX, agree?14:57
uvossure but he wants to test lima specificly14:57
uvosthe glfinish patches for sgx for instance are just sgx being buggy probuly for instance14:58
uvosand just cause it to be slower14:58
Wizzupuvos: I renamed libGL.so.something and I am not sure if that was a good idea :P15:00
Wizzuplet's do that later15:01
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/589 (Try new xorg server (with patches) and gles-glamor on pinephone/lima)15:03
freemangordonuvos: I agree about glFinish() patch, but others are different15:10
Wizzupfreemangordon: maybe you can comment on the above issue tomorrow15:15
Wizzuptmlind: hm, my testing with the two commits I mentioned earlier reverted shows fee5be18524f961de653fe6103f927c84ebbfd38 as the first bad commit, but I am not sure how to interpret that since it's a merge17:05
Wizzupsince it seems to relate to s390 fixes mostly?17:05
WizzupI suppose that could happen if the behaviour was racy or something17:11
uvoshmm17:13
uvosthats a wierd commit17:14
uvoseven if racy that dosent make any sense17:14
Wizzupright17:14
uvoswhats this for?17:15
uvosthe modem?17:15
Wizzupno, this is the extra power usage from v5.9 to v51017:15
Wizzupwhen panel driver is loaded17:15
Wizzupis could just relate to the async probing somehow perhaps, but I have that reverted17:15
Wizzupfrom my earlier testing v5.9 idles fine at 0.007A whereas v5.10 idles at 0.012A or so17:16
Wizzup(both are in off)17:16
Wizzuprmmod on the panel module makes the problem go away on v5.1017:16
uvoshttps://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit/?h=s390-5.10-6&id=a2bd4097b3ec242f4de4924db463a9c94530e03a17:18
uvoshttps://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit/?h=s390-5.10-617:18
uvosthe commits on that merge17:19
uvosnone of these make sense17:19
Wizzupyeah17:19
WizzupI guess the problem is I probably made a good/bad mistake somewhere or something, and it's just inherently racy perhaps17:20
Wizzupit's definitely real though17:20
uvosyeah17:20
uvosone thing tho17:21
uvosthe pannel17:21
uvosits stopped working at some point17:21
uvosthere was a initalization race17:21
uvosi think this was around this time17:21
Wizzupyes, sre fixed that I think in this serise17:21
Wizzupthat's only one of the two commits that touch the panel17:21
Wizzupbut surely even if the panel now worked, it shouldn't use 0.005A more just because it's enabled (not on or anythign)17:22
Wizzupalso at least in v5.9 I can turn off the panel without problems by loading the module, but yeah, maybe it's a panel pm thing or something...17:22
uvosthe solution to the race was to reset the pannel again right?17:22
Wizzupthat's what the commit said yeah17:22
uvoswell the race might not be fully solved and the pannel ends up in a different hw state17:22
uvosok but reseting the pannel should be quite sage17:23
uvos*safe17:23
Wizzupsee 7c4bada12d320d8648ba3ede6f9b6f9e10f1126a17:23
Wizzupwell that was a waste of then, I'm no closer to a solution :)17:24
Wizzupuvos: selectively reverting 7c4bada12d320d8648ba3ede6f9b6f9e10f1126a does seem to suggest it idles better without...17:37
uvosand keeping 7c4bada12d320d8648ba3ede6f9b6f9e10f1126a and cyceling the pannel on and off17:38
uvos?17:38
Wizzuphow would I do that?17:41
uvosdpms?17:41
Wizzupuh I don't have basically any /dev nodes17:41
Wizzuplet alone X or anythign else17:41
uvoswe are gonna need dev nodes :P17:42
uvosyou can use my program .. but it dident work17:42
uvosacutally17:42
uvosthis might be related17:42
WizzupI think I might give up on this one in a bit for now17:42
uvossince dpms fails in my dpms off program17:42
uvosthat suggests something is wrong with it17:42
uvosthe pannel driver that is17:43
uvosok yeah giving up is also an option17:43
uvosits "just" 15mW17:44
WizzupI meant for now mostly17:44
WizzupI don't know how to debug this properly, I'll try a few more things: going to 5.15 and remove panel driver and see how that acts17:44
Wizzupand also go back to v5.9 once more and just confirm that indeed it's more stable / better pm17:44
Wizzupmaybe sre can give it a look if it's clear the panel module probing has an effect17:44
Wizzupit's also possible that the panel drivers waits for drm and some other interaction for it to fully idle or something17:47
uvosi dont see why it should17:47
uvosexcept as a bug17:47
uvosbut sure17:47
Wizzupyeah, what I mean is that I am testing in one specific way17:47
uvoscould be hw bug that causes it to not idle untill the first frame even17:47
uvosor something like that17:47
Wizzupmhm17:47
Wizzupwhatever it is, it's not present in v5.917:47
Wizzupbut if that's because it never actually resets, yeah...17:48
Wizzupas in my test doesn't involve *using* the panel17:48
WizzupI only probe the module to lower power usage for my tests (turn off screen, basically)17:48
WizzupI think it might be best to send a mail about this so I don't forget but not investigate further - on 5.15 with my reverts/additions at least off mode it hit sometimes with the panel not probed, but there seems to be another power regression mostly preventing off mode since v5.10 and 5.1517:54
Wizzuphey with both panel commits from v5.10 reverted it does go back to lower power20:03
Wizzupok...20:03
Wizzupso it was 7c4bada12d320d8648ba3ede6f9b6f9e10f1126a20:12
Wizzupif I can figure out what makes plain v5.11 not boot (it says it cannot execute init=/bin/bash) then I can could hopefully trace the last off mode problem20:14
sicelo5.11 used to boot for me, and 5.1220:17
Wizzupplain v5.11?20:19
Wizzupas in 'git checkout v5.11' ?20:19
Wizzup5.11.y, v5.11 with stable patches boots form e20:19
Wizzupbut that is useless for bisect since the first thing the bisect will do ignore all the stable patches20:20
Wizzupso I need to find the specific commits in 5.11.y and apply them at every bisect step if the offending commit is present during the bisect20:20
Wizzupwhich is *hands in hair*20:20
siceloI see. Well it's been a while, so I am no longer too sure which particular 5.11/.12 I was booting20:21
Wizzupit's ok, I think I might have found it20:28
WizzupI figured I might as well continue while I still the energy and will to work on this stuff20:28
Wizzupah.20:46
uvos7c4bada12d320d8648ba3ede6f9b6f9e10f1126a is unlikely to be the real issue here20:46
uvosits just that without it the pannel is in some other state20:47
uvosthat it happens to idle in20:47
uvosand after 7c4bada12d320d8648ba3ede6f9b6f9e10f1126a its in power on reset20:47
Wizzupuvos: could be, but I hope that sre can take a look20:47
Wizzupbtw v5.11 needs the mmc swap commit (1baa29c660b8b75c1cd06e743d9faca7ee323b1f)20:48
siceloYeah @mmc swap21:15
Wizzuptmlind:23:49
Wizzup$ git bisect bad23:49
Wizzupa82820fcd079e38309403f595f005a8cc318a13c is the first bad commit23:49
Wizzupcommit a82820fcd079e38309403f595f005a8cc318a13c23:49
WizzupAuthor: Adam Ford <aford173@gmail.com>23:49
WizzupDate:   Fri Sep 11 07:31:57 2020 -050023:49
WizzupARM: omap2plus_defconfig: Enable OMAP3_THERMAL23:49
Wizzupwill email23:49

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