libera/#maemo-leste/ Wednesday, 2022-09-28

tmlindWizzup: thanks for the report, i'll be posting some rfc 8250_omap fixes today and might have a fix for that one too now, still have not seen it here somehow05:40
tmlindseems similar to the one reported by freemangordon a few days ago05:41
tmlindthat driver clearly has other serious issues that have gone unnoticed..05:41
freemangordonWizzup: ugh:08:31
freemangordonSep 27 22:28:50 localhost icd2 0.99[3483]: calling module 'libicd_network_wpasupplicant.so' link_up08:31
freemangordonSep 27 22:28:50 localhost icd2 0.99[3483]: libicd-network-wpasupplicant: wlan_bring_up: A1_23EC08:31
freemangordonSep 27 22:28:50 localhost icd2 0.99[3483]: libicd-network-wpasupplicant: Got network: (null), (null)08:31
freemangordonSep 27 22:28:50 localhost icd2 0.99[4388]: icd2 version 0.99 starting08:31
freemangordonWizzup: I think it is wrong to assume that network_id == iap_id without checking for  ICD_NW_ATTR_IAPNAME here: https://github.com/maemo-leste/libicd-network-wpasupplicant/blob/master/src/wlan.c#L26208:59
freemangordonhmm, maybe there is another issue09:33
Wizzupfreemangordon: right11:08
Wizzuptmlind: ok, ty11:08
freemangordontmlind: oh, those fixes really look as what we need14:32
freemangordonwill test as soon as I have some spare time14:32
tmlindfreemangordon: ok thanks, the first one hopefully fixes what you're seeing15:15
uvostmlind: Wizzup: freemangordon: applied and building on ci @uart patches15:16
tmlinduvos: do you have it reproducable too?15:17
uvosi can repoduce it15:17
uvossometimes15:17
uvosits not reliable15:17
uvosim not sure what makes the difference15:17
tmlindhmm and are the messages appearing only in /var/log/messages on next reboot?15:17
freemangordonI see it every time I issue sudo reboot/sudo poweroff from ssh session15:17
tmlindor /var/log/syslog?15:17
uvosalso console15:17
tmlindweird15:18
tmlindno luck seeing it here with poweroff from ssh15:18
freemangordonrunning leste?15:18
tmlindnope, not seeing why that would make a difference though15:19
uvosi clearly makes some kind of difference15:19
freemangordonyes, it does15:19
uvosthe debian droid never sees it either15:19
tmlindweird15:19
freemangordonmaybe timing issue15:19
tmlindwell let's hope the patch fixes it..15:20
freemangordonuvos: does it happen if you issue sudo reboot from ssh session?15:21
freemangordonhere it is 100% reproducible15:21
tmlindfreemangordon: and you see it on the serial console as it happens, or on next boot in logs?15:21
uvosfreemangordon: not allways15:21
freemangordonI see it on ssh console15:21
freemangordonI have no serial here15:22
freemangordonserial console that is15:22
uvostmlind: enableing serial makes it go away15:22
tmlindah ok15:22
uvostmlind: so dose enableing more traceing features in kconfig15:22
tmlindheh15:22
uvosnot sure exactly which but my full debug options kernel dosent show it15:22
tmlindok15:22
tmlindso i've seen flakey reboot occasionally where the device and does not reboot, maybe that's related as i don't think i've seen that with the pending 8250 fixes15:24
uvosthats pretty mutch this15:24
tmlindanybody else seen that one?15:24
uvoswhen it happens the getty hangs15:24
uvosand shutdown hangs15:24
tmlindok, and reboot hangs too?15:24
uvosyes same thing15:24
tmlindok fingers crossed then15:25
freemangordonuvos: you can't do 5.18.19.2-1 IIUC16:23
freemangordonwhat you should do is 5.18.19-2 and force-push 5.18.19 tag16:26
freemangordonWizzup: correct? ^^^16:26
freemangordonuvos: do you want me to release?16:29
uvosfreemangordon: i think it should work16:30
uvosi just tagged it wrong sec16:30
freemangordonok16:31
uvosyeah typo16:31
freemangordonwait a bit16:31
freemangordonI want to push battery low fix16:31
freemangordonok?16:31
buZzomg yes please16:32
uvosfreemangordon: sure16:32
uvosbuZz: it wont solve your issue16:32
freemangordonok, will let you know when I am ready16:32
buZzyesterday i pulled d4 from charger with 'fully charged' displayed, enabled wifi, started chromium, before page was loaded 'Battery empty at xxxxmV'16:32
buZzand white led and powerdown \o16:32
freemangordonbuZz: yes, it will not fix your issue16:32
buZzaw, sad16:32
uvosbuZz: that sounds like a bad battery16:32
freemangordonyour issue is bad battery16:32
buZz¯\_(ツ)_/¯16:33
buZzit works fine if  i make it ignore the 'battery empty'16:33
freemangordonmaybe try to reset the calibration16:33
uvoscallibration has nothing to do with it16:34
buZzcalibration wont change resistance16:34
uvositbuZz: maybe, but your symptoms suggests the battery spikeing down to 3.35v while at 4 ish volts16:34
uvosthats bad16:34
uvosthat means its spikeing down below 2.8V when your battery is lower16:34
uvosthe omap/dram start missbehaveing at that voltage16:35
buZz¯\_(ツ)_/¯16:37
buZzi'll fiddle around, maybe just a moving average over battery voltage16:37
freemangordonuvos: pushed https://github.com/maemo-leste/droid4-linux/commit/d67cc2eba98cc3dca4739f9775303e46b1401870, please pull and tag as appropriate16:41
buZz'once every 30 seconds' might -totally- fix my issue :P16:44
uvosno16:44
uvosthis isent whats powering off the device in your case16:44
buZzits what is reporting the voltage16:44
uvosupower polls voltage16:45
freemangordonlets see16:45
buZzthen why is cpcap doing this at all?16:45
uvosif its a whilte led during shutdown16:45
uvosit was not the kernel16:45
buZzif we arent using the interrupt, wouldnt it be better to not create it?16:45
uvosits complicated16:45
freemangordonuvos: actually it might help16:45
buZzthats why i'm asking to clarify it ;)16:46
uvosfreemangordon: how so?16:46
freemangordonas we may have the first 'low' irq at relatively ok voltage16:46
uvosthat dosent matter16:46
uvosits not the kernel shutting down buzz device16:46
uvosits mce16:46
uvosand thats based on upower polling voltage_Now16:46
uvostotaly unreladed to the machinery here16:46
freemangordonyes, but it shits down on 'low' event and critical voltage16:46
buZzwhere does the voltage come from? not cpcap?16:46
freemangordon*shuts16:46
uvossure but if its spikeing below the kernel thresh of 3.1 or what was it v16:47
uvosit will spike below mces of 3.35 even more16:47
buZz3.5v16:47
uvos3.3516:47
buZzwhich is quite high imho16:47
freemangordonbuZz: it is the same here16:47
freemangordonit is simply that those batteries are amost dead16:48
uvoshttps://github.com/maemo-leste/leste-config/blob/25160ce6596a88f790129e4419fcc280adec22aa/leste-config-droid4/etc/mce/mce.ini.d/70-droid4.ini.leste#L4016:48
uvos3.35v16:48
buZz'cpcap_battery cpcap_battery.0: Battery low at 3461mV!16:48
uvoscpcap fires the irq at 3.3v16:48
uvosthe kernel then mesures the voltage16:49
uvosthe 3.46 comes from that messurement16:49
buZzbut it -always- reports the voltage as 'low' ?16:49
freemangordonit was triggered because a spike16:49
uvosbeacuse your battery is dead16:49
freemangordon:nod:16:49
buZzeven without signalling with IRQ that its low?16:49
uvosas in its internal resistance is really high16:49
buZzwhats the logic in that16:49
buZz3.46V isnt low16:49
freemangordonbuZz: wait16:49
freemangordonthere is a period between irq being triggered and voltage measured16:50
freemangordonit is triggered @ < 3.316:50
buZzah, and it -always- outputs 'cpcap_battery cpcap_battery.0: Battery low at 3461mV!' -regardless- if its low or not?16:50
freemangordonbut this is a spike caused by a temporal high load16:50
freemangordonit *was*16:50
uvosbattery low here means that the low battery irq fired16:50
buZzah :)16:50
buZzuvos: maybe put that in the text then? :D16:51
uvoscomplain to tmlind16:51
uvosits his text :P16:51
freemangordonheh :)16:51
buZzhe's the only person with a texteditor eh16:51
freemangordonyeah, this is misleading16:51
freemangordonbuZz: feel free to send a patch16:51
freemangordonlike "batter low irq triggered, current voltage xxxx"16:52
freemangordonor somesuch16:52
buZzwhere does the IRQ originate?16:52
freemangordoncpcap16:52
buZzso 'triggering low battery IRQ, voltage i see is xxxx' ?16:52
freemangordonno, it is triggering the irq16:52
freemangordonand irq handler measures the voltage16:53
buZzahh16:53
freemangordonbut it takes time for the handler to be called16:53
buZzits only triggering to -itself-16:53
buZzi wonder if IRQ would even be the best method for that16:53
freemangordonand by the time of the measurement, the voltage is already different to the one that caused the irq to be triggered16:53
freemangordonI can't explain it any better than that16:53
buZzi follow16:54
freemangordonuvos: it is still missing the tag17:04
uvosfreemangordon: sigh ok17:05
uvosthe tag its looking for is def there17:09
freemangordonit is not17:09
freemangordonI just pulled and there is no such tag17:09
uvosgit clone --depth 1 --branch maemo-kernel-5.18.19.2 git@github.com:maemo-leste/droid4-linux.git17:09
uvosworks here17:09
freemangordonyou should do "git push --tags"17:09
freemangordonnot, it searches for tag, not branch17:10
uvosi cant do that, to many tags17:10
uvosgit push maemo tag maemo-kernel-5.18.19.217:10
uvosshould have done the trick17:10
uvos--branch takes tags here17:10
uvosi know thats counter intuative17:10
freemangordonno idea, lemme pull, to see if it has appeared17:11
freemangordonok, now it appeared17:11
uvosi dident change anything17:11
uvosor push17:11
uvosso wierd17:11
uvosill just kick it again and see17:11
freemangordonI have no idea too17:11
freemangordonok17:11
freemangordonmaybe github was too slow, dunno17:12
freemangordonyay, it seems the issue is fixed :D17:19
freemangordonand device reboots/powers down way faster17:22
tmlindfreemangordon: ok maybe reply to the list with a tested-by then?17:26
freemangordonsure17:27
freemangordonI want to have it running for a while17:27
tmlindyup17:50
tmlindthanks17:50
uvosfreemangordon: github must have been to slow then17:57
uvoswierd17:57
freemangordonyeah17:58
freemangordontmlind: how to check if serial idles correctly?18:27
freemangordonas I think I see increased idle current18:27
uvosomapconf18:30
freemangordonI guess I have to build that,right?18:32
uvosi think we put it into the repos18:32
uvosnot sure tho18:32
uvosyou can also read the register by hand ofc18:32
freemangordonI'll just build the tool18:33
uvosi dont know what it is of the top of my head18:33
uvosif we dont have a omapconf package18:34
uvoswe should18:34
freemangordonwe don;t18:34
Wizzupuvos: yeah I can make a pkg, but let's also have doc for it18:36
uvosWizzup: its fairly well documented by its help18:38
uvosnot sure what you want18:38
uvosfor details it quickly becomes "read the register manual"18:38
uvosas its a tool that shows you registers18:38
freemangordonok, I compiled it, now what do I want from it?18:39
uvosomapconf audio os_idle --log-all18:39
uvosor so18:39
uvosaproximate command18:39
uvoscheck help18:39
freemangordonI checked but there are too many options18:39
uvoss/audio/audit18:39
uvosmy d4 is empty sorry18:39
uvosits something very close to that18:40
uvosalso do sleep 20; omapconf .....18:41
uvosso that its idle when it fires18:41
Wizzupuvos: for our purposes maybe18:42
uvosits "omapconf audit os_idle full_log"18:44
freemangordonyep18:46
freemangordonI have full og but not sure how to read that18:46
freemangordonall I can see is that ABE clocks are running but they should be stopped18:47
freemangordonand I see abe_cm:clk:0030:0: failed to disable in dmesg18:49
freemangordonanyway, have to run, ttyl18:50
tmlindok abe is mostly for audio etc, ttty18:50
tmlindttyl18:50
freemangordontmlind: do you want the log?18:50
freemangordontmlind: https://pastebin.com/65PkMSVp18:51
uvosthe abe issue19:05
uvoswe have allways had19:05
uvosso thats not a regression19:05
uvosotherwise log looks like your system is ideling ok19:05
tmlindyeah it looks pretty good19:07
Wizzupret is also increasing for me19:29
freemangordon60 mA  @ idle, is that ok?21:10
freemangordoniirc it was 4021:10
buZzquite sure 60mA @ idle is lower than many modern phones21:12
buZzi was seeing 50-60 with screen off, gprs connected, my modified mosh open21:12
freemangordonPOWER_SUPPLY_CURRENT_AVG=3245821:19
freemangordonoh, ok21:19
freemangordonuvos: do we know the cause for that abe clock21:21
freemangordonissue?21:21
buZz32! nice21:22
buZzany idea how i should get rid of > Unknown media type in type 'font/ttf'21:24
buZzshouldnt that mime type be defined by shared-mime-info ?21:24
* buZz tried dpkg-reconfigure shared-mime-info21:30
buZztries*21:31
freemangordonbuZz: this is hildon thing21:38
freemangordonbuZz: https://github.com/maemo-leste/libhildonmime/blob/master/libhildonmime/update-category-database.c#L17821:39
buZzbut still, font/ttf shouldnt be a weird mime-type for apt, should it?21:39
freemangordonhttps://github.com/maemo-leste/libhildonmime/blob/master/libhildonmime/update-category-database.c#L4121:39
freemangordonI guess adding "font" there will fix it21:40
freemangordonbut still, this is just a warning anyways21:40
buZzyeah i know, just annoying21:40
buZzshall i PR 'font' into that?21:40
freemangordonyep21:40
freemangordonif it fixes the issue21:40
buZzhmmm, is the src package of this in leste? then i could easily do it on my own system21:41
freemangordondid you look ath the link ^^^21:41
buZzyes21:41
freemangordonthis is libhildinmome package21:41
freemangordonand yes, this is in leste21:42
buZzi'll check myself then :P21:42
buZzi ment the source package ;)21:42
freemangordonyes, it is21:42
buZznot all leste packages (that we have source of) have source in leste21:42
freemangordonhow's that?21:42
freemangordonwtym 'leste package'21:42
buZzlike the kernel for instance21:42
freemangordonsure we have source21:43
buZzwe -have- it , but 'apt-get source linux-image-omap' doesnt grab it21:43
freemangordonweird]21:43
freemangordonanyway, ttyl21:43
buZz\o21:44
buZzlibhildonmime -does- have a src package , nice21:46
freemangordonbuZz: just clone the git repo21:46
freemangordonit is exactly the same source21:46
freemangordonbut you'll be able to do PR21:46
buZzright, but installing it is annoying from source21:46
buZzi'll just try editting this source, building a pkg for my phone, and see if it removes the warnings21:47
buZzand -then- do a PR if it does ;)21:47
freemangordonbuZz: cloning from git is 100% identical to source package in terms of building21:49
freemangordonbut ok, up to you21:49
buZzfreemangordon: sure, but a -mess- to install imho , apt-get source, edit, build, install updated pkg, makes it just superconvenient :)21:50
uvosfreemangordon: no i never investigated it22:15
uvosfreemangordon: i have no idea22:15
uvosd4 should get around 30 ish mA unter load22:16
uvosor around 100mW22:16
uvos*under idle ofc22:16
uvosit its more, something regessed22:16
uvosbut its not visible in omapconf22:17
uvos(could be more wakeups/s without idle being outright broken)22:17
buZzsadly, that warning is not fixed by just adding "font" on https://github.com/maemo-leste/libhildonmime/blob/master/libhildonmime/update-category-database.c#L41   (tested with dpkg-reconfigure hildon-update-category-database)23:08
buZzoh maybe i should do the mime one first23:08
buZzoh, no that actually is the mime one23:08
buZzoh, thats from a seperate package! lol23:09
freemangordonso, does https://github.com/maemo-leste/libhildonmime/pull/1/commits/995726e24394f2211c7c03485666d7e5b8be7b46 fix it or not?23:23
uvosfreemangordon: tmlind: indeed the new kernel has higher power consumption23:28
uvoslooks like ~30mW23:28
freemangordonuvos: I am getting POWER_SUPPLY_CURRENT_AVG=3245823:29
freemangordonwhich is near those 30mA you mentioned23:30
uvosmW23:30
uvosi have a cron job that logs power_avg every minute23:30
uvosim geting around 30mW  (thus around 10mA) more23:31

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