ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development discussion - Don't ask to ask. Just ask! - See http://linux-sunxi.org | https://github.com/linux-sunxi/ | Logs at http://irclog.whitequark.org/linux-sunxi
torqu3e has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
eebrah_ has joined #linux-sunxi
servili007 has joined #linux-sunxi
eebrah_ has quit [Ping timeout: 264 seconds]
wingrime has joined #linux-sunxi
servili007 has quit [Read error: Connection reset by peer]
<wingrime> Throughput 0.897567 MB/sec
<wingrime> sudo perf_3.2.0-39 stat -B dd if=/dev/zero of=/media/0000-006F/test.zero count=100000 bs=1k oflag=dsync
<wingrime> Before 44.175584147 sec After 27.937074039 sec
torindel_ has joined #linux-sunxi
slapin has joined #linux-sunxi
torindel has quit [Ping timeout: 276 seconds]
slapin_ has quit [Ping timeout: 276 seconds]
rellla has joined #linux-sunxi
Quarx has joined #linux-sunxi
n01|afk is now known as n01
<oliv3r> mornin' all
<wingrime> olv3r: chek my branch dma-rework
<wingrime> I got results
<wingrime> sudo perf_3.2.0-39 stat -B dd if=/dev/zero of=/media/0000-006F/test.zero count=100000 bs=1k oflag=dsync
<wingrime> Before 44.175584147 sec After 27.937074039 sec
<wingrime> olv3r: I wan't you bench too
Quarx has quit []
Quarx has joined #linux-sunxi
<wingrime> ssvb: sound playing in kernel use gettime
<oliv3r> wingrime: dma rework bench on your github?
<oliv3r> found it;c hecking out
<wingrime> I hope it works betteer
<wingrime> I return ~8h
wingrime has quit [Ping timeout: 264 seconds]
shineworld has joined #linux-sunxi
calris has quit [Ping timeout: 240 seconds]
<oliv3r> winbuild; i will test it tonight when i get home from work :)
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
calris has joined #linux-sunxi
rm has quit [Quit: ZNC - http://znc.sourceforge.net]
rm has joined #linux-sunxi
JCQ has joined #linux-sunxi
eebrah_ has joined #linux-sunxi
eebrah_ has quit [Ping timeout: 240 seconds]
calris has quit [Ping timeout: 245 seconds]
JCQ has quit [Quit: Leaving]
JCQ has joined #linux-sunxi
leowt has joined #linux-sunxi
<leowt> where can i get the compile flags for a10?
<shineworld> kernel ?
<leowt> for anything
<shineworld> arch/arm/configs/sun4i_defconfig for A10 in general and sun4i_crane_defconfig for android
<n01> shineworld: flags :)
<leowt> shineworld: thats not what i want
<shineworld> ah ok sorry
<Turl> leowt: google for flags for cortex a8
<rm> leowt, see some flags here: http://linux-sunxi.org/Benchmarks#Linpack
hramrach has quit [Remote host closed the connection]
calris has joined #linux-sunxi
hramrach has joined #linux-sunxi
hansg has joined #linux-sunxi
<oliv3r> mnemoc: did those 2 additional patches work?
rz2k has joined #linux-sunxi
rz2k has joined #linux-sunxi
calris has quit [Ping timeout: 256 seconds]
<mnemoc> oliv3r: context please
rzk has joined #linux-sunxi
rz2k has quit [Ping timeout: 264 seconds]
wingrime has joined #linux-sunxi
rz2k has joined #linux-sunxi
rzk has quit [Ping timeout: 264 seconds]
<wingrime> olv3r:?
eebrah has quit [Ping timeout: 245 seconds]
calris has joined #linux-sunxi
eebrah has joined #linux-sunxi
eebrah_ has joined #linux-sunxi
<oliv3r> mnemoc: hansg sound patches 2/10 and 8/10
<oliv3r> wingrime: i'll test it tonight when i get home; i have successfully built it
<oliv3r> hmm, some interesting files here: drivers/video/sun7i/lcd/lcd_bak
paulk-desktop has joined #linux-sunxi
slapin_nb has joined #linux-sunxi
<paulk-desktop> hi
<paulk-desktop> what's the utility to read register value from userspace?
DagoRed has joined #linux-sunxi
shineworld has quit [Quit: Leaving]
<mnemoc> devmem ?
eebrah_ has quit [Ping timeout: 258 seconds]
<paulk-desktop> mhh I get 0
<paulk-desktop> while I set the register value in the kernel
<paulk-desktop> is there some kind of address translating I need to do?
hansg has quit [Quit: Leaving]
<paulk-desktop> ah got it
dolence has joined #linux-sunxi
Quarx has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Quarx has joined #linux-sunxi
<hramrach> hello
<hramrach> wrt the timer raed performance ..
<wingrime> hramrach: I testing dma fixes
<hramrach> hmm, gettimeofday() returns microseconds so it's kind of obvious why it ends up reading precision timer
n01 is now known as n01|work|away
<hramrach> the exynos code caches the value and checks it did not cahnge much without latching but is not much faster and is not guaranteed to work on A10 as well :s
<hramrach> better dma is cool
<RaYmAn> a
<hramrach> not sure I will be able to tell on any of my workloads but gives more potential :)
<hramrach> working on saner defconfig https://github.com/hramrach/linux-sunxi/commits/defconf
<wingrime> hramrach
<wingrime> I have some results
<wingrime> nees someone to aprove
<wingrime> Before 44.175584147 sec After 27.937074039 sec
<wingrime> sudo perf_3.2.0-39 stat -B dd if=/dev/zero of=/media/0000-006F/test.zero count=100000 bs=1k oflag=dsync
<hramrach> yes, a bit faster reads
<hramrach> my A10 box is busy compiling new kernel
<hramrach> and since I changed many options going to defconfig it's going to take a while
<wingrime> I hope you find time
<hramrach> I hope you can test my sun5i defconfig when I make one ;-)
<hramrach> but right now I am going to try if kernel configured with defconfig boots ;-)
<hramrach> mnemoc: why does 3.0 and 3.4 branch defconfig differ?
<hramrach> some parts can be explained by kernel difference but some are odd
leowt has quit [Read error: Connection reset by peer]
<hramrach> -CONFIG_SUNXI_NAND=y
<hramrach> +CONFIG_SUN4I_NANDFLASH=y
<hramrach> -CONFIG_FB_SUNXI=y +CONFIG_LYCHEE_FB_SUN4I=y
<wingrime> hramrach: don't forget add pm,cpufreq
<wingrime> and pref to sun5i
<hramrach> so sun5i is again different and more bitrotten :s
<Turl> RaYmAn: typing your password on irc is not a great idea
<hramrach> maybe taking the sun4i config and doing sed s/SUN4I/SUN5I would work ;-)
<hramrach> wtf CONFIG_SW_DEBUG_UART=1
<RaYmAn> Turl: :D
<mnemoc> hramrach: any difference is a bug
<mnemoc> i mean, between 3.0 and 3.4
<mnemoc> our defconfigs are intended to be consistent between 3.0 and 3.4, and also consistent across soc and usage (linux/android today, hopefully desktop linux, headless linux and android in short future)
<hramrach> does sun5i not have ts, sound, keypad, ethernet?
<hramrach> and gpio, vibrator?
<mnemoc> patches welcomed ;-)
<mnemoc> sun5i_defconfig is pretty useless anyway
<mnemoc> only per-soc works
<mnemoc> a10s and a13 are too different
<hramrach> I tried to apply sun4i defconfig to sun5i
<mnemoc> feature wise
<mnemoc> both are sun5i, but the soc features (and so the defconfig) differ a lot
<hramrach> but you can boot a10s kernel on a13, right?
<mnemoc> yes, the heart of the soc is the same
<mnemoc> and diffs can be handled at script.bin level
<hramrach> so having two configs is optimization but not necessity
<mnemoc> i would call it user friendliness more than optimization
<mnemoc> but right, it's not a necessity
<hramrach> if the purpose of the defconfig is to provide unified hwpacks that work on all devices with proper script.bin a single sun5i can work
<mnemoc> allwinner uses a CONFIG to distinguish SoCs, if soc-detect decides to work, we can have a unified sun5i kernel bin
<mnemoc> they have separated trees.... a1x for A13, and "elite" for A10s
<mnemoc> and that means separated workarounds
<mnemoc> but we need to integrate them all into a single source base anyway
<hramrach> have same config for sun4i and sun5i now
<hramrach> that some drivers are sun4i on sun5i is kind of weird
<mnemoc> fully agree
<mnemoc> those should be sunxi, not sunNi
<techn__> mnemoc: SW_DEBUG_UART should be handled by soc then
<mnemoc> techn__: good point
<hramrach> what does it do?
<hramrach> it's not set on sun4i
<mnemoc> hramrach: earlyprintk
<techn__> maybe it should be changed to EARLYPRINTK_USE_SD_CARD_UART=y/n
<mnemoc> it's not only for the breakout
<hramrach> is there a reasonable default value for sun5i?
<techn__> it's true
<mnemoc> it's just the debug uart of the board.
<mnemoc> hramrach: in A13 it's uart1
<mnemoc> I think DEBUG_UART is the normal name
<slapin_nb> which minimal clock can be used by A10/A13 to drive SDRAM? if I do bad DDR3 routing on my board, will I be able to run it at low speeds, as I'm too lazy to calculate/correct tracks now?
torqu3e has quit [Quit: torqu3e]
n01 has joined #linux-sunxi
<hramrach> what is the part unavailable on sun5i - only SATA?
<jinzo> regarding to sun4i?
<jinzo> in comparison to*
<hramrach> yeah
<jinzo> the RAM is limited to 512 and no HDMI afaik
<jinzo> (in addition to SATA)
<hramrach> there is hdmi on a10s?
<jinzo> not sure about that one, I didn't look into it.
<jinzo> looks like a13 and a10s have different capabilities indeed
<jinzo> (but both being sun5i)
rellla has joined #linux-sunxi
<DagoRed> Do the images for the MK802 work for the Mele A100? The hardware looks identical and I would like to run android 4.x on my A100.
<hramrach> mele has more features
<hramrach> so mk802 image would possibly work but make not full use of hardware
<hramrach> if you replace kernel and script.bin then all features should work but might not be integrated in the android settings
<DagoRed> Is there an android 4.x image available for the A100? I saw some boxes being sold on deal extreme with 4.1.
<hramrach> probably
<hramrach> if you don't want to build your own try to search the intewebs
<DagoRed> Ok, so far I'm unsuccessful. My google fu must be weak.
<hramrach> that they preaload it on something does not mean they publish it anywhere accessible (although they should)
<DagoRed> I wouldn't mind building own in the future, I just want to get my box running. The box I have is from one of the Alarm guys doing dev work. I'll switch back to ALARM in the future but for now, trying to get some co-workers addicted to these little boxes.
rellla has quit [Remote host closed the connection]
<hramrach> just try the mk802 image then and see what works
<DagoRed> Ok.
<DagoRed> Thank you.
<Turl> mele had official images on their site, didn't they?
<DagoRed> I think they did... I just can't find it right now.
<DagoRed> I can't even find the official mele website, unless it's all in chineese.
<hramrach> wingrime: the sun5i defconfig builds ;-)
<hramrach> use google translate
<hramrach> or learn what picture Chinese use for 'download'
<hramrach> but yes, I would expect they have English site too
* DagoRed looks again
<Turl> lundman has some info on his wiki http://www.lundman.net/wiki/index.php/MeLe_A2000
<DagoRed> I found images for the A1000 and A2000... but not the A100.
<Turl> aren't they all the same with just a reworked case?
<DagoRed> I know the difference is the sata header.
<DagoRed> But... worth a shot.
<hramrach> I think picture for English starts with 英 ;-)
<hramrach> the a1000 vs a2000 have different amount of ram or something maybe
torqu3e has joined #linux-sunxi
Quarx has quit []
<DagoRed> Well crud... picked up so I will have to attempt download this firmware later.
<DagoRed> Err... android image later.
<mnemoc> DagoRed: the A100 is just like the A1000 or A2000 but with the sata connector not soldered
* DagoRed looks
<DagoRed> I don't see where. But I'll play around with this box more after work.
<wingrime> kde cant start
<wingrime> lookup symbol problem "ump_switch_hw_usage_secure_id"
<wingrime> anyone saw this?
<ssvb> wingrime: sounds like incompatible libump
<ssvb> wingrime: trying to setup mali 3d acceleration?
<wingrime> yep
<wingrime> but unsuccessfuly
<wingrime> /usr/bin/kdeinit4: symbol lookup error: /usr/lib/libEGL.so.1: undefined symbol: ump_switch_hw_usage_secure_id
<wingrime> wtf
<ssvb> wingrime: http://linux-sunxi.org/Binary_drivers in theory should provide simple instructions and works for most people
<ssvb> /usr/lib/libEGL.so.1 should be a symlink to libMali.so
<ssvb> and it depends on libUMP.so which provides this symbol ump_* symbol
<ssvb> try to run ldd for different libraries and binaries to check any weird/missing dependencies
<wingrime> i just try 4-times reinstall sunxi-mali.git
<ssvb> what is your distro?
<wingrime> linaro alip
<ssvb> why is /lib/libUMP.so in /lib directory?
<ssvb> shouldn't it be /usr/lib ?
<wingrime> ssvb: look like linaro placed old UMP
<wingrime> ssvb: remove hekps
<ssvb> and instead of kde with kwin_gles compositing manager, it's probably easier to first try something simple like glmark2-es2
<ssvb> and once everything is working properly, kwin_gles should be also fine
eebrah has quit [Ping timeout: 248 seconds]
<ssvb> wingrime: does 3d acceleration work fine now?
<wingrime> kde running but without kdm
<wingrime> kdm crashed with:libGL.so.1 not found
<ssvb> as I said, maybe try something simple like XFCE with simple GLES applications?
<ssvb> it should be way easier to debug
eebrah has joined #linux-sunxi
<wingrime> kwin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
<wingrime> kwin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
<ssvb> for mali acceleration it should be using kwin_gles, not kwin
<ssvb> with anything depending on libGL.so you can only get slow software rendering for 3D graphics
<wingrime> I wonder that so hard to translate eachother
<wingrime> kwin(2725): Required extension GL_OES_EGL_image not found, disabling compositing
<n01> guys, don't we have a defconfig for the DT branch?
<ssvb> wingrime: somebody has decided that embedded devices need simplified API and simplified hardware for 3D graphics, so you can't easily run 'desktop' 3D applications without major porting efforts
<mripard_> n01: multi_v7_defconfig should work
<n01> thx mripard_
<n01> mripard_: to boot the kernel with dt are you using sunxi-u-boot?
<mripard_> I'm using appended dtb
<mripard_> so I just load the kernel image as usual
<mripard_> with the dtb that has been previously appended to it
<ssvb> wingrime: still KDE also has kwin_gles compositing window manager for desktop effects, and it can successfully use OpenGL ES acceleration provided by the mali blob driver (KDE folks have done the needed work)
<wingrime> ssvb: that message was from kde_gles
<wingrime> kwin(2725): Required extension GL_OES_EGL_image not found, disabling compositing
<wingrime> kwin_gles I mean
<ssvb> wingrime: can you pastebin full output from kwin_gles?
<ssvb> wingrime: it looks like your drivers are still messed up
<jinzo> I wonder for who mike valk works... I would vager my bet on rockchip
<hramrach> mnemoc: don
<hramrach> 't we have sun5i android config?
<ssvb> wingrime: yes, it looks wrong
<ssvb> wingrime: you can have a look at the expected kwin_gles console output at https://github.com/ssvb/xf86-video-sunxifb/wiki/GentooLinuxSupport
simosx has joined #linux-sunxi
simosx has quit [Changing host]
simosx has joined #linux-sunxi
<hramrach> hmm, lowmem is 564M on highmem kernel
<hramrach> I wonder if nohighmem kernel can handle the 800 something M like on x86 or we need highmem for 1G boards
<hramrach> but definitely not needed on sun5i if it has 512M max
shineworld has joined #linux-sunxi
<jinzo> hramrach, but then again a10s is sun5i and max is 2GB supposedly.
<hramrach> well, sun5i has half the memory controller of sun4i
<mnemoc> hramrach: "nuclear" is a13's android
<hramrach> 2G is max on a10 supposedly but no board has
<hramrach> nuclear without sun5i prefix?
<mnemoc> hramrach: a10s' is "elite"
<mnemoc> hramrach: a13_nuclear_defconfig
<jinzo> hramrach, indeed.
<jinzo> I think olimex reported major problems with that stuff.
<hramrach> can't the configs have somewhat consistent names /o\
<mnemoc> 2GB on A10. but afaik they didn't try on A10S
<mnemoc> hramrach: patches welcomed :)
<hramrach> I think olimex reported major problems with designing board not based on the AW reference design
<jinzo> mnemoc, still not released/haven't heard anything. The A20 news are good tho
<jinzo> couldn't catch Tsvetan to ask him what's the price range
<hramrach> trying 2G on that board was just adding more unknowns but they did not report even getting the 1G board working
<ssvb> wingrime: sorry for being annoying and repeating, but you are really trying to test mali drivers in the most difficult and time consuming way
<ssvb> wingrime: but if you are enjoying the process, then it's probably fine :)
<hramrach> picking linaro was possibly bad idea
<hramrach> I had no drivers on Debian so just built everything from git. No problem there.
<wingrime> ssvb: I must find why debian hung on suspend when x11 run (framebuffer driver)
<shineworld> any rumors about cubieboard with A20 ?
<shineworld> I've see A20 name in some line above
<n01> mripard_: got it, I have finished the new watchdog driver and want to give it a try (using dt)
<mnemoc> shineworld: there are working on a A31 board. A20 will probably happen once AW start selling them
<mripard_> n01: cool
<mripard_> n01: tell me if you need anything
<n01> :) thank you
<shineworld> A31 ? .... quad processor ? interesting ... some info about card size ?
<mnemoc> he mentioned to aim at intel's nuc formfactor
<mnemoc> with all pins in headers this time
<n01> and a brand new name :D
<hramrach> but with 31 :(
<hramrach> A31
<mnemoc> i've been begging him for a A20 "nuc"ish device too
<shineworld> A31 should be very close to iMX6 but with better community than frescale
<ssvb> hramrach: mali still does not have much practical use, but quad NEON should be good (unless they stripped it too much in Cortex-A7) :)
<ssvb> hramrach: though the loss of SATA is a pity
<shineworld> I don't use SATA but more math and cpu power is welcome
<DagoRed> I have a iMX6Q board... I should start using it again.
* DagoRed doesn't know what to do with it at times.
<shineworld> I a Wandboard dual lite ... only 2 cores
<shineworld> but I would like to try also 4 core ... but how I said the freescale community and support are terrible
<shineworld> at moment
<shineworld> *I have
<techn__> shineworld: how come?
jorgegeorge has joined #linux-sunxi
<DagoRed> I know the kernel 3.0. Kinda pathetic.
<hramrach> ssvb: 2x lame core or 4x lame core is not much difference
<shineworld> I'm working with freescale chips by many years ...
<shineworld> never arm ...
<shineworld> other chips
<ssvb> hramrach: but 4 cores is still 2x less lame than only 2 cores :)
<jorgegeorge> I'm trying to have g_ether eem working on the latest 3.4 without success, are there some tricks needed on the fex file or some experimental branch to be used ?
<hramrach> until somebody decodes full hd in software on them
<hramrach> they make maybe slightly faster kernel compiles
<hramrach> so practically useless
<ssvb> hramrach: they might be quite useful for taking care of 2D graphics (for example use an extra Cortex-A7 core instead of G2D)
<ssvb> hramrach: in either way, your "primary" CPU gets free for other tasks :)
<hramrach> 2 cores yes
<hramrach> 4 cores not so much better
<hramrach> you already have offload cpu with 2 cores
<shineworld> sincerely I'm used with my quadcore n7 to fly like a race :)
<shineworld> at least android apk that I develop can use very good the thread features
<shineworld> also if single core is more simple to inspect and debug
<shineworld> ... more strict is "profile"
<hramrach> 1 core and 2 cores is very different
<ssvb> in any case, you can still have pulseaudio and some other crap running at the same time and competing for the CPU
<hramrach> when you ahve special app it's useful
<hramrach> but not general
<hramrach> yes, that's why 2 cores is a big difference
<hramrach> but you get locking overhead also
<shineworld> yes... I don't know what is that overload honestly
<ssvb> actually a real 8-core or 16-core cortex-a7 SoC might be fun to play with
<ssvb> supposedly cortex-a7 is the most power efficient arm core at the moment
<oliv3r> mripard_: i need something! a review :p jk (i got time)
<oliv3r> wingrime: http://paste.debian.net/247346/ dma test
<hramrach> nice to play with, sure
<hramrach> but real use?
<mripard_> oliv3r: yes, I'm still thinking about it
<oliv3r> mripard_: is it that bad? :(
<mripard_> nope, it's quite good in general, but quite some things to comment on, and definitely not enough time to do it this week :(
<oliv3r> anything obvious
<oliv3r> i mean, i want to use this code to base pwm off of
<oliv3r> i read up on it and should be able to do it
<oliv3r> so if there's obvious things to watch out for, then I won't take it as 'template' :)
<oliv3r> and what do you mean a lot of things to comment on :p it was a really small driver :)
<wingrime> hramrach: how much this impressive?
<mripard_> oliv3r: you convinced me, I'm doing it :)
<hramrach> wingrime: which this?
<wingrime> dma results
<wingrime> ssvb: see my branch , I make flush after transaction ends
<hramrach> the benchmark results look cool
<oliv3r> wingrime: it is quite some faster
<hramrach> ok, so removing highmem is not going to work for A10
<oliv3r> wingrime: branch-misses are exactly the same
<wingrime> hramrach: branch-misses are mistical thing
<oliv3r> but i'm getting 25 kb/s more; and on 300 kb/s that's a lot :)
<hramrach> wingrime: did you try hte sun5i defconfig?
<ssvb> wingrime: cool, I'll try to test it later
<hramrach> it includes the option to optimize branching in kernel
<oliv3r> cpu utilization was a little higher though
<oliv3r> it ran about 30 seconds faster overal
<oliv3r> (but nande is slow :p)
<wingrime> hramrach:where your configs?
<oliv3r> wingrime: btw, i was reading datasheet for a13, and there's NO register information at all for MMC in the datasheet
<oliv3r> wingrime: it DOES say clearly, that it has its own dedicated DMA circuit :)
<wingrime> oliv3r: I saw this
<wingrime> oliv3r: disp and mmc have own dma ability
<oliv3r> disp too?
<wingrime> maybe cedar also
<wingrime> oliv3r: I realy will be too slow if thay have not
dolence has quit [Remote host closed the connection]
ssvb has quit [Quit: Leaving]
<wingrime> hramraach: otg can be
<wingrime> hramraach: selected
<wingrime> hramraach: I done this
<wingrime> hramraach: but it little untrivial
<hramrach> wingrime: you can select it in menuconfig
<wingrime> hramraach: yes
<hramrach> but not in defconfig
<hramrach> no.
<wingrime> hramraach: more interesting why i can't disable WAKELOCK
<oliv3r> i'll check what the DMA controller is actually connected to
<hramrach> it must survive savedefconfig
<wingrime> hramrach: why I can't disable WAKELOCKs in 3.4 menuconfig
<hramrach> I did not inspect WAKELOCK
<hramrach> I can for sun4i
<wingrime> I have edit Kconfig to make it default n
<wingrime> hramrach: feature reqest, can enable select wakeup sources using Kconfig
<hramrach> that would be nice
<wingrime> hramrach: Simply ifdefs in pm.c
<hramrach> but I tried hacking this pm stuff and no result so far
<hramrach> yes, that would work I guess
<wingrime> hramrach: simply #ifdef's in pm and Kconfig suff
<wingrime> hramrach: we can make it dynamic using sys/proc
<hramrach> but what I want working first is wakeup from cpu_do_idle()
<wingrime> hramrach: it needed to for cpu_do_idle
<hramrach> that might be better than Kconfig
<hramrach> and wanted to look at sys anyway
<hramrach> :q
<wingrime> hramrach: simply, first step we make some option in General option for wakeup sources
<wingrime> hramrach: if you want do idle you simply need move ifdefs from pm.c to related device driver
<wingrime> that if def must configure device not sleep at suspend, and become IRQ source
<wingrime> also related code must be with irq controller
<wingrime> so. i ask it for a first step towards do_idle
<hramrach> I tried to link the standby.bin sleep setup function into kernel
<hramrach> but it did not wake up
<wingrime> hramrach: you do it wrong, suspend image totaly ignores linux infrastructure
<wingrime> hramrach: cpu_do_idle do same (asm WFI) Wait For IRQ
<hramrach> yes
<hramrach> that's what the function does when you look it up in the assembly source
<wingrime> hramrach: so, go sleep without suspend dram , are realy simply
<hramrach> that's what I did
<wingrime> you must configure IRQ controller (enable only wakeup sources) than configure source
<wingrime> configure source can be done in device driver in ifdef for example #ifdef SUNXI_LRADC_WAKEUP_SOURCE
<oliv3r> on DDMA: SRAM; SDRAM; NFC; USB0; SPI1; 'crypto engine'; TCON (disp?); spi0 and spi2;
<oliv3r> (i'll wikifiy that :)
<wingrime> +#include "standby/standby_power.c"
<wingrime> epic
<wingrime> make headers))
<hramrach> that's for testing
<wingrime> or whait we have headers
<hramrach> no.
<hramrach> I need to include the C file
<wingrime> )
<hramrach> because for standby.bin it's done in different calling convention
<hramrach> so can't link the .o
<oliv3r> on NDMA: IR; uart1; uart3; audio codec; sram; sdram; Touch Panel A/D; spi0 spi1 spi2; usb
<wingrime> hramrach: do simply, try configure axp for begening
<wingrime> you need 1) save IRQ controller regs
<wingrime> you need 2) enable irq for resume
<hramrach> It does the same as it did in standby.bin
<wingrime> yep
<hramrach> and the standby.bin still works after the hacking
<wingrime> do only axp
<hramrach> maybe I need a version of standby_delay.S for the kernel calling convention
<hramrach> I don't really understand arm assembly much :s
<wingrime> worst way
<techn__> mnemoc: http://linux-sunxi.org/BSP#LiveSuit_image .. any thoughts how to improve integration to bsp?
<hramrach> technically in kernel context you could use a better delay function but the code is shared with standby.bin
<mripard_> oliv3r: done :)
<oliv3r> techn__: why do we want to integrate livesuit image to bsp?
<oliv3r> mripard_: that long! i'm scared to look now
<techn__> oliv3r: why not?
<mripard_> oliv3r: you shouldn't, it's really in pretty good shape for a first :)
<hramrach> wingrime: what is wrong with WAKELOCK?
<hramrach> it's something internal and it gets set by defualt, yes
<wingrime> hramrach: it began suspend -> resume -> suspend enlessly
<wingrime> on 3.0 (it looks andorid behavior)
<wingrime> for example alarm
<wingrime> wakeup than go sleep
<hramrach> USB_OTG_WAKELOCK is for not suspending when USB is connected, android behaviour
<hramrach> WAKELOCK is the infrastructure for that and others
<hramrach> but it should not allow suspent in the first place
<hramrach> if device suspends with wakelock engaged there is something wrong
<n01> mripard_: with dt it is mandatory to use of_address_to_resource()? Or I can use also the old platform_get_resource?
<wingrime> it need more investegation
<hramrach> well, the logic is kind of broken. the OTG lock does not disenagage when I disconnect USB for me
rz2k has quit []
<mripard_> n01: iirc platform_get_resource calls of_address_to_resource
<jorgegeorge> could somebody give me a hint on this "ERROR: could not insert 'g_file_storage': No such device" my problem is on 3.4 (on 3.0 works)
<n01> uhm, I'm not sure
<jorgegeorge> I'reading mailing list/ irc logs / google group without any point about it
<mripard_> n01: anyway, both should work fine
<mripard_> but you can use devm_request_and_ioremap
<n01> sure but before I should get the resources
<mripard_> ouch, yes, sorry. I'm getting tired
<mripard_> I meant of_iomap
<n01> :) yep ... anyway really useful review!
<hramrach> jorgegeorge: you are using obsolete gadget
<mripard_> oliv3r: and I meant of_iomap for you as well, instead of devm_request_and_ioremap
<n01> actually a lot of device drivers still use devm_request_and_ioremap with dt ... I need to investigate a bit on this
<hramrach> not that other gadgets work flawlessly but it's not realy an arror that this particular one is broken ;-)
<mripard_> n01: it's really a matter of taste
<mripard_> also, devm_request_and_ioremap will work with and without dt
<oliv3r> how can it be 'taste' :p shouldn't there be one proper way of doing it? :)
<n01> yeah, sometimes redundancy is confusing
<mripard_> of_iomap will work only for dts
<hramrach> timtowtdi
<mripard_> oliv3r: it's really a matter of different interfaces to the same backend
<hramrach> if there is a 'blessed' way maybe look kernel docs to find out
<oliv3r> mripard_: yeah but if there's several, shouldn't some be pruned?
<mripard_> I tend to use of_iomap because it's just less code :)
<oliv3r> :p
<mripard_> I'm kind of lazy :)
<hramrach> sometimes you have shorthand interface and interface that includes gory details
<oliv3r> true
<hramrach> which are both useful
<oliv3r> yeah
<oliv3r> to bad there's no prber howto's or documetnation
<oliv3r> you just have to 'guess'
<jorgegeorge> I tried both "git checkout stage/sunxi-3.4" and "git checkout sunxi-3.4" where can I find the up-to-date gadget ?
<hramrach> jorgegeorge: the gadget type is obsolete
<hramrach> when yo uselect it in menuconfig you see (DEPRECATED) next to the option
paulk-desktop has quit [Quit: Ex-Chat]
<jorgegeorge> I see. I ca switch for it to "Mass Storage Gadget", anyway I have the same error for other gadgets: "ERROR: could not insert 'g_ether': No such device"
<hramrach> that's odd
<hramrach> g_ether works for me
<hramrach> at least on stage/sunxi-3.4
<oliv3r> mripard_: not happy with the sun4i vs sunxi thing :p
<oliv3r> mripard_: i haven't checked sun3i, but i think some of our stuff may be sun3i compatible (and first appeard)
<oliv3r> so should I thus name it sun3i?
<hramrach> it should be sunxi for common driver and sunNi for specific driver
<oliv3r> hramrach: mripard_ says in 3.8+ it's being changed to "We try to remove the sunxi stuff from the compatible strings. The
<hramrach> some drivers don't follow and sun5i uses numerous sun4i drivers
<oliv3r> general usage is to use the earliest SoC this IP has been found in, so
<oliv3r> it should be allwinner,sun4i-sid
<jorgegeorge> on menuconfig on 3.0 I was using "SUN4I USB2.0 Manage/USB0 Controller support (device only support)" now on 3.4 I only see "Host only support", should I disable it ?
<hramrach> jorgegeorge: you should select OTG or device only
<hramrach> but might not be available if the controller is not configured in gadget config
DagoRed has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mripard_> oliv3r: it's about compatibility, nothing more
<mripard_> the question you have to ask to yourself is "is the security id stuff in the A13 compatible with the one in the A10"
<mripard_> if the answer is yes, you should have the same compatible
<mripard_> but it's only about the compatible
<mripard_> not the name of the driver
<oliv3r> mripard_: so only for the dt stuff then?
<oliv3r> mripard_: that does make complete sense to me
<oliv3r> i'll reply to the e-mail with more questions on your replies :p (lots to learn still)
<oliv3r> mripard_: also, i assume we'll 'ignore' sun3i, right?
<mripard_> yes
<jorgegeorge> hramrach: do you mean in "USB Gadget Support/USB Peripheral Controller" ?
<mripard_> and yes, the sun4i-sid comment is only about the content of the compatible string in the dt (and in the device_table array, of course), nothing more
<mripard_> but all the dt bindings are supposed to be an interface, like the syscalls and so on
<mripard_> so we can't modify it afterwards
shineworld has quit [Remote host closed the connection]
<hramrach> jorgegeorge: yes that. you need to set it to built-in and then pick sun4i/sun5i
<oliv3r> mripard_: i then completly agree
<oliv3r> i thought we where naming drivers; but just dt, yeah i get that
<hramrach> jorgegeorge: you can also try https://github.com/hramrach/linux-sunxi/commits/defconf
<mripard_> no the driver is fine, since it's for the moment the driver is usable on all the sunxi stuff, it definitely makes sense to call it sunxi :)
<hramrach> that branch has the configs modified so that the OTG mode gets selected by default
<oliv3r> mripard_: you replied to the actual patch! not to my own reply to the patch (that I cced you on) that had tons of questions :) oh well
<hramrach> so you make sun4i_defconfig or sun5i_defconfig and build the kernel
<mripard_> oliv3r: oh, yes
<mripard_> sorry, I forgot this patch
<mripard_> s/patch/mail/
<oliv3r> mripard_: it's ok, you gave valueable info allready
<hramrach> the problem is with ' can't modify it afterwards'
<jorgegeorge> hramrach: thanks I found the reason, I had is selected as module and I was not gettin the SUN4i option, checking it as kernel I can select the SUN4i controller
<hramrach> because sun3i is there but we have no testing of that platform
<hramrach> and most drivers would be same but not all presumably
<mripard_> oliv3r: if you have any more questions, don't hesitate to reply
<mripard_> hramrach: then we can always add, say a sun3i-sid compatible string
<mripard_> it's read-only if you prefer, you can add new stuff, but once it's there, you can't modify or remove it
<oliv3r> yes, yes you can!
<oliv3r> :p
<hramrach> mripard_: how does DT handle when you assign the 'earliest SoC the IP has been found in' but then somebody brings an older SoC and the stuff is htere too?
<oliv3r> hramrach: you lie :po
<oliv3r> you say in sun3i.dts -> compatible=sun4i
<mripard_> like I said, you add a new compatible string, which would be sun3i-*, and keep the sun4i one
<mripard_> or we can lie, like oliv3r suggested :)
<mripard_> but anyway, it's definitely doable
<mripard_> we have several solutions, so we'll see when that case will happen
wingrime has quit [Ping timeout: 260 seconds]
<oliv3r> but unlikly to see sun3i go mainline imo
<hramrach> not as things are now
<hramrach> with 0 people known using it
<hramrach> but most drivers could be likely used from sun4i
<hramrach> so if somebody came at the time sun4i is mainline and wanted to do sun3i too it would not be too difficult
<mripard_> hramrach: that's what I think as well, and that's why I don't worry too much about it
n01 has quit [Quit: leaving]
orly_owl has joined #linux-sunxi
eebrah_ has joined #linux-sunxi
eebrah_ has quit [Ping timeout: 245 seconds]
_whitelogger has joined #linux-sunxi
simosx has quit [Quit: Αποχώρησε]
torqu3e has quit [Quit: torqu3e]
<jorgegeorge> Hramrach: do you have .config working with g_ether to share ? I have non errors in any place now, but also to talking on the USB...
<jorgegeorge> I mean no erros in any place, but no talking on usb
<jorgegeorge> SOLVED ! I has just a remaining problem of fex in script.bin
torqu3e has joined #linux-sunxi