libera/#maemo-leste/ Tuesday, 2022-11-22

siceloWizzup: looks like the dma patch is no longer enough in 6.1 :'(10:53
Wizzupsicelo: usually I had to manually call 'git revert' on the original commit11:00
Wizzupdid you try doing that? you might have to manually fix some things11:00
Wizzupe right11:01
Wizzup(oops, xrandr)11:02
uvos__sicelo: it would be great if you could provide me with a list of patches you currently use on top of 6,1 for n900 purposes, since i dont really know what is sill required12:16
uvos__you can find what i currently have at https://github.com/IMbackK/droid4-linux12:16
uvos__branch n900-6112:16
Wizzupuvos__: imho I'd keep all patches we had unless we're certain we don't need them anymore12:25
uvos__that leads to an absolute mess12:26
Wizzupif we still have the patch, we can easily test if we need it, if we don't have the patch, we might not know which one we need, no? :p12:26
buZzahh, i reset charge_full to 1750000 and did a full discharge while gprs on, ssh open, got 1250000 as calibration now13:22
buZzhaving too low a charge_full leads too almost impossible to calibrate 'up' as when battery get under '10 percent' mce starts to nag and below 5% it gets reaaally annoyed13:23
buZzeven if that 5% if at 3.9V , lol13:23
buZzis at*13:23
buZz(also i now default set constant_voltage to 4.max volt and input_current to 88888813:24
buZzjust need some repeatable figures and tests for the battery replacement :)13:25
uvos__i dont see how the modem dropping away beacuse of low battery can be normal btw13:55
Wizzupagreed13:56
uvos__we shutdown earlier than android (but i have to check androids critical voltage again), and this would mean that celluar would stop working on android when the battery is low13:56
uvos__i can attest this is not the case13:56
uvos__i never had any problems using cellular on android at anny state of charge, includeing calls that lasted right up to the point where the device shut off13:57
WizzupI think it could also be perhaps thermal reasons, I am not sure13:58
WizzupI don't regular switch to different d4's, so I don't know how much it happens on other d4's13:58
Wizzupuvos__: hm on ~3.4v on psu the system is much slower than on ~3.6v it seems14:27
Wizzupmaybe 3.4 was too low, but yeah14:28
WizzupI wonder if something reclocks without us knowing, seems unlikely14:28
buZzmaybe the modem has some lowvoltage mode that we arent enabling?14:29
tmlindthe modem has it's own pmic wired to the battery directly, no idea what it's shutdown voltage might be14:30
uvos__Wizzup: you getting a cpcap irq storm?14:32
uvos__that makes it lower14:32
uvos__tmlind: the point is we shutdown at a higher voltage than android, which dosent encounter the modem not working when it thinks he battery is low14:33
tmlinduvos__: yeah.. this could be easily tested by connecting a bench power to d4 instead of a battery and lowering voltage until modem issue occurs14:34
uvos__so clearly the shutdown voltage in the modem must be below androids threshold14:34
uvos__or android must have some way to telling the modem not to shutdown14:35
buZztmlind: maybe that pmic needs some controls?14:35
tmlindbuZz: the modem uses it's own signed firmware, nothing we can do about it14:35
buZzaw right14:35
buZzbeside beg to qualcomm i guess14:35
uvos__motorola14:35
uvos__who dont exist anymore anyhow14:36
Wizzupuvos__: I didn't see a lot in dmesg, so not sure14:36
uvos__Wizzup: ok14:37
uvos__maybe we should check if android dose something when battery is below 10% wrt dowclocking14:37
uvos__or if it tells the modem something via usb14:38
tmlinduvos__: well with a weak battery the modem pmic might actually know the remaining capacity better and shut down earlier?14:39
WizzupI think maybe sgx is clocked lower too14:43
Wizzupanyway bbiab14:43
uvos__tmlind: idk, at the very least i have never seen the modem pmic decide to shutdown before the rest of the device on android14:44
tmlindok14:44
tmlindhaving the soc usb phy integrated into the modem is not a nice design solution :(14:44
uvos__this would have been extreamly obvious while i was using it as my main device for 4 or so years ;)14:44
tmlindthe other option is the modem just hangs because of some reason14:45
uvos__the device behaves wierd when the battery is low on the mainline kernel in general14:46
uvos__maybe there is just some errata that motorola masked by reducing clocks while the battery is low14:46
uvos__ill check that first14:46
tmlindok14:47
Wizzupis it possible things get re-clocked out of our control?14:47
uvos__i dont see who would be doing that14:48
uvos__we fully controll the plls in the omap414:48
uvos__if it gets slower when the battery is low atm14:49
uvos__id lean towards irq pressure because some periferal device is misbehaveing14:49
uvos__like hickuping or somehting14:49
uvos__theres probubly a global irq counter somewhere we can look at to see if there are lots more handlers fireing?14:50
uvos__tmlind?14:50
Wizzupback in ~1 hour14:50
uvos__we def had irq pressure from the cpcap low irq before14:51
uvos__where it would start fireing lots of times per second14:51
uvos__while the battery was low14:51
uvos__but this should be fixed now14:51
sicelouvos__: i have asked a number of times what config is used for the leste kernel ... no response from you ...14:54
siceloi don't know what patches matter for leste and n900 because i don't really use leste with n900 much. please keep the patches and configs that were already there from spinal/Wizzup14:55
freemangordonI think I see ants more clearly when battery is low14:55
freemangordonso there must be something going on14:55
tmlindWizzup: you can cat /proc/interrupts every 10 secs and diff to see if there's a crazy amount of some interrupts14:56
uvos__sicelo: its just omap2plus_defconfig14:57
tmlindfreemangordon: pvr should not know anything about the battery voltage hopefully :)14:57
uvos__some patches in the old n900 pach collection are def obsolete14:57
uvos__they are in the mainline kernel allready14:58
tmlinduvos__: ok14:59
uvos__tmlind: i have noticed that that d4's voltage rails are noticably more noisy than xt875's14:59
uvos__maybe this is related to issues15:00
sicelovanilla omap2plus is not best option for N900/droid4, as it includes a lot of other omap stuff that doesn't apply to any of them. in the past, there was an n900_defconfig somewhere, for example15:03
sicelos/droid4/mapphones/15:03
tmlinduvos__: so are the ants there on xt875?15:04
buZzoh yeah, the modem is usb, can we 'unplug it' and plug back in? might just be the usb phy complaining15:08
buZzi've seen the modem going offline at >4v too15:08
uvos__sicelo: sure but those are mostly just modules and the omap2 stuff (wich we disabled via patch iirc) and extra modules we dont need (wich have minimal detriment to build for no reason) our omap2plus_defconfig isent entirely stock either, see the mameo repo and diff the file vs mainline15:09
uvos__its true that eventually we might want to have a maemo_defconfig or so15:10
uvos__tmlind: yes however i have at least not encounterd them to the same degree as on d415:10
tmlindi believe multi_v7_defconfig does not work with kexec on d4, kernel is too big for something15:10
uvos__on d4 sometimes the statusbar is compealty hidden behind ants15:10
uvos__but that might just be because my usage hours with xt875 is lower15:11
tmlindok15:11
uvos__tmlind: the kernel will be to big for n900 way before that happens presumably :P15:12
tmlindheh yeah15:15
buZzcan we get rid of the 4330000 charge limit at next kernel? :) and just do 4349000 as battery states15:25
buZzsuch minor step, it seems :P15:25
uvos__have to check where it comes from first15:25
uvos__its possible that exatcly 4,349 is not a possible register state at all15:25
buZzi bet cpcan_charger15:26
buZzah15:26
buZzwonder what android does :)15:26
uvos__nothing special if so15:27
uvos__the eb41 cell (not the battery case) was used on lots of moto phones from the era15:27
uvos__with different pmics15:27
uvos__the 4,349 dosent need to line up with anything in cpcap15:27
buZzhmhm alright15:30
buZzusing this ; http://space.nurdspace.nl/~buzz/maemo/bermbom.sh from rc.local now15:31
buZzit seems to work to get more mah, likely at lower lifespan, but havent even seen battery going >40C15:32
buZz(during charge)15:32
siceloWizzup: please remind me ... when a kernel is referred to as 5.9.y for example, the 'y' means anything? i mean - there's no git tag with that15:37
uvos__.y is from the linux-stable branches15:41
uvos__5.9.y is the branch were patches that backport fixes are merged into and 5.9.1 etc are tagged from15:42
Wizzupwhat uvos said15:44
Wizzup(regarding the stable versioning)15:45
freemangordontmlind: it is rather a memory issue that sgx16:00
freemangordonor some bus issue16:01
freemangordon*than sgx16:01
freemangordonas it seems somehow the texture is corrupted *before* uploading to GPU16:02
freemangordonalso, I had some logs in pstore where those logs were kind of corrupted - half the characters were replaced with random ones16:03
tmlindfreemangordon: so how was it.. do we also see the ants on a hdmi panel?16:05
freemangordonI tested hdmi just a couple of times16:05
tmlindor does the constant refresh hide it on hdmi?16:05
freemangordonso can't tell16:06
tmlindok16:06
freemangordonbut IIRC uvos__ said he had seen ants on hdmi16:06
tmlindok16:06
freemangordonuvos__: ^^^ ?16:06
tmlindslowed down video of a hdmi panel might show up the ants in some frames?16:06
freemangordoncould it be that we are missing correct emif config16:07
freemangordonthe reason for ants16:07
freemangordon?16:07
freemangordontmlind: I cannot test now, will be get back from business trip on thursday16:08
tmlindwell the emif config we're using is for the fastest soc frequency, it should work fine with slower frequencies16:08
freemangordonare we sure this is ok actually?16:08
uvos__im pretty sure i have seen ants on hdmi16:09
uvos__at one point the where omnipresent16:09
uvos__and you could see them easly16:09
tmlindno but compiling code like mesa would faile randomly :)16:09
freemangordonok16:09
freemangordon:)16:09
tmlindif the emif timings did not work16:09
uvos__we ccould downclock android to see if its fine i gues16:09
uvos__whithout downclocking emif on android16:09
freemangordontmlind: well, but compiling mesa makes cpus run on 1.316:10
uvos__the ants are one word in length right?16:10
freemangordonuvos__: not really16:10
freemangordonthere are times I see them here all over the top window stripe16:11
uvos__right, longer16:11
uvos__like one ant is 4 pix or so16:11
freemangordonsometime there are behind tasknav button on top-left16:11
uvos__so 16 ish words16:11
uvos__ok nvm16:11
freemangordonand there are almost that wide and high16:12
freemangordonsometimes they appear on random places16:12
uvos__er bytes, i not words16:12
uvos__i need coffe16:12
freemangordontmlind: my idea being - when SGX runs in full speed, that does not necessarily mean that CPU is @ full speed16:13
freemangordonand we may hit the issue because of that16:13
freemangordonbut, I have no idea how is SGX connected to memory bus16:13
freemangordonhow easy is to *downclock* the mempry bus?16:14
freemangordonto see if it will affect ants?16:14
uvos__emif interface has lots of registers with offsets based on its main clock16:15
uvos__i gues if the times are longer it should be ok16:15
uvos__but no dram expert here16:15
uvos__we could just force android into a low oop16:15
uvos__read the emif registers16:15
uvos__and then just write them back16:15
uvos__on mainline16:15
freemangordoncould you do that? It will really take me too much time as I have not idea where to start at :)16:16
uvos__sec there is an easy way16:16
uvos__https://github.com/tmlind/buildroot/blob/7d09d9eea638ee6c74bc5be124fd79935ca1fdcf/board/motorola/droid4/rootfs_overlay/sbin/preinit.sh#L4516:18
uvos__change that to something else16:18
uvos__rebuild kexecboot16:18
uvos__should end up with mainline booted with different emif reg state16:18
uvos__altho it might not work at all, see comment16:18
uvos__the flaky comes from that the state was more or less random before this was added16:19
uvos__i gues removing the opps above whatever you set here in the mainline kernel dts, should work16:19
uvos__since the main problem is likely that linux throttles up the cpu but not emif too16:20
uvos__figureing out how to reclock emif would be good in general anyhow, we are wasteing some power here  (but idk how mutch)16:21
tmlindsure, only matters for runtime power consumption though, not idle power consumption16:23
uvos__sure16:23
uvos__to it also feals like runtime power consumption where we seam to lagg most behind android16:24
uvos__at least by feal from rembering how long the device lasted with use back when it used it with android16:24
uvos__runtime pm hard to benchmark ofc16:24
freemangordonwe don;t have off mode16:24
uvos__freemangordon: we are talking about pm while the device is in use16:25
uvos__android dosent hit off mutch or at all in this case16:25
tmlindyeah won't it off at all if lcd is active16:25
freemangordonIIRC leste run-time usage is lower16:26
freemangordoncheck xml files16:26
freemangordonsorry16:26
freemangordonexcel files16:26
uvos__not sure how you come to this conclusion, i have no data but it def feals otherwise16:26
uvos__could just be that android has hw decodeing and accelerated browser etc16:27
uvos__all that saves power16:27
freemangordonhttp://46.249.74.23/leste/d4/power_usage/16:27
freemangordonthis16:27
freemangordonwell, didn;t play much within OS16:27
freemangordonbut I can16:27
uvos__well i mean "usage"16:28
uvos__like watching videos, browsing etc16:28
uvos__anyhow its not important16:28
freemangordonwell, without having GPU accelerated browser...16:28
freemangordon:nod:16:28
uvos__right16:28
uvos__also gtk2 is not hw accelered16:28
uvos__while androids widget set is16:28
uvos__that prob also helps android16:29
freemangordonmhm16:29
uvos__anyhow not important rn16:29
tmlindyeah16:29
* freemangordon is afk16:29
norayri always read everything in this and some chats. and hdmi and performance issues brought me back to this thought that though we love and enjoy old retro devices (and i wish droid3 would be better supported) people cannot buy them, those aren't availble in amounts old film cameras are available.19:02
norayrso we need new devices.19:02
norayrand what we have is librem and pinephone, most supported devicen of pmos are pine64 devices.19:03
norayri wish we had something better or could support devices that have better availability.19:03
norayrbut even now if i want to buy segond d4 or if i want to regommend someone to get a d4, you cannot buy it today on ebay.19:04
norayrfor months already.19:04
norayrsorry for typos - screen kbd.19:04
Wizzuphttps://www.phoronix.com/news/Wayland-Tearing-Control-Proto19:53
Wizzuphaha19:53
bencohwait, what? :D19:57
Wizzupjust in case you wanted the performance back19:58
Wizzup(I'm mostly kidding)19:58
bencohyeah, but ... :]19:58
raveloI should try to get droid 420:31
raveloit looks like linux is working pretty great20:31
BlagovestPetrov[fyi, that's what I got when installing the latest version of clockd from the repository:20:35
BlagovestPetrov[Setting up clockd (0.0.46+m7) ...... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/b566debff387ae1bd6a2f58be5f5d9a707baaf73>)20:35
BlagovestPetrov[not sure if it's an issue with openrc20:35
uvoshildon w/o pvrkm works better than i remember22:45

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