libera/#maemo-leste/ Sunday, 2021-09-26

rafael2k_uvos_: where is it. sure!08:32
rafael2kdid not know about sphone08:40
tmlinduvos: any idea what sets the d4 pwr + vol down reset time to 8 secs? looks like xyboard have it set to 12 secs, would be nice to set it to 1 sec for development :)09:30
tmlindmaybe the cpcap firmware?09:30
tmlinddid not see anything obvious diffing cpcap regs09:31
Wizzuprafael2k: not yet, will do today09:51
uvostmlind: no idea, yeah might be part of the fw rom10:15
uvosrafael2k: https://github.com/maemo-leste/sphone10:15
uvosrafael2k: it works mostly fine now and is quite usable allready. things to do would be:10:16
uvosport to gtk310:16
uvosreplace the awful sms ui with something that tracks conversations10:17
uvosmake the ofono handling a pluging you can replace with other backends10:17
uvosany general ui improvements you can think of10:17
uvosmy goal of sphone is for it to be a dialer that works on any dekstop linuxy distrobution but also has optional support for some maemo specific stuff10:18
tmlindcool10:29
tmlinduvos: i'll check if pressing vol down also changes some cpcap reg, maybe it's wired to cpcap gpio and handled by the fw10:29
tmlindvol down does not seem to trigger anything in the cpcap regs10:43
uvosdosent mean anything10:46
uvossince neither dose headphone switch10:46
tmlindyeah10:46
uvosand the fw clearly handles that too10:46
tmlindyup10:46
tmlindcan't find the cpcap fw on xyboard10:47
tmlindat least mz609 is super flakey after booting, memtester fails within seconds10:48
tmlindmz617 does not have the lvds bridge on i2c so best to do mz609 first btw10:48
tmlindalso mz609 has the same backlight as xt894 so less moving things10:48
tmlindi have some debug statments for the bridge and omaprdm probe and it's a -EPROBE_DEFER loop where both fail :)10:49
uvosok ram is fine in android right?10:49
tmlindlooking for each other10:49
uvosdont have a mz609 but sounds like its the better target for now10:49
tmlindyeah android seems ok, i have not seen any crashes booted to android on my mz60910:49
uvostmlind: haha ok :P10:50
tmlindthis is without the emif node btw, so emif should be using android timings10:50
uvosyeah ok10:50
tmlindalso diffed the cpcap regs, not much regulator changes there except for the always on regulator differences10:50
tmlindalso mz609 can be reflashed so also a better target that way :)10:50
uvosok wierd then :\10:50
uvosyeah the guy who wrote me an email claiming to have the file for mz617 just never responded again10:51
uvos:(10:51
tmlindoh bummer :( i'll try to sort out the memory issue naturally first10:51
tmlindmy guess is upstream is busy trying to fix the drm bridge init loops looking at lore.kernel.org/dri-devel archive and searching for bridge10:52
tmlindso on mz617, the lvds bridge is controller via mpi dsi, i think the mainline driver has currently no support for that10:52
tmlindon mz609, the same lvds bridge can also be controlled over i2c that might work with the patched mainline bridge driver10:53
uvosok10:54
uvosside note do we need to mess with the chip at all? its state should be set by the android kernel when we take over or? basic display output should just light up if the dsi is setup the same or?10:55
uvosor is the chip reset somehow10:55
tmlindyeah maybe, don't know yet10:57
tmlindoh mz609 also has the mdm9600 on the ohci bus like xt894 has mdm6600, so gps might be easier to do too10:59
tmlindmz617 has it on ehci that might need a phy driver11:00
uvosto bad only mz6xx has mdm9600 at all..11:00
uvosbut yeah mz609 sounds like the better target11:01
tmlindyeah so it seems11:02
tmlinduvos: i think the bootloader needs to crank up the cpu speed to 1.2 to use the right android emif timings11:36
tmlindlooks like i wrongly tried lowering the cpu speed in the bootloader.. i'll drop that hack11:37
uvosok11:38
uvosnote that on bionic the opp that the mainline kernel starts with after kexec seams random.11:38
tmlindok11:42
tmlindnote to self and others: we do this in the bootloader echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq11:42
tmlindand the reason why it's needed is to put emif timings needed in place for 1.2gz11:43
tmlinduvos: a hack to test would be to start some cpu load while doing kexecboot :)11:43
uvosyeah11:43
uvosso mz609 android scales the ram bus clock with opp?11:43
uvosor whats happening here11:43
tmlindso it seems, at least the dumped emif reg values are different right now between linux and android for me, but looks like i patched in a lower cpu speed11:44
tmlindi'll check the emif values shortly again after removing my hack11:45
uvosdid you check if this happens on xt8xx?11:45
uvoswe might just be having luck11:45
uvoswith those being stable11:45
tmlindyeah and it probably also explains why adding the default emif values make things flakey, they might be missing the 1.2 opp11:45
tmlindwe should dump out all the android emif values for the various operating points and add them to the dts files..11:45
uvossounds like11:46
uvosit11:46
uvosill do xt87511:46
tmlindi'm using this to dump the emif values out:11:46
tmlindrwmem 0x4c000000+0xef11:46
tmlindrwmem 0x4d000000+0xef11:46
uvosok11:47
uvosi assume omap4-panda-common.dtsi and elpida_ecb240abacn.dtsi11:50
uvosare good examples wrt the dts bindings11:51
tmlindyeah and seems like also the moto kernel are using the same timings as those11:54
uvoson xt894 its also the same elpida chip afaik11:55
tmlindi think so at least.. but i think the mainline kernel might be missing the 1.2ghz values11:55
uvosat least looks like it on ifixit11:55
tmlindok11:55
Wizzuprafael2k: uvos: telepathy would also be on my mind12:32
tmlinduvos: i think we also want to set the scaling_governor to userspace in bootloader. will look into later on, later12:35
uvosWizzup: "make the ofono handling a pluging you can replace with other backends"12:37
Wizzupuvos: right13:09
Wizzupfreemangordon: do you think it would help if you dropped juha an email some time?14:33
WizzupI will try to mail him one last time this week, but after that I'll probably not bother anymore14:33
freemangordonI don;t know him so I am not sure it would be of any help16:53
freemangordonbut I may reply to your new mail once you send it16:53
freemangordonmaybve we can try to ping him on #nemomobile or something16:54
WizzupI didn't see him there17:10
Wizzupwell I can continue without his help still I think17:10
rafael2kuvos: yay! tks!17:22
rafael2kWizzup: ok!17:23
rafael2kuvos: Are you if'defing maemo specific code?17:23
_uvos_yes currently all maemo specific stuff is ifdefed17:45
_uvos_in the future i would like to modularize some stuff17:45
_uvos_so that maemo specific support van be optionaly loaded at runtime17:46
_uvos_like mce now works17:46
_uvos_i currently use sphon on leste and on plain debian on d417:46
_uvos_an for development i just build it on my x86 machine on arch17:46
Wizzup_uvos_: did you ask the z617 again btw? (re: not responding)17:55
_uvos_Wizzup yeah i sent him 3 emails spaced over a couple of weaks18:00
_uvos_weeks even18:00
Wizzupmhm18:00
_uvos_so yeah i think we have to resign on finding that file18:01
_uvos_since no one else who turned out to have a copy who was repsonsive18:02
Wizzupthat'd suck18:02
_uvos_yeah18:03
_uvos_well at least we can still install kexecboot anyhow18:03
Wizzupright18:03
tmlindbummer18:05
tmlindi think my mz609 might really have bad memory, memtester on it fails also with my rootfs with the android kernel..18:06
Wizzupboth uvos and I have one or more, so we could potentially run some tests if you want18:07
_uvos_no i dont18:07
_uvos_mine has briken flash18:07
_uvos_*broken18:07
Wizzupok, I should check how many I have here then... :)18:07
tmlindi may have another one somewhere in my boxes, need to check18:08
sicelowould anyone have suggestions on how to debug (and possibly fix/improve) USSD 'dialogue' issues on the Droid 4, running stock Android 4.x?18:28
siceloby dialogue, i mean - the opposite of a 'one-shot USSD query'. The Droid 4 is able to handle one shot queries, but once it becomes an ongoing request-response cycle, things break18:33
_uvos_stock android is not foss18:33
_uvos_try it with los18:33
_uvos_first18:33
_uvos_also try it using the qmi interface on mainline to elliminate the modem firmware simply being broken18:34
sicelopossibly some entered characters get lost - since in one of the dialogues, i have to enter a 5-digit password, but the prompt returned is to the effect that I have not entered 5 characters18:34
_uvos_ok18:34
siceloi think it's the modem actually. iirc i've used qmicli with it in the past, but can retest. currently USSD (even one-shot) does not work with mainline, unless situation changed recently18:35
rafael2kuvos: cool! what is sphon?19:30
rafael2kuvos: ifdef is fine19:35
rafael2k; )19:35
Wizzuprafael2k: I imagine he meant sphone?19:46
uvoshe did19:46
uvossicelo: well if it is the modem we are out of luck since we cant change it19:47
freemangordonkona: hmm, seems gio is stupid (in regards to tinyvfs) :(.20:31
freemangordonthere is GFileInputStream GFileOutputStream and GFileIOStream20:31
freemangordonbut, they are not interchangeable20:32
konaYeah,  you want me to try to test it with some changes?20:32
freemangordonthe point is that modest tries to open stream read-only20:32
freemangordonbut you can;t have read-only GFileIOStream20:32
freemangordonunless I am missing something20:33
konaIt's going to have to be GFileIOStream, I think,  the way the original tinyvfs was designed.20:33
konaOh20:33
konaGrr20:33
freemangordonbut this is always opened read-write20:33
freemangordonyeah20:33
konaIf you have better things to do,  I'll gladly figure this out,  just don't want to duplicate effort20:34
freemangordonso, unless you have a better idea, I am going to implement run-time check for the type of stream that is passed to  tny_vfs_stream_new20:34
freemangordondon;t worry, it will be trivial change, it is just that I was badly surprised by gio20:35
freemangordonalso, I am about to finish modest port to gio20:35
freemangordonso I think it will be faster if I do it now my hands are anyways dirty with tinymail/modest code20:36
konaOk, that sounds good.  I was thinking switching to libsylph+litehtml someday maybe instead of tinymail,  but I'm not yet convinced20:36
freemangordonif you have a better idea but a runtime check for the type of stream, please share20:36
konaIt feels like there ought to a base class of stream that can be opened ro rw etc and cast to the others,  but it looks like there is not, so a runtime check is the way we must go?20:38
konaI also wonder whether all of these can be cast to seekable...20:40
konaTinymail-gnomevfs seemed to assume that,  so tinymail-gio does,  too20:41
freemangordonyes, all of these implement seekable, but they are not interchangeable20:46
freemangordonlike, you cannot call   g_output_stream_write on anything else but GFileOutputStream20:47
Wizzupare they not castable?20:47
freemangordonhmm, wait20:48
freemangordonWizzup: no, they are not20:50
freemangordonall are GObject successors20:51
freemangordonhowever, you can call g_io_stream_get_input_stream and g_io_stream_get_output_stream20:51
konaI think the ossopdf PR cast some of them, and i think I incorrectly thought that meant I could cast all of them.20:51
konaOh.20:52
Wizzupkona: if you find bugs in the pdf port, let me know ;)20:52
konaI can't prove any of it :)20:52
uvoswell the pdf reader crashes all the time20:53
freemangordonkona: please, at least open in issue, something in the lines "hmm, this doesn;t look good" :)20:53
uvosits liekly not a good referance20:53
uvoswe have an issue on it20:53
freemangordonif there are casts from iostream to inpitstream or outputstream, no wonder20:53
uvosfor instance opening a file and then opening another causes segault 100% of the time20:53
uvosno idea i never looked at the code20:53
uvos@freemangordon20:53
freemangordonI see20:55
uvoshttps://github.com/maemo-leste/bugtracker/issues/55620:55
uvosnot segfault maybe20:55
uvosi dont recall exactly20:55
freemangordonWizzup: kona: seems GIOStream 'wraps' GInputStream and GOuptuStream, but, its 'stream' properties are read-only, so IIUC one cannot create 'empty' GIOstream and then assign input or output stream20:56
freemangordonwhat a stupid design20:56
freemangordonanyway, bbl20:56
konafreemangordon: in pdf port, will go have a look and then open an issue.21:01
konaosso-pdf-viewer PR looks fine, it casts GFileInputStream to seekable, and never tries to change to an output stream.  But I erroneously assumed I could cast GFileIOStream to/from the other IOStream classes, and that was my bad.21:35
freemangordonI see22:48

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