Pali has quit [Ping timeout: 258 seconds]
xmn has joined #maemo-leste
cockroach has quit [Quit: leaving]
Danct12 has quit [Remote host closed the connection]
akossh has quit [Quit: Leaving.]
Danct12 has joined #maemo-leste
belcher has quit [Ping timeout: 258 seconds]
belcher has joined #maemo-leste
joerg has quit [Ping timeout: 260 seconds]
joerg has joined #maemo-leste
xmn has quit [Ping timeout: 264 seconds]
xmn_ has joined #maemo-leste
pere has quit [Ping timeout: 258 seconds]
panzeroceania_ is now known as panzeroceania
pere has joined #maemo-leste
<freemangordon> hmm, xf86-video-omap loads, but there is nothing on the screen, even for 2d stuff
<freemangordon> weird
xmn_ has quit [Quit: ZZZzzz…]
kona_ has joined #maemo-leste
meldrian_ has joined #maemo-leste
meldrian has quit [Ping timeout: 260 seconds]
kona has quit [Ping timeout: 260 seconds]
Wikiwide has quit [Ping timeout: 264 seconds]
Pali has joined #maemo-leste
mardy has joined #maemo-leste
Wikiwide_ has joined #maemo-leste
Pali has quit [Ping timeout: 260 seconds]
<freemangordon> oh, ok, finally I was able to mmap gbm bo for writing :)
<freemangordon> the same bo EGL renders to
<freemangordon> uvos: so, how that helps us with dri3? :) hack modesetting to not use glamor and do 2D SW render to back buffer?
<freemangordon> the other option is to use dri2 driver and do a PVR blit of gbm EGL bo
<freemangordon> weh have to teach dri2 driver on dri3 ofc
<freemangordon> but thats simple, more or less
<tmlind> freemangordon: nice :) fyi, things are moving towards the /dev/dri/cardX being used only for allocation with the rest using the render node, but current pvr mesa seems to only work using the /dev/dri/card0 node
<tmlind> that's to avoid all the permission issues
inky has joined #maemo-leste
<tmlind> if there are other reasons for doing it, i don't know what they might be
<freemangordon> tmlind: I don;t understand how's that relevant, sorry. all this dri/drm/ whatever stuff is still in a тхицк фог фор ме :)
<freemangordon> oos
<freemangordon> *still in thick fog for me
<freemangordon> if you have an idea how thing should work (given that I can read/write bo's EGL renders to), please share
<freemangordon> I mean - in terms of xorg that is
<freemangordon> I would really love if we have zero-copy but not sure what rendering pipeline should look like
inky_ has quit [Ping timeout: 260 seconds]
<tmlind> yeah i don't know how it works either :)
<freemangordon> tmlind: BTW, definitely there is something wrong with the kernel, xf86-video-omap driver renders nothing on the screen, but pretends to work. *but* - it worked couple of times. 3 of 20, for example
<tmlind> weird
<freemangordon> the same happened yesterday with glmark
<tmlind> which hardware?
<freemangordon> d4
<freemangordon> on n900 it seems there is no issue
<tmlind> yeah ok d4 needs to update the command mode lcd also to refresh it
<tmlind> that patch you reverted might fix it for d4?
<freemangordon> but I have "drm/omap: Fix page fault handling and flush what framebuffe wants flushed" reverted there (on n900)
<freemangordon> yeah, lemme try it
<freemangordon> while we are at it :)
<tmlind> ok, not sure what might be broken with that patch for n900.. and not even sure if that's the right fix for d4
<tmlind> heading out here, bbl today at some point
<freemangordon> ttyl, will let you know if it is better with that patch reverted
<tmlind> yeah ok hopefully it works on d4, then we can figure out what's wrong with that patch
<freemangordon> mhm
<freemangordon> unfortunately it does not:
<freemangordon> [ 148.602752] PVR_K: HWRecoveryResetSGX: SGX Hardware Recovery triggered
parazyd has quit [Quit: parazyd]
parazyd has joined #maemo-leste
n900 has joined #maemo-leste
xmn has joined #maemo-leste
pere has quit [Ping timeout: 258 seconds]
<freemangordon> fullscreen PVR2DBlt color clear operation over EGL allocated BO uses ~15% CPU
<freemangordon> good news - I was able to make PVR2DBlt work
<freemangordon> on d4 that is
<lel> MerlijnWajer deleted a repository: https://github.com/maemo-leste/clown-boot-kernel
<Wizzup> freemangordon: sweet
<freemangordon> basically I do GlClear on the surface and then PVR2DBlt on top (screen height - 64, to see that GLClear actually works)
<freemangordon> if I calculate FPS correctly, this should render with 80 fps
<Wizzup> it's not zero copy but quit egood
<freemangordon> it is
<freemangordon> seems that CPU load comes from a leaking /me calling PVRSRVMapFullDmaBuf on every swap
<Wizzup> ah
<freemangordon> for sure I am doing this wrong, as after couple of seconds PVRSRVMapFullDmaBuf fails
<freemangordon> somehow I am leaking something :D
<Wizzup> uvos: ugh I can't push the stable stuff to github because it rejects it over size
* Wizzup bbiab
pere has joined #maemo-leste
xmn has quit [Ping timeout: 260 seconds]
<freemangordon> Wizzup: with that leak fixed, cpu load is ~ 3.5%
<freemangordon> yep, FPS is 78 :D
<bencoh> neat!
<bencoh> wait, 78 is more than 60 ... do you render to screen?
<freemangordon> yes
<freemangordon> this is d4
* bencoh headscratches
<freemangordon> glmark reports same fps
<freemangordon> d4 is manually updated display
<freemangordon> will try on n900 in a minute
<bencoh> yeah, but it still means it can reach more than 60fps, which is ... slightly surprising
<bencoh> either that, or it silently drops frames
<freemangordon> no idea
<bencoh> anyway, nice work :)
<freemangordon> but, it should be able to render with 80 fps, why not<
<freemangordon> ?
<freemangordon> I mean - we don;t really have vsync here
<bencoh> even with no vsync, the max rate depends on the DSI clock speed and lanes number
<bencoh> but I dunno how that was configured on d4, so ... :)
<freemangordon> so, it seems it is capable fo doing refresh 80 times per second
<bencoh> well, unless it really renders to some internal buffer and frames are dropped
<freemangordon> I doubt
<freemangordon> see CPU load
<freemangordon> 3% means this is done in HW
<freemangordon> earlier today I was doing the same with mmap, CPU load was about 50%
<freemangordon> but yeah, who knows
<sicelo> i know the primary goal of this work is for hildon/x11, but side question - will this improve things wayland side?
<freemangordon> no
<freemangordon> next step is to write DDX/EXA, but this is not related to WL
<bencoh> out of curiosity, how does WL do it?
<freemangordon> no idea
<sicelo> ah, okay.
<freemangordon> n900:
<freemangordon> Current Frames Per Second: 57
<freemangordon> :D
<sicelo> :-)
<freemangordon> this is 3D+2D rendering
<freemangordon> well, 3D rendering is glClear(GL_COLOR_BUFFER_BIT); and 2D rendering is PVR2DPATROPcopy (solid fill rectangle), but still
<freemangordon> oh, lemme check cpu usage on n900
<freemangordon> 7.5%
<freemangordon> wow
<freemangordon> ok, now we know what HW is capable of
<bencoh> do you know what fremantle does?
<freemangordon> something similar AFAIK
<bencoh> and/or whether it gets similar perf results? ah
<freemangordon> but, it is missing GBM stuff, so I doubt it is as fast
<freemangordon> fremantle uses omapfb
<bencoh> I wonder if the pvr2d engine includes scaling functions
<freemangordon> I think yes
<freemangordon> lemme check
<bencoh> if so it might speedup a lot of things
<bencoh> like video playback, among others
<freemangordon> mhm
<freemangordon> for sure it supports blitting of YUV etc
<freemangordon> not sure this is zero-copy, but still
<freemangordon> PVR2DBLTINFO has src and dst sizes
<bencoh> PVR2D_3DBLT_EXT mentions scaling as well
<bencoh> (at least in comments)
<freemangordon> maybe it scales when you set different dst size
<bencoh> so it looks like PVR2DBlt3DExt might allow scaling
<freemangordon> mhm
<bencoh> yeah
<bencoh> which is pretty nice
<freemangordon> I don;t think we want 3d blits
<bencoh> I was about to ask if it was really "3d"
<freemangordon> 3d stuff isa lready fast enough through gbm/egl
<freemangordon> no idea
<freemangordon> how am I supposed to know
<freemangordon> :)
<bencoh> :)
<freemangordon> I really wonder why IMG don;t want to open the documentation
<freemangordon> but yeah, corporate mindset
<bencoh> "trade secret" (sigh)
<freemangordon> yeah, sure
<bencoh> (I guess)
<sicelo> :-(
<freemangordon> anyway, I am impressed that n900 is capable of rendering 2d+3d with such speed
<sicelo> old warrior
<freemangordon> yeah
<freemangordon> hmm, lemme record a video to show you what it looks like
<sicelo> yay, that'll be really great
<bencoh> :)
<bencoh> surprisingly enough those old GPUs could do "a lot"
<freemangordon> varying green color is 2d rendered
<freemangordon> red on is 3d
<freemangordon> *red one
<freemangordon> ttyl
<bencoh> awesome :)
uvos has joined #maemo-leste
<uvos> bencoh: i dimly remember some android applications also reporting 70 ish fps
<uvos> i think the pannel might be able to refesh slightly faster then 60
<bencoh> ah, interesting
<Wizzup> neat
<uvos> witch makes it a high refresh rate variable refresh rate display
<uvos> gamerz creed
<Wizzup> lol
<bencoh> yeah, I was about to joke about that
<bencoh> actually it would be pretty neat for arcade games
<bencoh> I should try fiddling with that :]
<bencoh> (many many games need a non-standard refresh rate)
<bencoh> seriously though, does the DSI subsystem gets in some kinda of low-power mode between frames?
<bencoh> (assuming there are no frequent updates, for instance)
<freemangordon> uvos: so, what way shall we go? make modesetting not rely on glamor or add dri3 support tom opam_drv?
<freemangordon> *omap_drv
<uvos> no idea, surely you have the better understanding fo the details rn.
<Wizzup> if you can make it work with modesetting that would be better IMHO
<uvos> i assume that bringing 2d the buffer to the display would involve pvr2d?
<Wizzup> or maybe I misunderstood
<bencoh> Wizzup: that's assuming the change is generic enough for it to be at least seemingly upstreamable though
<Wizzup> but I'd prefer not to use xf86-video-omap
<bencoh> why not?
<Wizzup> bencoh: even so rebasing on maintained code is better than being the sole maintainer
<bencoh> hmm
<uvos> if you can do it without using pvr2d or special omapdrm ioctls modesetting would be better
<uvos> otherwise -omap is the better choise
<uvos> Wizzup: -omap is not that large
<uvos> and the xf86-video api is very stable
<Wizzup> uvos: true it's not large
<uvos> also xf86-video-omap is part of xorg
<Wizzup> where do they host it?
<Wizzup> I suppose that can work yeah
<Wizzup> I didn't realise it was that small (~2000 lines including headers)
<Wizzup> still it seems to carry quite some kludges
<Wizzup> stuff like the output_names
<Wizzup> I suppose that could work
<bencoh> do we have a properly working version of -omap?
<uvos> sure
<Wizzup> the d4 uses it now
<bencoh> ah, alright
<uvos> it works on d4 with sgx 1.9
<Wizzup> but it has no DRI3
<bencoh> yeah
<uvos> and it works on just omapdrm
<Wizzup> omap_dri.c is 672 lines
<bencoh> I'd say it's the way to go
<bencoh> especially if we plan on adding more omap-specific features at some point
<bencoh> (video decoding anyone? :) )
<uvos> lets not get ahead of ourselves
<uvos> besides the ddx dosent do decoding
<uvos> presentation maybe
<Wizzup> I think exa can help with scaling but yeah
<Wizzup> not the actual decode pipeline
<Wizzup> but also the hw video decoders are kind of at the bottom of my list, I never watch videos on my phone
<Wizzup> (but yeah, *my* list)
<Wizzup> anyway
<bencoh> right, but I vaguely remember it playing a role in the presentation part, and iirc one of the devs working on it had the ddx patched for that purpose
<bencoh> but yeah, anyway :)
<Wizzup> grepping for gri3 in glamor/ makes it look easy
<Wizzup> dri3* even
<uvos> modern ddx dont do video presenstaion either
<uvos> opengl is used
<bencoh> uvos: I'm talking about 2012 code :)
<bencoh> (and I might be wrong)
<Wizzup> uvos: you mean glamor does xv
<Wizzup> X-Video Extension version 2.2
<Wizzup> screen #0 Adaptor #0: "GLAMOR Textured Video"
<uvos> Wizzup: xv is depricated nothig uses it anymore
<uvos> Wizzup: but yeah it dose have it as a fallback
<Wizzup> oh, what replaced it?
<uvos> nothing
<uvos> gl
<Wizzup> :D
<bencoh> plain gl, you just have it render to a surface
<bencoh> or something similar
<uvos> yeah
<Wizzup> freemangordon: great work, hope we can get it all the way there
inky_ has joined #maemo-leste
<Wizzup> uvos: any other PRs you need me to look at?
inky has quit [Ping timeout: 260 seconds]
<freemangordon> uvos: I will get rid of omap-specific ioctls
<freemangordon> this is easy
<freemangordon> my test program uses only non-omap stuff
<uvos> freemangordon: that wasent about omap-sepcifc icotls in -video-omap
<uvos> its about if you can make dri3 work on sgx without using sgx or omap specific code
<freemangordon> but what?
<uvos> if you can
<uvos> then change modesetting
<freemangordon> I can, for 3d
<uvos> if you cant chagne -omap
<uvos> right 2d is a different story
<freemangordon> I can for 2d too (by using mmap), but it will be slow
<bencoh> (just for the records / logs, regarding video decoding on omap: https://github.com/robclark/libdce )
<freemangordon> sure, 3d is through gbm
<uvos> but i thought mmap only worked through prv2d?
<uvos> libpvr2d that is
<lel> MerlijnWajer created a repository: https://github.com/maemo-leste/clown-boot-kernel
<uvos> Wizzup: "uvos: any other PRs you need me to look at?" no
<uvos> btw if command mode display is giveing you grief you can work around it / check if this is the case by connecting a hdmi display
<uvos> that makes both displays fall to video mode
<bencoh> oh, that'd be interesting
<freemangordon> uvos: no
<bencoh> just to see if refresh rate falls down to 60fps
<freemangordon> pvr2d doesn't do mmap
<freemangordon> mmap is done through DRM_IOCTL_MODE_MAP_DUMB
<lel> MerlijnWajer edited a repository: https://github.com/maemo-leste/clown-boot-kernel
<Wizzup> uvos: https://github.com/maemo-leste/clown-boot-kernel hope this works for you
<uvos> sure
<uvos> wheres the defconfig
<Wizzup> didn
<Wizzup> t push that yet
<Wizzup> I had to fight github or an hour first
<uvos> ok
<Wizzup> is there some tool to create a defconfig, or shall I just commit my .config ?
<Wizzup> I also need to push the dts, etc
<bencoh> make savedefconfig?
<uvos> indeed
<Wizzup> ok
<uvos> freemangordon: ok so sounds like adding a dri3 fallback path for modesetting using mmap is possible for its AccelMethod "none" case
<uvos> adding this would be a great service to others
<uvos> it would for instance also slove the pps issues
<freemangordon> uvos: pvr2d does PVRSRVMapFullDmaBuf
<uvos> so i twould do that
<freemangordon> ok
<freemangordon> PVRSRVMapFullDmaBuf just sets SGX MMU
<Wizzup> uvos: didn't he say it would be slower though?
<Wizzup> (but yeah I suppose it could still be useful)
<uvos> well its mmaping and rendering via cpu
<uvos> thats slow
<uvos> but short of implementing exa on pvr2d i dont see how anything would be faster
<uvos> and ofc thats something to be done later and not now
<uvos> also current d4 works exactly like this
<uvos> so it should not be unusably slow
<Wizzup> the current d4 is kinda slow in 2d
<uvos> i mean 2d on d4 is slow
<Wizzup> esp scrolling is painful
<uvos> but its not usage breaking
<uvos> yeah
<Wizzup> depends on who you ask
<Wizzup> freemangordon might disagree :P
<bencoh> terminal scrolling is atrocious
<Wizzup> any scrolling is atrocious
<Wizzup> there's many seconds in delay
<uvos> well other than gpu accel
<uvos> like qt stuff scrolls fine
<uvos> because it uses gl instead of xorg primitves
<Wizzup> I mean it's a good first step if we have a way to als omake 2d fast
<Wizzup> otherwise perhaps the path makes less sense
<uvos> it makes plenty of sense for pp i think, no one cares about xorg on it, we dont have the bandwith to also fix its 3d driver and its cpu is fast enough to make this ok
<uvos> gets the mapphones working right now, and we can still investigate resurecting -video-omap or adding a accel plugin to replace glamor for modesetting-pvr
<freemangordon> guys, we can implement it through mmap initially and then to pvr2d accel where possible
<Wizzup> ok
<Wizzup> I do not have a strong opinion, just trying to help
<Wizzup> feel free to do what makes sense
<sicelo> is there a big x11 issue with PP? there's sxmo, so i guess it's working reasonably okay for them
<Wizzup> uvos: https://github.com/maemo-leste/clown-boot-kernel/commits/clown-boot-5.10.y dts is untested, I need to check if me adding the memory{} and &dsi1 there directly works
<Wizzup> but at least no changes to motorola-mapphone-common.dtsi atm
<Wizzup> (again untested)
<Wizzup> we can probably trim that defconfig some more
<Wizzup> (we don't need the modem, etc)
<uvos> wait what if i want to take a call in the bootloader
<Wizzup> :D
<Wizzup> I needed a few seconds to realise
<uvos> probubly a feature they considerd for uefi
<uvos> anthow ok
<uvos> yeah that looks fine
<uvos> 509 MB? whats in the upper 3MB region?
<uvos> why are we disabeling aes
<Wizzup> uvos: this is just omap2plus_defconfig with m->y and dvb removed
<Wizzup> feel free to cut more in that config
<Wizzup> hm this is from bionic or d4 I think
<Wizzup> hm
<Wizzup> I don't see it in either.
<Wizzup> uvos: that can probably go then
<uvos> yes its new i assume your forgeting the reason you placed it there
<Wizzup> yeah
<Wizzup> can probably remove it
<Wizzup> &i2c4 is in there twice too
<uvos> heh
<uvos> yeah
<uvos> Wizzup: parazyd: cant build profilesx
<uvos> i assume the pacakge still wants to pull from extras
<Wizzup> checking
<Wizzup> uvos: try again?
<uvos> Unauthorized
<Wizzup> hmm
Danct12 has quit [Ping timeout: 264 seconds]
<uvos> Wizzup: yeah that was it
<uvos> works now
<Wizzup> cool
<uvos> Wizzup: maemo/beowulf buils in a stable enviroment wrt dependancies right
<Wizzup> yes
<uvos> and beowulf-devel in a devel enviroment
<uvos> ok
<Wizzup> yes
<uvos> dose simple-brightness and the new cp applet work for you btw?
<uvos> im sortof afraid i missed some patch since i have lots of dirty pacakges on my device
<Wizzup> I will check in a bit
meldrian_ is now known as meldrian
meldrian has joined #maemo-leste
meldrian has quit [Changing host]
Danct12 has joined #maemo-leste
inky has joined #maemo-leste
inky_ has quit [Ping timeout: 260 seconds]
Pali has joined #maemo-leste
Daanct12 has joined #maemo-leste
Danct12 has quit [Ping timeout: 258 seconds]
Twig has joined #maemo-leste
Daanct12 is now known as Danct12
Twig has quit [Ping timeout: 260 seconds]
Twig has joined #maemo-leste
<Wizzup> uvos: can you add the src for the modules here? https://github.com/maemo-leste/clown-boot-kexec
<Wizzup> (maybe also with binaries?)
<uvos> Wizzup: we need 2 repos
<uvos> Wizzup: one for 3.0 kernel and one for 2.6 kernel
<uvos> or do you want to do it in 2 branches?
<uvos> i gues that makes sense too
<Wizzup> branches or even directories
<uvos> ok
<uvos> ill do it as branches later
<uvos> binaries makes no sense
<uvos> those are in the main clownboot repo anyhow
<Wizzup> ok, since I was not able to compile it ;-)
<uvos> compileing it remains tough yeah
<uvos> i have old gcc installed on my main machine but its not something i can easly just export
<freemangordon> how old?
<Wizzup> uvos: yeah so I commented out the aes disabled thing and now it suspiciously doesn't seem to boot
<freemangordon> as the one in scratchbox is old too ;)
<Wizzup> uvos: let me add it back in..
<uvos> Wizzup: wierd
<uvos> Wizzup: maybe there is some errata tmlind told you about
<uvos> on old omap4 chips
<Wizzup> uvos: yes that is what I recall vaguely
<Wizzup> I can grep logs
<uvos> ok would make sense
<Wizzup> 06:17 < tmlind> Wizzup: oh cool, you got it booting :) looks like aes2 is not accessible on those devices, try setting:
<uvos> the d3 is a really early omap4 device
<uvos> ok so what about the high 3mb
<Wizzup> one by one please
<uvos> the android kernel parameters sugesst all 512 are useable on d3
<Wizzup> ok
<Wizzup> something funny I think I have noticed, if serial is not in by the time the kexec mod probes (before actually calling kexec), the serial output is not visible until after the kexec
<uvos> freemangordon: 4.4.1
<uvos> freemangordon: (ggc version)
<uvos> gcc even
<freemangordon> sbox-arm-none-linux-gnueabi-gcc (GCC) 4.2.1
<freemangordon> this is scratchbox
<uvos> ok
<uvos> scratchbox is easy to install on modern linux?
<Wizzup> is that the right version?
<uvos> should work
<freemangordon> sbox-arm-none-linux-gnueabi-gcc (Linaro GCC 4.7-2012.07) 4.7.2 20120701 (prerelease)
<freemangordon> this is scratchbox with cssu-thumb
<uvos> thats to new
<uvos> cut off is 4.6 iirc
<uvos> for 3.0
<freemangordon> ok, "vanilla" SB then
<uvos> and 4.4 for 2.6
<Wizzup> uvos: I think your suggestion to rotate 180 degrees over z didn't quite have the right effect
<uvos> scratchbox is easy to install on modern linux?
<Wizzup> for portrait rotation I still have to keep it upside down, but for landscape it's now fine
<freemangordon> uvos: no idea, but in a VM should be easy
<Wizzup> what about just some old debian?
<uvos> well then its not superior to booting realy old debian
<Wizzup> are the repos not still avail?
<uvos> yeah
<freemangordon> sure
<freemangordon> on marmo.org :p
<freemangordon> *maemo.org
<Wizzup> I mean the old debian ones
<Wizzup> not the maemo ones
<freemangordon> I don't understand
<freemangordon> Maemo_Ubuntu_Lucid_Desktop_SDK_Virtual_Image_Final.7z ?
<Wizzup> freemangordon: both uvos and I are suggesting to take say debian 6 or so
<Wizzup> (I made that number up)
<Wizzup> as opposed to using the maemo specific SB just to build a motorola kernel module
<Wizzup> to be clear if it works I suppose it can be fine
<freemangordon> ah
<freemangordon> well yeah, you can install old debian in a VM
<Wizzup> right
<freemangordon> but, you can take the pre-build maemo SDK images
<uvos> btw you can also use the android sdk to emerge the exact gcc version motorola used to complie the kernel
<uvos> never done it
<uvos> but should work
<Wizzup> emerge - gentoo based?
<uvos> no
<freemangordon> as I am not sure old debian will still have repos alive
inky_ has joined #maemo-leste
<Wizzup> I think that's just kind of confusing to suggest using scratchbox since it has for the most part outlived it's usefulnes and it mighr confuse people
<Wizzup> quite some maemo folk I also speak to don't like sb
<Wizzup> but yeah
<freemangordon> that's why we us VM on leste :)
<uvos> build/tools/make_standalone_toolchain.py
<uvos> in android NDK
<Wizzup> uvos: any way I can dump the accelerometer data?
<uvos> Wizzup: cat /sys/bus/iio/somedvice/acell_x_raw
<uvos> something like that
<Wizzup> ok
<uvos> dont forget to remove the bionic matrix btw
inky has quit [Ping timeout: 245 seconds]
<uvos> since its 180deg from the resulting values with the bionic matrix
<uvos> not 180deg from the I matrix
<Wizzup> I multiplied the bionic matrix with the rotation matrix
<uvos> should be able to get the correct sdk here
<uvos> that contains the gcc used by moto themselves
<Wizzup> was that not what you meant?
<uvos> lol
<uvos> & using np
<uvos> *@
<uvos> sure that looks sane
<Wizzup> hmmmm
<Wizzup> I think it doesn't get picked up in the kernel, perhaps
<uvos> ?
<Wizzup> root@devuan-bionic:/sys/bus/iio/devices/iio:device2# cat in_accel_mount_matrix
<uvos> the kernel dose not
<Wizzup> 1, 0, 0; 0, 1, 0; 0, 0, 1
<Wizzup> unless this is a different file
<Wizzup> oh, this is a udev thing?
<uvos> i repleat not have anything to do with this
<Wizzup> ok, let me read backlog
<Wizzup> I changed it in the dts, yeah, ok, my bad.
<uvos> the matrix is used by iio-sensor-proxy
<uvos> from udev
<uvos> accel_mount_matrix is not supported by our driver
<uvos> if it where the kernel would simply tell udev about the matrix
<uvos> and the config file would be unessecary
<uvos> i have yet to come across a driver that implements this tho
<uvos> the kernel never applies the matrix iteself in any circumstances
<uvos> ( a grave error in interface design imo)
<Wizzup> this should make it pick up the changes, right: udevadm control --reload-rules && udevadm trigger
<uvos> yes
<uvos> devadm info -e | grep WHATEVER_THE_MOUNT_MATRIX_IS_CALLED
<uvos> or if you know the device path you can give udevadm that to just dump its pops
<Wizzup> so it looks like at least it shows up with the new matrix there but nothing is picked up
<uvos> picked up where?
<Wizzup> by mce I suspect
<Wizzup> i.e. the rotation of the device is not affected
<Wizzup> regardless of what I set
<uvos> you have to restart iio-sensor-proxy
<Wizzup> ah...
<Wizzup> now it works
<uvos> great
<Wizzup> it is just I
<Wizzup> that's nice
<Wizzup> or is this matrix applied on top of the matrix in the dts?
<Wizzup> (in which case I might need to change it once more)
<uvos> no the matrix in dts in impotent
<Wizzup> impotent, not important, ok
<Wizzup> shall I sync it with udev matrix anyhow?
<uvos> yeah
<uvos> the driver might start supporting this feature some time in the future
<Wizzup> it's this atm:
<Wizzup> rotation-matrix = "0", "-1", "0",
<Wizzup> "0", "0", "1";
<Wizzup> "1", "0", "0",
<Wizzup> so I'll just make it I as well?
<uvos> why I isent your matrix
<uvos> 0 1 0
<uvos> -1 0 0
<uvos> 0 0 1
<uvos> ?
<Wizzup> in the dts?
<uvos> in udev
<Wizzup> udev is identity matrix
<uvos> and its correct?
<Wizzup> yes
<uvos> in monitor-sensor
<Wizzup> uh, let me check monitor-sensor specifically
<Wizzup> yes, it is
<uvos> ok
<uvos> then you can remove the udev rule
<uvos> and the dts entry
<Wizzup> ok
<uvos> or leave it I
<uvos> but its redundant
<Wizzup> I'll leave it I I think
<uvos> ok
<Wizzup> (ok the I usage gets onfusing now lol)
<Wizzup> let me try to decipher your i2c suggestions from yesterday
<uvos> $I$
<uvos> we speek latex :P
<Wizzup> hehe
<Wizzup> this command verifies led chip is on the same i2c place and present, right:
<Wizzup> i2cdetect -r 0 0x38 0x38
<Wizzup> (with UU showing)
<uvos> yes
<uvos> also the kernel is using it
<uvos> UU
<Wizzup> but that is not the backlight, I assume
<Wizzup> just the rgb led controller
<uvos> well it is
<Wizzup> hmm
<uvos> its changeing the wrong channel
<uvos> probubly
<uvos> the chip has 3 channels iirc
<Wizzup> yeah you suggested I try 0x16, 0x18 or 0x1A, but I don't know where exactly
<uvos> on d4 i is the backlight
<Wizzup> (I don't speak i2c much)
<uvos> one is the keyboard
<uvos> and one is unused iirc
<uvos> those are addresses to write to voer i2c
<Wizzup> at the 0x38 range?
<uvos> no
<uvos> so 0x38 is the chip address
<uvos> or chip id
<uvos> you wirte that to the bus if you want to talk to that chip
<uvos> then 0x16 is the register address on the chip you want to write
<Wizzup> ok
<uvos> so i2cget 0x38 0x16
<uvos> should provide you some value
<uvos> and then use i2cset to slightly change it
<Wizzup> # i2cget 0x38 0x16
<Wizzup> Error: Could not open file `/dev/i2c-56' or `/dev/i2c/56': No such file or directory
<Wizzup> # ls /dev/i2c-*
<Wizzup> /dev/i2c-0 /dev/i2c-1/dev/i2c-2 /dev/i2c-3
<uvos> oh right
<Wizzup> I guess I need to provide the bus
<uvos> bus first
<uvos> so i2cget 0 0x38 0x16
<Wizzup> so i2c1 in dts would be ..
<uvos> not 0 nessecarly
<uvos> i dont remember what bus
<uvos> i2c1 in dts is 0
<Wizzup> oh
<uvos> dts starts at 1 and kernel starts at 0
<uvos> someone hates us
<Wizzup> lol
<Wizzup> hm, all busses at 0x38 and the various channel fail with 'Error: read failed'
<Wizzup> actually bus 0 says 'device of resource busy'
<uvos> right
<Wizzup> could be because driver is loaded?
<uvos> you have to remvoe the module
<Wizzup> leds_lm3532 ?
<uvos> that would be my assumption yes
<Wizzup> the reads also fail on that bus on 0x38 with 0x16, 0x18 or 0x1a
<uvos> the driver owns the device
<uvos> the register address is immaterial
<Wizzup> what I mean is that the driver is now gone, there is no more busy
<Wizzup> and now I get the same error as on the other busses
<Wizzup> i.e.
<Wizzup> # i2cget 0 0x38 0x16
<Wizzup> WARNING! This program can confuse your I2C bus, cause data loss and worse!
<Wizzup> I will read from device file /dev/i2c-0, chip address 0x38, data address
<Wizzup> 0x16, using read byte data.
<Wizzup> Continue? [Y/n] y
<Wizzup> Error: Read failed
<Wizzup> maybe I need to run some command to wake up the chip, maybe the driver unload disables it
<Wizzup> since it's '--' now in i2cdetect as well
<uvos> try reading from 0x71
<uvos> 0x71 as chip addres
<uvos> also yeah might be an enable pin
<Wizzup> same output on 0x71 for the three data addresses you gave
<uvos> should say in dts
<Wizzup> enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
<uvos> right
<uvos> so enable the gpio then
<Wizzup> mhm
<uvos> datasheet contains ADDRESS: 0x38 (7 bit), 0x70 for Write and 0x71 for Read
<uvos> not sure what it means
<uvos> oh ofc
<uvos> nvm its fine
<uvos> 0x38
<Wizzup> enable-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; I am not sure which gpiochip this is in /sys/class/gpio
<Wizzup> (yeah I really know little about this)
<uvos> cat /sys/kernel/debug/gpio
<uvos> tells you
<Wizzup> ah!
<Wizzup> gpiochip6: GPIOs 508-511, parent: platform/50000000.gpmc, omap-gpmc:
<Wizzup> only three gpios there it looks like
<Wizzup> I guess I should load the driver again
<Wizzup> hm, nope, didn't change much
<Wizzup> my confusion is that I was expecting to find at least 12 gpios there
<Wizzup> (under gpiochip6)
<Wizzup> oh, maybe this is also off by one thing
<Wizzup> so <&gpio6 12> == gpiochip 5, 12
<uvos> right
<Wizzup> looks like
<uvos> so export pin 12
<Wizzup> yeah that is 140
<Wizzup> root@devuan-bionic:/sys/class/gpio/gpio140# echo 1 > value
<Wizzup> -bash: echo: write error: Operation not permitted
<Wizzup> truly has to fail every step of the way :P
<uvos> heh
<Wizzup> ah I guess I might need to set the direction
<Wizzup> right
<uvos> not sure on the interface sorry
<uvos> but yeah makes sense
<Wizzup> yeah, echo out > direction worked
<Wizzup> not that it helped with i2c, but hey :)
<uvos> is the chip on the bus
<uvos> hmm
<uvos> wait you did change value too
<uvos> not just direction
<uvos> its active high
<Wizzup> value set to 1, with active_low set to 0
<uvos> pulling it low wont help
<uvos> ok
<uvos> hmm
<Wizzup> I think it might make more sense to look at android at this point
<Wizzup> of course there we have the problem that the dts had the wrong endianness ;)
<uvos> Heresy
<Wizzup> maybe this is for another time then
<Wizzup> what should i2cdetect show if it's present but not in use?
<uvos> yes
<Wizzup> literally "yes"?
<tmlind> freemangordon: nice work, so you probably figured out ddk-1.17 no longer uses any of those proxied ioctls in omapdrm driver ddk-1.9 was using, whatever you do let's not add those back :)
<tmlind> that was a pain to maintain with a big pile of extra patches against the mainline kernel
<Wizzup> uvos: heh the kbd brightness is the screen
<Wizzup> or something like that it seems..
<Wizzup> this turns on the screen brightness: echo 1 > /sys/class/leds/lm3532\:\:kbd_backlight/brightness
<Wizzup> (no diff between 1 and 255)
<uvos> ok
<uvos> just swap the channels in dts then
<Wizzup> right
<Wizzup> uvos: so that's the reg = <> or led-sources = <> ?
<uvos> tmlind: btw reading the above
<uvos> led-sources should be swaped
<uvos> ie in the end
<uvos> leds for backlight
<uvos> the leds phandle should link to the one currently used by the keyboard backlight
<uvos> ?
<uvos> just swap the backlight_led identifier over to led@1
<uvos> and label = ":backlight";
<uvos> then leds = <&backlight_led>; phandle will grab the right one
<Wizzup> ah
<Wizzup> uvos: did the swap, but it doesn't give any granularity still
<uvos> hmm
<uvos> in datasheet granularity depends on other regs
<uvos> not sure how is controled in lm3532 driver
<Wizzup> hmm
Twiggy has joined #maemo-leste
Twiggy has quit [Remote host closed the connection]
<uvos> led-sources means something different than i expected
<uvos> led->num_leds
<uvos> its not the channel it seams
<Wizzup> ah
<uvos> Required child properties:
<uvos> - led-sources : see Documentation/devicetree/bindings/leds/common.txt
<uvos> List of device current outputs the LED is connected to. The outputs are
<uvos> identified by the numbers that must be defined in the LED device binding
<uvos> documentation.
<uvos> so led device is defined somewhere else in dts
<Wizzup> ok
<uvos> just swap led-sources too
<uvos> but id like to know where this is defined exactly
<Wizzup> rebooting
<uvos> no wait
<uvos> it is the ouput channel i read that wrong
* uvos slight confusion
<Wizzup> in any case I need to go now, the backlight always worked in the sense that it at least turned *on* so that I could see the screen
<uvos> ok
<Wizzup> but I noticed that writing to the kbd backlight sysfs file changed the backligt too
<Wizzup> so there's something wrong there for sure
Danct12 has quit [Quit: Quitting]
<Wizzup> uvos: thx for your help btw
lyubov has joined #maemo-leste
<uvos> Wizzup: yw
<uvos> Wizzup: also the faster you stop messing with the d3 the faster your back on things that benefit me more directly :P
<Wizzup> hehe
mardy has quit [Quit: WeeChat 2.8]
<bencoh> :]
Wikiwide_ has quit [Read error: Connection reset by peer]
xmn has joined #maemo-leste
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #maemo-leste
cockroach has joined #maemo-leste
joerg has quit [Quit: this shouldn't have happened... ever]
joerg has joined #maemo-leste
uvos has quit [Ping timeout: 260 seconds]
RedW has quit [Ping timeout: 268 seconds]
Pali has quit [Ping timeout: 258 seconds]