libera/#maemo-leste/ Friday, 2023-09-15

freemangordontmlind: seems there is some issue with   schedule_hrtimeout(), it always waits ~300 us more than what requested08:06
freemangordonI am afraid we have way bigger issue on n900 than non-working IRTX08:07
arno11fremangordon: what kind of issue ?08:42
freemangordonarno11: hard to tell how it manifests itself from user POV, but *every* schedule_hrtimeout()  call (and thus every usleep_range() call and who knows what else) sleeps at least ~300 us more than the requested delay08:46
arno11could explain general latency issues ?08:51
freemangordonmhm08:51
freemangordonthis is used all over the place https://elixir.bootlin.com/linux/v6.1.48/C/ident/usleep_range08:52
freemangordonand this is seen as posix timers from userspace08:53
freemangordonso, basically there is no way to sleep for less that 300 us, unless I am doing something stupid when measuring08:53
freemangordonlets see if tmlind has some idea08:54
arno11ok08:55
arno11wow indeed it is used all over the place...08:59
sicelothese are omap3 problems? just odd that it'd be N900-specific09:34
freemangordonmhm10:48
freemangordonlemme boot my d4 to check what the latency is10:48
uvos__Wizzup: tmlind: sure i know its exposed on alsa interface, the problem is this isent wired up to ofonos dtmf interface (nor is it how ofono expects to execute dtmf tones, this seams to go via qmi)11:00
uvos__so ideal we would add support for it in ofono, since sphone should try to avoid being the hw abstraction layer11:00
uvos__dtmf via qmi seams to not work on d411:01
freemangordonwhy not use tonegend?11:03
freemangordonhttps://github.com/maemo-leste/maemo-multimedia-tone-generator/blob/master/src/dtmf.c11:05
uvos__this is impossible11:05
freemangordonwhy?11:05
uvos__we _can_not_ send any audio to the modem via cpu in a call11:05
freemangordonwe can't send audio?11:05
freemangordonah11:05
uvos__the modem is given the microphone11:05
uvos__it records itself11:05
freemangordonok, but what if we want to record the audio?11:05
uvos__we can record11:06
freemangordonbut not play?11:06
uvos__there a special dai11:06
uvos__jup11:06
freemangordonugh :(11:06
uvos__we should instead wireup tonegend to ofono really11:06
uvos__so the interfaces can be the same on any deivce11:06
freemangordonmhm11:06
freemangordonbut, how would that help in d4 case?11:07
uvos__well it would allow sphone to not worry about if dtmf is implemented in hw or software11:07
freemangordonok, d4 has the same latency issue11:07
freemangordonuvos__: ah, right11:07
freemangordonwe just ask ofono for dtmf11:07
uvos__yes11:07
uvos__"ok, d4 has the same latency issue" ugh11:11
uvos__thats terrible11:11
uvos__xD11:11
freemangordonsudo cyclictest -s --mlockall --priority=8011:13
freemangordonT: 0 ( 6044) P:80 I:1000 C:  16991 Min:      7 Act: 1014 Avg:  401 Max:    199011:13
uvos__i wonder if kselftest would have caught this11:13
uvos__and if we should be running it11:13
freemangordonwhat is kselftest?11:14
freemangordonah11:14
uvos__the kernels test suite11:14
freemangordonok, but can we do when cross-compile?11:14
uvos__hmm dont see why not, you compile it for arm32 and run the test on device11:15
freemangordonany idea which specific test sshall be run?11:16
uvos__well the idea would be to run the entire suite, i dont really know if it would have caught this specific issue11:17
freemangordonhttps://pastebin.com/yueUp5gN11:19
uvos__neat12:15
arno11bencoh: Wizzup: weird cases with calls happen with N900 too: sometimes ringtone is not starting at all or too late. and depending of sim card/provider sometimes tone is not working at all19:28
arno11i didn't notice the sms bug19:29
arno11*btw19:30
Wizzuparno11: yeah this is d419:32
arno11yeah i know19:34
arno11just to compare19:34
siceloWizzup: https://github.com/maemo-leste/libicd-network-ofono/pull/1/commits/944850b6444feb511dc97652d9987af994fb8ecc23:25
sicelo i hope this change is correct? i think testing for dns[0] again was a typo.23:26
siceloanyway, the one i'm more interested in is, https://github.com/maemo-leste/libicd-network-ofono/pull/1/commits/803f91fdd9bd1e68383c93b0f52190ad4e72732f23:27
sicelowill be happy to have your review and eventually merge. it's something that does bug me a lot23:28
siceloarno11: ofono in general is rock-solid on N900, so yes :-)23:29

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