maxwelld has left #maemo-leste [#maemo-leste]
maxwelld has joined #maemo-leste
parazyd has quit [Ping timeout: 246 seconds]
parazyd has joined #maemo-leste
Armen has quit [Server closed connection]
Armen has joined #maemo-leste
parazyd has quit [Read error: Connection reset by peer]
parazyd has joined #maemo-leste
enyc has quit [Ping timeout: 260 seconds]
enyc has joined #maemo-leste
neimsaci has quit [Quit: WeeChat 4.0.1]
pere has quit [Ping timeout: 248 seconds]
Daanct12 has joined #maemo-leste
SuperMarioSF has quit [Read error: Connection reset by peer]
SuperMarioSF has joined #maemo-leste
ashley has quit [Server closed connection]
ashley has joined #maemo-leste
ashley is now known as Guest2870
Juest has joined #maemo-leste
mp107 has quit [Ping timeout: 246 seconds]
<tmlind> sicelo, arno11: hmm if there are some pwm-ir-tx bugs let's just fix those in the mainline kernel and we'll have a supported generic driver :)
joerg has quit [Ping timeout: 240 seconds]
joerg has joined #maemo-leste
pere has joined #maemo-leste
macros_ has quit [Ping timeout: 244 seconds]
macros_ has joined #maemo-leste
fab_ has joined #maemo-leste
mp107 has joined #maemo-leste
Guest2870 is now known as Elektra
Elektra has quit [Changing host]
Elektra has joined #maemo-leste
Elektra is now known as ashley
uvos__ has joined #maemo-leste
<freemangordon> tmlind: right
<freemangordon> the visible difference is that ir-rx51 is using hrtimer, while pwm-ir-tx does usleep_range(delta, delta + 10); :)
<freemangordon> no way this can do precisely timed emission
<freemangordon> hmm, usleep_range is backed by hrtimer
ceene has joined #maemo-leste
<freemangordon> but! IIUC every call to usleep_range might set new hrtimer, and that takes a lot
<freemangordon> so, to me issue is the new driver sets hrtimer for every pulse
fab_ has quit [Ping timeout: 246 seconds]
<tmlind> freemangordon: seems using fsleep() instead of usleep_range() may fix it.. see mailing list thread "bus: ti-sysc: Use fsleep() instead of usleep_range() in sysc_reset()"
<tmlind> probaly the long term solution is to use a periodic dmtimer for the pulse rather than a timer
<tmlind> i posted some rfc dmtimer clock framework patches a while back, with those pwm-ir-tx could just do clk_get() on a dmtimer..
Juest has quit [Quit: Client closed]
<sicelo> oh gosh! N900 is now completely dropped from u-boot mainline
parazyd has quit [Ping timeout: 246 seconds]
<sicelo> tmlind: yes, i am in full agreement about pwm-ir-tx, if it can be made to work well for us
brabo has quit [Server closed connection]
brabo has joined #maemo-leste
parazyd has joined #maemo-leste
fab_ has joined #maemo-leste
parazyd has quit [Ping timeout: 250 seconds]
<freemangordon> tmlind: I don't see how would you integrate omap-specific dmtimer into generic driver like pwm-ir-tx
<freemangordon> tmlind: do you see any issue in using hrtimer in pwm-ir-tx the same way it is done now in ir-rx51?
<freemangordon> also, I don;t think fsleep will help: https://elixir.bootlin.com/linux/latest/source/include/linux/delay.h#L87
<freemangordon> that's even worse :)
<tmlind> freemangordon: how long is the delay? fsleep uses udelay for short ones
parazyd has joined #maemo-leste
<tmlind> pwm-ir-tx could just do clk_get() if configured in the dts
<freemangordon> tmlind: hard to say predict, it is the uiserspace that sends a buffer with PWM parameters
<tmlind> don't see issues using hrtimer in pwm-ir-tx
<freemangordon> so, we have a carrier of lets say 50kHz
<freemangordon> lemme do some calculations
<tmlind> if it's a longer sleep then yeah fsleep won't help
<freemangordon> so, if I am not mistaken, the period is 20 uS
<freemangordon> so, the rang is 1<->20 uS for 50kHz carrier
<freemangordon> *range
<freemangordon> unless my calculations are wring
<freemangordon> *wrong
<tmlind> ok so fsleep could possibly help
<freemangordon> not really, becaus in > 10uS interval fsleep does usleep_range(usecs, 2 * usecs);
<freemangordon> udelay() is busy loop, no?
<freemangordon> also, on ompa hrtimer is implementd by using dmtimer, no?
<freemangordon> *omap
<freemangordon> ah, scratch my calculations
<freemangordon> carrier has nothing to do with time interval
<freemangordon> you can enable it for as long as you wish, with 1uS resolution
<tmlind> yeah hrtimer is using a dmtimer on omaps, later ones use arm timer for that
<tmlind> however, hrtimer will not be as accurate as using a dmtimer in a periodic mode to trigger pulses, maybe it does not need to be accurate here though
<tmlind> as dmtimer in periodic pwm mode can toggle a gpio pin automatically with no kernel register tinkering
maxwelld has left #maemo-leste [Error from remote client]
<tmlind> fyi if somebody feels like playing with using dmtimers with request_irq() and clk_get(), here's the link to the earlier rfc patches: https://lore.kernel.org/linux-omap/Y1+6bmuup36ZF3H9@atomide.com/
[TheBug] has quit [Ping timeout: 255 seconds]
macros_ has quit [Ping timeout: 246 seconds]
[TheBug] has joined #maemo-leste
macros_ has joined #maemo-leste
maxwelld has joined #maemo-leste
parazyd has quit [Ping timeout: 255 seconds]
parazyd has joined #maemo-leste
[TheBug] has quit [Ping timeout: 246 seconds]
[TheBug] has joined #maemo-leste
[TheBug] has quit [Ping timeout: 245 seconds]
SuperMarioSF has quit [Read error: Connection reset by peer]
SuperMarioSF has joined #maemo-leste
elastic_dog has quit [Ping timeout: 246 seconds]
pere has quit [Ping timeout: 246 seconds]
freemangordon has quit [Quit: Leaving.]
freemangordon has joined #maemo-leste
parazyd has quit [Read error: Connection reset by peer]
elastic_dog has joined #maemo-leste
parazyd has joined #maemo-leste
[TheBug] has joined #maemo-leste
neimsaci has joined #maemo-leste
alex1216 has joined #maemo-leste
pere has joined #maemo-leste
alex1216 has quit [Ping timeout: 245 seconds]
arno11 has joined #maemo-leste
alex1216 has joined #maemo-leste
Blikje has quit [Server closed connection]
Blikje has joined #maemo-leste
SuperMarioSF has quit [Read error: Connection reset by peer]
SuperMarioSF has joined #maemo-leste
maxwelld has left #maemo-leste [#maemo-leste]
SuperMarioSF_ has joined #maemo-leste
SuperMarioSF has quit [Ping timeout: 245 seconds]
SuperMarioSF has joined #maemo-leste
SuperMarioSF_ has quit [Ping timeout: 250 seconds]
<freemangordon> tmlind: we already toggle that gpio pin using dmtimer (pwm is dmtimer backed)
<freemangordon> but, we need another timer to measure the pule width, thus, hrtimer
maxwelld has joined #maemo-leste
<tmlind> freemangordon: you can also capture the time, there was some patch posted for dmtimer for that
<tmlind> not currently supported, i think it was posted by ladislav a few years ago
<freemangordon> with higher precision than dmtimer?
<freemangordon> *then hrtimer
<freemangordon> argh
<freemangordon> than hrtimer :)
<tmlind> i guess you'll get the event time captured so should be more accurate for the measurement, not sure if it matters in this case though
neimsaci has quit [Quit: WeeChat 4.0.1]
<freemangordon> I don't think it matters, as we should precisely get the event to be able to switch pwm on or off accurately
arno11 has left #maemo-leste [#maemo-leste]
Daanct12 has quit [Quit: WeeChat 4.0.4]
<tmlind> ok
ahmed_sam has joined #maemo-leste
arno11 has joined #maemo-leste
<arno11> freemangordon: tmlind: sicelo: i made other test with ir-rx51's patch and it works really well, comparable to Fremantle :) i think the main issue is high idle cpu load with Leste (and then troubles to get correct timing)
<arno11> locking freq at 850 and disabling hildon compo make pierogi working like a charm
<arno11> now i'm able to control a device @ 2 meters
ahmed_sam has quit [Read error: Connection reset by peer]
<arno11> i might try similar test with pwm-ir-tx to see if it works
<arno11> or not
<bencoh> if you feel like cpu goes to idle when it shouldn't, then you might want to disable idle for testing purposes
<bencoh> and you should be able to use cpu_latency_qos_add_request() to prevent it from entering deep idle states during critical tasks
<arno11> thx but the cpu is not on idle when it shouldn't i think. just to much power usage with no apps running
<arno11> n900 is not entering deep idle states at all iirc
<arno11> maybe tweaking realtime cpu priorities could help ?
<bencoh> it still enters some special idle state (instead of the default arm wfi idle), right/
<arno11> ok
<bencoh> (I mean, I was asking, I dunno)
<arno11> ah ok, me too
Danct12 has quit [Read error: Connection reset by peer]
fab_ has quit [Quit: fab_]
alex1216 has quit [Ping timeout: 240 seconds]
SuperMarioSF has quit [Read error: Connection reset by peer]
SuperMarioSF has joined #maemo-leste
<arno11> amazing: able to control a samsung tv @ 4 meters !
<arno11> freemangordon: thx a million for your help with the patch :)
<arno11> sicelo: now it's time for bluetooth/fmrx stuff :D
ceene has quit [Ping timeout: 250 seconds]
alex1216 has joined #maemo-leste
<sicelo> that'd be a dream come true ... practically everything working
Armen5 has joined #maemo-leste
<bencoh> \o/
<sicelo> of course there's more stuff, e.g. DSP, PM, etc., but yeah with BT and FM RX, things would be looking really good
Armen has quit [Ping timeout: 246 seconds]
Armen5 is now known as Armen
<arno11> yes indeed :D
danielinux has quit [Server closed connection]
danielinux has joined #maemo-leste
ceene has joined #maemo-leste
noidea__ has quit [Remote host closed the connection]
noidea_ has joined #maemo-leste
ceene has quit [Ping timeout: 245 seconds]
branon has quit [Ping timeout: 246 seconds]
branon has joined #maemo-leste
alex1216 has quit [Ping timeout: 246 seconds]
arno11 has left #maemo-leste [#maemo-leste]
alex1216 has joined #maemo-leste
pere has quit [Ping timeout: 255 seconds]
arno11 has joined #maemo-leste
uvos__ has quit [Ping timeout: 250 seconds]
uvos__ has joined #maemo-leste
xmn has joined #maemo-leste
SuperMarioSF has quit [Read error: Connection reset by peer]
SuperMarioSF has joined #maemo-leste
maxwelld has left #maemo-leste [#maemo-leste]
maxwelld has joined #maemo-leste
Juest has joined #maemo-leste
maxwelld has left #maemo-leste [#maemo-leste]
Danct12 has joined #maemo-leste
alex1216 has quit [Ping timeout: 240 seconds]
Juest has quit [Quit: Client closed]
Juest has joined #maemo-leste
uvos__ has quit [Ping timeout: 246 seconds]
akossh has joined #maemo-leste
pere has joined #maemo-leste
alex1216 has joined #maemo-leste
pere has quit [Ping timeout: 245 seconds]
maxwelld has joined #maemo-leste
pere has joined #maemo-leste
ahmed_sam has joined #maemo-leste
uvos has joined #maemo-leste
<uvos> sicelo: fyi your patch was mangled somewhere by the tabs being replaced by spaces
<uvos> please avoid this in the future
<uvos> also really this should be several patches
<Wizzup> uvos: this is just a patch to test things :)
<Wizzup> but not harmful (hence devel)
alex1216 has quit [Ping timeout: 240 seconds]
ahmed_sam has quit [Read error: Connection reset by peer]
<sicelo> my mom still has my droid4 hostage ... may anyone share the output of `cat /sys/class/power_supply/battery/uevent` on droid 4
<sicelo> thanks!
arno11 has left #maemo-leste [#maemo-leste]
norayr has joined #maemo-leste
akossh has quit [Ping timeout: 246 seconds]
norayr has left #maemo-leste [Error from remote client]
maxwelld has left #maemo-leste [#maemo-leste]
uvos has quit [Ping timeout: 245 seconds]