cockroach has quit [Quit: leaving]
<Wizzup> freemangordon: re: "how?", well it works for me
joerg has quit [Excess Flood]
joerg has joined #maemo-leste
<Wizzup> freemangordon: with the other panel patch the device uses like 20mW more in OFF
<Wizzup> freemangordon: tmlind: btw: https://dpaste.com/BH5D5P8E8.txt
<Wizzup> X also not happy: [289971.389] (EE) OMAP(0): ERROR: PVRSRVMapFullDmaBuf failed: PVRSRV_ERROR_BAD_MAPPING fd 264
<Wizzup> seems like a high fd to me
<Wizzup> freemangordon: latest kernel works for me (panel)
<Wizzup> it's also smoother in 3d for sure
<Wizzup> freemangordon: hm d3 seems to boot for me
<Wizzup> freemangordon: d4 boots ok for me as well?
Pali has quit [Ping timeout: 240 seconds]
<mighty17[m]> freemangordon: can you send 99-modesetting.conf again? the pastebin expired? :(
xmn has quit [Ping timeout: 240 seconds]
macros_ has joined #maemo-leste
macros__ has quit [Ping timeout: 268 seconds]
joerg has quit [Ping timeout: 256 seconds]
joerg has joined #maemo-leste
<mint[m]> hey, not sure if this question goes in this channel but i'm having some issues with surf2. after clicking the URL box i can't use a text box in the web view, how can i stop highlighting the URL box?
<freemangordon> Wizzup: seems somehow I managed to uninstall the kernel on my d4
<freemangordon> I mean - I removed linux-image-droid4
<freemangordon> but, this was after I installed linux-image-omap
<freemangordon> reinstalling linux-image-omap fixed it
<freemangordon> Wizzup: re that error - seems you are running out of DMM/TILES space somehow
<freemangordon> *TILER
<freemangordon> mighty17[m]: https://pastebin.com/YBxVKZts
<freemangordon> Wizzup: so, ba9c85a6643f9fad15018390a3b59280187b7564. shall be removed and other fix found for high power usage
<mighty17[m]> tysm
<freemangordon> Wizzup: also, why do we carry a20f161298226a368d73af1b1467568ba5d05efa?
huckg has quit [Ping timeout: 256 seconds]
Pali has joined #maemo-leste
Langoor has quit [Ping timeout: 256 seconds]
Kabouik has quit [Remote host closed the connection]
Kabouik has joined #maemo-leste
Kabouik has joined #maemo-leste
Kabouik has quit [Changing host]
Langoor has joined #maemo-leste
<tmlind> freemangordon: your dmabuf fix also fixes my wlroots termite test case even with sgx clock slowed down :)
<tmlind> freemangordon: also, did you update the ddk blobs branch? seems like your blobs changes caused the environment regression somehow if i remember right?
<tmlind> hmm or am i confused again on what caused the environment variable needed regression?
<tmlind> i guess it must have been a mesa change instead..
<tmlind> spotty connection, bbl
<Wizzup> freemangordon: regarding a20f161298226a368d73af1b1467568ba5d05efa - uvos said to keep it for charge mode iirc
<Wizzup> freemangordon: ok, I'll remove ba9c85a6643f9fad15018390a3b59280187b7564
inky_ has joined #maemo-leste
inky has quit [Ping timeout: 256 seconds]
xmn has joined #maemo-leste
<Wizzup> freemangordon: is the tearing gone for you? I think I still have some
<freemangordon> Wizzup: no, as I said, tearing on d4 is another story
<freemangordon> tmlind: great!
<freemangordon> Wizzup: ok, but IIUC this commit causes wakeups 20 times per second
<freemangordon> uvos: ^^^
_uvos_ has joined #maemo-leste
<_uvos_> sicelo: you need to add options "cpcap-battery ignore_temperature_probe=1"
<_uvos_> with ofc obvious caviates
<_uvos_> please if you have the time- document this on the wiki
<_uvos_> (to some modprobe .conf)
<freemangordon> _uvos_: could you comment on kernel commit a20f161298226a368d73af1b1467568ba5d05efa
<freemangordon> "drm/omap: get fbdev working for manually updated display"
_uvos_ has quit [Ping timeout: 256 seconds]
<sicelo> thanks. i transplanted the controller though.
inky_ has quit [Ping timeout: 256 seconds]
<Wizzup> freemangordon: which commit causes wakeups?
_uvos_ has joined #maemo-leste
inky_ has joined #maemo-leste
<freemangordon> Wizzup: a20f161298226a368d73af1b1467568ba5d05efa ?
<Wizzup> ah
<_uvos_> what commit is that?
<_uvos_> im in a train
<freemangordon> ah
<freemangordon> _uvos_: "drm/omap: get fbdev working for manually updated display"
<_uvos_> ah that
<freemangordon> also, IIUC, this is about fbdev emulation
<_uvos_> should only cause wakeups if soemthing dirtys the fb
<_uvos_> yes
<_uvos_> it makes it work ond mapphones
<freemangordon> do we use/need that at all?
<_uvos_> otherwise the display is never updated
<freemangordon> fbdev emulation I mean
<_uvos_> currently for charging-mode
<_uvos_> but i want to move that to drm
<_uvos_> havent done it yet
<freemangordon> what is "charging mode"?
<_uvos_> it was on fbdev because ddk1.9 bugs
<_uvos_> boot the device by pluging in chargerger
<_uvos_> a battery icon appears
<_uvos_> and device charges
<freemangordon> ah, so "actdead" :)
<_uvos_> yeah
<_uvos_> sorta
<_uvos_> implemented differently
<_uvos_> its a runlevel
<freemangordon> yeah, I see
<_uvos_> ill move it to drm
<_uvos_> then we can drop that patch
<freemangordon> ok
<_uvos_> if it causes trouble
<_uvos_> otherwise haveing fbdev working is ofc nice in its own right
<freemangordon> well, I am not 100% sure, but IIUC it queues a work 20 times/sec
<freemangordon> IOW - looks like a hack
<_uvos_> ok
<freemangordon> but yeah, ok, lets keep it for now if there is code that uses it
<freemangordon> _uvos_: though, I think we shall implement that 'charging mode' correctly, like starting matchbox etc
<freemangordon> because the same/similar mode is used for alarms
<_uvos_> i really really dislkie that
<_uvos_> and for alarms the charge mode runs a differen runlevel
<freemangordon> dislike what? having an alarm turning on the device?
<_uvos_> you can have whatever you want there
<_uvos_> remeber on mapphones we have _very_ little time
<_uvos_> to settle the devie
<_uvos_> or it powers off again
<freemangordon> ok, you can start charging immediately and then bring-up whatever UI is needed
<_uvos_> sure
<freemangordon> I am not saying we shall do a lame implementation
<freemangordon> :)
<_uvos_> so rn there is a script that chargemode uses to start other runlevels depending on condition
<freemangordon> ok
<_uvos_> conitions are: unplugged, alarm, full, power button
<_uvos_> rn all start runlevel default (and hildon)
<freemangordon> how do we know about alarm?
<freemangordon> I mean - is there anything passed by the BL?
<_uvos_> but we can change that as soon as something else exists
<_uvos_> it quers the hwclock
<freemangordon> hmmm
inky has joined #maemo-leste
<freemangordon> ok
<_uvos_> so if hwclock was set to boot the device
<freemangordon> yeah, got it
<_uvos_> it will boot the next runlevel instead
<freemangordon> sounds sane
<freemangordon> I think we shall do something similar for n900
<freemangordon> if this does not work already
<_uvos_> it schould work
<freemangordon> not sure what NOLO does with hwclock on power-up
<freemangordon> it may resewt it
<freemangordon> *reset
<freemangordon> because boot mode is passed as ATAG
inky_ has quit [Ping timeout: 256 seconds]
<_uvos_> ok
<mighty17[m]> <mighty17[m]> "https://github.com/openpvrsgx-..."; <- cc tmlind
_uvos_ has quit [Ping timeout: 256 seconds]
joerg has quit [Read error: Connection reset by peer]
_uvos_ has joined #maemo-leste
<_uvos_> freemangordon: "ok, you can start charging immediately and then bring-up whatever UI is needed"
<_uvos_> i thin you missunderstood this
joerg has joined #maemo-leste
<_uvos_> the problem isent starting charging
<_uvos_> its that usb power can not keep d4 alive it uses to mutch
<_uvos_> it must enter idle asap
<_uvos_> and the bootloader gives little room here
<_uvos_> it boots the device just after the battery has bearly enough charge to enter androids charge mode
<_uvos_> wich is very quick
<bencoh> I'm not sure the bootloader would enter idle anyway (vs busy-waiting)
<bencoh> but I haven't checked, so I dunno
<_uvos_> the bootloader sets cpcaps idle regs
<_uvos_> er trickel charge regs
<_uvos_> and shuts off
<_uvos_> cpcap then boots again
<bencoh> ah
<_uvos_> after a set voltage
<bencoh> nice
_uvos_ has quit [Ping timeout: 240 seconds]
* sicelo will probably now start using Leste/Droid 4 more, now that he has a somewhat better battery. at around 20 hours now, and still has 3.6v. calibration not finished yet, but definitely feels better than the 700mAh I had all along
<freemangordon> _uvos_: I think I understand it right. "bring-up" of the UI after battery is charged enough to allow it
<freemangordon> also, I am sure we can power off all but CPU0, and put CPU0 @ lowest frequency
uvos has joined #maemo-leste
<freemangordon> This should be enough to support minimal UI (like alarm/charging one) with radios off
<uvos> probubly
<uvos> unsuprisingly i like the architecture that i desinged for charge mode :P
<uvos> anyhow ill move it to drm soon
<freemangordon> no, it sounds fine, what I am saying is that we shall extend it (if needed) to support alarm
<uvos> probunly i can do it tomorrow
<uvos> sure
<freemangordon> uvos: also, I am almost sure battery holds enough charge so matchbox to be started
<uvos> no
<freemangordon> hmm, ok
<uvos> so in the deepest discharge state we are allready in the hole
<uvos> when sysinit finishes
<uvos> because of kexecboot
<uvos> that takes extra time
<freemangordon> I see
<uvos> relatvie to android native
<uvos> so we allready have to move charge mode into initramfs
<uvos> at some point
<freemangordon> yeah, so we shall hold a bit in charge-only mode
<uvos> yeah somehting like that
<freemangordon> until we have lets say 2% (made-up) value
<uvos> sure
<freemangordon> and then proceed to charge-only-phase2
<freemangordon> and here the switch shall be made to alarm, user, unplug, no?
<uvos> yeah
<uvos> thats how it currently works
<freemangordon> ah, nice
<freemangordon> for how long it stays in charge-only mode?
<uvos> untill sone of those switches is tripped
<uvos> (or its full)
<uvos> *s/sone/one
<freemangordon> another note - do you say that with everything but cpu0 and mmc omap4 uses more than 500mA?
<freemangordon> *everything off
<uvos> no idea probubly not
<freemangordon> so, *in theory* we may boot to alarm even if we don;t have minimum charge
<uvos> maybe
<freemangordon> cool
<uvos> the problem is,currently during boot its too mutch
<uvos> before userspace even starts
<uvos> so fix would have to be in kernel somehow
<uvos> or avoid loading so mayne modules
<freemangordon> hmm, maybe we shall load modules manually
<uvos> and have a inintramfs with just cpcap-carhger to dwel in
<uvos> *charger
<freemangordon> I think we shall try to avoid initrd if possible
<freemangordon> not really sure how this can be achieved
<uvos> im pretty neutral on having a initramfs
<freemangordon> well, my point is that this is yet another thing to maintain :)
<freemangordon> if we can avoid...
<freemangordon> but we'll have to find a way to delay module loading until some condition is made
<uvos> yeah
<uvos> anyhow its not that important to fix this rn
<uvos> mce now shutsdown the device well ahead of the problem area
<uvos> so you should only be albe to enter it by leaving the device in cupboard for a long time
<uvos> or leste hanging or something
<freemangordon> my point was about bootup
<uvos> and even then you can just use androids charge mode
<freemangordon> but yeah, a corner case
<uvos> freemangordon: yes i know
<uvos> freemangordon: im saing this problem is farly small
<uvos> atm
<freemangordon> :nod:
<bencoh> freemangordon: don't we already use devuan's initramfs?
<uvos> no
<bencoh> (I agree with maintaining an initramfs being a burden btw)
<bencoh> if we really want to we could probably blacklist modules in /etc/modprobe.d/ and insmod it manually
<bencoh> (it sounds kinda ugly though)
<freemangordon> uvos: what about having modprobe.d file that blacklists all the modules and later on, when we don't need it anymore, we can bindmount to an empty file?
<freemangordon> bencoh: see ^^^
<bencoh> :)
<uvos> sure but i agree its really ugly
<freemangordon> would that work?
<uvos> we could have a runlevel that avoids running udev instead
<uvos> and modprobes just cpcap modules
<uvos> and then dwels
<bencoh> probably, although bindmounting sounds even worse to me that manually insmoding
<uvos> and then runs normal sysinit
<freemangordon> ah, so it is udev that does modprobe?
<uvos> yeah
<freemangordon> good
<freemangordon> well yeah
<bencoh> we can just add a udev rule then
<freemangordon> bencoh: nor, really, not starting udev is better
<freemangordon> *no
* bencoh headscratches
<freemangordon> we build whatever we need in zImage
<freemangordon> for minimal system
<uvos> sure
<freemangordon> that does charging only
<uvos> that probubly helps start charging sooner too
<freemangordon> mhm
<bencoh> (btw at $job bootloader prevents booting (ie waits) until battery is "charged enough")
<freemangordon> and once we have enough charge, we start udev or $whatever_is_needed
<freemangordon> like swithing the runlevel
<freemangordon> *switching
<freemangordon> I think that way we avoid initrd
<bencoh> oh right, using a different runlevel sounds like a decent idea
<freemangordon> uvos: we may want to fix getbootstate to fi that new boot logic
<uvos> whats this?
<freemangordon> a tool that gets boot state, like USER, ACTDEAD, MALF
<uvos> from atags?
<freemangordon> yes
<uvos> ok
<freemangordon> I know you hate it, but we shall keep ACTEAD (in some shape) at least for a while
<freemangordon> there is too much code that relies on env var being set
<uvos> so currently chargemode just checks if the usb cable is plugged in (and assumes that this means we should enter charge mode) and with the hwclock
<uvos> on mapphones we cant asses the boot reason
<uvos> the android kernel has cleard it before we can kexec
<uvos> the good thing about this method is also it works everywhere
<uvos> ie currently on maphones and pp and n900
<freemangordon> yeah, sounds fine
<uvos> the bad thing ofc is that the user might press the power button
<uvos> then insert the cable
<freemangordon> while on charger?
<freemangordon> ah
<freemangordon> yeah
<uvos> and it will enter charge mode erronously
<uvos> not a big deal of the user will just press the power button again
<uvos> but a bit wonky
<freemangordon> yeah
<uvos> and at least on maphones we cant do better
<freemangordon> not a big issue I would say
<freemangordon> though, I think on OMAPs at least there is some memory location with flags about the boot reason
<freemangordon> ah, but android kernel clears that
<freemangordon> I see
<freemangordon> well, we do the best we can
<freemangordon> then
<freemangordon> uvos: basically, ACTDEAD means we have /tmp/ACT_DEAD :)
<freemangordon> and also ACT_DEAD in /tmp/mode (or something
<freemangordon> alarm plugin already supports that, and if device was woken-up by an alarm, after you snooze/stop it, you are asked if you want to power-on the device
<freemangordon> also, XSession already supports actdead mode, like different set of applications is started
pere has quit [Ping timeout: 240 seconds]
<freemangordon> Wizzup: what is hildon-kernel-config-n900 ? hildon-meta-n900 depends on it
<freemangordon> Wizzup: OTOH lates kernel seems to boot fine on both d4 and n900
<Wizzup> 20:39 < freemangordon> Wizzup: what is hildon-kernel-config-n900 ? hildon-meta-n900 depends on it
<Wizzup> freemangordon: this is the uImage postinst
<Wizzup> freemangordon: yes, also boots ok for me
<freemangordon> can't be as it is neither installed nor available :)
<freemangordon> leste-config-n900 is postinst :p
<freemangordon> Wizzup: I think you initially planned to have that additional package
<freemangordon> but later on we decided to move postinst to leste-config-n900
<freemangordon> so I thing this dependency is not needed
<freemangordon> Wizzup: I think I fixed sgx-ddk-um dependencies
<Wizzup> freemangordon: no, we decided not to go the leste-config route
<Wizzup> leste-config-n900 is not the postinst
<Wizzup> thanks for looking at the deps though
<freemangordon> root@devuan-n900:~# dpkg -S n900-uImage
<freemangordon> maemo-kernel-config-n900: /etc/kernel/postinst.d/n900-uImage
<Wizzup> exactly
<freemangordon> so, again, what is hildon-kernel-config-n900?
<Wizzup> it is the postinst script to make the uImage
<freemangordon> maemo-kernel-config-n900 != is hildon-kernel-config-n900
<Wizzup> hildon-kernel-config-n900 was a mistake on my side
<Wizzup> I fixed that since
<Wizzup> afaik
<Wizzup> if there is any dep on it, that must go
<freemangordon> not in the repos at least
<freemangordon> yes, hildon-meta-n900 depends on it
<Wizzup> freemangordon: ok then the meta needs fixing if it's not fixed already
<Wizzup> let me check
<freemangordon> I think this is the last issue
<Wizzup> ok
<Wizzup> I see it
<Wizzup> yes please fix
<Wizzup> or shall I?
<freemangordon> replace hildon with maemo?
<freemangordon> I will
<Wizzup> yes
<freemangordon> ok, I will do
<Wizzup> ty
<freemangordon> done
<uvos> <freemangordon> uvos: basically, ACTDEAD means we have /tmp/ACT_DEAD :)
<uvos> yean not that crap has to go
<uvos> so actdead can be a runlevel for charging and one for alarms or watever
<uvos> but all the deamons checking some random file and then having houndreds of if(actead) in the code all over the place
<uvos> (mce literally has 100s
<uvos> )
<uvos> is spagatii crap
<uvos> *spaghetti
<freemangordon> before fixing that we shall have it running
<freemangordon> otherwise we don't know what we fix
<freemangordon> hmm:
<freemangordon> cma: cma_alloc: reserved: alloc failed, req-size: 375 pages, ret: -16
<freemangordon> OS error code 16: Device or resource busy
<freemangordon> this should not happen
<Wizzup> freemangordon: n900?
<freemangordon> yes
<freemangordon> happened twice, during heavy IO
* freemangordon checks how is memory allocated
<Wizzup> uvos: so do you still not get d3 hangs?
<uvos> Wizzup: so i just came home
<uvos> the uptime of my d3 suggests it dident crash
<uvos> but it ussaly hangs while using it
<uvos> i wasent able to test the other day actively more than when i said it dosent seam to crash
<uvos> that was just a couple of hours
<uvos> so maybe
<uvos> if it dident help yours its just noise most likely
<uvos> even it it dosent help with the current hang, i would keep the patch in mind, but maybe not applied
<uvos> since clearly motorola thought it needed at some point, and d3's microcode/fw is so mutch older than d4
<uvos> where they obviously patched it out
<Wizzup> right
pere has joined #maemo-leste
<freemangordon> Wizzup: maybe I shall change DDX to retry allocations until memory is available
<uvos> that can cause an undesirable deadlock no?
<freemangordon> not really
<freemangordon> because we definitely have free CMA memory, it is just that *now* there are too many pages that cannot be migrated
<uvos> sure
<uvos> but do you know that?
<uvos> what happens when something leaks cma
<freemangordon> well, what can we do in such case? restart X?
<freemangordon> I mean - if we have CMA leak, nothing can be done
<uvos> x crashing with obvious messag in this case is mutch better than it hanging
<freemangordon> but, this is not the case here
<freemangordon> well, it can retry some time
<uvos> also cant cma be filled becaue video decoding or whatever is using it
<freemangordon> better that instant crash
<uvos> sure yeah thats fine
<freemangordon> we get -16, not -12
<freemangordon> -EBUSY
<freemangordon> this seems to be returned after 5 retries to free big enough memory block
<uvos> ok
<freemangordon> I am not sure __GFP_REPEAT is usable if passed to dma_alloc_wc
huckg has joined #maemo-leste
<Wizzup> freemangordon: I wonder if something is leaking as well (wrt d4)
<Wizzup> freemangordon: but makes sense to try
<freemangordon> Wizzup: d4 does not use CMA
<Wizzup> freemangordon: yeah
<Wizzup> I know
<Wizzup> btw n900 perf is great now imho
<freemangordon> it is most-probably DMM/TILER that gets fragmented
<freemangordon> yeah, but there is a place for improvement
<freemangordon> we still lack HW accell for compositing
<freemangordon> but will do it after abook etc
<freemangordon> I wonder if I can just allocate a pool of 3 BOs in DDX and call it a day
<Wizzup> mhm
<bencoh> probably (why not?)
<Wizzup> freemangordon: agreed @ boabook
<freemangordon> we still can have issues on rotation though
<bencoh> just allocate buffers large enough hold both orientations
<freemangordon> well, too much unused memory
<bencoh> if you use cma for that and are admittedly the only cma user ...
<freemangordon> in theory we can have more CMA users, like DSP etc
huckg has quit [Quit: Client closed]
<bencoh> sure
<freemangordon> also CMA or not, this is still memory :)
<bencoh> I mean, yeah, but ...
<freemangordon> esp on n900 it is costly
<bencoh> cma memory is not reclaimed for the rest of the system
<uvos> so we are we stil going to be flipping application buffers on d4?
<uvos> or are we blitting everywhere to save n900 cma
<bencoh> so either you will need up to 3 buffers at some point
<bencoh> and there is no downside to allocating it at boot
<bencoh> or you don't, but then I don't see any reason to allocate 3 of those
<freemangordon> uvos: honestly, I am not sure how it works, but judging by the allocations, we flip 3 buffers only. application windows are composited to those 3 it seems
<Wizzup> uvos: clutter does not blit anymore
<bencoh> I'm not sure I understood the fragmented DMM/TILER thing btw
<bencoh> but I gotta go for now :)
<Wizzup> expect blit rather
<freemangordon> Wizzup: yes, but Xorg does
<freemangordon> and basically we do blits to front buffer
<freemangordon> Xorg does flips I mean
<freemangordon> and it basically blits application buffers to the scanout buffer, unless application is in fullscreen
<freemangordon> in which case I am not sure how many scanout buffers we have
<uvos> i mean if the window is not fullscreen i dont see how you have an option except to blit
<freemangordon> right
<uvos> unles you use layers
<freemangordon> not, it blits
<uvos> but fullscren should flip
<freemangordon> yes
<uvos> unless n900 dosent have the ram
<uvos> cma that is
<freemangordon> anyway, I have to stop for today, need some sleep
<uvos> night
<freemangordon> night!
<uvos> freemangordon: bug report btw:
<uvos> freemangordon: xorg allways crashes when you chvt back to it
uvos has quit [Remote host closed the connection]
uvos has joined #maemo-leste
uvos has quit [Ping timeout: 256 seconds]
Pali has quit [Ping timeout: 240 seconds]
Pali has joined #maemo-leste