Pali has quit [Ping timeout: 260 seconds]
sunshavi_ has quit [Read error: Connection reset by peer]
sunshavi_ has joined #maemo-leste
xmn has quit [Remote host closed the connection]
zhxt has quit [Quit: Leaving]
joerg has quit [Ping timeout: 260 seconds]
joerg has joined #maemo-leste
<freemangordon> hmm, it seems chromeos mesa pvr dri is newer version that the one in TI blobs
<freemangordon> *than
Danct12 has quit [Ping timeout: 260 seconds]
Twig has joined #maemo-leste
mardy has joined #maemo-leste
pere has quit [Ping timeout: 265 seconds]
pere has joined #maemo-leste
Twig has quit [Ping timeout: 260 seconds]
Pali has joined #maemo-leste
SystemError has quit [Ping timeout: 276 seconds]
inky has joined #maemo-leste
_inky has quit [Ping timeout: 260 seconds]
inky_ has quit [Ping timeout: 265 seconds]
Pali has quit [Ping timeout: 260 seconds]
_inky has joined #maemo-leste
<Wizzup> parazyd: uvos: I am working on the news post now, do we plan to have charge-mode ready?
Danct12 has joined #maemo-leste
<Wizzup> tmlind: uvos: I got a reset yesterday when playing music with mpv and having gps on, with ngsm debug on: https://wizzup.org/reset.txt
<Wizzup> this is from pstore, but it doesn't seem to contain a whole lot
<parazyd> Wizzup: I could try to make an upgrade that enables it sometime tomorrow.
<parazyd> Wizzup: Do we have it on all devices now?
<Wizzup> let's make it possible to test it first
uvos has joined #maemo-leste
Danct12 has quit [Quit: Quitting]
<tmlind> Wizzup: yeah no oops to see there unfortunately
<Wizzup> tmlind: I am surprised not to see much more n_gsm debug there
<Wizzup> maybe it stops writing to the pstore console after a while?
<Wizzup> there should be a _lot_ more in there I think
<uvos> Wizzup: from my end yes, for mapphones at least
<uvos> for others we have the problem that we can only activate it for new installs
<uvos> also someone needs to test it on pp
<tmlind> Wizzup: yeah strange, maybe the buffer gets partially overwritten on boot or something
<Wizzup> uvos: so maybe we just do it for mapphones?
<uvos> no strong optinion
<uvos> i suspect we want it on n900/pp too at some point
<Wizzup> I think it would be a good idea, even to just move it along to more users
<uvos> yeah sure no strong opininon.
<uvos> one problem i forsee is that we cant role it out devel only on non mapphones afaik
<uvos> for testing, since besides trying it twice on n900 i never tested it on something other than d4/bionic.
<sicelo> You can possibly add it in device specific repo for now (mapphones?) then migrate later.
<tmlind> i wonder.. can we just open /dev/dri/renderD128 directly somewhere in the mesa sources and bypass the blobs to fix the node name issue?
<uvos> sure since mesa dlopens the blob you could shim open() to redirect stuff opend in /dev/dri/
<Wizzup> we could potentially also patch the blob to open a file that we create a symlink for
<uvos> not sure why we need it to use the render node btw
<tmlind> well i'm thinking about completely bypassing the blobs for open and close, not sure if the blobs need anything excecpt the fd
<tmlind> uvos: the way things are moving, the render node is used for almost everything to avoid the permissions problem
<tmlind> uvos: see kernel Documentation/gpu/drm-uapi.rst the paragraph that contains RENDER_NODE
<tmlind> sorry i mean that contains DRIVER_RENDER
<uvos> tmlind: i mean yeah thats why render nodes where introduced
<uvos> but rendering without a drm master isent really what you do on a phone is it? is there some place client support for drm auth is being droped?
<uvos> not that "updateing" the blobs is a bad thing
<uvos> and yeah should be easy to do by shiming open() in pvr_dri.so
<tmlind> well i'm thinking just implementing some of this directly in mesa, i see no point passing open and close via the blobs
<uvos> sure
<uvos> you could also re bits of the blobs and reimplement the functions in mesa dri_pvr
<tmlind> heh i guess.. i just need open and close for wlroots i think
<tmlind> i guess it's possible the blobs actually do something with the fd between open and close
<Wizzup> uvos: btw the sms ui of sphone no longer closes when it sends
<uvos> Wizzup: yeah i kow i fixed it + the other issue allready
<uvos> sphone dosent give feedback (except in log) that an action could not be compleated by the selected comm backend
pere has quit [Ping timeout: 264 seconds]
<Wizzup> ok
inky has quit [Ping timeout: 260 seconds]
inky has joined #maemo-leste
peetah has quit [*.net *.split]
BenLand100 has quit [*.net *.split]
DPA has quit [*.net *.split]
Blikje has quit [*.net *.split]
avoidr has quit [*.net *.split]
RedW has quit [*.net *.split]
adc has quit [*.net *.split]
peetah has joined #maemo-leste
BenLand100 has joined #maemo-leste
Blikje has joined #maemo-leste
RedW has joined #maemo-leste
adc has joined #maemo-leste
DPA has joined #maemo-leste
avoidr has joined #maemo-leste
pere has joined #maemo-leste
mp1074 has joined #maemo-leste
branon_ has joined #maemo-leste
<freemangordon> why don;t we have ltrace on ARM?!?
<Wizzup> seems debian doesn't have it
ikmaak2 has joined #maemo-leste
lexik_ has joined #maemo-leste
Langoor_ has joined #maemo-leste
<freemangordon> yeah, that's why my question :)
<Wizzup> stretch had it
<freemangordon> hmm
<freemangordon> lemme try to install
<freemangordon> yeah
jrayhawk_ has joined #maemo-leste
R0b0t1`` has joined #maemo-leste
<uvos> oh neat dident know about ltrace
<uvos> that sounds pretty usefull for debugging sphone/mce
<Wizzup> I think gdb should work better for you potentially, but you could
<Wizzup> I usually use lstrace when problems occur in libs I don't want to or can't change
<Wizzup> ltrace*
<uvos> sure i use gdb most of the time, but knowing what modules react to something should be easier this way
<uvos> (dont have to break anywhere)
<Wizzup> any objections to having osso-xterm just use the XDG browser env for opening urls?
<Wizzup> we currently have the dbus call to browser ui stubbed
<uvos> no
<uvos> sounds very sane
<uvos> or just xdg-open the url
<uvos> that way it works with urls that shal not end in browser too
Langoor has quit [*.net *.split]
R0b0t1` has quit [*.net *.split]
lexik has quit [*.net *.split]
ikmaak has quit [*.net *.split]
branon has quit [*.net *.split]
mp107 has quit [*.net *.split]
jrayhawk has quit [*.net *.split]
mp1074 is now known as mp107
cockroach has joined #maemo-leste
inky has quit [Ping timeout: 260 seconds]
inky has joined #maemo-leste
Danct12 has joined #maemo-leste
<Wizzup> might make it async instead
<uvos> sure yeah
<uvos> that very likely uses xdg-mime and xdg-open to execute the right app
<Wizzup> right
<freemangordon> the fuck! running glmark through ltrace does not hang
<Wizzup> heisenbugs
inky_ has joined #maemo-leste
<tmlind> freemangordon: does also glmark with -d option work just fine? i think i saw that earlier after switching to chromeos mesa, not that no longer works for me
<freemangordon> what -d is for?
<freemangordon> ah, debug
<freemangordon> lemme try
<freemangordon> it doesn;t, but it doesn't without -d as well
<uvos> freemangordon: since its timeing related
_inky has quit [Ping timeout: 245 seconds]
<uvos> maybe it will hang with ltrace if you change 0x4A008164 register
<freemangordon> hmm?
inky has quit [Ping timeout: 260 seconds]
<freemangordon> what is this register?
<uvos> sgx clock
<freemangordon> ok, what value to write?
<freemangordon> hmm, wait
inky_ has quit [Ping timeout: 260 seconds]
<freemangordon> I am not sure I will be able to
<freemangordon> PM is enabled
<uvos> works fine
<freemangordon> ok
<freemangordon> what value?
<uvos> the clock is just disabled
<uvos> sec im reading datasheet
<uvos> so default should be 2a
<uvos> d4 here
<freemangordon> yeah, d4
<uvos> just increase the value
<uvos> bits 0-4 are the devider ratio
<uvos> (greping in irc.txt here
<uvos> )
<uvos> looks like i used to use omapconf write 0x4A008164 0x1f to maximize the amount of artifacting on ddk1.19
<uvos> for testing
<uvos> *ddk1.9
<uvos> freemangordon: yeah still works omapconf write 0x4A008164 0x1f makes it very artifact happy
_inky has joined #maemo-leste
<freemangordon> uvos: seems to be a timing issue, there is absolutely no difference in calls between blob and chromeos when it comes to call to libpvr_dri_support.so
<freemangordon> so I don't see how tweaking sgx regs could help
<uvos> well any call that touches sgx will take longer
<uvos> so if you slow down the cpu effectivly by adding a debuger the issue would reemerge if you slow sgx too, unless the problem is in omapdrm ofc
<uvos> and the artifacting on ddk1.9 IS a timeing issue too
<uvos> and is effected by sgx render time
<Wizzup> would be nice if we can get tomi involved somehow I think
<uvos> did anyone email him?
<Wizzup> don't think we did
LjL^ has joined #maemo-leste
LjL has quit [Ping timeout: 268 seconds]
inky_ has joined #maemo-leste
LjL^ is now known as LjL
<tmlind> uvos: ack, rwmem 0x4a008164=0x1f brings back a variant of my sway + termite not refreshing problem
<freemangordon> tmlind: what is PVR_QUIRK_OMAP4 used for?
<tmlind> freemangordon: nothing any longer, was used with ddk-1.17 for the ioctl proxying
<tmlind> sorry i mean was used with ddk-1.9 for the ioctl proxying
<freemangordon> but it is still enabled
<freemangordon> shall I disable/remove it
<tmlind> yeah i don't think there code is there any longer?
<tmlind> yeah let's get rid of it
<freemangordon> as I am going to test with ocp management disabled, on d4
<tmlind> ok great, sounds like we should not need it on omap4 and later
<freemangordon> ok
<tmlind> it might be that we only need it for 36xx
<freemangordon> and it might be the reason for the hangs
<freemangordon> the same way it was on 3430
<freemangordon> but, lets see
<tmlind> ok good to check for sure
<freemangordon> kmscube still works, glmark2 still hangs :D
<lel> MerlijnWajer closed an issue: https://github.com/maemo-leste/bugtracker/issues/385 (droid4: osso-xterm doesn't change font size on volume buttons)
<freemangordon> but, "use-vbo=false" FPS Is 2, so ocp control is needed for sure
<freemangordon> ok, it still hangs with pvr module debug messages enabled
lyubov has left #maemo-leste [WeeChat 3.0]
<freemangordon> hmm, seem NULL pointer is being send to SGX
<tmlind> freemangordon: ok so ocp still needed at least on omap4 sounds like
<freemangordon> yeah
<freemangordon> tmlind: any idea what is this "PDE valid: PTE = 0x00000000 (PhysAddr = 0x00000000, Invalid)" supposed to mean?
<freemangordon> in short - when running glmark with chromeos pvr, there seems to be a pagefault triggered by SGX
<freemangordon> it finds MMU context (Found MMU context for page fault 0x0dc08000), which is (GPU memory context is for PID=3025 (glmark2-es2-drm))
<freemangordon> does this mean that the page is mmaped to cpu and SGX cannot access it?
<uvos> freemangordon: dose abook have api documentation somewhere, at least for the old pre RE version.
<freemangordon> :nod:
<freemangordon> uvos: hmm, there is 'final' not 'beta' version too
<uvos> so is abook is finised enough for me to wirte an sphone pluginn that uses it?
<freemangordon> no
<uvos> ok
<uvos> freemangordon: would only need OssoABookContactChooser to work at first most likely
<tmlind> freemangordon: heh that looks like a fancy way of saying null pointer exception
Pali has joined #maemo-leste
<uvos> tmlind: am i reading that correctly some non null address in (invalid) page table entry maps to 0x0?
<tmlind> probably everything is zero, maybe after memset or something like that?
<tmlind> maybe the dropped mutex freemangordon noticed?
<tmlind> or rather additional mutex in the blobs?
<uvos> yeah thats the question the mutex might be guarding against something else causing the memory region to be swaped to some other space in mmu
<uvos> (for the cpu to mess with it)
<uvos> ofc that makes no sense if everything is 0
<freemangordon> but, that mutex makes sense in case of MT
<freemangordon> I don't see MT in glmark
<freemangordon> also, if something is being memset to zero, it shouldn't make any difference if I run through ltrace/valgrind or not, it should fail despit
<freemangordon> but it does not
<uvos> freemangordon: right
<freemangordon> I mean - it never fails if it is run through valgrind or ltrace
<freemangordon> with chromeos blob that is
<uvos> freemangordon: so random scenario: sgx renders something, there is a fence missing in drm
<freemangordon> I think rendering hasn't started yet
<uvos> omapdrm grabs the buffer for dss, by adjusting mmu depending on timeing we get a half renderd frame with stuff missing, also depending on timeing sgx ends up rendering to a buffer thats unmaped
<freemangordon> I have pvr driver debug traces
<freemangordon> uvos: wait, I think we have 2 MMUs involved here
<freemangordon> at least SGX has its own MMU
<freemangordon> but, it is not controlled by omapdss driver, afaik
<uvos> ok yeah
<uvos> i have no idea about exact intenrals
<freemangordon> me neither
<freemangordon> :(
<uvos> but the above description would in pricinal have the abillity to cause all issues
<uvos> ie missing bits of frame and the exception
<freemangordon> but, we may again hit some coherency issue
<uvos> right missing drm fence
<freemangordon> hmm, we still not render
<freemangordon> it faults while stuff is still being prepared
<uvos> before the first frame?
<freemangordon> yes
<uvos> hmm ok
<freemangordon> i compared pvr traces with and without fault, nothing obviously wrong
<uvos> could it be an interaction with a different drm client? like omapdrmfb?
<freemangordon> gpu on d4 is single-core, right?
<uvos> i think so dual core was added in -70 no?
<freemangordon> no idea
<freemangordon> but, just pulled latest driver from chromeos
<freemangordon> building mesa ATM
<freemangordon> not that I hope it will work :)
<freemangordon> doesn;t seem like userspace issue to me
<uvos> only omap5 is MP2 variant of sgx540 it seams
<freemangordon> ok
cockroach has quit [Quit: leaving]
<uvos> freemangordon: hmm so where is chomeos kernel with pvr source
<freemangordon> dunno, but why?
<uvos> maybe they carry some commit like: fix null pointers in pvr driver
<freemangordon> :)
<freemangordon> yeah, right
<freemangordon> hmm, I think I am on something
<freemangordon> in blobs, PVRDRIClientWaitSyncEXT does not call PVRDRIEGLFlushBuffers
<freemangordon> in chromeos driver it does
<freemangordon> 'upstream' chromeos driver does not flush too
<freemangordon> aaah, mesa takes ages to build :(
Danct12 has quit [Quit: Quitting]
<freemangordon> tmlind: would you like to try a little change in mesa?
Danct12 has joined #maemo-leste
<freemangordon> as my local build will take maybe 2 more hours and I am impatient :)
joerg is now known as Guest02
Guest02 is now known as joerg
<tmlind> freemangordon: sure if it does not force a rebuild and i don't fall asleep before done :)
<freemangordon> it will rebuild only pvr_dri
<tmlind> comment out PVRDRIEGLFlushBuffers?
<freemangordon> not that simple, lemme provide a patch
<tmlind> ok
<freemangordon> tmlind: https://pastebin.com/CzYV1pxi
<freemangordon> not even compile-tested, but you should get the idea
<freemangordon> if you apply and run ninja from build directory, in theory only pvr_dri should be rebuid
<tmlind> ok building now, had to manually apply as tabs got hosed
<freemangordon> oh, sorry about that
<tmlind> np, so i try to run glmark2-es2-wayland and see if oopses?
<freemangordon> drm, not wayland
<freemangordon> or, wayland oopses too?
<tmlind> heh i don't think drm works for me :) yeah wayland glmark2 oopses also
<freemangordon> -drm used to work
<freemangordon> on 5.10
<freemangordon> oh, wait
<uvos> -drm never worked
<freemangordon> it still works, with blobs
<uvos> on chomeos blobs
<uvos> (for me)
<freemangordon> yeah
<tmlind> oopsed
<freemangordon> :(
<uvos> did you now try wayland or drm?
<tmlind> wayland
<freemangordon> try drm
<freemangordon> you can rmmod/modprobe
<freemangordon> 230 files remaining here
<freemangordon> :)
<tmlind> heh somehow rmmod no longer works for me..
<freemangordon> hmmm
<freemangordon> weird, works every time here
<tmlind> after the glmark2 oops, need to reboot
<tmlind> i'll try again tomorrow actually, zzz time for me here
<freemangordon> ok
<tmlind> ok later
uvos has quit [Ping timeout: 260 seconds]
mardy has quit [Quit: WeeChat 2.8]
_inky has quit [Ping timeout: 245 seconds]
_inky has joined #maemo-leste
_inky has quit [Ping timeout: 258 seconds]
_inky has joined #maemo-leste