leowt changed the topic of #linux-rockchip to: Rockchip development discussion | http://linux-rockchip.info | http://irclog.whitequark.org/linux-rockchip
FreezingCold has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
devgiant_ has quit [Quit: Leaving]
devgiant has quit [Quit: Leaving]
devgiant has joined #linux-rockchip
devgiant has quit [Quit: Leaving]
mrueg_ is now known as mrueg
Celia has joined #linux-rockchip
FergusL has quit [Ping timeout: 245 seconds]
npcomp has quit [Ping timeout: 240 seconds]
npcomp has joined #linux-rockchip
honx has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 264 seconds]
dlan^_ has quit [Quit: leaving]
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
VargaD has quit [Ping timeout: 240 seconds]
VargaD has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 246 seconds]
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 246 seconds]
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
tonikasch has joined #linux-rockchip
cnxsoft has joined #linux-rockchip
_massi_ has quit [Remote host closed the connection]
_massi_ has joined #linux-rockchip
<tonikasch> has anybody successfully built this tree? https://github.com/apxii/linux-work/blob/rr-3.0-dev
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 246 seconds]
_massi_ has quit [Remote host closed the connection]
_massi_ has joined #linux-rockchip
theskilledworker has joined #linux-rockchip
theskilledworker has quit [Changing host]
theskilledworker has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
<tonikasch> Hi! Do you know if there is a linux-rockchip (development) mailing list?
<karlp> most I've seen is the google+ circles, the occasional activity here, and some of the web forums
<tonikasch> yes... the case is that one non-google user has asked me to join our gtalk conversation and... first it "sucks" to read through this kind of unordered conversations 2) by opening a maling list we could welcome more developers
<tonikasch> but I don't know who takes care of linux-rockchip.info
<tonikasch> edito: I don't remember
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
<tonikasch> let me issue a whois on the domain xD
<karlp> yeah, google hangouts are a gross way of having a proper conversation
<tonikasch> :s
<tonikasch> well, I've written the tenant of the registry of the domain, let's see what happens
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
mac-_ is now known as mac-
<tonikasch> mmm
<tonikasch> I'll add linux-rockchip mailing list to wiki on linux-rockchip.info (have just found it when trying to create it as the domain owner told me to do so)
cnxsoft has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
cnxsoft has quit [Ping timeout: 246 seconds]
cnxsoft has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
<tonikasch> ssvb I've managed to get es2gears get a 239.000 fps
<tonikasch> however, I'm unable to set X to truecolor, so I keep attached to 256 or so colors
<ssvb> tonikasch: so the OpenGL ES is working now? that's a great news
<ssvb> about the colors, can you show the /var/log/Xorg.0.log file?
<tonikasch> yes, one sec
<tonikasch> mmm, ssvb, do you know if a fbset is needed prior to initialising x?
<ssvb> not necassarily
<tonikasch> ok
<tonikasch> so I comment the fbset thing in /etc/rc.local and reboot, let's see
<tonikasch> because that was driving me nuts
lioka has joined #linux-rockchip
<tonikasch> that's without trying to force any depth in xorg.conf
<tonikasch> if I do the fbset thing and force 24 or 32 in xorg.conf, which as I understand would be truecolor, i get either and error or a window with gradient in oranges and window moved to the right and very strange
<tonikasch> (i can do a photo and upload it)
<tonikasch> *take a photo (sorry for my English :)
<ssvb> right now it's rgb565
<ssvb> the problems with 32bpp color depth might be in the kernel driver
<tonikasch> aha... perhaps in rk_fb.c :s
<ssvb> can you set 32bpp successfully with fbset just for the framebuffer (without doing anything with xorg yet)?
<tonikasch> mmm, how to do that? I don't understand very well fbset procedures
<ssvb> try "fbset -depth 16 -rgba 5,6,5,0" and "fbset -depth 32 -rgba 8,8,8,8"
<ssvb> btw, are you communicating with the other rockchip / radxa guys?
<tonikasch> aha, done, let me see dmesg... ok, seems ok
<tonikasch> I'm communicating with Galland, Omegamoon, linuxium and others through a gtalk conversation
<tonikasch> but they had given up and now wait for me to publish the procedure
<tonikasch> I have requested to join googlegroup's linux-rockchip mailing list but even though it was the way, it seems unused as it has only one message dated on 2013
<ssvb> ok, I just wanted to be sure that the xorg / mali problems get solved for everyone, so that we are done with it :)
<tonikasch> yes... I will publish everything, now just trying to get things done, later getting original kernel tree, forking, makin commits, documenting, etc
<ssvb> good
<ssvb> there is a suspicious line in your log: "[ 23.200] (II) FBTURBO(0): enabled fbdev copyarea acceleration"
<ssvb> it thinks that the copyarea operation is accelerated, but most likely the ioctl just does not return error
<ssvb> if you get any problems with moving windows or scrolling, that's likely it
<tonikasch> let me test that..
<tonikasch> no, they move well
<tonikasch> and scrolling...
<ssvb> ok
<tonikasch> ok too
<ssvb> just let me know if you notice any problems
<tonikasch> ok
<ssvb> got 32bpp color depth working already?
<tonikasch> no
<tonikasch> in fact when I ran those two fbset commands xorg was running and screen gone blank, just sshed and restarted lightdm
_hipboi_ has quit [Read error: Connection timed out]
<tonikasch> shall i change the xorg.conf to force depth?
_hipboi_ has joined #linux-rockchip
<ssvb> I can't be totally sure (I don't have a rockship hardware myself), but the symptoms seem to indicate that the kernel framebuffer driver might be behaving a bit funny
nighty^ has joined #linux-rockchip
<ssvb> for example, if the kernel boots and sets the framebuffer to 32bpp mode right from the start, then xorg is going to to work fine
<tonikasch> that's the expected result, I guess
<ssvb> xorg.conf can also specify color depth, but again, xorg is using ioctls for setting the video mode
<tonikasch> so... should I try setting in CMDLINE fb mode just to test?
<ssvb> which means that it is asking the kernel framebuffer driver to do this
<tonikasch> aha
<ssvb> and if the kernel driver does not behave properly, you may have glitches
<ssvb> still even the properly working 16bpp mode is a good start
<tonikasch> :)
<tonikasch> when saying " if the kernel boots and sets the framebuffer to 32bpp mode right from the start", you mean in CMDLINE or in /etc/rc.local by adding a fbset command?
<ssvb> in whatever way that works :)
<tonikasch> aha, ok
<ssvb> kernel cmdline would be a natural choice
<tonikasch> I'll test first in /etc/rc.local
<ssvb> if it is supported by the rk framebuffer driver
<tonikasch> ah, ok
apxii has joined #linux-rockchip
<apxii> Hi
<tonikasch> I'm not sure, that's galland, iam, olegk0 and omegamoon who know on rk framebuffer device
<apxii> I see a discussion and as i remember, copyarea acceleration isn't working properly.
<apxii> if you resize a terminal window, it is not works
<tonikasch> let me see, resizing a window? I'll check
<ssvb> Option "AccelMethod" "CPU"
<ssvb> ^ adding this to the "Device" section in xorg.conf should help
<apxii> ssvb, I'll try this later
<ssvb> but I would expect that a properly written framebuffer driver would just return an error on unsupported ioctls
<ssvb> so if this is the case, fixing it in the kernel would be a good idea
<tonikasch> apxii the rr-3.0_dev 3.0.101+ is yours?
<apxii> tonikasch, yes
<apxii> ssvb, it is hard to fix it without a documentation
<tonikasch> we exchanged some emails this morning
<apxii> and code quality overall is not good
<apxii> Yes, we done
<tonikasch> I'll fork your repo as soon as I have something usable, yet ethernet, wifi and es2gears are working on minix neo x7 (rk3188)
<tonikasch> with your kernel tree
<apxii> ok :)
<apxii> And es2_info command shows what?
<ssvb> apxii: just make sure that this ioctl fails (does not return 0) here - https://github.com/ssvb/xf86-video-fbturbo/blob/master/src/fb_copyarea.c#L67
<tonikasch> let me see
<ssvb> apxii: most likely there is some big switch in the rk fb driver, with the default case (unsupported ioctl) returning 0
<apxii> ssvb, of course it does
tonikasch2 has joined #linux-rockchip
<tonikasch2> apxii, http://pastebin.com/U0GB0Gci <-- es2_info
<tonikasch2> gives a segmentation fault :(
<ssvb> segfault on exit from gles applications is a known problem
<ssvb> the blob is buggy
<tonikasch> aha
<apxii> tonikasch2, mine too :-(
<tonikasch> btw, there i'm using 0.4.0 fbturbo
<apxii> and what blob you are using?
<tonikasch> as recommended in linux-sunxi doc
<tonikasch> no, not that
<tonikasch> git clone -b 0.4.0 https://github.com/ssvb/xf86-video-fbturbo.git
<tonikasch> that one
ganbold_ has joined #linux-rockchip
<ssvb> people have been binary patching the libmali.so r3p0 blob to resolve this problem on exit
<tonikasch> should I try latest xf86-video-fbturbo?
<ssvb> the arm guys messed up deinitializations
<tonikasch> now I'm using r3p2-1_rel1 mali kernel drivers
<tonikasch> ahms
<ssvb> tonikasch: for r3p2 it is better to use this branch - https://github.com/ssvb/xf86-video-fbturbo/tree/mali-r3p2-support
FreezingCold has joined #linux-rockchip
* ssvb really needs to clean up and merge it
<tonikasch> wow, ok, there I go!
<ssvb> the performance is going to be somewhat better
<tonikasch> :)
tonikasch2 has quit [Quit: Saliendo]
<ssvb> apxii: I think by default the framebuffer driver should return -ENOIOCTLCMD for unsupported ioctls
<apxii> ssvb, thanks, i have no access to hardware by now, try it later
tonikasch2 has joined #linux-rockchip
<tonikasch2> well, it works, I dont know if better but it works
<tonikasch2> (the r3p2 xf86 fbturbo)
<ssvb> tonikasch: you can perhaps check fps numbers
<tonikasch> yeah, almost the double: 401.800 fps
<ssvb> r3p0 and r3p2 behave in a slightly different way and need separate code paths in the xorg driver :(
<tonikasch> :s
<ssvb> I was a bit reluctant about supporting both r3p0 and r3p2, because it may be a pain to handle multiple configurations
<tonikasch> mmmm, I see a mailing list a must now, i'll try contacting the owner of the google group named linux-rockchip...
<tonikasch> well, whu not supporting only the latter?
FreezingCold has quit [Ping timeout: 252 seconds]
<tonikasch> s/whu/why/g
<ssvb> old linux-sunxi kernels have mali r3p0 kernel module
<tonikasch> :(
<tonikasch> and there's also that r4p0... :p
<ssvb> and the users of course expect a painless and smooth upgrade path without any regressions
<tonikasch> I see
<ssvb> yeah, I suspect that they very likely have also changed something in r4p0 in an incompatible way
tonikasch2 has quit [Remote host closed the connection]
<tonikasch> in the beginning I tried placing r4p0 in kernel tree but I wasn't aware of ump ioctls and all that sort of things :p
<tonikasch> then I copied from a rk3x kernel, and at last I found apxii kernel branch with them included in... r3p2-1_rel1? r3p2-1_rel2? which was a strike of luck
<ssvb> I think we should just stop at r3p2 and then eventually move to the open source lima drivers
<tonikasch> i also found handy sunxi-mali doc and that repo containing all userspace libraries and makefiles, and also xf86-video-fbturbo
<tonikasch> yes
<tonikasch> lima are mature enough now?
<tonikasch> not yet...
<tonikasch> mmm
<ssvb> these are the talks from FOSDEM 2014
<tonikasch> now with both fbset uin /etc/rc.local X won't show up anything though Xorg.0.log seems correct...
<tonikasch> [ 22.880] (==) FBTURBO(0): Depth 16, (==) framebuffer bpp 16
<tonikasch> [ 22.880] (==) FBTURBO(0): RGB weight 565
<tonikasch> [ 22.880] (==) FBTURBO(0): Default visual is TrueColor
<ssvb> that's what xorg thinks about the current video mode, if you have problems, then apparently the kernel driver does not agree
<tonikasch> so it's a kernel driver problem, ok, I'll continue comparing drivers/video/rockchip directories with meld
<ssvb> you and apxii might want to debug what's happening in the kernel by adding debugging output to the relevant framebuffer ioctls
<tonikasch> apxii ask me whatever change shall be done
<apxii> tonikasch, I am not an expert, I just wanted Mali worked on RR
<apxii> I'll look into rk_fb at afternoon
<tonikasch> ok
<tonikasch> I've applied rk_fb.c patched made by Galland and olegk0 to your kernel's rk_fb.c to see if that works out something
<apxii> they wasn't already there?
<tonikasch> I guess they weren't on rr-3.0_dev
<tonikasch> mmm, they won't work for minix neo x7
<tonikasch> hdmi output is blank from the beginning with patches applied
<tonikasch> I'll try to apply now only some of them
<apxii> and what are the patches?
<tonikasch> well, not .patch files but comparing files with meld and applying differences from the Rockchip-GPU-kernel (omegamoon's) to yours line by line
<tonikasch> I'm not used to version control systems :(((((
<apxii> it is not that hard
<tonikasch> I know, but I tend to leave it for later learning...
<tonikasch> brb
<theskilledworker> tonikasch: do you have any kernel I can try on my radxa?
FreezingCold has joined #linux-rockchip
<tonikasch> theskilledworker test this: git clone -b rr-3.0-dev https://github.com/apxii/linux-work.git
<tonikasch> it's the one i'm working with :)
<tonikasch> though it's not mine
devgiant has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 240 seconds]
<theskilledworker> tonikasch, thanks. I'll let you know
<tonikasch> ;) np
FreezingCold has joined #linux-rockchip
<tonikasch> Your subscription to linux-rockchip was not approved. <--- O_o
Celia is now known as FergusL
<tonikasch> ssvb ping
<ssvb> pong
<tonikasch> wow! Just wondering how would be fbset for depth 24
cnxsoft has quit [Quit: cnxsoft]
<tonikasch> because I have enabled that depth in framebuffer driver (that was one of the line patches made by olegk0)
<ssvb> is it 3 bytes or 4 bytes per pixel?
<tonikasch> don't really know :s
<ssvb> 3 bytes per pixel is quite inconvenient for addressing and generally poorly supported
<tonikasch> I think it's four
<tonikasch> because... they all are powers of 4... 16bpp, 24bpp, 32bpp
<tonikasch> in rk_fb.c
<tonikasch> but... just guessing
cnxsoft has joined #linux-rockchip
<tonikasch> the case, now I have...
<tonikasch> [ 822.663] (II) FBTURBO(0): Creating default Display subsection in Screen section
<tonikasch> "Default Screen Section" for depth/fbbpp 16/16
<tonikasch> [ 822.663] (==) FBTURBO(0): Depth 16, (==) framebuffer bpp 16
<tonikasch> [ 822.663] (==) FBTURBO(0): Default visual is TrueColor
<tonikasch> [ 822.663] (==) FBTURBO(0): RGB weight 565
<tonikasch> which should be good, but still have a gradient of colours
<tonikasch> in lightdm greeter
cnxsoft has quit [Client Quit]
<tonikasch> well, have to go now, will post later and afterwards will begin with the repo stuff
<tonikasch> mmm
<tonikasch> now looking at libstagefright...
<tonikasch> c ya and thanks apxii and ssvb
tonikasch has quit [Quit: Bye!]
rz2k has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 246 seconds]
FreezingCold has joined #linux-rockchip
_hipboi_ has quit [Read error: Connection timed out]
_hipboi_ has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 246 seconds]
FreezingCold has joined #linux-rockchip
theskilledworker has quit [Quit: Leaving]
FreezingCold has quit [Ping timeout: 264 seconds]
_massi_ has quit [Remote host closed the connection]
FreezingCold has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 246 seconds]
FreezingCold has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 246 seconds]
_hipboi_ has quit [Ping timeout: 240 seconds]
_hipboi_ has joined #linux-rockchip
apxii has quit [Ping timeout: 252 seconds]
FreezingCold has joined #linux-rockchip
FreezingCold has quit [Ping timeout: 264 seconds]
_hipboi_ has quit [Ping timeout: 240 seconds]
_hipboi_ has joined #linux-rockchip
FreezingCold has joined #linux-rockchip
ganbold_ has quit [Remote host closed the connection]