#qi-hardware IRC log for Sunday, 2014-06-15

apeleteHi larsc, you there ?16:02
apeletewas wondering in which function should data->bytes_xfered be updated (after dma transfer finished)16:03
apeletetried updating it in dma_complete callback, but it does not always work16:04
apeletesometimes the pointer to mmc_data is null from within dma_complete(), which causes a kernel crash16:05
apeletesee here: http://paste.debian.net/105107/16:06
apeletebetter here: http://paste.debian.net/105108/16:08
apeletelarsc: maybe there's a better place than dma_complete() to update data->bytes_xfered ?16:09
apeleteI was thinking about mmc_irq(), don't know if it's called at the end of each dma transfer16:10
DocScrutinizer05dma_complete sounds about logically correct place. You however may want to make sure to use the correct data source, since maybe dma itself changes pointer to mmc_data16:13
larscapelete: doesn't trally matter, as long as it is updated before mmc_request_done()16:14
DocScrutinizer05the correct data source is where dma returns number of bytes transferred16:15
DocScrutinizer05particularly the DMA hw might abort prematurely for whatever rwason, and in this case you want to read out whatever hw register to learn about number of bytes actually transferred16:18
DocScrutinizer05since this approach is also applicable for DMA corectly comleting its job, it's the way to go16:19
wpwrakbwahaha. and so the blitzkrieg begins :)22:04
DocScrutinizer05wpwrak: please elaborate!22:29
DocScrutinizer05you're scaring me22:33
wpwrakargentina vs. bosnia. first goal in the 3rd minute, amidst great confusion on the side of bosnia (it was an own goal)22:49
wpwrakfor the rest of the first half, it was fairly unremarkable. of course, that was to be expected. with one goal in its favour, argentina feels it can rest on its laurels.22:51
wpwrakbut .. so far, so good22:52
wpwrakin any case, it would be a miracle if argentina didn't get past the first around. in its group, there are bosnia, iran, and nigeria. of the three, bosnia is already the strongest opponent.22:53
wpwrakbut it was surprising to hear all the noise as i was still fetching some tv snack. i thought they were particularly enthusiastic to see their team on the field. didn't expect the first goal quite that soon ;-)22:56
wpwrak2nd half begins23:00
wpwrakbosnia got a honorable defeat23:53
--- Mon Jun 16 201400:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!