libera/#maemo-leste/ Tuesday, 2021-12-14

mighty17[m]How do you guys handle poweroff for twl6030?05:59
mighty17[m]Or I suppose no device has that pmic? (d4 has cpapc, n900 has omap3) soo?05:59
mighty17[m]https://lore.kernel.org/all/1459279341-17389-1-git-send-email-contact@paulk.fr/#b can we merge this to openpvrsgx?08:20
sicelomighty17[m]: it has nothing to do with powervr though10:00
mighty17[m]sicelo: Yeah but it didn't go in Mainline (idk why) so I asked10:04
Wizzupif you think it still applies you can submit it yourself10:07
Wizzupalso see the response10:08
Wizzups10:08
lelMerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/590 (Try out this Maemo wiki theme)13:11
lelMerlijnWajer closed an issue: https://github.com/maemo-leste/bugtracker/issues/590 (Try out this Maemo wiki theme)13:11
freemangordonhttps://gitlab.gnome.org/GNOME/glib/-/merge_requests/228313:14
freemangordon:)13:14
Wizzupgreat!13:18
freemangordonyeah, now I can move to non-CMA allocated buffers so n900 to be usable with 5.1513:20
Wizzupgreat :)13:21
WizzupI need a bit of a great from all the kernel stuff (day or 2), but then I'll check out more pm stuff and some of the replies on the ML13:22
Wizzupa bit of a break13:22
Wizzupseems the word great is stuck somewhere13:22
freemangordonmhm13:23
freemangordonif we only can find someone to look into xorg ddx :(13:23
freemangordonI wonder if we can find armsoc ddx devs and ask for help13:25
freemangordontmlind: do you know if there is irc channel for openpvrsgx project?16:21
freemangordonas it seems my patch went into the void or was ignored, in either case I would like to know what happens16:24
bencohthere used to be #powervr on freenode, but iirc that was the old opensource driver channel (which wasn't very activem obviously)16:27
bencohoh, actually we have #powervr on libera, with the usual suspects joined there, but it's not active either16:29
bencohfreemangordon: ^16:29
freemangordongreat, thanks!16:32
Wizzupfreemangordon: the ML might be a better place16:43
Wizzupbu you can try irc16:43
freemangordonI've send even ping on the ML16:45
tmlindfreemangordon: not much any activity on the powervr channel, and hns only reads emails17:30
tmlinduvos: interesting, i accidentally did ifup wwan1 with modem configured to gsm and seem to have about 61 - 67 mW idle on d4 with modem online..17:31
tmlinduvos: i mean modem online but also with network connectivity up over modem17:32
bencohnice I'd say :)17:32
tmlindyeah.. i recall with 3g and wwan1 up it was easily over 120 mW or something like that the last time i tried17:33
bencohgsm is admittedly friendlier battery-wise yes17:34
bencoh(something about TDM/FDM vs CMDA)17:34
bencohCDMA*17:34
tmlindnot sure if accidentally doing qmi --nas-set-system-selection-preference=gsm caused this17:34
bencohah17:35
tmlindbencoh: but gsm voice online consume at least the same as gsm voice + data right now..17:35
tmlindmaybe the data connection actually now limits the modem from doing endless network scans or something :)17:35
bencoh"gsm voice online" meaning during call? and what is "gsm voice + data" then?17:36
tmlindbencoh: no gsm voice online meaning just voice modem connected to the network with no call active17:36
tmlinddata meaning i can ping17:37
bencohso are you saying it's about the same, or that data on really gives better results?17:38
bencoh(from my experience on n900, it should be pretty much the same, except in case of actual network activity)17:38
tmlindyeah ok, maybe only 3g data consumes more power all the time17:39
tmlindalso with v5.15 kernel, looks like the ifup wwan1 with pre-up qmi-network i posted here earlier works but not every time17:39
Wizzuptmlind: hm, I think uvos and I see quite a bit more, but I suppose we might have more subsystems active18:03
WizzupI should replace the d4 on this lab psu since it has some hw problem that makes it use a lot more power18:04
tmlindWizzup: hmm i put cpu1 offline when i blank the screen, maybe give that a try?18:08
tmlindecho 0 > /sys/devices/system/cpu/cpu1/online18:09
tmlindthat seems to get rid of the constant ipi traffic18:09
Wizzupok, will try that now18:10
tmlindi also have this looks like:18:10
tmlindecho 600  > /proc/sys/vm/stat_interval18:11
Wizzupmy device is in 3g btw, and I think m-l generates quite a bit of debug (and thus mmc) traffic on modem signal strength, although we (should be) disabling that upon screen off18:11
tmlindok, will check my power consumption with 3g again at some point, don't want to mess with it right now, expecting a package..18:12
Wizzupheh, makes sense18:12
Wizzuptmlind: I think that saves quite a bit (turning one cpu off)19:19
Wizzupwill try to properly measure, but from sleep and droid4-pm it looks like it saves maybe 200mW?19:20
Wizzup20mW19:20
tmlindyeah so it seems19:35
uvostmlind: yeah i allways use wwan120:53
uvostmlind: i have no idea why that works best20:53
uvosthe ipi interrupts are qutie silly yeah20:54
uvoswe can probubly tune the scheduler to try and not have both cpus active when there is little load20:55
Wizzuphmmm ofono uses something else no?20:55
uvosWizzup: ofono has never worked for me20:55
uvosexcept by extream massaging20:55
uvosby restarting it often etc20:55
uvosso no idea20:55
Wizzupcan try later as well (need to make a list lol)20:56
uvosspeaking of powermanagemnt we should maybe import androids interactive scaling govenor21:08
uvosi know its sortof a hack21:08
Wizzupit might just mostly be in mainline21:08
uvossortof21:10
uvosthe mainline version dosent have the pivitol hack :P21:10
uvosthe pivitol hack being that it ramps up on ts events21:11
uvosno matter what21:11
uvosthis avoids ui latency21:11
Wizzupheh21:14
Wizzupmaybe we can turn off a core upon screen blank21:14
uvossure21:14
uvosi could have mce do that as a hack21:14
uvosbut really21:14
uvosthe scheduler should be smart enough21:14
Wizzupyeah I am a bit surprised that it wouldn't do that by defaulty21:24
uvosmaybe we can use cpuset to prevent kernel threads from running on the second cpu21:24
Wizzupyeah but that's not ideal imho21:25
Wizzupalso it would need to be more than just kernel threads probably21:25
uvosi dont think our userspace dose very mutch21:26
uvoswhen ideling21:26
uvosbut yeah its not ideal21:26
uvosbut its somewhere between "sched is smart enougth" and "mce disables all cpus except cpu0 when display is off"21:27
Wizzupwe'll also need to check that als and other iio stuff doesn't use more pm21:27
uvosin terms of suckyness21:27
uvosno21:27
uvosiio-sensor-proxy sits in select at all times21:27
Wizzupsure, but kernel could keep things alive when fd is open21:27
Wizzupor w/e is used21:27
uvosi closes all fds21:27
uvostoo21:27
Wizzupreally, how does it know?21:28
uvosits extreamly well behaved - i checked before porting mce over21:28
Wizzupor is that because mce stops talking to it21:28
uvosit knows if it has a dbus client21:28
Wizzupk21:28
uvoson bionic it dosent even poll the accell21:28
WizzupI'm still going to block the modules just to make sure later on21:28
uvoswhen the device is on21:28
uvosand accel rotation is active21:28
uvos:)21:28
Wizzupmaybe this is the mystery pm difference eh :P21:28
uvosno21:28
uvosbut the sensor drivers may be misbehaving yeah21:29
uvoswe should add the hw intterupts to the stm accell driver btw21:29
uvosthe d4 chip also has the no polling feature21:29
uvosits just missing in the driver21:29
Wizzupall of this would be very valuable to write down somewhere imho21:30
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/591 (N900 ssi-protocol / nokia-modem causes sets in OFF mode)21:32
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/591 (N900 ssi-protocol / nokia-modem causes sets in OFF mode)21:32
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/591 (N900 ssi-protocol / nokia-modem causes sets in OFF mode)21:32
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/592 (N900: gpio_keys misbehave in OFF mode)21:33
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/592 (N900: gpio_keys misbehave in OFF mode)21:33
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/592 (N900: gpio_keys misbehave in OFF mode)21:33
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/593 (droid4: add hw interrupts to stm accel driver)21:46
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/593 (droid4: add hw interrupts to stm accel driver)21:46
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/594 (mapphones: look into disable one cpu (or better scheduling) to improve power management)21:50
lelMerlijnWajer labeled an issue: https://github.com/maemo-leste/bugtracker/issues/594 (mapphones: look into disable one cpu (or better scheduling) to improve power management)21:50
uvosprobubly affects pinephone just the same21:51
Wizzupwell, the solution might be generic :-)21:52
uvossure21:52
Wizzupother stuff we should add/note?21:54
uvosmoving all unppinned kernel threads to one cpu via cpuset dosent seam to help21:56
uvoswith the ipi activity21:57
uvosuh21:57
uvosi gues you could make a bug to figure out why bionic idles better21:57
uvosbut i dont think i need one to remember21:57

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