IRC log for #qi-hardware on 20150104

01:51.38*** join/#qi-hardware atommann (~atommann@119.122.245.99)
02:07.04*** join/#qi-hardware jow_laptop (~jow@srv.mein.io)
02:42.17*** join/#qi-hardware sb0 (~sb0@124244181048.ctinets.com)
03:59.29*** join/#qi-hardware atommann (~atommann@113.88.232.199)
05:11.24*** join/#qi-hardware astr (~astr@79-69-206-237.dynamic.dsl.as9105.com)
06:24.06*** join/#qi-hardware atommann (~atommann@113.88.232.199)
06:30.44*** join/#qi-hardware xiangfu (~xiangfu@101.254.186.29)
07:37.44*** join/#qi-hardware archang (~archang@148.109.128.122.static.ximdns.com)
08:41.51*** join/#qi-hardware jekhor (~jek@nat-minsk-pool-46-53-200-14.telecom.by)
09:10.44*** join/#qi-hardware atommann (~atommann@58.251.146.217)
09:43.04*** join/#qi-hardware FAMAS (~FAMAS@182.48.84.141)
09:57.26*** join/#qi-hardware FAMAS (~FAMAS@182.48.84.141)
10:07.02*** join/#qi-hardware kilae (~chatzilla@catv-162-034.tbwil.ch)
11:45.18*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
12:22.14*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
12:31.01larscpcercuei: yes, happy new year.
12:31.09larscI'm having trouble with your watchdog driver
12:31.25larscthe system reboots after a while even though the watchdog is not enabled
12:33.15pcercueithe upstream version?
12:33.21larscyes
12:34.26pcercueiand it doesn't happen when the watchdog module is not loaded?
12:34.38larscyes
12:35.34pcercueiwe have a couple of changes here: https://github.com/gcwnow/linux/commits/jz-3.18/drivers/watchdog/jz4740_wdt.c
12:36.14pcercueibut that means you need a "wdt" clock
12:46.57larschm, looks as if something actually does enable the wdt
12:47.16larscand once it is enabled the gpios keyboard doesn't work anymore, strange
12:47.28pcercueihuh
12:53.54larscdoes gmenu2x has any watchdog code?
12:56.50mthno, we have a watchdog daemon
13:02.38larscI really wonder why enabling the watchdog kills the gpios
13:03.20mththe watchdog doesn't use any pins, so that's probably not where the interference is
13:03.27mthmaybe it messes with the wrong clock?
13:03.47mthor an interrupt?
13:04.02larscit looks like gpio_get_value() is still correct, but it doesn't generate any interrupts anymore
13:05.56larscactually it seems to kill the timer interrupt
13:26.06larscif I remove the 'writeb(0x1, drvdata->base + JZ_REG_WDT_COUNTER_ENABLE);' I still get the timer interrupts
13:26.12larscotherwise they stop
13:27.07larscstrangely enough writing 0 to it again doesnt fix the issue
13:28.12pcercueiif you write 0x1, you write 0 to the upper 30 bits
13:28.26pcercueiis there anything in there?
13:29.55larscnot according to the datasheet
13:33.30larsceven if I replace the writeb(0x1, with writeb(0x0 it continuous to work
13:39.37larschm, switched things around to first setup the watchdog and then enable the watchdog clock in the tcu and things seem to work
13:46.29larsconly looked like it
13:46.31larscreally strange
13:47.39pcercueiwe don't have those problems with the watchdog on jz4770
13:48.02pcercueiso that's indeed strange
13:57.27larschm, does the watchdog timer also generate an interrupt?
13:59.32pcercueino
13:59.49pcercueithat wouldn't make sense
14:01.41larscit wouldn't
14:01.52larscbut right now the whole thing doesn't make sense
14:02.09pcercueidisable devicetree :p
14:03.13larscthis is plain mainline
14:20.41mththe Ben has a matrix keyboard, right?
14:20.52mthwouldn't that be polled on a timer rather than have GPIO interrupts?
14:23.06larscboth
14:24.37larscit looks as if for whatever reason tcu0 channel just stops
14:25.45mththe watchdog timer stop is in the same register as the tcu timer stop flags, but the code looks fine
14:25.59mthjz4740_timer_enable_watchdog
14:26.36larscI double checked that already, in the register it is still enabled
14:26.48larscalso just calling jz4740_timer_enable_watchdog() doesn't do anything
14:27.16larscproblems only start once the watchdog is enabled in the watchdog core
14:28.40larscif I change the timer code to not use tcu0 everything is fine
14:35.54larscare you using the watchdog on the dingoo?
14:36.25pcercueiwe didn't update the kernel for a long time
14:38.55larscwhich tcu channels are used for pwm on the dingoo?
14:40.46*** join/#qi-hardware atommann (~atommann@58.251.146.217)
14:41.18pcercueiPWM7 for the backlight
15:00.09larscmaybe they just forgot to tell us that the wdt hijacks tcu0
15:02.16larscpcercuei: so, tomorrow morning 8 o'clock? ;)
15:02.31pcercueiprobably not 8 o'clock
15:04.34larsclots of work to do
15:06.16pcercueiit'll take time to even read the emails
15:06.35larscall the ez posts
15:28.09*** join/#qi-hardware Haswell (~Haswell@unaffiliated/haswell)
15:30.43*** join/#qi-hardware FAMAS2 (~FAMAS@182.48.84.141)
15:32.08*** join/#qi-hardware FAMAS2 (~FAMAS@182.48.84.141)
15:32.55*** join/#qi-hardware FAMAS (~FAMAS@182.48.84.141)
16:37.51*** join/#qi-hardware FAMAS (~FAMAS@182.48.84.141)
17:26.11*** join/#qi-hardware jekhor (~jek@134.17.160.121)
17:36.33*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
17:48.56*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
18:44.03*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
19:36.12*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
20:03.49*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
20:14.19*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
20:33.51*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
20:53.24*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
20:54.28*** join/#qi-hardware FDCX (~fdcx@84.232.210.215)
21:01.44*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
21:29.23*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
21:54.10*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
22:22.48*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
22:31.39*** join/#qi-hardware lrockhq (~AOv2@unaffiliated/sirlongrock)
22:49.27*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
22:59.52*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
23:02.23*** join/#qi-hardware FAMAS (~FAMAS@182.48.84.141)
23:23.27*** join/#qi-hardware pcercuei (~pcercuei@95.91.238.33)
23:33.06*** join/#qi-hardware FAMAS (~FAMAS@182.48.84.141)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.