libera/#maemo-leste/ Saturday, 2021-12-11

WizzupYAY00:14
Wizzup# uname -a00:14
WizzupLinux (none) 5.15.2-00597-g68be8fac7cbd #48 SMP PREEMPT Sat Dec 11 00:14:05 CET 2021 armv7l GNU/Linux00:14
Wizzup# grep ^core_pwrdm /sys/kernel/debug/pm_debug/count | cut -d',' -f2,300:15
WizzupOFF:20,RET:1000:15
Wizzupuvos: it might make sense to check if OMAP4_THERMAL makes on the d4 too00:16
Wizzupmakes a difference*00:19
Wizzupok00:42
WizzupI think that's all I can do wrt idle right now - there's a reproducible test case wrt mmc that causes panics when the system idles, and on 5.15.y we can now hit off mode with init=/bin/bash and idle at 27mW00:43
Wizzupwhen I boot to maemo leste rescue mode I can actually hit RET sometimes, but not yet OFF00:43
Wizzuptmlind: ^^ :)00:43
Wizzupuvos: yeah the razr has a nice screen00:48
Wizzupok, I think I can make tsc2005 behave02:58
Wizzupbut that really will happen after sleep :)02:58
WizzupI just need to make sure on suspend the irq is disabled, and on resume it is enabled, and that they are balanced03:01
* Wizzup zzzz03:01
freemangordonugh, triple-buffering that I implemented is incorrect :(09:32
freemangordonI wonder if I can get armsoc dri2 code and implant it in omap driver09:32
Wizzupfreemangordon: what is incorrect about it?12:37
Wizzuptmlind: I know it's weekend and all so no rush, but if you have some time could you comment on my tsc2005 patches? With those applied, tsc2005 does not keep the device awake unless the fd is opened (it's fine after probe, and after fd release)12:40
WizzupI suspect the next step is making it auto idle like you did with the droid4 ts atmel_mxt driver12:40
freemangordonWizzup: not sure I can explain, but it is wrong12:57
freemangordonand I guess tearing is because of that, low FPS too12:57
freemangordonit seems I have implemented double-buffering with 3 buffers :)13:00
Wizzupfreemangordon: aha13:14
uvosfreemangordon: so you wait on the wrong buffer to be free?13:20
freemangordonor rather - do not mark buffer as free when it should be13:28
freemangordonor somesuch, I am not exactly sure what's wrong13:28
Wizzuphm looks like CONFIG_TIMER_STATS would be useful but they removed it from kernel16:35
Wizzuptracers are supposed to replace it?16:35
uvosWizzup: i mean yeah16:50
uvosyou can use the tracer to monitor the timer functions and see what callbacks they call16:50
WizzupIt's frustrating to just see delayed_work_timer_fn at the top always in powertop16:50
uvosso its techicly possible to get this information but this seams way way harder than16:51
uvoswhat CONFIG_TIMER_STATS seams to have been16:51
Wizzupit looks like CONFIG_TIMER_STATS would actually break it down per kernel thread and userspace process16:51
uvosyeah16:51
Wizzupbut it broke container namespace whatever16:51
Wizzupblergh...16:51
Wizzupthe commit that removes it also doesn't really say how to do it lol16:51
Wizzup'traces replace it'16:51
Wizzupok16:51
Wizzupbtw I think I fixed the sgx-ddk-um upgrade path again16:52
uvosbtw sgx still blocks idle all the time on my d416:52
uvosno idea why yet16:52
uvosonly rmmod helps16:52
Wizzupthis is leste?16:52
uvosyeah16:52
uvosits only this one d416:52
Wizzupmaybe try to upgrade to latest kernel and such16:52
uvosreally strange16:52
Wizzuphmm interesting16:52
uvosi have16:52
WizzupI also have some droids that use more power than they should even when not turned on16:53
Wizzup(on lab psu)16:53
uvosok16:53
WizzupI had one, now I have two that do that16:53
uvosbut its fine with sgx not loaded16:53
Wizzupbut idk if that's sgx16:53
uvosso i doubt its that16:53
Wizzupmhm, weird16:53
Wizzupyeah16:53
uvosi should try if it follows the sdcard16:54
Wizzupyes16:54
Wizzupfreemangordon: btw I can't get the n900 to behave even with CMA size of 64MB16:58
Wizzupso there might be something else going on16:59
freemangordonWizzup: hmm?17:00
freemangordonwhat do you mean?17:00
WizzupX11 segfaults quite quickly17:00
freemangordonsegfaults like?17:00
Wizzuplet me check you an error, sec17:01
freemangordoncannot allocate BOs?17:01
Wizzupit's still booting, sec17:03
WizzupI can usually get it to crash by just starting one or two apps and clicking on a menu17:03
Wizzup[  177.206359] cma: cma_alloc: reserved: alloc failed, req-size: 375 pages, ret: -1617:04
Wizzup[  177.206359] cma: cma_alloc: reserved: alloc failed, req-size: 375 pages, ret: -1617:04
Wizzup(EE)17:05
Wizzup(EE) Backtrace:17:05
Wizzup(EE)17:05
Wizzup(EE) Segmentation fault at address 0x1017:05
Wizzupso it looks like something doesn't check if cma alloc is ok or something17:05
freemangordonhmm:17:05
freemangordonOS error code  16:  Device or resource busy17:05
freemangordonweird17:05
WizzupI don't know what causes that exactly, but it happens within 30s of using the device for me17:06
freemangordonWizzup: it seems omapdrm doesn't handle EBUSY from cam allocator17:06
freemangordon*CMA17:06
freemangordonWizzup: is that with 3-buffer enabled?17:06
freemangordonWizzup: could you try to disable zram? and enable swap on eMMC?17:07
WizzupI don't have that set17:07
Wizzup3-buffer17:08
Wizzupeither yes or no17:08
Wizzupjust not in config17:08
freemangordonWizzup: it is 'on' by default17:08
Wizzupok17:08
freemangordonif you have that code ofc17:08
WizzupI'll just turn off swap alltogether I guess17:08
Wizzupnot sure @ code17:08
Wizzupiirc we are lacking at least one commit17:08
freemangordonok, then it is not 3-buffer17:08
freemangordonanyway, one of the things I will do when I fix tearing/fps is to teach omapdrm to export non-CMA allocated memory as well17:09
WizzupI'm going to look at moving the experimental ddx + 5.15 kernel to -devel btw17:09
Wizzupfreemangordon: ok17:09
freemangordonthen we will not need CMA, but ordinary DMA mem17:10
WizzupI think we will not make n900 use the new ddx yet, there are a few other instable factors there anyway17:10
Wizzupfreemangordon: great17:10
freemangordonyeah, makes sense17:10
freemangordonuvos: do you have any idea how dri2 buffer management is supposed to work?17:10
uvosfreemangordon: no i dont17:30
Wizzupuvos: wonder if this still applies and is of some use http://www.360doc.com/content/14/0223/12/10366845_354967422.shtml17:32
uvosfreemangordon: all isent big change from 2 -> 3 was that in 2 glx allocates buffers in the server while in 3 the clients allocate buffers,this subtaly breaks glx and i had to fight this in some sci applications, no idea how this works in egl or any real details17:32
Wizzupit uses omap3 as example17:32
freemangordonuvos: yes, I know the diff between 2 and 3, the point is that i don't know dri2 buffer lifecycle17:33
uvosyeah sorry17:33
freemangordonI'll try to find something over the inet17:33
uvosi know less here then you most likely17:33
freemangordonyeah17:34
uvosbut i gues the buffer lifecylce has to be controlled by x17:34
freemangordoncould be17:34
uvosit really has to17:34
freemangordonbut I need to find some docs on the matter17:34
uvossince for glx the surface is managed by x17:34
uvosand must have its lifetime17:34
Wizzupuvos: fwiw this seems useful https://embeddedbits.org/tracing-the-linux-kernel-with-ftrace/17:34
uvoser the windows lifetime17:34
uvos(in glx you just give the surface id to x and you can then draw onto the surface, even if your not the process that created the surface)17:36
uvosie x mangaes life17:36
uvosclearly17:36
uvosWizzup: right17:36
uvosWizzup: just tracin the right functions should work17:37
uvosbut i mean17:37
uvosthis is lots of work and requires you to know how the kernel timer subsystem works exactly17:37
WizzupI mean it has some stuff for wakeups, maybe the gui tools can visualise where they come from17:37
Wizzupuvos: yes, at least to know how to tracing subsystem works17:37
Wizzuphttps://static.lwn.net/images/conf/rtlws11/papers/proc/p02.pdf17:40
Wizzupparazyd:19:17
Wizzuppine*) skip_arm_defice_root="yes"19:17
Wizzupthis can't be right19:17
Wizzupdefice?19:17
uvosum why has image building been faling sine october?22:53
uvosparazyd: ^^^22:53
Wizzupuvos: the server that we used for it went down for unknown reasons - not our control22:55
Wizzupso I set up one today at home22:56
Wizzupparazyd was working on fixing it22:56
Wizzupbut stopped short of adding the amprolla host key22:56
Wizzupwhich was the last thing to do I think22:56
Wizzupso they'll work again soon22:56
Wizzupalso when returns I'm first in line since I want him to add droid3 to arm-sdk22:56
WizzupI already added it to image builder22:56
Wizzup:P22:56
Wizzupthe ssi error predates v5.1123:12
Wizzup*sigh*23:12
uvosbtw just updating to experimental dosent work23:21
uvosthe old -sgx-omap4 packages conflict the mesa libgl and friends23:22
Wizzupuvos: what do you run exactly?23:23
uvosapt upgrade23:24
Wizzupthat can never work23:24
Wizzupapt upgrade will never allow a package to be removed23:24
uvosok23:24
Wizzupyou must use apt dist-upgrade23:24
Wizzupor apt full-upgrade23:24
uvosok23:24
Wizzupunfortunately23:24
Wizzupthe one thing I can do is make stub packages for the old pvr-omap4 packages that are just there doing nothing23:24
uvosok23:25
Wizzupbut I don't think apt dist-upgrade too much of an ask tbh23:25
uvosalso tklock is infuriatingly lsow23:25
uvosapt is a bit wierd23:25
uvosbut its ok23:25
Wizzupyeah, I wanted to make apt upgrade work but I looked it up and it can't work23:26
uvosoh grat23:26
uvosnow lifeguard shutdown my system during the upgrade23:26
Wizzuphttps://superuser.com/questions/1554163/what-is-the-difference-between-apt-dist-upgrade-and-apt-upgrade23:26
Wizzup>apt upgrade will upgrade all packages that can be upgraded without the need to install additional packages or remove any conflicting installed packages. Basically it will apply all package upgrades that do not include changed dependencies.23:26
Wizzupuvos: huh why did it do that?23:26
uvosbecause the old dsme had a bug that caused deamons to crash when reloaded to fast23:26
Wizzupah23:27
uvosand then dmse helpfully distroys the system by shuting down during apt upgrade23:27
uvoswe need new images23:27
Wizzup5.7.y is very unhappy in drm, so this bisect for the modem will be *fun*23:27
Wizzupuvos: yes, I've done my part, parazyd can finish it soon I hope23:28
uvosWizzup: btw23:32
uvosit would also be very usefull23:32
uvosif we acctually packaged the version of rwmem that the droid4-powermanagement script uses23:32
uvosas it stands23:32
uvosthe blockers dont work23:32
Wizzupmodem works on v5.7.y at least23:33
uvosbecause there is no rwmem23:33
Wizzuphm23:33
Wizzupdoesn23:33
Wizzup't busybox have that?23:33
uvosit dose23:33
Wizzupbut not in debian23:33
uvosbut the script dosent sue busybox's rwmem23:33
Wizzupso what do we depend on?23:33
uvoswe have to package something23:33
uvosand with the version of rwmem i have it reports everything blocking all the time23:34
uvosbecause the output is formated slightly different23:34
uvoswe should just package whatever version of rwmem tmlind used...23:34
uvosok i finished upgrading the october image to experimental23:35
uvoslets see if it wokrs23:35
Wizzupok23:35
Wizzupplease suggest what to use wrt rwmem and I'll do it23:35
uvosWizzup: idk i use this https://github.com/tomba/rwmem23:36
uvosbut it has slightly different output as allready stated23:37
uvosofc this isent a real problem the script is easly ajusted for this rwmem23:37
uvosbut we just need to package _some_ rwmem23:37
Wizzuppreferrably something in the repos if it exists23:38
uvosafaik nothing exists23:38
uvoshttps://github.com/maemo-leste/droid4-pm/pull/2/files23:39
uvoshere is how the script needs changing btw23:39
Wizzupdo you mean -f4?23:39
Wizzupalso what rwmem does tony use then if the one from tomba doesn't have the same output23:40
uvosyeah well we also want to remove the ts warning23:40
uvosno idea23:40
uvosupgrade worked23:40
uvoslets move this to devel23:40
Wizzup:)23:40
uvosor stable23:40
WizzupI don't think stable is a good idea just yet23:41
WizzupI do see some xorg crashes still23:41
Wizzupbut not many23:41
uvosxorg crashes more often on stable23:41
Wizzupheh23:41
uvosopen a gtk3 context menu23:41
Wizzupin any case letting things cook for a week or two in -devel hurts noone23:41
uvosits like 10% chance of crash23:41
uvosor rotate him23:41
Wizzuphmmm23:41
uvos100% chance of crash23:41
uvosif you start with protrait23:41
Wizzupstill, let's do -devel first23:41
uvosok23:41
Wizzupit's also not ready for the n900 yet23:42
uvosthe more concerning thing23:42
uvosis the hang in wlcore23:42
Wizzupare we sure it's wlcore?23:42
uvosyes23:42
uvosi can repoduce it23:42
Wizzupalso I haven't seen many resets in the last week or so23:42
Wizzupuvos: ah23:42
uvosby weaking the wlan signal23:42
Wizzupuvos: maybe it's related to the (potential) mmc we're seeing on the n900 with off mode enabled23:42
uvosit happens when the wlan signal is weak and it (almost) looses the connection23:42
Wizzupas in, are we sure it's new in 5.15?23:42
uvosits new yeah23:42
uvosin something after 5.1123:43
Wizzupwell, you might be able to bisect if you can reproduce it23:43
Wizzupyeah I know what I'm asking :P23:43
uvosi can repoduce it23:43
uvosbut it takes quite long23:43
WizzupI can relate :P23:43
uvosi have to move the device in and out of the microwave multiple times23:43
Wizzuplol23:43
uvosthe best way to tirgger it is actually movein around on campus23:44
uvosor in an aldi23:44
uvos(anywhere with spotty public wifi it wants to connect to)23:44
WizzupI'll have to try find an aldi then :-p23:45
Wizzupstill something after 5.11 might be only ~13 attempts23:47
Wizzupit'll probably take 8 hours23:47
Wizzupcould it be some patch we carry on top of 5.11?23:47
Wizzupthat is missing from 5.15?23:47
uvosWizzup: i would not know what that would be23:48
uvosafaik we dont carry any stability patches23:48
uvosbesides my devel 5.15 kernel started by merging my stuff on top of 5.11 on 1523:48
WizzupI mean we carry quite some patches no?23:48
uvosand both that and the leste kernel exibit the crash23:48
Wizzupok23:49
uvosright but any patch we carry on 5.11 is on 5.15 too at least in my tree23:49
uvos(since i just merged23:49
uvos)23:49
Wizzupok23:49
uvosok so on my fresh image freshly upgraded23:49
uvosdebugfs is not mounted23:49
Wizzupright, this is a problem as well, and parazyd was looking into using /etc/fstab.d23:51
WizzupI don't know what the status is23:51
Wizzupuvos: pls create an issue for rwmem packaging if you can23:59

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