IRC log for #arm-netbook on 20121016

00:00.54lundmanso, there is a difference in the kernel somewhere
00:01.29*** join/#arm-netbook leszcz (~marek@host-89-167-63-165.nplay.net.pl)
00:02.29mnemoci wouldn't care much considering sonner than later we need to replace that nand driver with one mtd compatible
00:03.48*** join/#arm-netbook L84Supper (~ly@unaffiliated/l84supper)
00:04.26lundmantheir nand is init very late, compared to our kernel
00:05.13lundman[    3.901589] [NAND] nand driver version: 0x2, 0x10, data: 20120718
00:05.15lundman[    0.870000] [NAND] nand driver version: 0x2 0x9
00:05.23lundmanso theirs is newer at that
00:05.33mnemocversions
00:05.36mnemoc0x10
00:05.45mnemoclovely
00:06.00mnemocgot homework ;-)
00:06.23lundmanthey broke something though
00:06.27lundmanThe 0 disk name = bootloader, class name = DISK, disk size = d93da424
00:06.30lundmanThe 0 disk name = bootloader, class name = DISK, disk size = 32768
00:07.10lundmanbootloader,env,boot,system,data,misc,recovery,cache,private,sysrecovery,UDISK
00:07.28lundmanbootloader,envboot,misc,recovery,private,sysrecovery,UDISK
00:07.34lundmanyeah, so where is that defined
00:11.53mnemoclook at the source of the tool to repartition
00:12.34mnemocwe will need to act differently is the version of the partition table is 0x10 instead of 0x9
00:13.19lundman0x10 is the nand source version.
00:13.32lundmanso my guess is they moved the mbr to some other block
00:13.44mnemoclovely
00:13.52mnemochunt it down :)
00:14.06mnemoconce the tool can read the new partition table, we can adapt the kernel driver to support both
00:14.39lundmanwhy cant they just share the updated version
00:15.02mnemoctry
00:19.23lundmanok, none of my source tree has a newer version of NAND_VERSION_1
00:25.34lundmanI'd better go take a look at the mbr
00:59.19lundmanwell, its not from nanda
01:00.06mnemoc?
01:00.21lundmanjust wondering where this mbr is stored
01:00.27mnemoc/dev/nand
01:00.30mnemocbefore nanda
01:00.54lundmanno such device
01:01.07mnemocin our kernel it does
01:01.49mnemocit was added to be able to repartition from linux
01:02.03lundmanin miniand with nand, but no raw device
01:03.07mnemocno idea what kernel "miniand" uses
01:03.20mnemocgoing to sleep now
01:03.23mnemocgood night
01:03.28lundman3.0.36+ at the moment
01:06.15mnemocno idea. i've never seen anyone from that company asking or collaborating with us. no idea what's source they use, what changes they do or what troubles they have
01:06.36mnemocnow good night for real
01:31.08lundmannot even android boot gives a "nand" device
01:32.39Turl"nand" is a kernel thing
01:32.51Turlyou need the lastestestest sunxi-3.0
01:33.32lundmani might have that, but since I can't boot it, it gets awkward :)
01:36.51Turland on android it'd usually be /dev/*block*/nand
01:54.50lundmanyes, and it has no top-level
01:58.03*** join/#arm-netbook itamar_ (~itamar@189-015-124-078.xd-dynamic.ctbcnetsuper.com.br)
01:58.19lundmanah yes, I see.. i need the newer kernel
02:07.04*** join/#arm-netbook cheng (~cheng@219.92.77.39)
02:24.12*** join/#arm-netbook mSquare (~selvan@122.178.208.87)
03:08.53*** join/#arm-netbook tekzilla (~jon@hmbg-5f763e0f.pool.mediaWays.net)
03:31.58*** join/#arm-netbook tzafrir_laptop (~tzafrir@212.179.75.202)
03:50.41lundmanok, /dev/nand does have MBR
04:34.52*** join/#arm-netbook cheng (~cheng@219.92.77.39)
04:53.32lundmanmbr has no surprises. 'our' layout x4
04:56.54lundmanI take that back, mbr is like their layout, not our
05:05.54*** join/#arm-netbook ol1ver (~Thunderbi@7of9.schinagl.nl)
05:12.08lundmanok there is no reason our kernel should return this weird mbr
06:26.23*** join/#arm-netbook ZaEarl (~malmrose@014136144056.ctinets.com)
06:39.50*** join/#arm-netbook pawel5870 (~pkarpins@pc.193147149.ip.amg.net.pl)
06:46.04*** join/#arm-netbook Svet (~Sv@unaffiliated/sv)
06:47.30*** join/#arm-netbook ol1ver (~Thunderbi@7of9.schinagl.nl)
06:52.27mnemoclundman: there must be something...
06:52.57mnemoclundman: the repartition tool is based in kernel code.. you can play from there
06:53.36lundmanyeah I think I have found it
06:53.43lundmanjust waiting for compile so I can boot and try
06:53.56mnemocuserspace is simpler :p
06:54.54lundmanthe fix was in the kernel :)
06:57.36lundmanah ok, lets try then
07:00.23lundmanok this time I will dd it to nandc, then reboot
07:01.15mnemoc/dev/nand gives you free access to the mbr, and the partitioning tool mutated over kernel code
07:01.33mnemocthere is zero need to experiment with this on kernel space
07:02.27lundmanbox uname -a
07:02.28lundmanLinux localhost 3.0.42+ #9 PREEMPT Tue Oct 16 06:55:29 UTC 2012 armv7l GNU/Linux
07:02.32lundmanthat did indeed fix it
07:02.59mnemocin a way that keeps compatibility?
07:03.08lundmanwe should discuss that
07:03.18mnemoc:)
07:03.20lundmanthe line in question is:
07:03.48lundmandrivers/block/sunxi_nand/nfd/mbr.c
07:03.57mnemocshow a patch
07:03.59lundmanif((mbr->array[part_cnt].user_type == 2) || (mbr->array[part_cnt].user_type == 0))
07:04.09mnemocthen I can test it here
07:04.12lundmanwant me to just make a github pull requests and discuss in there?
07:04.19mnemocno...
07:04.26mnemocgit diff | sprunge
07:04.48mnemoccurl -F 'sprunge=<-' http://sprunge.us <---- sprunge
07:05.23*** join/#arm-netbook leszcz (~marek@193.138.208.6)
07:06.14ZaEarlremind me again why patch discussion goes on the mailing list and now github?
07:06.28ZaEarls/now/not/
07:06.29mnemocgithub doesn't give proper threading
07:06.42mnemocalso limits the audience
07:07.13lundmanhttp://pastebin.com/a8ABeJqm
07:07.28lundmananyway. melev-1.3 MBR block, only has type 0 and type 1.
07:07.40mnemocand gives the chance for people to learn before we get mainline
07:07.44lundmanbut I do not know about legacy. did older MBRs have 2, or is it a mistake
07:07.59lundmanso the safe option is to add "1", as opposed to replace "2"
07:08.12mnemoclundman: you had to use the worst pastbin service ever :<
07:08.18ZaEarlbut then looking through patches on github won't include the discussions
07:08.43mnemoclundman: the crap truncates long lines! http://pastebin.com/raw.php?i=a8ABeJqm
07:09.04lundmanwoo, i win!
07:09.27mnemocZaEarl: discussions on pull requests or issues don't get bound to commits on github either
07:09.44lundmanah its uart
07:10.23mnemoclundman: git diff | acivilisedpaster
07:10.32mnemocsprunge been the cleanes
07:10.32mnemoct
07:11.14lundmanhttp://pastebin.com/xHLSSSy3
07:11.19mnemoc:<
07:11.30lundmaneven retained the chinese
07:11.42*** join/#arm-netbook Quarx (~Quarx@94.137.58.58)
07:13.08mnemoccurl http://pastebin.com/raw.php?i=xHLSSSy3 | git apply
07:13.14mnemocfatal: corrupt patch at line 12
07:13.29mnemoclundman: ok. what's the 2 and what the 1?
07:13.31lundmanso, the question would be, are the older MBRs using "2"
07:13.37lundmanor was that introduced incorrectly somewhere
07:14.05lundmanalas, all references to "user_type" uses raw ints :(
07:14.49lundmanbootloader, env, boot, recovery, private, systecoverya nd UDISK are 0
07:14.55lundmansystem, data and cache are 1.
07:14.58mnemocgit grep user_type drivers/block/sunxi_nand    shows only 2 references :<
07:15.04lundmani have not seen any 2s
07:15.19mnemoclet me look at my mele
07:15.24mnemocthat's old enough
07:15.57lundman<PROTECTED>
07:16.28lundman"Flag letter belongs"
07:17.15*** join/#arm-netbook ZaEarl (~malmrose@014136144056.ctinets.com)
07:17.28mnemoclundman: keep your local change and send a mail to the list CCed to Tom asking if he knows something
07:17.42mnemocin the mean time I'll try to see if I have any 2s
07:18.31ZaEarlmnemoc, I don't understand. When I look at github, I see discussions in pull requests and comments in commits. Seems nice and organized like that.
07:18.45lundmanyeah I mean, the safe option is to just add "1", and keep 2. but it sort of feels like the 2 is a misstake
07:19.25lundmanI could also IDA their kernel and see what values they test for
07:19.55mnemocZaEarl: things get rebased, links get broken
07:20.11ZaEarlbummer
07:20.14mnemocZaEarl: in the ML you have proper interleaved discussion over the actual patch
07:20.17mnemocin plain text
07:20.42lundmandang
07:21.00lundmankernel changed too much, can't load 3.0.8 modules in 3.0.42 without hanging :)
07:21.14mnemocexpectable...
07:21.27lundmanso, a dead end
07:21.36lundmanguess it is time to move onto some other project
07:22.45*** join/#arm-netbook sspiff (~quassel@103.4-78-194.adsl-static.isp.belgacom.be)
07:22.46*** join/#arm-netbook sspiff (~quassel@unaffiliated/yukito)
07:23.38mnemoclundman: what that doesn't evolve and move forward?
07:24.12lundmanhmm?
07:24.26mnemoc"guess it is time to move onto some other project"
07:24.30mnemocyou lost me there
07:25.24lundmanwe dont have "their" sources for android 3.0.8 kernel. and I can't boot our 3.0.42 kernel
07:25.42mnemoctried from uSD?
07:25.56lundmannever managed to boot android from SD actually
07:26.13lundmanbut I suppose I could add 42 modules to nandX somewhere
07:26.17mnemocandroid... :|
07:36.01hnomnemoc, I have not been able to test the reboot issue in depth.
07:37.14mnemochno: but at least reproduce one?
07:37.31mnemoci'm starting to wonder if i've burned out my cards
07:37.38*** join/#arm-netbook popolon (~popolon@og-free.planet-service.fr)
07:37.49mnemocs/one/once/
07:38.51*** join/#arm-netbook sspiff (~quassel@unaffiliated/yukito)
07:39.18*** join/#arm-netbook mid7tester (55bbd88a@gateway/web/freenode/ip.85.187.216.138)
07:46.18lundmandang, loading the .42+ modules on android makes it panic, after loading UMP
08:04.37mnemocgosh. the code of this nand-part is horrible
08:13.39*** join/#arm-netbook sspiff (~quassel@unaffiliated/yukito)
08:17.12mnemoclundman: in my mele I have type 0 and 2
08:17.56mnemoclundman: http://dpaste.com/814191/plain/
08:19.23mnemocso I guess we need to accept the 3 values
08:26.46mnemocdoes that really solve your nand detection problem?
08:28.07*** join/#arm-netbook popolon (~popolon@82.225.234.108)
08:35.01lundmanyep it did
08:35.08lundmanok, so the real answer is to handle 3
08:35.51lundmanif you boot .42 kernel, it will not "show you" system, data and cache, as it skips type==1
08:35.55lundmanso I would say we need it
08:36.43*** join/#arm-netbook silentaa (znc@aribaud.fr)
08:50.31mnemocwant to send a patch yourself? It's your fix after all
08:53.41*** join/#arm-netbook ZaEarl (~malmrose@014136144056.ctinets.com)
08:59.20*** join/#arm-netbook ZaEarl_ (~malmrose@014136144056.ctinets.com)
09:08.40*** join/#arm-netbook oliv3r (~oliver@7of9.schinagl.nl)
09:11.38*** join/#arm-netbook cat_n9 (~communi@a91-152-66-200.elisa-laajakaista.fi)
09:24.44*** join/#arm-netbook avernos (~avernos@222.128.157.156)
09:24.45*** join/#arm-netbook avernos (~avernos@unaffiliated/avernos)
09:57.48*** join/#arm-netbook newbie (~kvirc@118-168-194-44.dynamic.hinet.net)
09:59.09*** join/#arm-netbook rellla (~Thunderbi@p5B0789F5.dip0.t-ipconnect.de)
10:14.16libv.fex is not as funny as the fermi microcode (fuc) the nouveau guys keep talking about, but gets bonus points for the father ted reference :)
10:17.16mnemoco_O
10:25.55*** join/#arm-netbook jeremb (u2617@gateway/web/irccloud.com/x-ikswyjlxsjliiyds)
10:28.10jerembhi everyone, I have a question, are phoenixcard images and livesuit the exact same thing or does the phonixcard image contains more things?
10:29.12mnemocphonixcard turns a livesuit image into an installer card with phonixcard image format
10:29.24*** join/#arm-netbook ZaEarl_ (~malmrose@014136144056.ctinets.com)
10:30.13jerembbecause I am trying to build a custom image for the MK802 II but it's never flashed correctly when I burn it with PhoenixCard
10:30.57jerembso normally the same .img file can be both used in LiveSuit and Phoenix card ?
10:31.12mnemocafaik, yes. I've never used either
10:32.15mnemocin sunxi-tools there is a tool that parses phoenixcard images (already on card, or dd-able)
10:32.32mnemocit might show you what's on yours
10:32.57jerembso it's strange because I take the official MK802II rom, I unpack/repack it with unimg.exe then burn it with PhoenixCard and it never get flashed on my device...
10:33.50mnemoctest without repacking it
10:33.56jerembit works
10:34.16mnemocthen the repacking is broken
10:34.40jerembphoenix_info tells me that both the original img and the repacked one are not valid phoenixcard images
10:35.16mnemocmaybe different format version
10:35.28mnemocnot supported by the other tools yet
10:36.16mnemocpretty common when dealing with obscure proprietary formats/tools
10:36.41jerembso any advice how I can repack the image? maybe another tool? or method?
10:39.07ZaEarl_try LiveSuit
10:40.06jerembunfortunately it's not easy to to switch the device to LiveSuit mode as there is no hardware button to do it
10:40.50ZaEarl_that's interesting. what device?
10:40.56mnemocyou can make a bootable card jumping you directly to FEL mode
10:41.11ZaEarl_that's a good idea
10:41.14jerembMK802II
10:41.47jerembyep I'll try that but I would like to make a PhoenixCard compatible img to easily share my ROM with others
10:43.05mnemochttps://github.com/linux-sunxi/sunxi-tools/blob/master/fel-boot.c would let you boot directly to FEL from a uSD card
10:43.05ZaEarl_so they took the reset button off II? Lame.
10:43.17*** join/#arm-netbook tzafrir_laptop (~tzafrir@local.xorcom.com)
10:44.06jerembthere is a recovery button, but it boot the device in recovery mode, not in FEL mode
10:44.11jeremb@mmemoc thanks
10:55.54mnemocjeremb: unfortunatelly for your problem most people here focuses in the open source side of sunxi (A10/A10s/A12/A13/...), CM in the case of android, and not really into modifying closed images.
11:00.34jerembmnemoc: ok I understand!
11:03.03mnemocbut in the cubieboard branch of https://github.com/matson-hall/allwinner-pack-tools you might find newer tools
11:04.17*** join/#arm-netbook ZaEarl_ (~malmrose@014136144056.ctinets.com)
11:19.01*** join/#arm-netbook techn_ (~quassel@a91-152-35-60.elisa-laajakaista.fi)
11:36.48libvhrm, with "Building_Debian_From_Source_Code_for_Mele" adjusted for linux-sunxi github stuff and with a linaro rootfs, i managed to get something booting
11:36.55libvbut this is far from smooth
11:37.22libv[  184.200000] EXT4-fs (mmcblk0p2): recovery complete
11:37.35libvclose to a 3 minute wait right there :)
11:38.35mnemocby default ondemand enjoys to run at 60MHz on the A10
11:38.56libvah, yes
11:40.14mnemochttp://linux-sunxi.org/Cpufreq has some settings that work nicely here
11:40.59alcideshttp://www.kickstarter.com/projects/adapteva/parallella-a-supercomputer-for-everyone
11:42.19mnemocalcides: old news ;-)
11:42.45alcidesmnemoc not old... not even sold...
11:43.59mnemocalcides: but it was announced like a month ago
11:45.08alcidesyes... but still away of the goal... only 50%
11:45.59RaYmAnI honestly think the majority of people that could potentially be interested in backing it has already seen it.
11:46.19rmwould be nice
11:46.24rmbut I just plain do not believe them
11:46.35lundman:)
11:46.36RaYmAnwhat part?
11:46.37rmand I don't believe I will get anything in return for any money sent
11:47.21mnemocit's nice they use openness as flag
11:49.21RaYmAnmnemoc: definitely, but they still seem kind of low on details
11:49.45jelly-homeI don't really see how their coprocessors are different from gpgpu solutions
11:49.48RaYmAnI mean, is it a custom soc with everything in same package (including paralella) or is it some standard soc with parallela as external chip etc
11:50.04RaYmAnjelly-home: can you program gpgpu cores individually?
11:50.06mnemocit's a dual a9 soc + grid of their own not-arm cores called Epiphany
11:50.23RaYmAnmnemoc: yes, but that's kind of vague
11:50.30jelly-homeRaYmAn: I don't want to... "parallel" usually means the same thing in parallel
11:51.14RaYmAnwell, that is still one of the major differences.
11:51.18RaYmAneven if you don't want to
11:56.18rmhttp://www.kickstarter.com/help/faq/backer%20questions#GettRewa
11:56.22rmso it's as I assumed
11:56.34rmthey are under no real obligation to deliver anything
11:56.57rmthe most you can do about that is do a "direct message" or "post a public comment"
11:57.40RaYmAnsure, it's like that with any and all kickstarter projects
11:57.57RaYmAnHeck, you have the same issue if you preorder something and the company goes bankrupt
11:59.15libvmnemoc: boosting it to 1G helps avg performance... but... the whole machine tends to stall quite often
11:59.29rmRaYmAn, no
11:59.47libvmnemoc: i am currently worried about mmc not being stable
11:59.51rmon preorders+bankruptcy you can certainly get a refund
11:59.58rmcomplicated, but still
12:00.19libv90% waiting... mmcqd/0
12:00.35RaYmAnrm: only if there's enough money left :P
12:00.50rmright
12:01.49mnemoclibv: using latest u-boot or something older? what kernel branch?
12:02.04libvlatest u-boot, latest 3.0
12:02.34RaYmAnmost companies doing kickstarter projects will pretty much be f*cked if they don't deliver though - community backlash etc, so presumably roughly equivalent to backruptcy
12:02.42mnemocstrange. I work purely on uSD on my 3 test devices and none has similar troubles
12:02.43libvaah, i forgot one step, but that should not affect mmc performance
12:03.07libvthere are no modules or firmwares in this rootfs
12:03.34mnemocthat shouldn't affect anything
12:03.41libvi will try another sd card and replay some things, and document things on the linux-sunxi wiki
12:03.49mnemocthanks
12:04.16*** join/#arm-netbook itamar_ (~itamar@189-015-124-078.xd-dynamic.ctbcnetsuper.com.br)
12:05.30*** join/#arm-netbook ssspiff (~quassel@unaffiliated/yukito)
12:13.07oliv3rmnemoc: you linked Cpufreq up there somewhere, but the github link on that page does no longer work :(
12:14.44mnemocissue tracker moved from amery to linux-sunxi orga
12:14.48mnemocback in 20m
12:30.32*** join/#arm-netbook rz2k (~rzk@95-24-11-251.broadband.corbina.ru)
12:51.43*** join/#arm-netbook pwhalen (~paul@CPE001310360dac-CM78cd8ec9e405.cpe.net.cable.rogers.com)
13:02.15*** join/#arm-netbook sspiff (~quassel@unaffiliated/yukito)
13:14.48*** join/#arm-netbook cat_n9 (~communi@37-219-1-7.nat.bb.dnainternet.fi)
13:30.34*** join/#arm-netbook QingPei (~qingpei@124.64.127.39)
14:16.26*** join/#arm-netbook cat_n9 (~communi@a91-152-66-200.elisa-laajakaista.fi)
14:25.09oliv3rmnemoc: you back?
14:25.48oliv3rlong 20m
14:27.07*** join/#arm-netbook hp__ (~kvirc@118-168-194-44.dynamic.hinet.net)
14:27.56mnemocoliv3r: ?
14:29.15oliv3rwb :)
14:29.34oliv3rmnemoc: i've sent you a pull-request on sunxi-tools
14:29.40oliv3rover on github
14:30.44mnemocoliv3r: i would prefer if you can send it to the ML for discussion
14:31.30RaYmAnif I'm reading that right, they actually implemented a kernel driver to do exactly what libusb does in userspace? :/
14:32.26oliv3rnope, this is the awusb driver from allwinnertech; i just cleaned it up and gave it a home on github (it came from tom's i belive)
14:32.38oliv3roh, they, i thought you ment me; i belive so
14:32.40mnemocbut it's required by livesuit and buggy, so something we probably need to maintain to avoid chaos
14:32.55oliv3rbut they based it on 'something' existing
14:33.23mnemocoliv3r: http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html
14:33.56oliv3ri'll get the patch into the mailing list, but leave the pull-request as is for now; if no real comments come (like my previous mail) you can still pull it and work can be done from there
14:34.34RaYmAnmnemoc: I'm looking forward to the day when we have a fully open solution for livesuit-like recovery
14:34.42oliv3rand yeah, i do think it should have a 'home' somewhere, sunxi-tools sounds sensible.
14:34.50oliv3rhometime
14:35.08mnemocinstead of getting this in the tools packages it might be a good idea to turn sunxi-boards into our own BSP package
14:35.29mnemocs/packages/package/
14:36.49mnemocand work as glue to our other packages, including android, buildroot, "hwpacks", ....
14:37.19mnemocbut ML
14:39.00mnemocRaYmAn: of course that is the ultimate goal
14:52.46rz2kTurl: you've asked yesterday about if that es2gears is cpu
14:52.49rz2k[  159.870000] UMP<2>: New session opened [  159.870000] Mali<2>: Session starting [  161.090000] Mali<2>: Mali PM: OS runtime resumed
14:53.05rz2kdigging in to r3p1 debug options
14:54.30*** join/#arm-netbook leszcz (~marek@host-89-167-63-165.nplay.net.pl)
14:56.17Turlrz2k: UMP is just a memory allocator
14:58.03jerembspeaking about livesuit, there is now a Linux version, it should be easier to reverse engineering it
14:58.05mnemoccan you try the wip/linux-sunxi-3.0/disp branch?
15:06.25rz2kTurl: previously we had total fail with Mali itself
15:06.43rz2kUMP opens session but then libgles dies
15:06.56rz2know I'm running glmark2-es2 successfully right now
15:07.20Turlchange your governor to performance
15:07.25Turlthen monitor load with htop or similar
15:07.31Turlit shouldn't eat all of your cpu
15:09.25rz2kalso afaik libraries that I use right now (default mali r3p1 armhf) cant do anything on CPU
15:10.15rz2kglmark2 score:43
15:10.37rz2kthats with mali_div=4, default one from mele a2000 script.bin
15:11.57Turlisn't the default =3?
15:12.38rz2kwith 3 it will be 320mhz with 4 300mhz, but dont quoute me on this one.
15:13.01Turljust 20mhz difference?
15:13.05rz2kI just grabbed default script from nanda and using it.
15:13.11TurlI thought it was 960 or something of that sorts / div
15:13.35rz2kpokes mnemoc as a local mali mem/div expert
15:13.49TurlI once was playing with it and --'d the value
15:13.52Turlmy mali didn't like it :)
15:21.21mnemoci'll ignore you all until I get confirmation wip/linux-sunxi-3.0/disp can be merged :p
15:28.32rz2kinteresting
15:28.54rz2kglmark2-es2 eats 3%-9% of CPU
15:29.06*** join/#arm-netbook ol1ver (~Thunderbi@7of9.schinagl.nl)
15:29.13rz2kbut X eats everything else entirely
15:29.32mnemocat 1GHz?
15:29.37rz2kyep
15:29.45mnemoc:(
15:30.13rz2klooks like on each frame update x11 mali driver does some serious math or whatever
15:30.25rz2kor its just monkeycoded as usual
15:32.34rz2kpreviously on mesa sw rasterization glmark2 had 100%
15:34.16Turlmaybe 'mali' is just dummy fb handling + mode setting
15:34.57Turlmode setting would be handled by disp though
15:35.33*** join/#arm-netbook ol1ver (~Thunderbi@7of9.schinagl.nl)
15:41.08rz2kinteresting results http://pastebin.com/gRrt7Rf4
15:41.36rz2klooks like ARM forgot to implement half of the oGL ES2
15:42.09rz2k(benchmark runs smooth though, just without bunch of shaders that are not implemented)
15:42.37libvbut the mali userspace has a essl compiler built in
15:42.49libvgles2 mandates a compiler being available
15:42.54Turlthe nand is so slow I cannot play music and use apps simultaneously :|
15:43.50libvrz2k: i am sure that there are other issues at play here, and the individual test cases failure messages should be looked at in detail
15:45.07*** join/#arm-netbook arete74 (~arete74@host160-66-static.225-95-b.business.telecomitalia.it)
15:46.39*** join/#arm-netbook jeremb_ (u2617@gateway/web/irccloud.com/x-yektuytbvvnajmtm)
15:47.52*** join/#arm-netbook gimli (~gimli@xbmc/staff/gimli)
15:48.49rz2klibv: here is a debug output http://pastebin.com/mAxU76ac
15:49.14rz2kalso everything we have for native linux is proprietary libs and x11 driver that appears to do nothing
15:49.43libvrz2k: yes, i am quite acutely aware of the problem with arm gpu binaries
15:50.24mnemocrz2k: tried bombing tom with daily reminders? ;-)
15:51.27libvInfo: [texture] texture-filter=nearest:Debug: Validation failed! Expected: 0xff282a2b Actual: 0xffaeaeae
15:51.30libvwow.
15:51.37libvis that a checksum of the produced image?
15:51.51libvif so, what idiot wrote this.
15:52.32libvgl does not claim or require that different combinations of hardware and software create pixel perfect and identical renderings of the same scene
15:56.12rz2kall kudos go to author of glmark2
15:56.28libvi know
15:56.41libvit's that greek linaro guy
15:58.29Svsunxi is nice, i've been playing around with a hackberry
16:25.11techn_rz2k: latest should be x11 libs
16:25.32*** join/#arm-netbook rsalveti (~rsalveti@linaro/rsalveti)
16:28.19techn_.. yesterday, we got new r3p0/1 libs from Tom.. They seem to work now.. not perfect but working
16:34.20mnemocr3p0? meaning we can merge that to the main branch and finally replace r2p4?
16:35.16techn_yes! but main branch looses cedarx :(
16:36.09techn_as libs are armhf only :(
16:36.13techn_or :)
16:36.50techn_I'm testing r3p0 and it seems glmark and es2gears works
16:38.38mnemocuhm... not nice... that would trigger a fork :<
16:42.24mnemocso will need both :|
16:42.29mnemocsucks
16:42.34Turlehm
16:42.40Turlhow is it different than the current situation?
16:42.45Turlcedar never worked on armhf?
16:43.05mnemoccedarx is still armel only
16:43.14mnemocr2p4 is armel/armhf
16:43.22mnemocr3p0/p1 is armhf only
16:43.34Turlyou can probably bug tom to make a r3p0 armel
16:43.38Turl:)
16:44.00mnemoctechn_: ----^ ?
16:44.28Turlafter all android runs on it
16:45.35mnemocthere is no connection between building for android and building for linux/armel
16:46.09Turlandroid is -mfpu=soft iirc
16:47.05mnemocit's not about optimizations, it's about bionic vs. glibc, and x11 vs whatever android uses
16:47.10Turls/fpu/float-abi/
16:47.27Turls/soft/softfp/
16:47.31mnemocdifferent toolchain, different env
16:47.38Turlmeh :< doesn't cache last sedfix
16:47.52Turl-mfloat-abi=softfp mnemoc
16:48.00Turlso there's no 'technical reason' it has to be armhf only
16:48.29mnemocthe technical reason is that he uses ubuntu/armhf to build the libs natively
16:48.42Turlcrosscompilation? :P
16:48.50mnemocdon't ask that much
16:49.12TurlI'll build the bins myself
16:49.28Turljust get me the source :P
16:49.34mnemocARM blessed people only
16:49.56Turlyeah I know :'(
16:51.35ManoftheSeais still sad about the lack of display options on EOMA
16:52.09ManoftheSeaor, higher res ones, anyway.
16:59.09merbananmnemoc: would it be possible to do a binary translation from armel to armhf ?
17:00.58mnemocin the sense that it's not impossible, yes. but unlikely considering viable time constrains ;-)
17:01.08merbananjust so it would be abi compatible
17:06.11*** join/#arm-netbook vgrade_ (~martin@cpc2-nrte22-2-0-cust128.8-4.cable.virginmedia.com)
17:06.38mnemocit's probably harder than making allwinner opensource cerdarx
17:09.43merbananmnemoc: one can always hope
17:15.05Turlyou could use android libs with libhybris
17:15.37mnemoci doubt they work that deep down in the stack
17:19.53*** join/#arm-netbook Yakuzzi (~za@ip-109-40-153-175.web.vodafone.de)
17:23.00*** part/#arm-netbook QingPei (~qingpei@124.64.127.39)
17:34.04*** join/#arm-netbook Gujs_ (~Gujs@cpe-92-37-75-238.dynamic.amis.net)
17:34.19techn_mnemoc: I could ask armel libs.. do we want x11 or framebuffer libs?
17:34.36mnemocx11
17:35.08mnemocasking for both only increases the odd of not receiving any
17:35.12mnemocodds*
17:35.16Svyes
17:35.18techn_.. why ARM has made this so hard.. libs for every different platform :(
17:35.26Turlbecause
17:38.17jelly-homewhat's wrong with hardfloat?
17:39.00libvtechn_: well, egl is where the rub is
17:39.28libvis the egl X11 based, or fb, or wayland, does it tie in with the 2d engine or not
17:39.56*** join/#arm-netbook Yakuzzi (~za@ip-109-40-153-175.web.vodafone.de)
17:41.05mnemocjelly-home: problem isn't with hf. problem is we have to deal with closed libraries. for cedarx we still only have debian/armel libs
17:41.26mnemocjelly-home: and for mali r3p0/1 we only have ubuntu/armhf libs
17:42.24mnemocso until we get cedarx libs for armhf our only option to move forward to r3p0/1 is to get new mali libs for debian/armel to match cedarx
17:42.50mnemocor keep both in the kernel
17:43.04mnemocmaking the drm/ump integration even messier
17:43.10techn_mnemoc: btw. any progress getting armhf cedarx? :/
17:43.17*** join/#arm-netbook pawel58701 (~pkarpins@pc.193147149.ip.amg.net.pl)
17:43.25mnemoctechn_: you have more contact with Tom than I :|
17:44.21mnemocbut afaik the only dev within AW who can build them isn't very.... friendly
17:45.42discopigcpufreq really enjoys itself on A10, it keeps setting the cpu to 60mhz
17:45.46mnemocotoh eva is happy telling everyone they are collaborating with gimli and that's enough
17:46.46techn_gimli: you have armhf cedarx libs?  or could you get them via your contact? :)
17:47.05mnemocdiscopig: add http://linux-sunxi.org/Cpufreq#Tweaks to your rc.local
17:47.12discopigahh thanks
17:47.28mnemocit can be equally broken libs, we only need them recompiled, not fixed
17:47.31gimlitechn_: nope
17:47.34mnemocfixed is better obviusly
17:47.47techn_mnemoc: I didn't understand that guy who had problems with latest commit.. Do we have a problem?
17:48.07mnemocnot that i know
17:48.32*** join/#arm-netbook cat_n9 (~communi@37-219-97-244.nat.bb.dnainternet.fi)
17:56.26*** join/#arm-netbook Yakuzzi (~za@ip-109-40-153-175.web.vodafone.de)
18:00.07techn_xbmc seems to crash..
18:00.09techn_#3  0x41935528 in ump_reference_release () from /lib/libUMP.so
18:00.09techn_#4  0x40ace42a in _egl_platform_map_dri2_buffer () from /lib/libGLESv2.so.2
18:00.15techn_..
18:00.33techn_#10 0x40ac8b22 in eglMakeCurrent () from /lib/libGLESv2.so.2
18:00.33techn_#11 0x007886d2 in CWinSystemX11GLES::RefreshEGLContext() ()
18:00.33techn_#12 0x00788b36 in CWinSystemX11GLES::SetFullScreen(bool, RESOLUTION_INFO&, bool) ()
18:00.33techn_#13 0x007881bc in CWinSystemX11GLES::CreateNewWindow(CStdStr<char> const&, bool, RESOLUTION_INFO&, bool (*)(XBM
18:01.19techn_rz2k: have you tried xbmc?
18:06.50techn_Oct 16 21:06:04 linaro-alip xbmc.bin: ASSERT EXIT:
18:06.51techn_Oct 16 21:06:04 linaro-alip xbmc.bin: In file: arch_011_udd/ump_frontend.c  function: p¡AĂ‚()   line:39745208
18:06.51techn_Oct 16 21:06:04 linaro-alip xbmc.bin: Error in mapping pointer (not mapped)
18:08.27rz2kno, linaro's xbmc tries to initialize libGL, not gles
18:08.45techn_I'm using linaros xbmc
18:09.02techn_or trying to use :)
18:21.03*** join/#arm-netbook cat_n9 (~communi@a91-152-66-200.elisa-laajakaista.fi)
18:33.04lkclManoftheSea: that's because you're misunderstanding things.  EOMA goes up to the maximum permitted on an RGB/TTL interface, which, on a TI OMAP CPU is 2048x2048 @ 30fps.
18:33.28lkclManoftheSea: it's the SoCs which limit the maximum resolution, *not* the EOMA-68 specification.
18:38.35ManoftheSeathat makes me a little happier.
18:39.40ManoftheSealkcl: I have part of a schematic of, well basically of a USB hub.
18:39.50ManoftheSeaBut it's the necessary part of the micro board.
18:40.15ManoftheSeaIt takes the D+ and D- lines from the PCMCIA header and feeds it to a 7-port, multi-TT USB hub.
18:40.40ManoftheSeaBut, I don't know how to finish the board with footprints and connectors.
18:43.59ManoftheSeaActually, I should mail this to the list.
18:54.27*** join/#arm-netbook j1nx_ (~IceChat9@163-62-223.ftth.xms.internl.net)
19:07.37Turlwoot, someone deduped the sun[45]i usb stack :)
19:08.02hnoTurl, what?
19:08.43Turlhno: check the mailing list
19:09.03rz2krm: you wanted 1080p on vga?
19:09.18rmnot me
19:09.31rz2kdamn, anyway I have it running
19:09.41Turlrz2k: it was lundman probably
19:10.26rmrz2k, I wanted uhm
19:10.31rm1650x1050 on HDMI
19:10.35rmcan you do that? :)
19:11.02rm1680x1050*
19:11.14rz2knope if it is not in the modes list :/
19:11.29techn_rz2k: Even that wont help
19:11.45rz2kinteresting thing is, X works on 1080p, when console is still in 720p in left-upper corner
19:12.09rmrz2k, do you have any success setting 75 Hz on VGA?
19:12.27rmwith some lame resolution at least
19:12.38rz2kno, I think 60 is hardcoded somewhere
19:12.43techn_Resolutions are hardcoded.. but that can be changed if same is done to vga-side.. https://github.com/techn/linux-allwinner/commit/1b0a097e82c8b8b8ecc54754fdf7259728ea4a6d
19:13.07techn_.. that's still wip.. but atleast part of changes are there
19:13.12libvwhat is hdmi wired to? what is vga wired to?
19:13.39TurlI see GCCisms there https://github.com/techn/linux-allwinner/commit/1b0a097e82c8b8b8ecc54754fdf7259728ea4a6d#L2R946
19:14.37*** join/#arm-netbook merbzt (~benjamin@c-94-255-220-30.cust.bredband2.com)
19:14.49libvbecause 9y ago i heard "no, it cannot be done, we will need to rely on the modes programmed in the bios"
19:15.21Turl9y ago only?
19:15.34hnoTurl, got it. Nice.
19:15.52libvit took another 3-4 for people to realize that this was bogus, and that i was bang on :)
19:15.59libv3-4 years even
19:16.41hnorz2k, the console driver probably is missing some hook to react on the resolution change.
19:17.57hnolibv, we did custom video modes on EGA. Don't know a single graphics card that have had hardcoded resolutions.
19:18.13*** join/#arm-netbook revident (~scott@fw.iplink.net)
19:18.14libvhno: where were you in the first half of the 2000s?
19:18.39hnoLong away from video cards. GPUs isn't my thing.
19:18.45libvthis is display, not gpu
19:19.27libvin any case, remember life before randr1.2 (however limited and shortsighted that was), before that happened people refused to believe different
19:19.45hnorandr1.2 on EGA would be something..
19:19.49libvso today i am quite weary of people stating "no, cannot happen"
19:20.22libvespecially when it often is just about one person spending 3-4ds testing mode after mode, figuring out how the pll ticks and what its limits are
19:20.22techn_Turl: there is much to improve.. but first I was thinking to get rid of that wip/disp  branch
19:21.04Turlthe kernel is full of allwinner quality code :)
19:21.30ManoftheSeaByond "Quality"
19:21.56libvTurl: it seems better than the code VIA threw out in 2003. there were actual register tables there, dumped straight from the VIA vga BIOS...
19:22.02*** join/#arm-netbook rsalveti_ (~rsalveti@linaro/rsalveti)
19:22.55libvin any case, what is hdmi wired to?
19:23.09Turllibv: A10 I believe
19:23.12libva special hdmi block which is not documented, i suspect, due to hdcp
19:23.48libvthe tv-encoder most likely drives the vga connector
19:25.16mnemocTurl: in the kernel those gcc-isms are welcomed. many others too. they call it the gnu99 standard :p
19:25.19Maqsapropos kernel for allwinner.. to replace an existing kernel, is it enough to build a new uImage and replace the old one?
19:25.20hnolibv, most my video card hacking was in 1985-1990 or so. But have not seen any evidence that cards are less flexible in their timing & resolution capabilities overtime.
19:26.01libvhno: i have dealt with external tv encoders which really only did accept a few fixed modes
19:26.18libvso in some rare cases it does happen
19:26.30mnemocMaqs: you also need to replace the modules
19:26.31Turlmnemoc: didn't know that
19:27.25Maqsmnemoc: ok, done.. but somehow it doesn't seem to work.. i don't get any output, so i cannot tell what's the problem :-/
19:27.49mnemocMaqs: booting from nand? what branch?
19:28.12hnolibv, ah, yes, can imagine finding that in such things. Probably still seen in USB connected TV encoders.
19:28.50Maqssunxi-3.0, booting from sdcard
19:28.51hnodoubt the hardware as such is limited, but likely a firmware imposing it's own rules.
19:29.21libvhdmi seems to be freely programmable, but it will take quite a bit of work getting things that far :)
19:29.28libvas hdmi seems to be its own block
19:29.35mnemocMaqs: do you see u-boot's output? what defconfig did you use?
19:29.51Maqsi just added a few things to what came from /proc/config.gz, compiled it, copied arch/arm/uImage
19:30.06hnoThe A10 display blocks seem very freely programmable indeed. But hidden far down behind many layers of odd abstractions.
19:30.23ManoftheSeaHey guys, if you're discussing the graphics and the A10... can you confirm how much res you can put out a single TTL/RGB?
19:30.52hnocoming from an history of several operating systems and desire to oversimplify things in obscure ways.
19:31.03Maqsdefconfig doesn't seem to compile due to some "usb glue" stuff
19:31.20Maqsit's an mk802 (a10)
19:31.32mnemocMaqs: sun4i_defconfig works fine
19:32.16mnemocTurl: still, that particular switch() would look better with ifs
19:32.19Maqsstrange
19:32.22hnoManoftheSea, unknown what pixelrate the A10 accepts to output in TTL mode. Quite likely it does whatever you ask it to do, but signal levels might not be too great at higher frequencies.
19:33.06Maqsthere is an '#error "missing bus glue for ehci-hcd"'
19:33.37hnoMaqs, how are you building?
19:33.39TurlMaqs: are you using a 3.0 config on 3.4?
19:33.48Maqsnope, it's 3.0 both
19:34.08Maqsonly defconfig did not work, the /proc/config.gz compiled just fine
19:34.16Maqsbut does not run
19:34.33hnosun4i_defconfig, or defconfig?
19:34.44Maqsi don't get any output at all, my monitor just keeps searching for a source
19:35.02Maqsgotta check that..
19:35.15mnemocmonitor :)
19:35.29mnemocMaqs: less greed. try a serial console first
19:36.22*** join/#arm-netbook rellla1 (~Thunderbi@p4FE560BD.dip0.t-ipconnect.de)
19:37.53Maqsi don't have any idea how to do that ;)
19:38.28Maqsi did "make ARCH=arm sun4i_defconfig"
19:39.53*** join/#arm-netbook popolon (~popolon@82.225.234.108)
19:40.16Turlplug your uart to ttl adaptor and "screen /dev/ttyUSB0 115200"
19:40.31mnemocMaqs: and CROSS_COMPILE= ?
19:40.50Maqsi compiled it on the mk802
19:42.25MaqsARCH=arm should be redundant, too.. i guess..
19:46.37*** join/#arm-netbook popolon (~popolon@og-free.planet-service.fr)
19:46.51hnoMaqs, yes
19:47.54Maqsok, again.. mrproper sun4i_defconfig uImage modules modules_install
19:48.20mnemoctry in separated steps
19:48.57hnosplit mrporper and sun4i_defconfig in their own make steps. the other can be mixed.
19:48.58Maqsk
19:49.31Turlnever makes modules, yet they're built the same
19:49.51hnomodules_install builds modules
19:50.08TurlI just make uImage
19:50.29Maqsbtw, may that have to do with armhf?
19:50.44hnoMaqs, no
19:51.13Maqsi had to patch uboot to compile, as they use -msoft-float
19:51.25hnoTurl, so you don't install modules?
19:52.26hnoMaqs, you should not need to patch that
19:52.57hnoarmhf gcc supports -msoft-float as well.
19:53.38Maqsit does, but uboot seems to need some other things
19:53.40Turlhno: I install them manually using 'adb push'
19:53.46Maqsor is partly compiled hf, partly sf
19:54.08Turlhno: and my mele doesn't use any modules
19:54.22TurlI =y all the stuff I need
19:54.48libvhno: i ran into the same issue today, it clashed with some libs at link time
19:56.36cat1techn_: hmm.. have no idea where this symbol should come from.. symbol lookup error: /usr/lib/libEGL.so.1: undefined symbol: _mali_clz_lut, do you? :)
19:57.03techn_cat1: which lib you are using?
19:57.16hnolibv, -msoft-float?
19:57.53cat1techn_: i guess one that comes with this dir mali_opengl_hf_lib sorry, but do not remember where i download it from ;)
19:58.16techn_cat1: I'll update latest to linux-sunxi
19:58.18cat1techn_: what is the latest-and-greatest recommendation for egl libs?
19:58.22techn_one moment..
19:58.29cat1techn_: ah, cool, thanks!
19:58.31libvhno: yes, u-boot built fine against a hf gcc, but during linking it fell over due to sf vs hf
19:59.00Maqsfor uboot, i just commented out the -msoft-float in arch/arm/cpu/armv7/config.mk
19:59.20libvMaqs: s/soft/hard/ would've also worked
19:59.38libvto the same result :)
20:00.11hnowonder why they hardcode soft-float,
20:00.30libvtrue
20:00.44Turlone uboot to rule them all in the future?
20:00.59libvseems like that would fix u-boot build then :)
20:01.04libvhno: make it so :p
20:02.08hnoone u-boot for all would be something.. but at least there is much less code duplication than a year ago.
20:03.30techn_cat1: I cant upload to wiki
20:04.25cat1techn_: maybe we should create temporary repo on github for binaries exchange?
20:04.44techn_I'll email to you and mnemoc
20:05.09techn_check your priv
20:09.14rz2kI was wrong or that was a bug, but fbcon works in 1080p, but in wrong colors
20:09.19rz2kgreen is blue
20:10.05techn_rz2k: what you are testing?
20:10.20rz2kmy script.bin with vga 1080p
20:10.30techn_ah
20:10.50techn_Test wip/disp :)
20:11.26techn_It may even have fix for that problem :p
20:11.52mnemoctechn_: give me your ssh key to give you access to upload to dl.linux-sunxi.org
20:14.55mnemochttp://www.youtube.com/watch?v=fTbkNld0sHE <--- e-ink phone!
20:16.21rz2klol, wanted to paste same link :p
20:16.39rz2kwill it go 1 week on battery?
20:17.06mnemoci'm faster ;-)
20:18.31hnorz2k, if you shut down the radio and no apps running then probably.
20:24.09hno1 month they say in the video. But I beleive that when I se it.
20:24.38mnemoc1 month powered off :p
20:25.22rz2kwants this right now http://www.hiapad.com/?p=1939
20:25.46mnemochttp://armdevices.net/members-store/ .... charbax opened a shop...
20:27.59mnemockind of willing to donate those $20 just to support him....
20:31.50rz2kyou can buy it directly from hiapad http://www.hiapad.com/?page_id=1600
20:32.23mnemocnah. i want an imx6q laptop, not hdmi dongle :p
20:39.01Turlmnemoc: kindles can last 1 month
20:39.18Turlthe gsm radio will kill it on a week though, unless they put an uber battery in there :P
20:39.40Turlalso, the eink refresh is not that good for a device you'll use that much
20:45.07techn_rz2k: I don't have fps problems anymore.. + I managed to get rid of LD_PRELOAD
20:45.30techn_to ump's Makefile:
20:45.53techn_LDFLAGS +=  -Wl,--no-as-needed -ldri2 -ldrm -lXfixes
20:45.53techn_..
20:45.57techn_libUMP.so: $(UMP_OBJS)
20:45.57techn_<PROTECTED>
20:46.58rz2khmm
20:47.03mnemoctechn_: key please. then you can public those libs and patches to link from elsewhere
20:47.04rz2kand fps problem?
20:47.21mnemocs/public/publish/
20:47.38rz2kI mean I have same 30-40 fps and X11 eating all CPU
20:47.56rz2kwhen glmark/es2gears themselves eat 3%-5%
20:48.05techn_rz2k: I had that yesterday.. today I havent seen it somehow
20:50.47techn_constant 125fps on gears.. 50% for x11 and other half for es2gears
20:51.44techn_mnemoc: hmm.. I'll send some key
20:57.42*** join/#arm-netbook newbie1 (~kvirc@118-168-195-38.dynamic.hinet.net)
21:02.36cat1techn_: with r3p1 i get: (EE) MALI(0): [maliSetupExa:582] failed to open UMP subsystem
21:02.58techn_cat1: great.. now chmod /dev/ump
21:03.04rz2kchmod ump
21:03.32rz2kor use https://github.com/rzk/Mali-400-r3p0-04rel0-X11-drivers/blob/master/10-mali400.rules
21:03.36rz2kfor udev
21:04.37cat1techn_: ah, stupid me..
21:06.20cat1techn_: do you also see this
21:06.20cat1[  438.660000] UMP<1>: No handler for IOCTL. cmd: 0x40209007, arg: 0xbecf9930
21:06.27cat1and it continues..
21:07.00techn_cat1: you have old version of mali kernel drivers?
21:08.49cat1techn_: riiiight.. i must have eaten some wrong mushrooms..
21:09.06*** join/#arm-netbook lerc_ (~quassel@121-74-231-26.telstraclear.net)
21:10.21cat1techn_: i have whatever is in sunxi-3.4..
21:10.47techn_rebase next-mali? default is r2p4
21:12.38mnemoctechn_: mali/ in your home goes to http://dl.linux-sunxi.org/mali/, all yours
21:12.54techn_mnemoc: thanks
21:13.15mnemoctechn_: :)
21:13.41cat1mnemoc: can we now have something really up-to-date in sunxi-3.4?
21:14.52mnemoccat1: once next-mali is approved i'll merge it on both...
21:15.07cat1let's vote now? :P
21:16.15mnemocit's not about votes, it's an agreement
21:17.32cat1if next-mali is not broken why not let it go?
21:17.43hnoMaqs & libv: u-boot soft-float issue is really an gcc packaging issue. To link with -msoft-float you need the soft-fload libs installed (gcc-multilib package on Ubuntu)
21:18.10hnobut probably works just fine to build u-boot armhf.
21:18.24mnemoccat1: not my call, i don't use mali at all
21:18.26libvcat1: define "not-broken" with respect to graphics drivers
21:18.42Maqshno: well, it works with hard-float
21:18.47Maqs(now) ;)
21:18.58libvcat1: what utopic world have you been living in so far?
21:19.09cat1libv: definition: it does not behave worse than in master sunxi-3.4
21:19.10*** join/#arm-netbook simosx (~simosx@188.4.119.224.dsl.dyn.forthnet.gr)
21:19.11*** join/#arm-netbook simosx (~simosx@ubuntu/member/simosx)
21:19.35mnemoccat1: but cuts off people using cedarx
21:20.01cat1mnemoc: and in which branch it is working? ;)
21:20.32mnemocafaik is kind of works on sunxi-3.0 with armel userspace
21:20.55cat1mnemoc: ok, but i am asking for 3.4
21:21.13libvhno: removing -msoft-float from the config.mk, should solve the issue i guess, if a hf gcc defaults to hf for linking as well
21:21.24mnemoccat1: i suppose it works in the same degree there too ;-)
21:21.35hnohf gcc defaults to hf linking yes.
21:21.45libvcat1: what stops you from merging locally yourself?
21:22.11cat1libv: i am loosing baseline constantly :)
21:22.22cat1libv: but otherwise nothing, sure i can do whatever
21:22.27hnoCan't we throw in both mali versions?
21:22.39mnemochno: i think we will end up doing that
21:23.00libvheh, external mali.ko anyone?
21:23.13hnohave been saying that all along..
21:23.18mnemoci suppose we can do it with one bool CONFIG_
21:23.52libvhttp://www.phoronix.com/scan.php?page=article&item=fosdem_2010_unification&num=1
21:23.57hnomnemoc, if this continues I think we will end up with 4 mali versions. So a dropdown.
21:23.57mnemocproblem with external mali is that we can't do the integration with disp/drm...
21:24.17rz2k3 versions, r2p4, r3p0 and r3p1 :)
21:24.17libvmnemoc: what integration?
21:24.49libvmnemoc: maybe drm/kms is simply a broken model
21:24.52hnorz2k, right now yes.
21:25.24libvsaid the guy who came up with quite a few of the core ideas that eventually filtered into randr1.2 and kms
21:25.46mnemoclibv: the driver expects pre-cutted off memory chunk, and some special ioctrl()s
21:25.57rz2klol. lets not go into linux graphics stack discussion, this will end in great holywar.
21:26.05hnoand a little further down the line 4 versions to match the different distribution types. 1 armel, 1 android el, 1 armhf, 1 android hf.
21:26.23mnemoccries
21:26.57libvmnemoc: surely the reserved memory can be reserved regardless of when the module is built?
21:27.07libvmnemoc: what ioctls would that be?
21:27.36mnemoclibv: it's a VERY large % of the total ram... not something to do when mali won't be used
21:27.54hnomnemoc, welcome to the land of binary blobs. Embrace one and they soon eat you full.
21:28.00mnemoclibv: ump related, to deal with some buffers
21:28.25cat1tends to agree with mnemoc: we'd rather keep mali within.
21:28.43hnomnemoc, the ump fb ioctl is decoupled already, remember?
21:28.44mnemoclibv: 64MB+32M+16MB
21:28.45libvbut ump and mali should be built externally, and mali depends on ump, and ump depends on memory being reserved for mali
21:29.20libvthis at least is my simplified view of the world, never actually having touched the mali kernel driver
21:29.59mnemocif we manage to fix mali's memory reserving to be done by the driver instead of pre-mmu...
21:30.09libvit could be pre-mmu
21:30.30Turlhno: there's no such thing as android hf as far as I'm aware
21:30.44libvthe memory could still be reserved from config
21:30.46mnemocTurl: android 5.0 is comming
21:31.11Turlandroid 5 is unlikely to hit anytime this year
21:31.26Turland I haven't heard anything about it being hf either
21:31.31Turlit's gonna be a pain if that's true :P
21:31.32hnoshould work fine to reserve mali memory using mem= boot parameter.
21:31.33libveither the memory is reserved and ump is happy when loading, or ump refuses to load
21:32.21hnoump is not cause to memory reservation issues, that one plays friendly. mali.ko is.the bad boy.
21:32.39mnemocand the drm driver?
21:32.45mnemockicked out too?
21:33.06libvmnemoc: seems that they all belong to the same graphics stack
21:33.10hnodo that actually do anything at allö?
21:33.28Turlwasn't the drm thing a dummy interface?
21:33.45libvmnemoc: again, because intel and redhat cannot see things differently, doesn't mean that we have to give ourselves more pain than necessary dealing with the binary blobs
21:34.51libvwe can only be flexible at the kernel side, so this is where we need to make sure that we are flexible, despite shortsightedness upstream
21:35.36libvwhen i finally do get a mesa/gallium based lima driver out, it will build externally
21:35.37mnemocseriously pissed off by hipboi disappearance. we only need a r3p0 armel driver to not need this discussion.... and he is supposed to be the most interested one on have proper open source support for sunxi
21:36.14libvwhich will piss off quite a lot of people, and i have had BS thrown at me for my plans already, even though i only briefly mentioned this at fosdem
21:36.28mnemoc:)
21:36.51libvbut in the latter case, the person doing so had to give in that his reasons for giving me crap was his own view of the world being wrong
21:37.44cat1libv: are you working on lima?
21:38.06mnemoccat1: he is lima
21:38.08Turlmnemoc: wasn't he moving or something?
21:38.35mnemocTurl: he ended up staying in zuhai
21:39.09libvmnemoc: :)
21:39.15libvcat1: not often enough :p
21:39.56cat1libv: i did not even get how to compile is from the sources :D
21:40.04libvbut that's sadly more about company politics than anything else
21:40.30libvcat1: yes, the android ndk is not really made for this sort of thing
21:40.43hnoMaybe he did return to Allwinner as well?
21:40.58libvcat1: also, lima is still fully about finding out how everything fits together
21:41.13libvthere is no working driver there, there is some code to test driver like functionality
21:41.21cat1libv: ah, kinda playground.
21:41.50libvcat1: at this stage, nothing else is possible yet
21:42.09mnemocTurl: would it be possible to build both .ko? mali_r2p4.ko, mali_r3p1.ko without much change?
21:42.47hnomnemoc, yes.
21:43.19cat1libv: yeah, i understand.
21:43.21Turlmnemoc: you'd need new kconfig variables
21:43.32Turland make some makefile guards so they don't clash or something
21:44.15mnemocTurl: would you take the challenge? ;-)
21:44.39libvwhat versions has allwinner seen already?
21:44.46Turlmnemoc: why do you need r2p4 still?
21:45.05mnemocfor people using cedarx on linux :<
21:45.25mnemocor trying to...
21:45.41cat1mnemoc: so the plan would be to keep separate github repo with all mali parts in there? this actually might work..
21:45.42rellla1trying to ;-)
21:45.44mnemoccries
21:45.48Turl'git revert' works wonders :)
21:46.00cat1mnemoc: not that loud :)
21:46.07mnemoccat1: no no... that's what I want to avoid at all cost
21:46.22Turlmnemoc: we should try to ask tom for softfp libs
21:46.26Turlproblem solved :)
21:46.38cat1mnemoc: ok, checking this possiblity out then ;)
21:46.39mnemoccat1: I was thinking more of a CONFIG_MALI + bool CONFIG_MALI_LEGACY
21:46.51Turlmnemoc: in reality r3p0 is old already :< we need new android, softfp, hardfp r3p1 libs
21:47.16mnemochipboi!!
21:47.20mnemoc:<
21:48.12libvwhat libs exist, and can they be gathered at http://dl.linux-sunxi.org/mali/ please
21:48.26Turllibv: there's a wiki page with it
21:48.44Turllibv: http://linux-sunxi.org/Mali400#Binary_libraries_download_links
21:48.50mnemoctechn will hopefully gather them there soon-ish
21:49.00libvbut there are only hf binaries apparently
21:49.23mnemoclibv: we have r2p4 for android and armel, r3p0 for android and armhf, and r3p1 for armhf
21:49.44Turlno idea where's the r2p4 armel release
21:49.45mnemocand cedarx for android and armel
21:49.48Turlwiki lists an hf one
21:50.33mnemocuhm
21:50.49techn_I asked armel Mali libs.. Also gave a tip to get armhf cedarx lib.. gotta sleep.. cu
21:51.01libvthe thing is...
21:51.21libvthe mali ioctls in themselves have a version handshake at the start
21:51.25mnemocarmhf cedarx would be ideal
21:51.39libvat least for the r2 ones i have been doing lima against
21:52.03techn_libv: also newer ones have it
21:52.48libvso theoretically it should be possible to have runtime compatibility in the kernel
21:53.11libvbut that requires unifying the relevant versions in the same tree first
21:53.28libvand then separating out the differences to make them dynamic
21:53.57libvany volunteers?
21:54.05cat1libv: i was thinking of the same
21:56.45libvah... heh.
21:57.01libvcat1: i was in meego graphics adaptation btw.
21:58.13cat1libv: hmm, can't recall you from nick ;) but i was doing battery management in harmattan
21:58.14Turllibv: the version checks are there because the lib-kernel interfaces change
21:59.00libvTurl: lima is happy from r2p2 to r2p4
21:59.14libveven though job handling has changed
21:59.45Turlr2 -> r3 probably breaks stuff
22:00.09libvyeah, but you can detect this during the handshake
22:00.15rz2know thats interesting
22:00.15rz2khttp://pastebin.com/N4LrtkiL
22:00.23rz2kmali crashed running glmark2
22:00.36Turlcubieboard website got a redesign?
22:02.25rellla1Turl: added links to r2p4 armel libs in the wiki. afaik this one is used in most of the xbmc/cedarx "tries"
22:07.19*** join/#arm-netbook mysteryname (~mysteryna@14-202-9-167.tpgi.com.au)
22:12.56libvin any case, shoring up mali enough to make it multi-version compatible, is possible but not very feasible in the current constellation, especially not going forward with arm throwing new kernel space drivers over the hedge
22:16.35libvit's going to be much easier with ump, mali, and mali_drm modular, with a limited changeset needed for initialization that is compatible with the linux-sunxi kernel, so that these changes can be thrown into new arm "heaps"
22:17.03libvalso, without a decent open userspace driver, there is no upstreaming for these bits anyway
22:18.16*** join/#arm-netbook tuliom (~tuliom@177.99.129.25)
22:23.32hnoTurl, seems so. Looks shiny. Sadly the shop is still closed.
22:24.13mnemocthe second batch should be arriving this week iirc.... but i fear it's already sold
22:24.40mnemocthose days he decided to silently open aliexpress' sho[
22:27.14hnohope he has been busy this week testing and shipping the first batch.
22:35.11mnemoc:)
22:37.17libvhrm... according to the mmu init of 3.0. mali uses 64mb, g2d uses 16 and lcd uses 32 (i am sure that this must be display instead though)
22:37.43mnemocyes, lcd means fb
22:37.50libvmnemoc: so your 64 + 32 + 16 of earlier, of that, only the 64 is handed to ump, right?
22:38.26mnemocdon't know how ump gets them
22:38.48mnemocthe chunk in removed (not reserved) from meminfo, the kernel never see it
22:39.02libvsure
22:39.21mnemocand the references to that address/size are hardcoded mali's config.h
22:41.07mnemoclibv: so this style is.... normal?
22:41.15libvon via unichrome, on amd hammer/k8 chipsets, asked the k8 how much memory we really had, the unichrome how much was reserved for it, and then mapped that last bit, and got mad cpu<->igp bandwidth :)
22:41.35mnemocdoh
22:42.18libv(the openchrome guys still haven't caught on to that one ;p)
22:42.46mnemoc:o
22:45.26libvso yes, very very common
22:45.37libvon x86 the bios lies to the kernel
22:53.02*** join/#arm-netbook tzafrir_laptop (~tzafrir@local.xorcom.com)
23:04.19*** join/#arm-netbook specing (~specing@unaffiliated/specing)
23:29.06rz2kxbmc running on r3p1 in fullhd http://i.imgur.com/rzsbO.jpg
23:54.00alcides13fps?
23:54.02alcideshmmm

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