libera/#maemo-leste/ Thursday, 2022-09-01

tmlindfreemangordon: ok i'll take a look at rebasing ngsm serdev patches against v6.0-rc series when i can, then test with restarting ofono and looking for the unsol messages06:51
tmlindfreemangordon: that's after no double open issuses :) if there's some other test you're using, lmk06:52
freemangordontmlind: not sure I understand fully, but ok :)07:58
freemangordonOTOH, if you give me a couple of hints, I can spend some more time on it (serdev driver)07:58
freemangordonlike, I don't understand the layering, it seems here is so many abstraction layers that at the end of the day n_gsm/tty code is like spaghetti to me :)08:00
freemangordon*there are08:00
freemangordonalso, I was not able to find who is sending the bytes over the wire - is it some OMAP uart? or usb->serial convertor? who it is?08:01
tmlindfreemangordon: yeah the traffic goes over a 8250_omap uart08:05
freemangordonah, and we do power management on the opposite side08:06
tmlindn_gsm sets up the channels, serdev takes care of io08:06
tmlindthen each channel can have a real kernel driver, like the gnss driver for mdm660008:06
freemangordonI see08:07
tmlindearlier all that was done over userspace via whatever attach function to init n_gsm, but did not work with pm at all08:07
freemangordonyeah, I was wondering why kernel driver is needed08:08
freemangordoncan;t we just have some small one to control modem gpios?08:08
tmlindheh ttried that :)08:08
freemangordonwhy it would not work?08:09
freemangordoncould it be because n_gsm was too buggy back then?08:09
freemangordonnot that I know how kernel driver (gnss for example) can open tty port :)08:10
tmlindthe traffic works with userspace tools too, but the userspace has no clue about the pm08:10
tmlindsome more info here, that's what i initially tried: https://github.com/tmlind/droid4-ngsm/blob/master/droid4-ngsm.c08:11
tmlindso with serdev-gsm, we can have proper voice modem audio controls via alsa, gnss driver and so on08:13
freemangordonok, what userspace has to do is more or less clear08:13
freemangordonah, I see08:13
freemangordonmakes sense08:13
tmlindalso android has kernel ts27010 driver because of this08:13
freemangordonyeah08:13
tmlindandroid has no serdev, so all the modem features are done in user space libraries08:14
freemangordonok, so serdev driver shall do what userspace does, right?08:14
freemangordonmore or less08:15
tmlindserdev replaces pretty much all the old hciattach, irattach whatever attach glue stuff08:15
freemangordonnot that I know those :)08:15
tmlindwell it sucked to use hciattach or irattach for a long time :)08:16
freemangordonIIUC for porting to 6.x some of the init code in serdev shall be removed08:16
freemangordonas this is already taken care of in n_gsm08:16
tmlindok08:16
freemangordonlike explicit control channel opening08:16
tmlindok08:17
freemangordonok, I'll spend some more time on that, now I have a better idea what happens08:17
tmlindthe serdev-gsm has some issues to fix before upstreaming, johan wanted it to behave more like serdev and less like a mdm driver08:17
tmlindjust fyi08:17
freemangordonwell, I am almost sure I won;t be able to make it work, but ok08:18
tmlindheh08:18
tmlindthe recent n_gsm fixes are good though, earlier the whole n_gsm layer was based on some earlier version of the protocol08:19
freemangordonyes, they say they put that in production08:19
tmlindyeah08:20
freemangordonbut, they break serdev :)08:20
tmlindso ideally the voice call audio mixer and gnss drivers just would use plain serdev read write functions08:20
freemangordonwithout opening tty?08:21
tmlindno just plain serdev_read instead of serdev_ngsm_read in drivers/gnss/motmdm.c for example08:22
freemangordonah08:23
freemangordonnow I got it08:23
tmlindso each dlci would show up as a serial port for the serdev drivers08:23
tmlindwe already just pass the n_gsm fifo around, should be totally doable08:23
tmlindnot sure what needs to be done about the new double init issue, but sounds like you just need to leave out some n_gsm related call from the serdev init in n_gsm.c08:25
freemangordonyeah08:26
freemangordonI already removed tty port register08:26
tmlindok08:26
freemangordonbut, have to figure out how to do the control port init correctly08:26
tmlindok08:26
sicelotmlind: so you're quite conversant with serdev? i may need some handholding working with N900's bluetooth. uses serdev too08:40
tmlindsicelo: not much to it, see for example what sre did for drivers/bluetooth/btwilink.c08:44
tmlindsicelo: hmm but drivers/bluetooth/hci_nokia.c is already using serdev?08:45
tmlindit should just work08:45
siceloyes. he already ported the driver. except it never worked for N900, but only N950. can't remember about N908:46
sicelothe firmware doesn't load. he did troubleshoot back then and it seemed that there was nothing obviously wrong. i don't think i'm even going to fix it either, but i still have interest in N900, and wouldn't mind 'wasting' some cycles on these08:48
tmlindok interesting08:51
siceloi don't see drivers/bluetooth/btwilink.c anywhere (looking at linux 6.0-rc3)09:01
tmlindsicelo: oh sorry, that's the old driver that got dropped in favor of the generic driver09:17
freemangordonhmm, I think I know how to make that (serdev) work09:18
tmlindsicelo: on d4, you can just do modprobe hci-uart; hciconfig hci0 up; hcitool scan09:18
tmlindfreemangordon: ok great09:19
freemangordonlemme recompile09:19
freemangordontakes time :(09:19
freemangordonyep, it does work :)09:40
freemangordonok, going to the gym, will continue laters09:44
sicelofreemangordon: nice10:53
sicelotmlind: yes I've tested bt on d4 successfully before10:54
uvosi use bt on d4 all the time11:11
uvosits fine, except you have to rmmod the module again for it to hit ret11:12
uvosso the driver needs some pm work11:12
freemangordontmlind: 2 questions:11:14
freemangordon1. shall I restore tty register behaviour or leave it to n_gsm driver? Now it unconditionally registers 63 tty devices11:14
freemangordon2. shall I squash my change to your commit or you prefer separate ("port to upstream") commit?11:14
freemangordon*chnages11:17
freemangordonargh... changes11:17
tmlindfreemangordon: 63 tty devices should be ok.. not ideal but who cares11:39
freemangordonok11:39
tmlindfreemangordon: maybe squash it to the earlier commit and add your s-o-b, the patches need to be rebased anyways for upstream11:40
freemangordonright11:40
freemangordonok, will do11:40
tmlindok great, so you got it working?11:40
freemangordonyes11:40
tmlindcool, i'll set up v6.0 patches when i get a chance11:40
freemangordonok, I'll do some more cleanup and experinmenting and will push to leste tree11:41
tmlindok11:56
freemangordontmlind: do we really need   init_retry_quirk?12:10
tmlindfreemangordon: not sure, maybe the need for that has gone now with all the n_gsm fixes12:16
freemangordonmhm, I will remove it12:16
freemangordontmlind: shall I use wait_event_timeout or wait_event_timeout_interruptable in  gsm_serdev_register_dlci while waiting for control channel to be opened?12:29
freemangordonor simply wait_event?12:33
buZzsooooo, any updates on the 2/3G IAPs? :D12:41
buZzoh hey, now i'm getting the 'simcard not found' icon12:42
buZzmaybe my sim just came loose again12:43
tmlindfreemangordon: whatever works :)12:49
tmlindbbl12:49
freemangordonheh12:49
freemangordonok :)12:49
buZzhmm dangit, seems i cant get sim registered in ofono?16:31
buZzat least, reseating million times, powercycling, even swapped it all over to second d4, keep giving 'sim unregistered' icon in statusbar16:32
WizzupbuZz: what ofono version is this?16:34
buZz1.34.3-1+2m7 , from -devel afaik16:35
Wizzupthere shouldbe 1.34.416:37
Wizzupis there not?16:37
Wizzuphm there is not16:37
Wizzupbuilding new one16:39
WizzupbuZz: update and upgrade in ~5 mins16:41
Wizzupthen it should be fixed16:41
buZzalrighty, lets see16:47
buZzalright, getting 2G icon again17:04
buZzstill no GPRS IAP visible, i deleted the one through gconftool-2 -u --recursive-unset17:05
buZzlets see17:05
Wizzupwell, whatever ofono fixes freemangordon did likely do not relate to your provisioning problem(s)17:05
buZzit didnt reprovision it either! (on powercycle)17:12
Wizzupnot surprised, that never worked for you right?17:13
Wizzupis this still youfone?17:13
buZzyeah17:14
buZzi do see it in debug_netreg() calls in iap_conndlg.log17:14
Wizzuparen't those just rssi stuff?17:16
buZzgrep -a OFONO /var/log/maemo/icd2.log <- shows me it always said '17:17
buZz'sim seen for the first time, provisioning' after a 'status 2' msg17:18
buZzbut since yesterdays updates no more17:18
buZzno more Status 217:18
buZzno more 'search finished' either, not sure what that means17:18
buZzWizzup: it did provision every time -again- when starting ofono (or icd2? not sure)17:49
buZzjust overwrote the old settings17:49
buZzbut now its not even doing the initial provisioning17:49
norayrUvos, i think there is important bug in new backend of vkbd17:56
norayrShouldn't i be able to write armenian/etc with it (i. e. by pressing search button on droid4) in gtk2 apps?17:58
norayrI write by tapping only, then i trgger other backend by search button to press enter18:01
norayrBcs enter doesnt work in maemo old backend18:01
norayrBut what i say new backend should also work with pidgin and other gtk2 apps, no?18:02
uvosnorayr: not sure what you are saying18:25
uvosnorayr: you should be able to write armenian in gtk apps by tapping on a field18:26
uvosyou should not be able to write armenian into gtk or any apps when using the xcb backend18:27
uvosunless you have armenian keysims available via xkb keycodes18:27
uvos(ie have armeinan xkb layout active)18:27
uvosenter handling via the old backend is a bit wierd in gtk2 when using the hildon backend, as there is logic when to enter should advance fields, when enter should give the app "enter" and some other stuff18:30
uvosthis is in gtk tho not in him itself18:30
uvosthis works ok for maemo apps, but yeah some desktop gtk2 apps that do something special with enter dont like it (i gues thats pdigin)18:30
uvosso i dont see the bug here18:32
norayrI mean18:53
norayrShuldnt i be able to write armenian in gtk2 pidgin with new backend (search button) and without typing setxkbmap am in terminal.18:55
uvosno18:55
norayrHmmmm18:55
uvosthe target window widget set is immaterial to the xcb backend18:55
norayrOkay18:55
freemangordontmlind: what is "etsi,3gpp-ts27010-adaption1" ?19:15
buZzfreemangordon: any pointers for me to regain provisioning my gprs sim? :)19:38
freemangordonnope19:38
buZz(no rush)19:38
freemangordonI am still at trying to make kernel driver stable19:38
buZzany ideas then? :)19:38
buZzah alright19:38
buZznp19:38
freemangordonrestart ofono19:38
buZzyeah i've done all the dances thusfar, nothing seems to kick it to report 'status 2' to icd2.log19:39
buZz(which seems required to have it provision itself)19:39
freemangordonsorry, no idea19:40
buZzaw, alright tnx19:40
buZzwoooot, restarting ofono and icd2 a bunch of times DID help!19:55
buZzSep  1 19:53:14 localhost icd2 0.98[5884]: [OFONO] Status 219:55
buZzSep  1 19:53:14 localhost icd2 0.98[5884]: [OFONO] SIM 204086485211992 seen for the very first time, provisioning.19:55
buZzSep  1 19:53:14 localhost icd2 0.98[5884]: [OFONO] Search finished19:55
buZzstill no APN in gconf, but, it works19:57
freemangordonWizzup: is it ok to push the new kernel in a separate branch?23:30

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