IRC log for #maemo-ssu on 20121230

01:06.10*** join/#maemo-ssu joshgillies (~josh@124-171-115-220.dyn.iinet.net.au)
01:16.06*** join/#maemo-ssu andre__ (~andre@wikimedia/aklapper)
02:34.59*** join/#maemo-ssu AndrewX192 (~andrew@20aa4b03b846.click-network.com)
02:34.59*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
02:41.46*** join/#maemo-ssu AndrewX192 (~andrew@131.191.23.122)
02:41.46*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
02:46.47*** join/#maemo-ssu AndrewX192_ (~andrew@131.191.69.108)
02:46.47*** join/#maemo-ssu AndrewX192_ (~andrew@unaffiliated/andrewx192)
02:51.47*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
02:57.25*** join/#maemo-ssu AndrewX192 (~andrew@131.191.69.108)
02:57.26*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
03:02.32*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
03:07.33*** join/#maemo-ssu AndrewX192 (~andrew@131.191.23.122)
03:07.33*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
03:30.51*** join/#maemo-ssu AndrewX192_ (~andrew@131.191.69.108)
03:30.51*** join/#maemo-ssu AndrewX192_ (~andrew@unaffiliated/andrewx192)
03:35.51*** join/#maemo-ssu AndrewX192 (~andrew@unaffiliated/andrewx192)
03:53.40*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
03:56.20jon_ymerlin1991: ping
04:03.35*** join/#maemo-ssu DocScrutinizer05 (~HaleBopp@openmoko/engineers/joerg)
04:03.59jon_ymerlin1991: did you ever encounter something about a missing libfakeroot-sysv.so when doing http://wiki.maemo.org/CSSU-thumb_toolchain_setup_%28gcc4.7.2-linaro%29 ?
04:14.29merlin1991nope, but I never set one up
04:14.47merlin1991freemangordon: ^^
04:36.40*** join/#maemo-ssu _xnt14 (~xnt14@xceleo.us)
04:44.45jon_ymerlin1991: I copied the so from FREMANTLE_ARMEL
04:44.49jon_yno idea if it is OK
04:47.49jon_ymerlin1991: also, is there a way for scratchbox to access outside the chroot?
05:18.13merlin1991nope
06:56.20*** join/#maemo-ssu dhbiker (~dhbiker@APN-123-117-7-gprs.simobil.net)
07:21.04jon_yoh haha wow, I've been building the kernel wrong all these time
07:21.26jon_yneed to extract kernel sources first into the git checkout
07:21.34jon_ynothing about that in the README
08:29.55*** join/#maemo-ssu jonwil (~jonwil@27-33-137-199.static.tpgi.com.au)
09:12.54*** join/#maemo-ssu Estel_ (~Estel@Maemo/community/contributor/Estel-)
10:29.18*** join/#maemo-ssu M4rtinK (~M4rtinK@mail.melf.eu)
11:03.18*** join/#maemo-ssu NIN101 (~NIN@p5DD28B5D.dip0.t-ipconnect.de)
12:05.19*** join/#maemo-ssu BCMM (~BCMM@unaffiliated/bcmm)
12:21.08*** join/#maemo-ssu arcean (~arcean@aacs56.neoplus.adsl.tpnet.pl)
12:28.36*** join/#maemo-ssu freemangordon (~freemango@130-204-50-168.2074221835.ddns.cablebg.net)
12:30.10freemangordonmerlin1991: x86
12:41.27*** join/#maemo-ssu kolp (~quassel@212.255.23.54)
12:46.08*** join/#maemo-ssu luf (~luf@ip-89-102-208-114.net.upcbroadband.cz)
12:59.23luffreemangordon, merlin1991: what about thle libxml2 merge request? I think we agreed it's bug and should be fixed.
12:59.39lufhttps://gitorious.org/community-ssu/libxml2/merge_requests/1
13:03.18DocScrutinizer05((is there a way for scratchbox to access outside the chroot?)) depends on definition of "access". You can do all sorts of wget apt-get etc. You also can bindmount dirs form host into chroot, that's how a chroot works
13:04.06DocScrutinizer05actually SB can do apt-get only because host's /dev is bindmounted into the chroot
13:05.09DocScrutinizer05those bindmounts are also the reason why it's a VERY BAD idea to rm -rf /scratchbox
13:05.28DocScrutinizer05ask mohammad if you wanna know how bad an idea that is
13:20.33jon_yDocScrutinizer05: I forgot about bind mount
13:30.23lufgregoa: ping
13:30.23gregoaluf: You sent me a contentless ping.  This is a contentless pong.  Please provide a bit of information about what you want and I will respond when I am around.
13:32.26lufI built libxml2 deb package and it put into depends (using shlibs) zlib1g (>= 1:1.2.1). But I patch it and the required version of zlib1g should be 1.2.3. I don't see where the shlibs takes the 1.2.1 version.
13:32.38lufgregoa: ^^^
14:17.04*** join/#maemo-ssu arcean_ (~arcean@aacs56.neoplus.adsl.tpnet.pl)
14:18.41*** join/#maemo-ssu arcean_ (~arcean@aacs56.neoplus.adsl.tpnet.pl)
14:19.38*** join/#maemo-ssu zogg_ (~zoggrules@bzq-109-64-160-7.red.bezeqint.net)
14:23.35*** join/#maemo-ssu arcean (~arcean@aaeo165.neoplus.adsl.tpnet.pl)
14:53.33*** join/#maemo-ssu Martix (~martix@4.177.broadband3.iol.cz)
15:13.56gregoaluf: zlib1g has a shlibs file that says: "libz 1 zlib1g (>= 1:1.2.1)" and that gets inserted in your libxml2 builg via the "${shlib:Depends}" in debian/control. if you need 1.2.3, then just adding "zlib1g (>= 1:1.2.3)" to the Depends line in debian/control should be enough. (or bumping the shlibs in zlib source package and rebuild and build libxml2 against that one)
15:30.45*** join/#maemo-ssu arcean_ (~arcean@aaeo165.neoplus.adsl.tpnet.pl)
15:38.05freemangordonluf: https://gitorious.org/community-ssu/libpng
15:53.08luffreemangordon: coool
15:54.08luffreemangordon: We need to revert commits with the NEON opts I added.
15:54.26freemangordonluf: I am testing now with test suite on png website, so far so good
15:54.37freemangordonluf: no, my changes are on top of those
15:55.23freemangordonluf: BTW I don;t guarantee there won;t be some buffer overflow, please check aligment part :D
15:55.43lufAhhh I see.
15:56.47freemangordonluf: well, it should be ok, but i'll prefer another one to review it
15:56.55freemangordon*i'd
15:59.43luffreemangordon, merlin1991: what about thle libxml2 merge request? I think we agreed it's bug and should be fixed.
16:00.10freemangordonI am ok
16:00.24freemangordonbut only merlin1991 can merge
16:00.47lufok.
16:02.28freemangordonluf: BTW libpng neon patch can be used without alignment part, but performance is worse
16:03.20freemangordonnow it scores 2.220, unaligned ~2.400
16:03.35lufNice.
16:14.02luffreemangordon: png_read_filter_row: unsigned int bpp = (png_ptr->pixel_depth + 7) >> 3; - what does it do?
16:14.21freemangordoncalculates bytes per pixel
16:14.32freemangordonbut htis is original code
16:14.41lufI see.
16:16.15luffreemangordon: did you add prev_row to the struct?
16:16.25freemangordonno
16:16.34freemangordonI didn't touch ABI
16:16.35lufI see stupid question ...
16:21.05luffreemangordon: just one thing. 15 upstream has png_ptr->old_prev_row_size = row_bytes + 64; below row_buf setting. I see you keep it above ...
16:22.38lufs/old_prev_row_size/old_big_row_buf_size/
16:28.55freemangordonluf: lemme check
16:29.22lufAlso I don't think it's good to set old_prev_row_size prior to prev_row allocation.
16:29.41lufI think also prev_row should be 16-bit aligned.
16:30.07lufBased on libpng15 code: png_ptr->row_buf = temp - extra - 1/*filter byte*/; png_ptr->prev_row = temp - extra - 1/*filter byte*/;
16:30.11freemangordonluf: your first wuestio: it does not really matter which one will be set first
16:30.20freemangordon*question
16:31.11freemangordonluf: prev_row alignment is done in real-time, that was the hack I was talking aboot
16:31.34freemangordonupstream 15 has an additional struct member to keep unaligned pointer
16:31.41freemangordonwe don't :)
16:32.20freemangordonso I keep unaligned pointer and calculate/pass aligned when needed
16:32.33freemangordona bit of overhead, but no option there aiui
16:33.04freemangordonnot that I like that much :D
16:33.18lufSo row_bytes is always 16-bit aligned?
16:33.27freemangordonno
16:33.51freemangordonaiui we alloc row_bytes+64
16:34.29freemangordonthat's called big_row_buf or smtg
16:34.54freemangordonrow pointer is aligned within this buffer
16:35.09freemangordonso we have padding before and after the real row
16:35.51freemangordonI am not sure i fully understand why this padding is needed, that's why i wanted a code review
16:38.08freemangordonvalgrind reports no bad memory access, no memleaks :)
16:38.54*** join/#maemo-ssu dhbiker (~dhbiker@APN-123-51-72-gprs.simobil.net)
16:41.47lufwhat does png_memset_check do?
16:43.18freemangordonNFC, but I gues it does memset :D
16:45.05lufSo what's the reason to align16 in png_mem_check?
16:45.27lufI think it's  a bug.
16:45.29freemangordonluf: which line?
16:46.29luf3179
16:46.42freemangordonluf: png_memset_check(png_ptr, align16(png_ptr->prev_row), 0,
16:46.42freemangordonpng_ptr->rowbytes + 1);
16:46.46freemangordonluf: that code?
16:47.08lufyes.
16:47.22freemangordonno, it is ok, we don't need the whole buffer zeroed
16:47.30freemangordononly the part that is used
16:48.07lufYeah allocated is rowbytes+64 so it doesn't overflow.
16:48.26freemangordonpng_ptr->rowbytes is the "real" row bytesize, not the "big buffer" size
16:50.19lufI don't see why the buffer around is needed. But I see no problem in you code.
16:50.56lufJust one more question. Why you changed if ((png_uint_32)row_bytes + 1 > (png_uint_32)65536L) ?
16:51.58lufI see no reason for such change.
16:57.49freemangordonluf: aiui I think the padding is just in case :D
16:58.28freemangordonluf: which line is that change?
16:59.44freemangordonluf: BTW 64 bytes is a bit of overkill, upstream 1.5 use 48
17:01.35freemangordonluf: re why i changed ^^^ - aiui this code becomes redundant, TBH I don;t see a reason for it to be there even in not-patched version
17:01.46freemangordon*non-patched
17:09.04freemangordonluf: results for http://en.wikipedia.org/wiki/File:PNG_transparency_demonstration_2.png - http://pastebin.com/UYvdgcsb
17:09.14freemangordonimpressive
17:11.16kerioheh
17:11.28keriodo the test on the true transparent one
17:16.30freemangordonkerio: wanna do it yourself? i'll upload the binaries
17:16.59keriois the thumby deb for libpng somewhere?
17:17.08freemangordonjust a minute
17:18.52freemangordonkerio: http://merlin1991.at/~freemangordon/libpng/
17:19.03freemangordon.deb is thumb-compiled, despite the name
17:22.01freemangordonkerio: transparency shhould not affect decoding time
17:23.25luffreemangordon: You're right. That code has to write some drunken dev. As "Row has too many bytes to allocate in memory." is behind some memory (re)allocation :D
17:24.37luffreemangordon: Frommy POV the align part is ok.
17:26.13lufmerlin1991: ping
17:28.17luffreemangordon: more interesting should be ARM againist NEON with same thumb/non-thumb and gcc.
17:28.49lufHowever 30% speed up is nice ;)
17:29.13keriofreemangordon: it's ok if pngtest.png and pngout.png are different, right?
17:29.39lufkerio: it should be ... due to zlib etc.
17:31.19lufkerio: let's try rename the pngout.png and test it on that new ;)
17:32.44freemangordonluf: what do you mean ARM against NEON?
17:32.54lufhttp://pastebin.com/UYvdgcsb
17:33.16lufI see ARM, gcc 4.2.1 vs NEON+THUMB, gcc 4.7.2:
17:33.32kerioCPU time used = 31.420 seconds (decoding 2.370, encoding 29.040 , other 0.010 seconds)
17:34.06freemangordonluf: THUMB makes almost no difference
17:34.15keriohold on, i already had a thumby one
17:34.16freemangordonsee encoding times
17:34.27freemangordonkerio: yes
17:34.40luffreemangordon: and different gcc also?
17:34.48freemangordonlooks like
17:34.55lufok.
17:35.08kerioCPU time used = 30.800 seconds (decoding 1.580, encoding 29.170 , other 0.050 seconds)
17:35.14kerioholy balls
17:35.23keriofreemangordon: what's this new libpng?
17:35.26kerioNEONized one?
17:35.43freemangordonluf: why don't you test it, pngtest binary is here  http://merlin1991.at/~freemangordon/libpng/
17:35.46freemangordonkerio: yes
17:35.52lufkerio: yes NEONized + memory alignment
17:35.54keriothumbify it, too!
17:36.01freemangordonit is thumbified
17:36.21luffreemangordon: I'm still running non-thumb version.
17:36.46freemangordonluf just build the .deb dammit :P
17:36.56freemangordonluf: ok, i'll build it for you
17:37.03freemangordonhold on a minute
17:37.07lufBTW I see several reboots on my dev N900 yesterday. I installed tklocks and others from cssu-devel.
17:37.18luffreemangordon: don't do it.
17:37.23lufI'm leaving now ...
17:37.31freemangordonluf: reboots?
17:37.46freemangordondo you have sp-rich-core installed?
17:38.10freemangordonluf: before you leave
17:38.20luffreemangordon: I have to leave now. I'll continue later or tomorrow.
17:38.23freemangordonwhere is neon-patched zlib?
17:38.38freemangordonok
17:39.01lufNo I don't have.
17:39.09freemangordonok
17:39.10lufYou know where is the source.
17:39.30lufhttp://merlin1991.at/~luf
17:39.40lufhttp://merlin1991.at/~luf/zlib/source/
17:40.42lufBTW today's benchmarks showed me less improvement zlib ...
17:56.16*** join/#maemo-ssu dafox (~dafox@ip51cc571d.speed.planet.nl)
17:57.02keriofreemangordon: btw, /dev/shm is neat to do tests
18:11.37*** join/#maemo-ssu MrPingu (~MrPingute@86.92.226.97)
18:52.34*** join/#maemo-ssu Martix (~martix@4.177.broadband3.iol.cz)
18:58.50*** join/#maemo-ssu Martix (~martix@4.177.broadband3.iol.cz)
19:28.25*** join/#maemo-ssu arcean (~arcean@aaeo165.neoplus.adsl.tpnet.pl)
20:08.30*** join/#maemo-ssu arcean (~arcean@aaeo165.neoplus.adsl.tpnet.pl)
20:19.37*** join/#maemo-ssu MrPingu (~MrPingute@86.92.226.97)
20:19.38*** join/#maemo-ssu andre__ (~andre@wikimedia/aklapper)
20:25.14*** join/#maemo-ssu Skry (~skry@77.109.215.222)
20:38.15*** join/#maemo-ssu Skry (~skry@77.109.215.222)
21:37.07*** join/#maemo-ssu joshgillies (~josh@58-6-102-109.dyn.iinet.net.au)
21:59.41*** join/#maemo-ssu Oposum (~ruin@ruin.mcn.hs-mittweida.de)
22:37.17*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
22:58.00*** join/#maemo-ssu dafox (~dafox@ip51cc571d.speed.planet.nl)
23:30.27*** join/#maemo-ssu jonwil (~jonwil@27-33-137-199.static.tpgi.com.au)

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