libera/#maemo-leste/ Monday, 2021-11-22

calebtheythem[m]Wizzup: i saw those listings, I'm worried they have the same issue as mine where the phone works fine but the panel is just broken05:52
calebtheythem[m]the notification led is green in the pictures i saw and from what i can tell that only happens when the phone is booted into Android05:53
freemangordonYAY! no more flickering08:06
tmlindfreemangordon: nice, look forward to seeing what the fix is :)08:15
freemangordontmlind: unfortunately it is un userland08:15
freemangordonand is pvr specific08:15
freemangordonso not sure how that can be ported to kernel08:16
freemangordonbu basically, it is calling  PVR2DQueryBlitsComplete on the source pixmap BO before requesting page flip08:17
freemangordonmaybe we can teach pvr driver to not signal the exclusive fence it attaches to the BO until all write ops are finished08:19
freemangordonbut honestly, this is a bit over my knowledge08:19
tmlindheh ok08:36
tmlindhmm so you're thinking about patching drivers/gpu/drm/pvrsgx kernel driver to somehow know until writes are done? is there any way it would even know?08:42
freemangordonpvr driver know08:42
tmlindok08:42
freemangordonand also it attaches exclusive fence to the BOs it imports08:43
tmlindso pvr driver would know, omapdrm has no clue, right?08:43
freemangordonomapdrm has clue too08:43
tmlindoh08:43
freemangordonbut the 'clue' (fence) is misleading ATM08:43
tmlindok08:43
freemangordonas pvr driver signal that fence too early08:44
freemangordonthis is my understanding at least08:44
freemangordontmlind: have a look at pvr_linux_fence.c08:45
freemangordonglmark2 running in h-d window, glmark score 5308:52
freemangordon:)08:52
tmlindnice09:01
freemangordonthat should increase, when HW composition is in place09:02
freemangordonbut for now is good enough I guess09:02
tmlindyeah and nice to get rid of the old hacks09:03
freemangordonmhm09:03
freemangordontmlind: https://github.com/maemo-leste/xf86-video-omap/commit/12836b9d1b03e5a9de0b89cba727c801f74b418409:27
freemangordonok, lets see if that fixes flickering on n900 too09:30
freemangordonyes, no flicker :)09:42
freemangordonh-d scrolling fps is a bit low (~30), while modesetting/glamor does ~60, but I guess this is dr3 vs dri2 thing09:43
freemangordonWizzup: is kernel pakcged for n900 too?09:44
tmlindfreemangordon: so is it the sgxMapPixmapBo() that fixes the fence issue? not seeing it paired with sgxUnmapPixmapBo().. i guess i don't follow10:08
freemangordonthis https://github.com/maemo-leste/xf86-video-omap/commit/12836b9d1b03e5a9de0b89cba727c801f74b4184#diff-cddd4fe88eaa58d501863ca10266249d311f432eea10411f8a0b08d93a020b55R101810:09
freemangordonwhich ends up calling  PVR2DQueryBlitsComplete() on the source pixmap BO10:10
tmlinddon't you also want to call sgxUnmapPixmapBo() somewhere?10:11
freemangordononly when pixmap is destroyed10:12
freemangordonsgxMapPixmapBo just gets a handle to call pvr2d functions10:12
tmlindok i guess you're not seeing memory leaks then :)10:12
freemangordonyeah10:12
tmlindno idea what the generic fix would look like10:13
freemangordonI think fixing pvr fence signal time10:13
freemangordonmaybe wite a mail to openpvr ML10:13
tmlindheh10:14
tmlindso what does PVR2DQueryBlitsComplete() end up calling in the kernel?10:14
freemangordonsec10:14
tmlindSGX2DQueryBlitsCompleteKM maybe?10:14
freemangordonno10:14
freemangordonwell, yeah10:14
freemangordonbut, see https://github.com/TexasInstruments/dri3wsegl/blob/master/pvrhelpers.c#L10210:15
freemangordonit is what happens basically10:15
freemangordonwhen you  do PVRSRVMapFullDmaBuf on BO, you get 2 things:10:16
freemangordondevice address (I think this is the entry in SGX MMU)10:16
freemangordonand   PVRSRV_CLIENT_SYNC_INFO structure, which I guess is mmap()-ed kernel memory directly updated by the driver (didn;t look at the details)10:17
Wizzupfreemangordon: it might need more work the n90010:17
Wizzupit's probably in the droid4 component of the repos too10:18
freemangordonit seems every time a render task is started,   ui32WriteOpsPending is incremented10:18
freemangordonWizzup: well, ok, but we want same kernel for all omaps, no?10:18
tmlindfreemangordon: oh i sort of recall those counters map back to omapdrm10:18
Wizzupfreemangordon: yes10:18
freemangordonthe stopper was sgx, but now we have it... :)10:19
freemangordontmlind: really? never seen those10:19
freemangordonmaybe some hack?10:19
freemangordonI mean - never seen those in omapdrm10:19
Wizzupfreemangordon: yes, agreed10:20
freemangordonso, we only need to find someone to do the job, no? :p10:20
Wizzupjust mentioned to component for testing, but it also needs some other changes wrt /boot/ I think10:20
Wizzupyeah I'll work with parazyd10:21
freemangordongreat10:21
WizzupI think:10:21
Wizzup1. kernel headers pkg10:21
Wizzup2. dd pkg10:21
Wizzupddx10:21
freemangordonwill try (1) later on10:21
Wizzup3. test on d410:21
Wizzup4. make generic and test on n900, bionic10:21
Wizzupright10:21
WizzupI will work on this today10:22
tmlindfreemangordon: i think the pvr driver ops counts map to omapdrm counts in the ddk-1.9 kernel, see the old int sync_op()10:23
freemangordonWizzup: there are 2 more things to be fixed:10:24
freemangordon1. even on d4 fps is too low, I think video-omap dri2 implementation is kinda lame, it doesn't allow the client to continue rendering until the current buffer is not flipped. or maybe that's how dri2 works, dunno, lets see what uvos has to say about that.10:24
freemangordon2. tklock window is not being updated10:24
freemangordontmlind: ah, ddk 1.910:24
tmlindfreemangordon: yeah i think both omapdrm and pvr kernel driver tweak the same ops counts..10:25
freemangordontmlind: but, doing that in 5.15 is not an option, no?10:25
freemangordonso we need an exclusive fence that gets signalled when renering completes10:26
tmlindnot sure, i think we may just need to add checking for write_pending to omapdrm to make sure writes have completed?10:26
freemangordonsorry, don;t get that10:26
freemangordonwhich code in 5.15 do you mean?10:26
tmlindyeah10:27
freemangordonI mean - how omapdrm even knows of such pvr details?10:27
tmlindso in ddk-1.9 kernel patches, to me it seems that struct omap_gem_object is shared between both omapdrm kernel module and pvr kernel module10:27
freemangordonkeep in mind omapdrm already supports fences and wait on exclusive if one exists10:28
tmlindboth can tweak the usage counts for write_pending and write_complete10:28
freemangordonso definitely it is pvr that has to be fixed10:28
freemangordonIMO10:28
freemangordonanyway, gtg now, meeting, ttyl10:28
tmlindyeh out of here too, ttyl10:29
bencohfreemangordon: no, sorry (regarding dmafences)10:45
Wizzupfreemangordon: right @ things to be fixed11:03
Wizzupfreemangordon: do you only need the headers you included (hwdefs and include4), or potentially more11:10
Wizzupthis should give us all: find ./drivers/gpu/drm/pvrsgx/1.17.4948957/ -name \*.h -type f -o -type l11:10
Wizzupbut that will make it go in /usr/src/linux-headers-5.15.2/include/drivers/gpu/drm/...11:10
Wizzupparazyd: what is the reason we don't just carry the kernel patches in our kernel branches as opposed to in the maemo/beowulf* branches?11:16
Wizzupprobably the same question for the 0001-maemo-leste-quirks.patch11:16
Wizzupit is extremely tedious to change anything, since you need to jump back and forth between branches and every time you do there is manual cleanup to be done11:16
Wizzupalso the patches are essentially unmaintainable11:16
* bencoh nods vigorously11:17
WizzupI don't see why we do it this way, the only thing that it might make easier is rebasing on a new branch, but 'git rebase' should just take care of the problems really11:18
Wizzupomg the patches in debian/series aren't even git-am able :(11:25
Wizzupwhoever invented quilt must have done it before git11:25
Wizzupfreemangordon: oh yeah for n900 we also want the wifi patch11:28
Wizzupparazyd: also what tags should I use to make you and uvos happy11:36
Wizzupany suggestions for the omap device shared kernel11:40
Wizzup(or perhaps even for all devices?)11:41
Wizzupwe could do maemo-kernel or omap-kernel11:41
Wizzupfreemangordon: with my current (not yet in repo) code it ends up here:11:54
Wizzup/usr/src/linux-headers-5.15.2-218687-g24a714e51fc5-dirty/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/srvkm/hwdefs/sgx530defs.h11:54
Wizzupofc. without the -dirty probably11:54
Wizzupall of this is much more messy than just the sgx-ddk-um package I have but hey :P11:55
Wizzupbencoh: latest kernel should be dpkg-buildpackage -b -uc buildable mostly, just checkout maemo-5.15 and then do parazyd's trick to checkout the debian dir12:32
WizzupI moved most of the patches (apart from config changes) to git12:32
bencohneat12:39
Wizzupyeah maybe we just disable quilt alltogether later on12:40
Wizzupparazyd: so any suggestions for the name? either maemo-kernel (if we plan on using it for pine64 as well) or omap-kernel12:55
Wizzupor omap-linux / maemo-linux I suppose12:55
parazydThe pine64 kernel is specific to Pinephone/Pinetab, it's not in general for Allwinner.12:56
parazydSo I'd keep that as "pine64-linux".12:56
parazydFor the PVR kernel, I would go with "omap-linux"12:56
parazydAnd finally if we want other generic kernels, just "maemo-linux", yeah.12:56
parazydOr just "linux" even12:56
Wizzupso I am wondering if we shouldn't aim to have omap-linux be the generic one12:57
Wizzupwe'll probably always carry some patches on top, but they should not affect other parts12:57
parazydI think the issue is we build a package with a specific name from the repo.12:58
parazydAnd also a specific arch12:58
Wizzupyes, that's the next thing I wanted to bring up12:58
parazydNot sure how we can have more than 112:58
Wizzupwhat do you mean exactly?13:01
parazydBuilding for all these different platforms with a single debian dir13:02
Wizzupright, we'd have to consolidate the package names13:02
Wizzupas in we probably want to get rid of droid4-linux anyway13:03
Wizzupsince it's also bionic, droid3, and more13:03
Wizzupand if it's also n900, maybe omap13:03
parazydYeah we wanted to rename that to omap-linux13:03
Wizzupbut then if we can just use the 5.15 for the pine and others as well, we could just make it maemo-linux13:03
Wizzupwas mostly my point13:03
WizzupI doubt the omap and allwinner patches conflict typically13:03
bencohyou can't really build on the fact that you'll always be able to run the same version on your devices though13:04
Wizzupok, that argues for omap-linux I guess13:04
bencoh(assuming this fact really plays a part in your decision)13:04
parazydWe can have different branches in the same repo13:05
parazydBut that's not much more beneficial than separate repos13:05
Wizzupsaves some bits on hard disks and cloning, but I think it complicates our maemo/* branches13:05
Wizzupno?13:05
parazydIt does13:06
bencohthis will prolly add another layer yeah13:06
parazydI'll think about it a bit13:06
Wizzupmaybe we go for omap-linux for now13:06
Wizzupunrelated, we're getting a HoneyComb LX2 for arm builds13:12
freemangordonWizzup: do we have pkgconfig for that?13:18
freemangordon(kernel headers)13:19
Wizzupfreemangordon: no, not for the new ones, I don't know how to do it for specific kernel versions13:20
WizzupI had one in sgx-ddk-um but I don't know how to adapt it to path of installed kernel13:20
freemangordonok, but kernel-headers-dev should have .pc file, no?13:20
WizzupI don't know of any kernel-headers-dev pkg13:21
freemangordonsorry, kernel-headers or whatever is the name of the package with the headers13:21
parazydAre you building a kernel module or something else?13:21
freemangordonno, DDX13:22
Wizzupparazyd: no he wants to use the headers in the DDX13:22
Wizzupfreemangordon: and no it does not ship with a pc, this is very uncommon I think13:22
Wizzupthat's why I copied the headers to sgx-ddk-um13:22
parazydThere's no pkg-config for that13:22
freemangordoncan we have sgx-ddk-um depending on a particular kernel-headers version?13:23
parazyd(btw it should be called linux-libc-dev)13:23
parazydfreemangordon: Yes13:23
WizzupI am against the idea tbh13:23
freemangordonand providing .pc file too13:23
WizzupI would much rather have sgx-ddm-um use kernel version as versioning13:23
Wizzupand just copy the headers over13:23
freemangordonWizzup: why?13:23
Wizzupsince we're exposing internal kernel driver headers13:23
Wizzupthis is never done13:23
parazydYou don't need a .pc file13:23
freemangordonno, those are not internal13:23
Wizzupif you look at normal linux headers they are only for drivers13:24
parazydThey're always in /usr/include/linux13:24
WizzupDKMS stuff13:24
freemangordonok, but there are userland interfaces too13:24
freemangordonwhere are those installed?13:24
Wizzupparazyd: doesn't look like it to me13:24
freemangordon/usr/include, no?13:24
Wizzupmerlijn@maemo-leste-armhf:/mnt/merlijn/maemo-leste/droid4-linux$ find /usr/include/linux/ | grep sgx13:24
Wizzupmerlijn@maemo-leste-armhf:/mnt/merlijn/maemo-leste/droid4-linux$ dpkg -L linux-headers-droid4 | grep sgx -c13:24
Wizzup16613:24
Wizzupthe linux header packages are *only* for DKMS13:25
freemangordonthe headers ion question are shared between kernel and userland13:25
Wizzupagain, please consider just having the headers in sgx-ddm-um pkg13:25
freemangordonWizzup: I understand your point, but we'll have conflict if one tries to install both packages13:25
Wizzupwe can pin/match them exactly13:26
freemangordondoesn't matter, dpkg will complain13:26
Wizzupwithout having convoluted paths for the headers and without exporting kernel specific headers13:26
Wizzuphuh?13:26
freemangordon"...tries to overwrite a file which is also in ..."13:26
Wizzupno13:26
freemangordonand having same files in two different places is not a good idea imo13:27
Wizzupthe only reason the pvrsgx headers are currently exported at all in any package is because I hacked it in for you13:27
Wizzupthey are otherwise never in any headers package since as far as kernel is considered they are internal13:27
Wizzupthey are not part of any public api/abi13:27
freemangordonalso, keep in mind that because of iphb dkms module we'll have kernel headers installed either way13:27
Wizzupso there will be no conflict if we have them in sgx-ddk-um13:27
Wizzupthat is unrelated13:27
Wizzupjust dpkg -L linux-headers-droid4 now and see how little it is13:28
freemangordonWizzup: we'll need sgx-ddm-um either ways though13:28
freemangordonbecause of pvr2d.h13:28
Wizzupyes, that's already packaged13:28
Wizzupwith the headers currently13:28
Wizzupbut then you told me to use the kernel package instead13:28
Wizzupwhich is fine, but I don't know how to make a .pc file for it13:29
freemangordondo not13:29
freemangordonput .pc file in sgx-ddm-um13:29
Wizzupit is13:29
Wizzupuh13:29
freemangordonand make it depend on "kernel-headers" package13:29
freemangordonthe particular version that is13:30
Wizzupdid you see how ugly the paths are?13:30
Wizzup/usr/src/linux-headers-5.15.2-218687-g24a714e51fc5-dirty/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/include4/pvr_debug.h13:30
freemangordonyeah13:30
Wizzuphow do I make a pc file fro that?13:30
freemangordonhmm13:30
Wizzupalso, *every* other sgx release we did we had the headers in a separate repo13:30
Wizzupafaik13:30
freemangordonoh, ok :)13:30
freemangordondo it as you think is best.13:31
Wizzupif you have an idea on how we can make the .pc file we can make it work13:31
Wizzupotherwise I would rather have the header files in the sgx-ddk-um pkg13:31
Wizzupbut afaik pkgconfig cannot script or use globs in paths13:32
freemangordonwhat about creating sgx-ddk-um-headers pkg created out of kernel build?13:32
Wizzup(so /usr/src/linux-headers-*/driver/gpu/drm/pvrsgx/... is out of the question13:32
Wizzup)13:32
freemangordonyou can create package.pc.in13:32
Wizzupyes, that is potentially possible, but it's quite some work because kernel ships with it's own builddeb script13:32
freemangordonah13:32
Wizzupyeah... :p13:32
WizzupI haven't really seen .pc files be shipped from any kernel pkg much either13:33
freemangordonoh, ok then13:33
freemangordonjust make sure sgx-ddk-um-dev provides "sgx-ddk-um-1.17.4948957" or somesuch13:33
Wizzupand regarding versioning, shall we postfix it with kernel version?13:34
Wizzupor maybe prefix13:34
freemangordonI don;t think kernel version matters13:34
freemangordonI think it is DDK version that does13:34
Wizzupit will if you end up changing headers13:34
Wizzupas in I was assuming you planned to change the headers13:35
freemangordonno13:35
Wizzupoh13:35
freemangordonwhat to change there?13:35
Wizzupwell, I just assumed you would change them because you wanted them from the kernel13:35
Wizzup*shrug*13:35
Wizzuplet me remove the pvr headers from the next kernel build again, and I'll try to tidy up the sgx-ddk-um as you request13:36
freemangordonok13:36
WizzupI was already able to build the DDX with it earlier13:36
Wizzupthe kernel that is building atm should also work on n900 (although it might not ship with the dtb - we need to fix that)13:36
freemangordonthe point is that DDX should depend on sgx -dev package providing headers for a particular DDK version13:37
Wizzupanything else, otherwise I'll take a quick break?13:37
Wizzupok13:37
Wizzupmakes sense13:37
freemangordonbut I'll leave that to you and parazyd to agree upon how to do13:37
WizzupI'll make sure to do that13:37
freemangordonok13:37
WizzupI plan to have my droid4 and n900 over to 5.15 by this evening :)13:37
Wizzupat least in experimental13:37
freemangordonWizzup: btw, did you see that I made n900 flicker go away?13:37
WizzupI read it yes :-D13:38
freemangordonI need uvos though, I want to discuss with him if it makes sense to implement dri313:38
Wizzupok13:38
freemangordonor to fix dri213:38
Wizzupbut I think we can move forward with this, at least for experimental13:38
Wizzupmaybe even -devel13:39
freemangordonyeah13:39
freemangordonmind you, still no portrait on n90013:39
freemangordonand it is slower that currently13:39
freemangordon*than13:39
Wizzup*shrug* it's better than 5.113:39
WizzupI use the n900 mostly for devel/testing, so I don't mind that so much13:39
freemangordonnot sure its better, but it will be :)13:39
WizzupI think it's better to do the kernel merging now13:40
freemangordonsure13:40
Wizzupit also allows us to toy with OFF mode13:40
crabhi all, i updated my maemo-leste the other day and the gui appears to have died a bit, maybe because it wants ofono? its not a big issue as i mainly use it headless for irc (its lurking in this channel as n900) but if anyone has any suggestions id be grateful. :)13:40
sicelo+1 @ OFF mode.13:40
Wizzupcrab: yikes you're the third to report that13:40
crabim just trying another update now so apologies in advance if that fixes it. :)13:40
Wizzupbrb sorry, half an hour or so13:41
crabWizzup: is that bad or good?13:41
crabmy installation is a bit crazy so im reluctant to moan too much as it could well be stuff like that!13:41
crabalso <smugly>sorry for registering 'n900' for my n900 if anyone wanted to do that, but it had to be done!</smugly>13:42
sicelobtw, although i can't say 100% certainty atm, with 5.15 expect other N900 issues, e.g. non-working RGB LED, etc. But I know why they're like that ... just didn't have time to make proper fixes and send upstream13:42
Wizzupsicelo: what are your fixes?13:42
Wizzupwe could include them now13:42
Wizzupcrab: :p13:42
Wizzupactually brb now :)13:42
siceloturned out to not be a good fix, imo. so the rgb led controller doesn't get turned on at boot or when you probe the module. so i had proposed to have it set on at boot. LED subsystem maintainers (pavel) were willing to accept it.13:45
siceloit's turned on by GPIO. I wanted to set it always high. later on, someone had a patch where he needed to set it always low :-p13:46
siceloso yes, that's why i think it needs further tracking13:46
sicelohttps://www.spinics.net/lists/linux-leds/msg18183.html , https://www.spinics.net/lists/linux-leds/msg18195.html , https://www.spinics.net/lists/linux-leds/msg19029.html13:47
siceloatm i don't remember the other guy's commit, but he was editing this exact line on the driver13:48
siceloso you could take my fix (always set gpio high), with the understanding that a better solution must be found13:53
siceloanyway also, as said earlier, i haven't played with recent kernels. maybe something has changed already with these drivers and maybe will work correctly ootb now13:54
Wizzupparazyd: we also need to ship/install more dtbs I think14:27
Wizzupparazyd: what section should we use?14:36
Wizzupomap?14:36
Wizzup(and how do we have people upgrade to that)14:36
Wizzupe.g. xf86-video-omap is section droid414:37
Wizzupfreemangordon: what version do you want for the ddx in the changelog14:43
Wizzup0.4.6 or 0.5.014:43
WizzupI am assuming 0.5.014:44
freemangordonyeah14:50
Wizzupbefore the end of the year we will have a much faster build machine14:53
Wizzupfor arm14:53
Wizzupfreemangordon: ok, should be in the repo in ~2 mins14:54
WizzupI guess that's all the components14:54
Wizzupany hint on xorg.conf required?14:56
WizzupI could try it now on my droid414:56
freemangordonkeep in mind this will still not work on n90015:01
freemangordonbut on d4 should be ok15:01
Wizzupok15:02
WizzupI pushed to xf86-video-omap15:02
WizzupI think we might need replacements for some of these: pvr-omap4 pvr-omap4-libs pvr-omap4-utils15:16
Wizzupor, not sure you did you the upgrade15:16
Wizzupcan I tell to remove certain packages and install other ones or something?15:17
Wizzupdoes our mesa not provide libgles1 ?15:19
Wizzupheh hildon-meta-droid4 wants pvr-omap415:21
Wizzupand cloudgps hard depends on it it seems like15:21
* Wizzup documents15:21
Wizzupfreemangordon: so any xorg.conf stuff I should change, or anything else, before I reboot?15:23
Wizzupe.g. to enable exa?15:23
Wizzuphttps://dpaste.com/GX369J8NC15:25
Wizzuprebooting15:25
Wizzuplet's see15:26
Wizzupwell it booted to h-d on first go15:28
Wizzupit doesn't use EXA I think15:28
Wizzup[    33.217] (WW) Warning, couldn't open module omap_pvr15:28
Wizzup[    33.217] (EE) OMAP: Failed to load module "omap_pvr" (module does not exist, 0)15:28
Wizzup[    33.218] (II) OMAP(0): Cannot load the omap_pvr sub-module15:28
Wizzup[    33.226] (II) OMAP(0): Soft EXA mode15:28
Wizzupno more pvr panics in kernel is *nice*15:30
Wizzups/panics/oopses/15:30
WizzupI guess it needs the mesa env change or something15:32
siceloiirc exa is used (only?) when scrolling15:37
Wizzupso /etc/profile.d/mesa.sh is not read when X is starting15:38
Wizzup# cat /proc/`pidof Xorg`/environ | grep -a MESA15:38
WizzupI wonder where fmg defines this env var15:38
WizzupI'm a bit stuck right now until I know what the alternative fix is, symlink?15:40
Wizzupalso 5.15 has some problems initialising wifi some of times it looks like, but that's for later..15:42
Wizzupfreemangordon: I did this:15:44
Wizzup/usr/lib/arm-linux-gnueabihf/dri/15:44
Wizzupln -s pvr_dri.so omap_dri.so15:44
Wizzupbut that still leaves the above error15:44
Wizzupmaybe my symlink should be not relative15:45
WizzupI guess I'll take a break :)15:46
Wizzupmaybe it's not packaged or something15:48
Wizzupyeah it's not in the package..15:49
Wizzupnow it hangs at:15:58
Wizzup[   123.652] (II) OMAP(0): Initializing the "omap_pvr" sub-module ...15:58
* Wizzup giving up for now15:58
Wizzupah: /usr/lib/xorg/Xorg: symbol lookup error: /usr/lib/xorg/modules/omap_pvr_drv.so: undefined symbol: PVRSRVConnect15:59
Wizzupfreemangordon: what is your omap_pvr_drv.so linked against?16:01
Wizzupoh..16:07
Wizzupok, that is solved, but now it cannot enumerate pvr devices16:10
Wizzup so it is not initialised16:10
Wizzupiirc you told me not to package that, freemangordon ?16:10
Wizzupenough of this monologue, ttyl :)16:11
Wizzuplooks like it needs pvrsrvctl for sure16:13
Wizzupfreemangordon: now I get this:16:18
WizzupPVR:(Error): LoadCompilerModule: Couldn't load library libglslcompiler.so [0, ]16:18
Wizzupand ldd gives:16:19
Wizzup# ldd /usr/lib/arm-linux-gnueabihf/libglslcompiler.so16:19
Wizzup/usr/lib/arm-linux-gnueabihf/libglslcompiler.so: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /usr/lib/arm-linux-gnueabihf/libglslcompiler.so)16:19
Wizzupso I think this still needs the libc treatment16:19
WizzupI forgot where I had the code to soften those requirements16:21
* Wizzup break for real16:21
freemangordonWizzup: sorry, I was on a meeting17:07
freemangordonyes, I will push a couple of fixes, one of them being the init fix17:07
freemangordonand yes, as uvos said we have to relax libglslcompiler.so glibc requirement17:08
freemangordonscript to do that is on github issue, LMK if you cannot find it, I have the script around17:08
freemangordonWizzup: which branch shall I continue work?17:13
freemangordonWizzup: sgx-ddk-um-dev should depend on sgx-ddk-um, no?17:16
freemangordonWizzup: did you push the solution to "undefined symbol: PVRSRVConnect"?17:24
freemangordonWizzup: going on a walk, ttyl, please push if you gave fix for ^^^17:25
Wizzupfreemangordon: hi17:29
Wizzupfreemangordon: I need libc fixes only17:29
Wizzupfreemangordon: problem with that symbol is stray + in my Makefile.am17:29
WizzupI have fix here17:30
freemangordonplease push it17:30
Wizzupit is on maemo/beowulf-experimental17:30
freemangordonis not, just pulled17:30
Wizzupoh it is not\17:30
Wizzupsry just got back17:30
Wizzupit is now17:31
freemangordonnp, take your time17:31
freemangordonok17:31
Wizzupnah I want to see h-d on my device so I'm happy to prioritise :p17:31
freemangordonWizzup: https://pastebin.com/Z83FPY8u17:31
Wizzupok17:31
Wizzupty17:31
freemangordonwill take few more hors, I need to go out for a while17:31
Wizzupthe init thing?17:31
Wizzupor something else?17:31
freemangordonI've been home all day long, need some fresh air17:32
freemangordonyes, the init thing17:32
freemangordon1-2 hours17:32
freemangordonand 2 more minor fixes17:32
freemangordonanyway, ttyl17:32
Wizzupttyl17:34
WizzupI have to wait for my d4 battery to discharge anyway, it's too full so usbnet fails 100%17:34
Wizzupworks17:37
Wizzupcool17:37
Wizzupmaep is smooth :-)17:38
Wizzup"wow"17:38
Wizzup5.15 doesn't always boot it looks like to me17:46
_uvos_Wizzup: i added the script on the ddk1.17 bug19:16
_uvos_oh im behind19:23
Wizzup:)19:24
Wizzupyeah it's running now19:24
WizzupI will fix up the packaging after dnner19:24
_uvos_great19:26
_uvos_ill see ich i can debug why it wont boot19:26
_uvos_do you have kernel console on uart?19:26
_uvos_that has this as known issue19:27
WizzupI can check console later yeah19:27
Wizzupit is random19:27
_uvos_having the console on uart _causes_ this issue19:28
_uvos_it is one cause at least19:28
_uvos_thats why its disabled19:28
_uvos_in the default bootentry atm19:28
Wizzupaha19:28
_uvos_there is also a uart interrupt throtelling patch19:29
_uvos_to help here19:29
_uvos_it might have gohn missing19:29
_uvos_ill look when im @home19:29
_uvos_1h approx19:29
freemangordonWizzup: https://github.com/maemo-leste/xf86-video-omap/commit/78249f8721b631d05ba516d4ca8bb4bfc0cdf5aa19:41
freemangordonone more patch and we are ready19:42
freemangordonbut first -dinner19:42
parazydUnpacking sgx-ddk-um-ti443x (1.17.4948957-leste1+2m7.1) ...19:57
parazyddpkg: error processing archive /var/tmp/apt-dpkg-install-vPgEQ7/12-sgx-ddk-um-ti443x_1.17.4948957-leste1+2m7.1_armhf.deb (--unpack):19:57
parazyd trying to overwrite '/usr/lib/arm-linux-gnueabihf/libPVRScopeServices.so', which is also in package pvr-omap4-libs 1.9.0.8.1.3-1+2m7.419:58
parazydI think here we need a Conflicts, Replaces, Provides19:58
parazydfreemangordon, Wizzup: agreed? ^19:58
parazydThat's https://github.com/maemo-leste/pvr-omap420:01
Wizzupfreemangordon: cool, I'll build a new one momentarily20:14
Wizzupparazyd: hmm what?20:15
Wizzupparazyd: yes we need the replaces for the pvr-omap4 stuff in sgx-ddk-um20:15
Wizzupanother thing is that we want the rights libs to be picked for n90020:15
Wizzupso it needs to depend on those specifically somehow20:15
Wizzup(same for droid4 really, we just got lucky with what gets picked)20:15
Wizzupparazyd: but the commands I sent to you remove the packages first20:16
Wizzupfreemangordon: check20:16
Wizzupfreemangordon: so the ones you added for command mode displays, is that for n900?20:20
Wizzupor does n900 need more to render in landscape20:20
Wizzupfreemangordon: building new 0.5.0 version20:21
freemangordonWizzup: yes, that one patch is for n90020:23
freemangordonlemme push it20:23
Wizzupah ok20:23
Wizzupis it not already in maemo/beowulf-experimental?20:23
WizzupI'll just do anoter build np20:23
Wizzupshould we weaken the symbols postinst or shall we just do it in the package itself?20:24
Wizzupi.e. I'll weaken them in git20:24
freemangordonbetter weaken in git if we keep a cpoy20:25
freemangordon*copy20:25
Wizzupagreed20:25
freemangordonpushed20:26
uvosWizzup: btw20:27
uvosWizzup: havent tried this but dosent disabeling charging make usbnet work? as a workaround20:27
Wizzupfreemangordon: ok will do another build in a bit20:28
Wizzupuvos: yes but that doesn't work if I have no access20:28
Wizzup:p20:28
uvosemergency shell?20:29
Wizzupfreemangordon: btw I force pushed to xf86-video-omap after I did a rebase and also re-created tags20:29
Wizzupuvos: sure I could have done that but it was better to wait 1 minute20:29
Wizzupfaster anyway20:29
uvosok20:29
freemangordonWizzup: I did a rebase and push20:30
Wizzupfreemangordon: ok cool20:30
freemangordonWizzup: how to install the kernel?20:31
Wizzupfreemangordon: let me paste what I did20:32
uvoswhat are we missing for final drop to devel?20:32
uvosneed any help on anything?20:32
freemangordonuvos: lets have it for a while in experimental first :)20:32
Wizzuphttps://pastebin.com/raw/sYazkHC820:32
WizzupI did that^20:32
Wizzupuvos: yeah let's give in ~1-3 days, what's needed is to make the transition smooth and also make it work on n900 etc20:33
Wizzupomap-linux is one of those, and there's more to do20:33
uvosfreemangordon: fine by me20:33
uvossecond question still stands :)20:33
freemangordonah, omap-linux20:33
freemangordonuvos: yeah, you may want to look why dri2 does single-buffer20:33
freemangordonlike, new buffer is requested only after SwapComplete is generated20:34
uvosok - in what context, it should do single buffer no20:34
freemangordonwhy not double-buffering?20:34
Wizzupfreemangordon: oh we need to deal with that symlink thing20:35
Wizzupwith this: ln -s /usr/lib/arm-linux-gnueabihf/dri/pvr_dri.so /usr/lib/arm-linux-gnueabihf/dri/omap_dri.so20:35
freemangordonno, whay20:35
freemangordon*why20:35
WizzupI set the env var in /etc/profile.d/mesa.sh20:35
Wizzupand it doesn't work20:35
WizzupX doesn't pick it up20:35
uvoswell x is historily just not double bufferd, unless you do composing20:35
freemangordonWizzup:  sure it does20:35
Wizzupare you _sure_?20:35
freemangordonuvos: well, I guess h-d does compositing :)20:35
freemangordonWizzup: yes20:36
Wizzup# cat /etc/profile.d/mesa.sh20:36
Wizzupexport MESA_LOADER_DRIVER_OVERRIDE=pvr20:36
WizzupI had this20:36
Wizzuprebooted20:36
Wizzupand then grepped /proc/`pidof Xorg`/environ20:36
Wizzupand it *was not* there20:36
Wizzupsame for dsme20:36
freemangordonshebang is wrong20:36
Wizzupoh20:36
freemangordonroot@devuan-droid4:~/xorg/xf86-video-omap# cat /etc/profile.d/mesa.sh20:36
freemangordon#!/bin/sh20:36
freemangordonexport MESA_LOADER_DRIVER_OVERRIDE=pvr20:36
freemangordon:)20:36
Wizzuphmm but it was there for osso-xterm20:36
Wizzupok, and then who provides that script?20:37
freemangordonum-ddk-libs?20:37
Wizzupok20:37
Wizzupparazyd: ^ ok?20:37
uvoswell the compositing manager is supposed to internaly keep the second buffer20:37
uvossome ddx do do double buffering -intel for example20:38
uvosit you want that then sure i could take a look how its implemented there20:38
uvosotherwise i lack information/knowalge on whats wrong20:38
freemangordonuvos: we have 2 buffers, it is just that no new one is requested until page flip happens20:38
uvosah20:39
uvosok20:39
uvosyeah20:39
freemangordonwhich basically means single-buffer20:39
uvosyeah20:39
parazydWizzup: Yeah I don't want to use the dpkg commands to remove the packages. Rather make a proper upgrade.20:39
uvosthats not right20:39
freemangordonso h-d renders with 40fps20:39
Wizzupparazyd: check20:39
parazydWizzup: If I delete them, then it's more difficult to reproduce the situation20:39
freemangordonuvos: :nod:20:39
Wizzupparazyd: ok, yeah, agreed, fyi I changed sgx-ddk-um a bit so make sure to pull20:39
parazyd*nod*20:39
freemangordonenable debug in omap.conf and you'll see20:39
uvosok20:40
uvosill have to get all this stuff on some d4 first20:40
Wizzupin 10 mins I should have latest ddx and sgx-ddm-uk built20:41
Wizzupddk-um* lol20:41
freemangordonWizzup: hmm, I see neither omap-linux nor linux-omap20:41
freemangordondroid4-linux?20:42
Wizzupfreemangordon: the package is in the paste I sent you20:43
Wizzupapt upgrade should just work though for it20:43
Wizzupfreemangordon: yeah ok so it wasn't in the paste I just apt upgraded20:43
Wizzupit's linux-image-droid420:43
freemangordonlinux-image-droid4/testing 5.11.2-3+2m7 armhf [upgradable from: 5.11.2-2+2m7]20:44
Wizzupapt update?20:44
freemangordonmhm20:44
WizzupI mean I got 5.15 from the repo so it must be there20:44
freemangordonwhat is the name according to dlkg -l ?20:45
freemangordonand version20:45
Wizzupii  linux-image-droid4                             5.15.0-1+2m7.2                          armhf        Linux kernel for Motorola Droid420:45
freemangordonE: Version '5.15.0-1+2m7.2' for 'linux-image-droid4' was not found20:46
Wizzupwell, please double check your repo setup and see if apt update complains20:46
freemangordondeb https://maedevu.maemo.org/leste beowulf-experimental main contrib non-free20:46
freemangordonah, d4?20:47
freemangordonI was expecting this to hit main :)20:47
Wizzupyes it's in droid4 component atm20:47
freemangordonok, that explains it20:48
Wizzupare you trying on some other device?20:48
freemangordonno20:48
Wizzupok, if you try it on n900 it will not work since we don't ship the dts20:48
freemangordonyeah20:48
freemangordonbtw, what's with hildon-connectivity-wlan?20:49
freemangordonI cannot upgrade it20:49
freemangordonrebooting, lets see20:55
freemangordonYAY! it's alive :)20:56
Wizzup:)20:56
freemangordonbut, with SW rendering :)20:56
Wizzuphm?20:57
freemangordonlemme check20:57
Wizzupsry [hone20:58
freemangordonPVR:(Error): PVRSRVBridgeCall: Failed to access device.  Function ID:3223086849 (strerror returns no value.). [0, ]20:59
freemangordonoh, seems x gets initialized before pvr module :(21:00
uvospvrsrvinit missing?21:02
freemangordonDDX replaces it21:03
uvosno21:03
uvosthats not ok21:03
freemangordonyes, it is21:03
freemangordonsec21:03
uvosits in sysinit for a reason21:03
uvoswe need it for sdl usage before x21:03
freemangordonoh21:03
uvosfor charging-sdl to work on21:03
uvosdrm21:03
freemangordonok, I see21:03
freemangordonok, where shall we have pvrsrvinit?21:04
uvosyeah just this https://github.com/IMbackK/pvr-omap4/blob/master/pvrsrvinit.c21:05
uvosis fine21:05
freemangordonyeah, ok, but who shall call it?21:05
uvosopenrc21:05
uvosin sysinit21:05
WizzupI can add te init script21:05
Wizzupwe have it already for old ddk21:05
freemangordonyes, please do21:05
freemangordonhmm, something got broken21:09
freemangordonI can't open applications21:09
freemangordonoh, I should have that TS specific udev rule, right?21:15
uvosyeah21:15
uvosofc21:15
uvosI can't open applications = you cant open the application menu?21:15
uvosyeah21:15
uvosyour clicking the hildon button twice :)21:16
freemangordonyeah21:16
freemangordonI think I am going crazy :)21:16
freemangordon*thought21:16
freemangordonWizzup: run glmark from h-d :p21:21
freemangordonok, we have issue with fullscreen applications21:23
freemangordonmaybe I shall flush framebuffer from exa copy function too21:24
Wizzupfreemangordon: back21:24
WizzupI will port the init script to sgx-ddk-um now21:24
freemangordonok21:24
Wizzupand add the env21:25
Wizzup(profile.d)21:25
freemangordonI am going to have some rest for a while21:25
Wizzup*nod*21:25
freemangordonwe have one issue remaning (fullscreen apps), I'll take care of it maybe tomorrow21:25
Wizzupis that tklock21:25
freemangordonWizzup: please run glmark in window and tell me what you think21:26
WizzupI hope to get n900 going by the end of the day21:26
Wizzupok, is it in our repo?21:26
freemangordontklock and xterm21:26
WizzupI always forget where we get it from21:26
freemangordonglmark?21:26
freemangordonno21:26
Wizzupdorian scroling is smoother I think21:26
Wizzup:)21:26
freemangordonI clone/compile21:26
Wizzupand maep is much muhc better21:26
Wizzupok21:26
Wizzupfreemangordon: hm I see some corruption now after reboot21:27
Wizzupcould be your flip change?21:28
Wizzupwifi scan dialog has random parts of characters/flyphs21:29
Wizzupglyphs*21:29
freemangordonWizzup: yeah, saw it too21:31
freemangordonmaybe it is https://github.com/maemo-leste/xf86-video-omap/commit/ecd60e09c289db00f7bc83318741099934342fd521:32
freemangordonplease revert it and try if it fixes the corruption21:32
Wizzupok21:32
freemangordonI'll make a better patch that skips that wait for fullscreen DRI blits only21:33
freemangordonif it turns out this is the one to blame21:34
freemangordonWizzup: or, bisect :)21:35
freemangordonsorry about that21:35
Wizzupnp21:39
WizzupI'll start with the obvious target21:46
Wizzup/commit21:46
parazydWizzup, freemangordon: Do we still need /usr/bin/pvrsrvinit ?21:57
parazyd(We have that from pvr-omap4-utils21:57
parazyd)21:57
Wizzupyes21:57
WizzupI am on it21:57
Wizzupfor sgx-ddk-um21:57
parazydah ok21:57
parazydCan you please add the conflicts then too?21:57
parazydI'll give you a diff21:57
Wizzuphm?21:58
parazydAre you working on the package right now?21:58
parazyd(If so, just add this as well: http://ix.io/3FO8)21:58
Wizzupphone 1min...21:58
uvosdont use the closed source pvrsrvinit binary ofc22:00
uvosno need22:00
Wizzupparazyd: please add whatever the pkg needs22:04
WizzupI will just add the init script and the profile.d22:04
Wizzupbut pvr-omap4 is deprecated so need to work on that...22:04
Wizzupparazyd: I wasn't working on the package, but I will add some stuff now22:15
Wizzupafter I figure out the corruption22:16
Wizzupparazyd: basically we just need the initscript from pvr-omap4-utils in sgx-ddk-um-libs I think22:16
Wizzupyou can make it a separate non -libs thing22:16
Wizzupalso for testing the n900 with droid4-linux all we need to do is add a dtb file to the builddeb script no?22:17
uvosyou have to build uimage too or?22:17
uvosor dose n900 uboot work with zimage now22:17
Wizzupwell I have newer u-boot I think22:17
Wizzupbut others might need it22:17
Wizzupwe don't have a way to auto update u-boot for folks22:18
Wizzupsince there are so many possible setups22:18
uvosyeah22:18
uvossome solution is still needed22:18
Wizzupyes, but like with d4, I want to see the bits on my screen here first ;)22:18
parazydWizzup: Yeah, just append the dtb in debian/rules22:20
Wizzupfreemangordon: with that commit reverted the corruption seems gone22:24
freemangordonъеах22:24
freemangordonyeah22:24
freemangordonas expected (see the commit message :) )22:25
Wizzupshall I revert it or drop it?22:25
Wizzupyeah22:25
freemangordonbetter drop22:25
Wizzupok22:25
Wizzuprebuilding ddx22:26
uvosPackage libllvm8 is not available, but is referred to by another package. <-- where is this supposed to be?22:51
parazydWe'll sort it out22:51
parazydYou can get it from beowulf-backports for the time being22:51
uvos backports ok22:51
parazyd(That's devuan upstream repos, not ours)22:52
uvosyeah i know thanks :)22:52
parazyd:)22:52
uvosy22:55
uvosupps wrong window22:55
uvos[    43.960] (EE) OMAP(0): ERROR: failed to reconfig crtc 123:34
uvoshmm23:34
uvoswhat am i missing? kmscube works fine so dose weston23:34
Wizzupwhere di you get this?23:34
uvosxorg.log23:34
uvosit also [    29.770] (II) OMAP(0): Successfully initialized the "omap_pvr" sub-module23:34
uvosso pvr ddk is working fine for video-omap too23:34
Wizzupit is harmful?23:35
uvosyes xorg dosent start23:35
uvoserrors are fatal :P23:35
uvosby convetion anyways23:35
WizzupI think I see it too but it doesn't seem to be fatal?23:35
uvoshmm23:36
uvosso i just rebooted23:38
uvosand now it did start23:38
uvosbut its extreamly slow23:38
uvoslike llvmpipe slow, but nothing changed in xorgs log23:38
Wizzupyes, this is mesa.sh23:39
Wizzup# cat /etc/profile.d/mesa.sh23:39
Wizzup#!/bin/sh23:39
Wizzupexport MESA_LOADER_DRIVER_OVERRIDE=pvr23:39
WizzupIt might need to do +x I am not sure23:39
Wizzupthis will be in sgx-ddk-um-tools momentarily23:39
Wizzupalso the init script23:39
uvoshuh23:39
uvoswhy is that needed23:39
uvoskmscube dose fine23:39
Wizzupwhat do you mean?23:39
uvosit uses sgx renderer23:39
Wizzupwhat is 'it' ?23:40
Wizzupthe env var?23:40
uvosyes the env var, why are we forcing pvr23:40
uvoswith kmscube mesa chooses pvr by its own will23:40
Wizzupbecause mesa trying to load the wrong driver name, I think it's been discussed ~5 times here in the last month or so23:40
Wizzupwith this picked at the 'best' solution next to make a symlink23:40
uvosyeah except thats not what i see23:41
Wizzupin X?23:41
uvoskmscube -D /dev/dri/card123:41
WizzupI don't know what path that takes23:41
uvosversion: "OpenGL ES 2.0 build 1.17@4948957"23:41
uvosrenderer: "PowerVR SGX 540"23:42
uvosWizzup: should be same as x23:42
Wizzuptry to set the env and see if X becomes accelerated?23:42
uvosyeah23:42
uvossec23:42
WizzupI needed it, before I did that it was llvmpipe too23:42
Wizzupparazyd: we'll need sgx-ddk-um-tools in some meta too23:42
uvosWizzup: hmm yeah with the envvar its acellerated23:45
uvosbut hmm23:45
uvoswierd why would mesa suddenly choose differently for the same dri device23:45
uvos768 frames in 5.0 seconds = 153.477 FPS23:47
uvos5x improvement23:47
uvosnot bad23:47
freemangordonwhat is this?23:48
uvosgears23:48
freemangordonah23:48
uvosfirefox-esr dosent start23:48
uvos(segfaults instead)23:48
* bencoh headscratches - 153fps?!23:49
Wizzupsurf does the same I think23:49
bencohis it without vsync this time?23:49
uvosbencoh: its allways been without vsync23:49
bencohah, alright23:49
freemangordonyeah, no vsync on d423:49
bencohI thought we somehow reached the conclusion that it was somehow synced but that it could manage a bit more than 6023:50
bencohbut ... fair enough23:50
uvosthat was on android23:50
bencohah23:50
Wizzupfreemangordon: you also need sgx-ddk-um-tools now23:52
Wizzupit contains init script and mesa.sh23:52
freemangordonok23:52
uvosthere is no debug symbols for ff-esr in devuan23:53
uvoswhats up with that23:53
uvos:(23:53
Wizzupdbg vs dbgsym?23:53
freemangordondebug symbols are in separate repo23:53
uvosah yes23:54
Wizzupright23:54
uvosim an idiot23:54
freemangordondeb http://debug.mirrors.debian.org/debian-debug buster-debug main contrib non-free23:54
uvosthanks, yeah i just flashed a new sd card and ,...23:54
freemangordonnp23:55
Wizzupso with -tools I think it 'just works' as in no manual changes required23:59
Wizzupnow to sort out the dep23:59
Wizzups23:59

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!