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
<theborger> Turl: is it fine to update this image with Yum?
<Turl> I suppose so, but I never used fedora
<Turl> hansg would be the one to ask, he's making the fedora images
<theborger> ok thanks
torqu3e has quit [Ping timeout: 245 seconds]
torqu3e has joined #linux-sunxi
mab has quit [Remote host closed the connection]
ZaEarl has joined #linux-sunxi
ZaEarl has quit [Ping timeout: 252 seconds]
ZaEarl has joined #linux-sunxi
wingrime has joined #linux-sunxi
torqu3e has quit [Ping timeout: 245 seconds]
torqu3e has joined #linux-sunxi
<wingrime> mnemoc: ??
sky770 has joined #linux-sunxi
sky770 has quit []
ZaEarl has quit [Ping timeout: 264 seconds]
<wingrime> thrul ?
<wingrime> techn__ ?
<wingrime> techn__ ?
torqu3e has quit [Ping timeout: 245 seconds]
<wingrime> hramrach ?
hipboi has joined #linux-sunxi
torqu3e has joined #linux-sunxi
rz2k has joined #linux-sunxi
jinzo has quit [Ping timeout: 245 seconds]
jinzo has joined #linux-sunxi
RaYmAn has quit [Ping timeout: 245 seconds]
rellla has joined #linux-sunxi
RaYmAn has joined #linux-sunxi
hipboi has quit [Quit: Leaving]
<techn__> wingrime:
<wingrime> I some how bring suspend on
<wingrime> techn__: need some one who can test and develop
<wingrime> techn__: I realy sleep and wakeup after pressing keys
<wingrime> *IT
<wingrime> techn__:wanna test ?
<techn__> I can test it.. but after couple hours
<wingrime> techn__: it for sun5i
<wingrime> but can be copied to sun4i
<techn__> I have a10 and a13 devices
<wingrime> ok
<wingrime> I send it to ML
<techn__> great :)
<wingrime> I heve noticed some problems on USB wakeup
<wingrime> it sometimes not wakeup
<wingrime> techn__: see patch?
<techn__> wingrime: yes.. good work :)
<techn__> does it go suspend automaticly ?
<wingrime> nope
<wingrime> echo "mem" > /sys/power/state
<wingrime> or
<wingrime> echo "standby" > /sys/power/state
<wingrime> It standard for linux on all devices
<techn__> hmm
<techn__> I'm just wondering why that stuct has been implemented.. since there is no allwinner specific stuff
<wingrime> also SUSPEND and others must be enabled in kernel
<wingrime> thehn__: have
<wingrime> techn__: suspend must set proper clocksources, wakeup interrupt sources
<wingrime> techn__: that AW specific
<wingrime> and more one thing, WAKELOCKS shound be disabled in kernel
<wingrime> otherwice kernel try suspend again after wakeup -- I think this is android behavior
mab has joined #linux-sunxi
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
paulk-desktop has joined #linux-sunxi
<wingrime> techn__: so what?
torqu3e has quit [Ping timeout: 245 seconds]
torqu3e has joined #linux-sunxi
<wingrime> hramrach: are you here ?
ZaEarl has joined #linux-sunxi
<hno> wingrime, u-boot do not seem to like all SD cards. With some cards if fails to detect the card. Quite likely a timing issue somewhere, but haven't been able to look into it. All cards I have access to works just fine.
<Turl> wingrime: your patch seems to remove half of the PM ops hm
* hramrach is away ;-)
rellla has joined #linux-sunxi
<wingrime> Turl: all that ops are stud
<wingrime> Turl: just cleanup )
<wingrime> Turl: pm not nesessory must have that ops
<wingrime> only pm_valid / pm_enter have needed stuff
<hramrach> wingrime: it's better to do the cleanup in a separate patch then so that it's obvious what your patch changes
<wingrime> huo: most strange thing that card work on other a10
<wingrime> without issues
<wingrime> on a13 but 1/3 chance to boot
<Turl> wingrime: I'd leave pm_wake one, it's nice to debug why device wakes by itself sometimes
<wingrime> Trul: nope you don't need that I make debug print with reason
jinzo has quit [Changing host]
jinzo has joined #linux-sunxi
<Turl> wingrime: where?
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
<wingrime> pr_info("%s: wakeup by event:%d\n", __func__, standby_info.standby_para.event);
<wingrime> actualy sustem go to sleep by call standby()
<wingrime> in pm_enter
<wingrime> it return "wakeup reason code" in standby_info.standby_para.event
<wingrime> Turl: see?
<Turl> yes wingrime
<Turl> wingrime: does the sun4i code need this same cleanup?
<wingrime> yep
<wingrime> but better unification
<Turl> I guess so
<wingrime> also
<Turl> wingrime: have you tried with android and see if it breaks suspend?
<Turl> that's my main worry atm
<wingrime> realy it was broken all-time
<wingrime> so it must not interfere with android
<Turl> it worked fine on my battery powered sun4i
<wingrime> android use different mechanism
<Turl> yes, wakelocks, but it still goes through pm
<wingrime> also If I enable early suspend and wakelocks I get strange situation system wake-ups than go to suspend again
<wingrime> seems it android behavior
<wingrime> may be I can rewrite code for droping standby image
<wingrime> as kernel can place code in sram by attribute
<wingrime> data and others
<Turl> wingrime: android wakes by external wake (eg button) and rtc alarm
<Turl> check the wake reason
<wingrime> anyway this patch initial
<wingrime> I can't use android until I port ts driver
<wingrime> hramrach: you can test on debian
<wingrime> hramrach: patch / edit .config
<wingrime> Turl: USB somtimes drops after suspend
<Turl> host or otg?
<wingrime> host
<wingrime> also who knows how to solve configure: error: "Could not find Cedar development headers"
<wingrime> on vlc build
<Turl> is it not supposed to shut down on suspend? :)
<hramrach> install cedar headers ;-)
<wingrime> I install to prefix
<wingrime> and build vlc to same
<wingrime> prefix
<Turl> probably the configure script has a parameter to set path to headers
<hramrach> it sure has
<wingrime> Turl: you can test patch ?
<hramrach> wingrime: test what?
<wingrime> suspend
<hramrach> different processor
<wingrime> I can make patch as pm are same
<Turl> wingrime: not today
<Turl> wingrime: but if you mail it to the list I'll test it when I get a chance, cc me on it
<hramrach> how is the PM supposed to work?
<hramrach> you echo mem to some file or other and then what?
<Turl> echo mem > /proc/power/state or sth like it
<Turl> and then your device suspends :)
<hramrach> and then what?
<Turl> then you wake it with the power button or an rtc alarm you'd have to set up before suspending
<hramrach> waking with power button does not work
<hramrach> it powers the board off
<Turl> one short press
<Turl> not long like to boot
<hramrach> short does nothing
<Turl> does your device have AXP?
<hramrach> yes
<Turl> wingrime: ^
<hramrach> axp20
<hramrach> I get an oops om suspend
<hramrach> Turl: any idea how can I make the early console go away?
<Turl> hramrach: you mean earlyprintk? remove it from your kernel cmdline
<hramrach> 1) it's not there
<hramrach> 2) it's useful before teh console is enabled but not after
<Turl> apparently it's supposed to disable itself after the real console takes over
<hramrach> which does not happen on sunxi
<Turl> judging by the fact that there's a 'keep' parameter you can add to it so it doesn't go away
<hramrach> it's configurable
<hramrach> but I don't have that paramater
<hramrach> console=ttyS0,115200 console=tty0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x1024p60 root=/dev/mmcblk0p1 rootwait panic=10
<wingrime> hramrach so it works ?
<hramrach> wingrime: I get kernel oops on suspend and I cannot wake up
<wingrime> use no_console_suspend
<hramrach> I get teh oops logged on serial all right
<wingrime> I can wake up by pressing volume
<hramrach> but everything gets printed twice becasue the early console is not turned off
<wingrime> hramrach: are you have WAKELOCKS in kernel ?
<hramrach> I don't have volume
<hramrach> where would that be?
<hramrach> # CONFIG_PM_WAKELOCKS is not set
<wingrime> give me your last dmesg
<wingrime> also try add no_console_suspend
<wingrime> to cmdline
<wingrime> hramrach: so what ?\
<hramrach> pastebin oes not like file starting wiht \0
<hramrach> works better without a null
mab has quit [Remote host closed the connection]
<wingrime> whait....
<wingrime> can you try 3.0
<wingrime> kernel
<hramrach> not easily
<wingrime> why?
<hramrach> I don't have one built
<wingrime> becose I use 3.0 kernel for test
<wingrime> I have test 3.4 too
<wingrime> but this error strange at all
<hramrach> maybe it's the different arch
<hramrach> or one of the led triggers I patched into the kernel schedules a timer in a way that breaks suspend
<wingrime> nope
<wingrime> you not right
<hramrach> presumably the suspend code should handle that but who knows
<wingrime> then try other thing
<wingrime> wait
<wingrime> in arch/arm/mach-sun5i/pm/standby/Makefile
<hramrach> I have sun4i
<wingrime> what patch are you used
<wingrime> ?
<wingrime> you moved mine to sun4i ?
<hramrach> I use only led trigger patches, no suspend patch
<wingrime> try that I send to sun4i
<wingrime> what is yours git status
<wingrime> try use that I send for sun4i
<hramrach> do you have a repo?
<wingrime> only outdated
<hramrach> google mangles patches so I can't apply emails
<wingrime> you patched manualy >
<wingrime> ?
<wingrime> what are extractly done to get this error, how do you install my patch ?
<hramrach> I did not install any patch related to suspend whatsoever
<wingrime> Ah.....
<wingrime> you simply test suspend by default ?
<wingrime> without my patch
<wingrime> ?
<hramrach> yes
<wingrime> So please download my patch and use patch -p1 < aaa.patch
<wingrime> patch can be easely installed without git
<hramrach> the problem is not with git
<wingrime> ?
<hramrach> it's with google mangling patches
<hramrach> that go thhrough google groups/gmail/..
<wingrime> I can send you link to dropbox
<wingrime> wait
<hramrach> yes, 100% fail
<wingrime> copy to kernel dir
<wingrime> and use patch -p1 < 0001-sun4i-pm-Clean-and-fix-suspend-to-ram.patch
<wingrime> It supose to bring it to work
<wingrime> I HOPE
<wingrime> oh wait
<hramrach> plus if you did not incude superfluous 'celanup' it would be like 3 line change :s
<wingrime> sory wrong file
<wingrime> I have normal
<wingrime> wait
<wingrime> don't forget to clean up all files in git status
<wingrime> that related PM
<wingrime> sorry for a wrong file
<hramrach> np
<hramrach> still does not apply
<wingrime> look like 3.4 has differences
<wingrime> wait ....
<wingrime> are you tryed to use patch p1 <
<wingrime> ?
<hramrach> yes
<hramrach> it rejects the huge part with lots of 'cleanups'
ganbold_ has quit [Remote host closed the connection]
ganbold_ has joined #linux-sunxi
<wingrime> for me it http://paste.debian.net/240789/
<wingrime> give me log with patch
<wingrime> okay http://dl.dropbox.com/u/5645257/standby.zip replace in /arch-sun4i/pm/
<wingrime> simply replace with this
<wingrime> /arch/arm/mach-sun4i/pm
neal__ has joined #linux-sunxi
drachensun has joined #linux-sunxi
neal__ has left #linux-sunxi [#linux-sunxi]
<wingrime> hramrach ?
drachensun has quit [Quit: Leaving]
drachensun has joined #linux-sunxi
ganbold_ has quit [Ping timeout: 255 seconds]
<hramrach> wingrime: is this what the patch is supposed to do? http://paste.debian.net/240795/
<hramrach> or did some part get lost in 'cleanups'?
ganbold_ has joined #linux-sunxi
<hramrach> and seriously, your 'cleanups' remove some comments that are not in Chinese and are actually useful
<hramrach> as well as touch unrelated parts of hte file
<hramrach> so really hard to tell waht your patch is actually supposed to do
<wingrime> without cleanup you right
<wingrime> but cleanup cleans 90 % useless stuff
<wingrime> becose functions that Stup actualy not nessesory
<hramrach> if you want to clean up useless stuff do that in separate patch
<hramrach> but as has been pointed out the functions do nothing but debug prints but debug prints *are* useful when the suspend is broken
<wingrime> than a callbacks
<hramrach> and comments explaining sram code operation are not useless stuff either
<wingrime> you can turn debug on pm subsustem
<wingrime> We must follow kernel code style
<hramrach> still if you want to remove the functions do that in *separate* patch
<wingrime> next time
<hramrach> so that the part that does not change anything amnt is large does not obscure the patch which actually changes something
<wingrime> becose I fixed and clean and same time
<wingrime> more intresting
<wingrime> are you tested patch
<wingrime> ?
<hramrach> yes, it appears to resume
<wingrime> and usb ?
<hramrach> and suspend again right away
<wingrime> still need more testing
<hramrach> but resuming twice works
<hramrach> so almost good
<wingrime> On my HW USB lost power and not power again
<hramrach> maybe the button remains pressed too long and is detected again right after suspend
<hramrach> my USB mouse works after resume
<wingrime> no_console_suspend needed ?
<hramrach> I have it set
<wingrime> try to leave
<hramrach> console=ttyS0,115200 no_console_suspend hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x1024p60 root=/dev/mmcblk0p1 rootwait panic=10
<wingrime> also usb power offs ?
<hramrach> yes, it powers off
<hramrach> but on resume without console_no_suspend I get an oops
<wingrime> CONFIG_PM_RUNTIME set ?
<wingrime> dmesg please
<Turl> [ 66.840000] disp_clk: Could not find a matching pll-freq for 26150000 pclk
<hramrach> CONFIG_PM_RUNTIME=y
<Turl> disp bug
<hramrach> everything but dislpay works ;-)
<Turl> techn__: ^
<hramrach> I guess that's some more issues with modelist locking
<wingrime> I consider that we have to fix other drivers
<wingrime> as suspend not tested at all
<hramrach> wingrime: thanks for the patch
<wingrime> as I promice
<hramrach> but understand that the patches are supposed to get reviewed by somebody who has not writtent them
<hramrach> so they should be easy to understand
<Turl> if you could split the cleanup and the actual changes that'd be awesome :)
<wingrime> I can explain what was done
<hramrach> mixing cleanup (=big patch) and functional change (small but important patch) does not make understandable patches
<hramrach> separate patches explain more than a novel, really
<wingrime> agreed
<hramrach> plus when something breaks and somebody has to bisect
<wingrime> but this times I did it same time
<Turl> mnemoc is not likely to apply it if it's mixed either :p
<hramrach> the bug might be in cleanup or the suspend change but they just arrive at one big patch
<Turl> wingrime: git add -i can help to split it
<hramrach> it's ok to make it at the same timi at first
<hramrach> but then the patches you send for inclusion should be as easy on the maintainer as possible ;-)
<wingrime> after cleanup I can see all pm on one screen
ZaEarl has quit [Ping timeout: 264 seconds]
rellla has joined #linux-sunxi
<wingrime> mnemoc: still not acepted my ft5_ts patch, I can't contine work on driver until he didn't review this on
<wingrime> e
<wingrime> hramrach: are you tested suspend using xfce/others interface
<wingrime> ?
<hramrach> no
<hramrach> I used the button only
<hramrach> or echo mem which seems to do the same thing
<wingrime> interestion
<wingrime> *intresting
<wingrime> on my linaro when I press button nothing happends
<wingrime> suspend by echo or xfc
<wingrime> *xfce
<Turl> mripard: hi
<hramrach> wingrime: you have differnt power management chip and different kernel version
<wingrime> maybe you right
<hramrach> maybe it's supposed to do the same thing but axp15 support has a bug somewhere
<hramrach> or maybe it's configurabel somewhere in fex
<wingrime> wake up possible by IRQ to cpu
<wingrime> may be simple OS not consider button as "power button"
<Turl> the power button is usually wired to axp
<wingrime> I recive button as event0
<hramrach> and the axp is supposed to send the irq if configured properly
<hramrach> axp driver registers an input driver
<hramrach> to send the event to userspace
<hramrach> oh, well
<hramrach> maybe gnome acts on the input event
<hramrach> I have it running
<wingrime> I wanna that power indicator works
<hramrach> it works all right
<wingrime> I see %0 on xfce
<hramrach> ah, battery indicator
ganbold__ has joined #linux-sunxi
<wingrime> and then what a "Fe" battary ^
<hramrach> axp15 has no support for batteries from what I heard
<hramrach> so your battery is wired who knows where
ganbold_ has quit [Remote host closed the connection]
<wingrime> hramrach: this type is Hardcoded
<wingrime> /usr/lib/gcc/arm-linux-gnueabihf/4.7/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ldbus-1
<wingrime> collect2: error: ld returned 1 exit status
<wingrime> VLC still not builds
<hramrach> install dbus development files
<wingrime> try)
<wingrime> mnemoc: are you here?
<mnemoc> wingrime: not really
<mnemoc> hramrach: I can't take github pull requests. I would be disrespecting the devs in the ML. please submit it there
<hramrach> mnemoc: the nand is copy of what was sent to the ml
<mnemoc> hramrach: cool
<hramrach> the leds is just backport with 2 lines of new code
<hramrach> or really code pulled from non-applicable patch
<wingrime> hramrach: don't steal patch
<hramrach> wingrime: I am not stealing any patches
<wingrime> hramrach: anyway wait I remake patch
<hramrach> cool
<mnemoc> wingrime: if it's short and doesn't require disccusing. tell me
<wingrime> mnemoc: are you saw our conversation?
<wingrime> mnemoc: what do you think about Suspend ....
<mnemoc> wingrime: no, i haven't read the backlog. busy packaging the stuff of the house, moving to a differnt appartment next week
<hramrach> ugh
<hramrach> well, good luck with that ;-)
<wingrime> good luck
* mnemoc hates moving :|
<wingrime> mnemoc: any way suspend works
theborger has quit [Ping timeout: 260 seconds]
<hramrach> mnemoc: if you think the cpu led trgger backport needs discussion I will send it together wit hthe other led pieces when I am done with them
rellla has quit [Remote host closed the connection]
<Turl> mnemoc: packing is not too problematic, the problem is unpacking
<techn__> wingrime:I think these needs to be added console_lock();fb_set_suspend(info, 1); console_unlock();
<techn__> and same to resume
<techn__> but 1 to 0
<wingrime> techn: if you send patch it will be better
<techn__> Havent yet had time to try that patch
<techn__> so cant yet know if I can reproduce that problem
<wingrime> I too
<wingrime> hramrach: you can do?
<mnemoc> wingrime: great news!
<mnemoc> hramrach: can you test the led thing in 3.0 too?
<wingrime> mnemoc: you can see patches
<wingrime> techn:you have time test suspend?
<mnemoc> hramrach: sorry. didn't see it. thanks!
<mnemoc> wingrime: :)
<mnemoc> this cpu leds thing is already mainlined, right?
<mnemoc> hramrach: wingrime: ---^
techn_ has joined #linux-sunxi
theborger has joined #linux-sunxi
techn__ has quit [Ping timeout: 252 seconds]
<hramrach> mnemoc: only tested the cpu trigger on 3.4
<hramrach> yes, it's already mainlined. the third patch just does not apply because it removes previous cpu trigger which we never had
<hramrach> techn_: where does the console_lock() go?
<hramrach> anyway, the board is half locked up atm and git ahd the great ide ato recompress the repo
<Turl> cpu trigger?
<Turl> what does it do?
<hramrach> lihgt the led when cpu is not idle
<Turl> where is it?
* Turl doesn't see patch on ML
<hramrach> I just put it on github. It's trivial backport from upstream
<mnemoc> Turl: it's on the stage branches
<wingrime> who sends patch to upstream ?
<mnemoc> mripard and Turl mostly
<Turl> hramrach: ah, I see it now :)
<wingrime> Turl: after my cleanup it possible drop standby.bin and use stupid suspend
<Turl> did you move standby.bin code into the kernel?
<wingrime> Turl: I saw that kernel can allocate data and function in SRAM
<wingrime> Turl: nope
<wingrime> Turl: I make simple STUD that commented
<wingrime> simply go idle
<wingrime> if send to upstrem
<Turl> wingrime: but then how does it suspend?
<Turl> the code to switch clocks etc for suspend is on that binary
<wingrime> cpu_do_idle();
<Turl> yes but that doesn't do proper suspend
<wingrime> perfect first implemention for mainlaing
<wingrime> but it can be wakeup only by UART with console_no_suspend
wingrime has quit [Read error: Connection reset by peer]
wingrime has joined #linux-sunxi
<wingrime> only UART with no_console_suspend in cmdline can wakeup it
<Turl> wingrime: it just does WFI (wait for interrupt) http://lxr.free-electrons.com/source/arch/arm/mm/proc-v7.S?a=arm#L64
<wingrime> Trul: standby do Same
<wingrime> but change clocks
<wingrime> and disable interupts
<wingrime> execept wake source
<wingrime> for example, for lradc (volume keys) it saves lradc regs than configure it to interupt mode then WFI/restore regs
<wingrime> see my cleanup patch in ML
<Turl> wingrime: suspend should be just wfi, but mem needs to be full suspend like it is set up currently on linux-sunxi
<hramrach> Turl: it seems to do full suspend every time on sunxi
<Turl> hramrach: on android? yes
<hramrach> with minimal patch on Linux too
<wingrime> strange, it was broken ?
<hramrach> thre is no fwi option
<Turl> are you writing 'standby' or 'mem'?
<hramrach> mem
<Turl> that's full suspend
<wingrime> now it have no differene
<Turl> you need to write 'standby' for the light one
<hramrach> but there is no option for standby in the sunxi code afaict
<wingrime> no difference
<wingrime> it do same
<Turl> $ cat /sys/power/state
<Turl> standby mem
<wingrime> see my cleanup patch, it have commented out commands for make it differet
<wingrime> Turl: it becose PM reported that he support two
<wingrime> "verify" callback
<wingrime> in pm
<wingrime> Turl: see?
<Turl> return ((state == PM_SUSPEND_STANDBY) || (state == PM_SUSPEND_MEM));
<wingrime> Turl: what do you think, we can push mainline that simple support ?
<Turl> so you support both too
<wingrime> Turl: I done this for make it differnet late
<wingrime> Turl: if remove comments it will be different
<wingrime> Turl: next step for it : move code from standby.bin for interupt controller and lradc
<torqu3e> guys am trying to get the UVC drivers going on an a13, and am stuck here File not found: /lib/modules/3.0.42+/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
<torqu3e> lsusb, shows the cam connected, I can check the UID to have everything for uvc to work with this
<torqu3e> dmesg does not show the cam being picked up since the drivers aren't there
<wingrime> Turl: I mean save intcontroller registers, enable only wakeup interupts , than wake
<hramrach> torqu3e: you need to configure teh kernel
<hramrach> that is, copy the config of the kernel you have in .config, add the option you want
<torqu3e> there is no .config in that location
<Turl> wingrime: I see, both do the same hm
<hramrach> torqu3e: you are doing something weird
<wingrime> Turl: also kernel support SRAM functions by attributes , data , so possible make same thing with without "bin"
<hramrach> uvc is in the kernel so jsut get kernel source an enable it if not enabled in yout build
<wingrime> Turl : what do you think, about mainline my simple implemention ?
<hramrach> decide if sunxi does mem or standby and don't pretend the other
<torqu3e> can you point me to something which gives a few more steps, am just about venturing into kernel compiles :)
<Turl> wingrime: many things changed on mainline to support multiplatform
<torqu3e> the uvc page says it should be in source, that does not seem to be the case here, probably was not compiled with it :-/
<wingrime> Turl: explan
<Turl> wingrime: I think the proper way to do suspend these days is a cpuidle driver
<Turl> mripard: can you confirm/deny? ^
<wingrime> Turl: wakeup possible only by interupt
<wingrime> Turl: and we anyway need save/restore int controller regs and wakeup source regs
<wingrime> Turl: can you explan how mainline do ?
<hramrach> the above url?
<hramrach> torqu3e: stwf for some kernel compile guide
<hramrach> your old config is on /proc/config.gz or such
<torqu3e> ok, let me poke around, else will circle back
<hramrach> torqu3e: are you building the kernel on the board?
<torqu3e> that was the next thought, its either the mac I am on or the board
<hramrach> board will be easier if you are running linux
<torqu3e> yes debian
<Turl> this might be worth looking too http://www.spinics.net/lists/linux-tegra/msg09999.html
<torqu3e> this might let me get exactly what I need https://www.olimex.com/forum/index.php?topic=790.0
<wingrime> Turl: how fo you send patches to mainline?
<wingrime> Turl:what order for mainlining you have in mind ?
<Turl> currently there is little hardware support in mainline
<wingrime> It better than nothng ))
<Turl> so maybe adding suspend for 3.10 ("mem") would be nice, so we don't have to spend a lot of time debugging stuff later and we can add specific device suspend support when submitting the drivers themselves
<Turl> mnemoc, mripard: thoughts?
<wingrime> Turl: I think same
<wingrime> Turl: If we will have suspend we will be able debug it on early development stage
<wingrime> 45t[3~
<Turl> wingrime: talk with mripard when he is around and find out if pm on arch-sunxi is still the right way to implement it
<Turl> so you don't waste time working on something that can't be mainlined
<Turl> s/arch-sunxi/mach-sunxi/
<mnemoc> mainline is all about drivers so mach-sunxi/pm is probably not welcomed
<Turl> mnemoc: yet tegra has it, with some dt code
* Turl scratches head
<wingrime> mnemoc: posible drop binary image
<mnemoc> Turl: maybe pre-multiplatform?
<Turl> mnemoc: but it has dt glue :| idk
<mnemoc> hramrach: any idea how was "partition-generic.c" named in 3.0?
<mnemoc> hramrach: fs/partitions/check.c ?
<hramrach> didn't look into backpoting that part further to 3.0
<hramrach> but check.c is also used in the patches
<mnemoc> fs/partitions/check.c:struct hd_struct *add_partition(struct gendisk *disk, int partno,
<hramrach> looks like the place
<hramrach> it even applies verbatim to the file
<mnemoc> Applying: Remove nand partition handling cruft. <--- I'm fighting this one now
<hramrach> that's completely sunxi specific
<wingrime> mnemoc: do you have Aw git log ?
<hramrach> and not really needed. just removes leftover junk
<mnemoc> wingrime: check my personal github
<wingrime> mnemoc: why sun5i don't have "crane" andorid config ?
<mnemoc> wingrime: nuclear
<wingrime> mnemoc: you should add cpufreq and suspend to sun5i defconfig....
<hramrach> send patch ;-)
<wingrime> but interactive and smartassv2 not posible to build as module
<wingrime> need make 2 functions exportable in sched
<mnemoc> wingrime: send patches :)
<mnemoc> and please, pick your favorite subsystem/driver and review what's new in allwinner's branches
<wingrime> if i have new HW....
<mnemoc> there are a10-dev, a13-dev and a10s-dev branches in my github
<mnemoc> it's not only about A20/A10
<mnemoc> err
<mnemoc> it's not only about A20/A31
<wingrime> I don't think that aw make many patches for a10/a13
<mnemoc> there is a lot of history newer than our start point
<mnemoc> qware's release was based on allwinner's android4.0*-v0.8
<wingrime> will see tomorrow
<mnemoc> awesome
<wingrime> is nand[abcd] set default only for android for now ?
<hramrach> it's still the default
<hramrach> but hopefully can be removed in the future
<hramrach> well, probably on 3.8+ there will be no such cruft anyway so even android will have to update the paths
<wingrime> hramrach: why not use it only in "crane"
torqu3e_ has joined #linux-sunxi
<hramrach> it defaults to yes in Kconfig
torqu3e has quit [Read error: Connection reset by peer]
torqu3e_ is now known as torqu3e
rz2k has quit [Read error: Connection reset by peer]
jelly-home has quit [Ping timeout: 252 seconds]
hurtigbuffer has joined #linux-sunxi
christopher has joined #linux-sunxi
<mnemoc> wingrime: it's default yes because the change would break linux installations as well
hurtigbuffer is now known as jelly-home
christopher is now known as Guest2298
Guest2298 is now known as anunnaki
<libv> first open source compiled vertex shader runs on the lima driver :)
<wingrime> lima can simple 2d for windowsmanager ?
<libv> the dual texture vertex shader for q3a just ran on some walls grabbed from a q3a frame
gzamboni has quit [Ping timeout: 260 seconds]
<mnemoc> wingrime: lima (as mali) is 3d-only, to become part of mesa3d
<wingrime> mnemoc: windows can be shown as texures
<wingrime> mnemoc: with ortogonal projection
<mnemoc> the A10, A20 and A31 have a dedicated 2d unit called g2d
<hramrach> which may even work, at least on a20
<hramrach> techn_: I don't see how you get the fb_info in disp_normal_suspend
<mripard> Turl: I'd really like to focus on the core stuff, before moving to non-essential things like pm
<hramrach> and dev_fb has no _suspend
<techn_> hramrach: I think you should notify change for both fb_info's.. they are in global array
torqu3e has quit [Read error: Connection reset by peer]
<mripard> proper suspend is hard to achieve, we will have a lot of effort to put in this, I think effort on the USB/MMC/etc would be better
<mripard> at least for a short term view
<hramrach> well, they are actually in global struct that has arrays of size 2 it seems
<mripard> mripard: really, for 3.10, all I want is a proper clocks support
<mripard> of course, I'll take any patches that comes
<mripard> (given that they are good enough)
torqu3e has joined #linux-sunxi
<wingrime> mripard: simple suspend easy
<wingrime> just stop CPU and wait IRQ
<wingrime> mripard: this patch: clk: arm: sunxi: Add a new clock driver for sunxi SOCs ?
<mripard> wingrime: then I think like Turl suggested that cpuidle is the way to go, so write a cpuidle that does that if you want :)
<mripard> what's the question in your last sentence?
hramrach has quit [Remote host closed the connection]
<wingrime> is that you want to see in mainline
<wingrime> ?
<mripard> yes, it's the most urgent thing to merge
<mripard> we begin to have quite a few drivers that are almost complete and require Turl's driver to be merged
<techn_> sorry for huge patchset :(
<mripard> Turl: (no pressure :))
<wingrime> mripard: mainline rules so hard to archive ?
gzamboni has joined #linux-sunxi
<mripard> it depends on what you write in the first place
<mripard> once you get use to it, it's not hard at all
<mripard> but in that case, Turl's not the one to blame
<mripard> the maintainer doesn't review his patch
<mripard> he did a first round of patches, got some reviews from other people, sent a second version, and... nothing
hramrach has joined #linux-sunxi
<wingrime> I can't run vlc
<wingrime> even without X stoped
<wingrime> and in fb_con
<wingrime> so what is wrong?
wingrime has quit [Read error: Operation timed out]
jelly-home has quit [Ping timeout: 256 seconds]
<hramrach> techn_: with fb suspend it seems to suspend all right
<techn_> hramrach: great
hurtigbuffer has joined #linux-sunxi
hurtigbuffer is now known as jelly-home
<mnemoc> I don't understand why they always neglect esata
<hramrach> I guess the 'trapdoor' solution is more self-contained
gzamboni has quit [Ping timeout: 248 seconds]
paulk-desktop has quit [Quit: Ex-Chat]
ganbold__ has quit [Remote host closed the connection]
anunnaki has quit [Ping timeout: 264 seconds]