libera/#maemo-leste/ Friday, 2021-11-19

lelIMbackK synchronize a pull request: https://github.com/maemo-leste/hildon-status-menu/pull/3 (Add support for StatusNotifierItems)00:22
uvoswhats acctually neat00:24
uvosis that even the context menus are simply defined as xml00:24
uvosso you could even have networkmanager-applet open a dialog that looks just like the icd2 one00:24
uvosgenerally formating the StatusNotifierItem menu into a hildon dialog should not be too mutch work.00:25
uvossame with cantata media controlls etc00:25
lelIMbackK synchronize a pull request: https://github.com/maemo-leste/hildon-status-menu/pull/3 (Add support for StatusNotifierItems)00:37
freemangordonWizzup: where shall I push latest omapdrm/pvr patches?09:36
freemangordonah, maybe here https://github.com/maemo-leste/droid4-linux/tree/droid4-pending-pvr-omapdrm-v5.1509:46
freemangordonWizzup: parazyd: pushed09:52
freemangordontmlind: I send new versions of omapdrm/prv patches, I hope those are final09:53
freemangordonmaybe you would like to use them to replace the old version and force-push maybe, dunno09:53
tmlindfreemangordon: let's revert the old ones and reapply so it stays pullable10:12
freemangordonok, I guess then you can just pull https://github.com/maemo-leste/droid4-linux/tree/droid4-pending-pvr-omapdrm-v5.1510:44
freemangordontmlind: also, it seems there is some issues with caching of BOs. Even without TILER and SGX rendering (so, pure 2D on non-rotated scanouts) I see wrongly rendered parts when doing x11perf10:46
freemangordonI wonder if I shall map/unmap on every start/end CPU access, but that seems like an overkill to me10:47
freemangordonI think WL has the same issue, at least by judging on your description10:47
tmlindfreemangordon: sure i can pull, will need to catch train so not sure if i can do that before sunday night10:59
tmlindfreemangordon: i'll also continue rewriting the interrupt handler stuff to get rid of the remaining ocp code as that probably won't work at all for other architectures11:00
tmlindyeah for sure there's some need to flush stuff somewhere, maybe give the patch i posted last week a try. if that helps, mabye we can optimize it some more11:01
tmlindthat was the omapdrm-flush-on-pin-unpin.patch11:02
tmlindfreemangordon: also, are you also seeing the wrongly rendered parts on n900, or only on d4?11:03
Wizzupfreemangordon: ok, do we need anything else or can things somehow 'work' ?11:31
freemangordontmlind: I think I see on n900 too11:39
freemangordonWizzup: I don;t hink so11:39
freemangordon*think11:39
freemangordonbut, we shall not enable PVR EXA as of now11:39
freemangordonas it gives rendering artifacts11:39
freemangordonsome cache issues again11:39
freemangordonI'll investigate during the weekend11:40
Wizzupok, so we can build latest kernel with ddk 1.17, mesa, and the ddx11:40
freemangordonyes11:40
Wizzupand I will have to work on the headers split, getting it from the kernel package somehow11:40
freemangordonyes11:40
WizzupI am still not sure if it that makes more sense but ok11:40
Wizzupnp11:40
Wizzupnot enabling exa is probably the default in the config?11:41
freemangordonWizzup: no11:41
uvosif you can see it on n900 at all but less its probubly the same as on d4 but with a hdmi display11:42
uvoson d4 its really obvious because sometimes the last frame that stays is wrong11:42
uvosif you plug in hdmi you can still see the errors flickering on animation, but it dosent stay11:43
freemangordonthis is different issue11:43
uvosok11:43
freemangordon'flickering' is what I see on n90011:43
uvosnot sure its a differetn issue11:43
uvosif its in dss11:44
uvosthe d4 just displays it differently on dsi because the dsiplay stops refeshing during the flicker11:44
freemangordonyeah11:44
uvosso whats a flicker on n900 and d4 hdmi becomse a constant black/wrong rectangle on d4 dsi11:44
Wizzupbut fmg says it only happens with exa I think?11:45
uvosis that so fmg?11:45
uvosit happens on wayland too11:45
uvosand ddk1.9 ofc11:45
freemangordonno, it happens without exa too11:46
freemangordonsec (phone call)11:46
uvosok so that would suggest dss is broken as the only difference between refreshes on d4 hdmi is that dss re reads the same buffer again.11:47
freemangordonso:11:47
uvosso that would suggest caheing11:47
freemangordonwe have 3 different issues:11:47
freemangordon1. d4 does not update correctly because of manual update dusplay. this is fixed by flushing after scanout has been changed11:48
freemangordon2. n900 (and I guess d4 with hdmi) flickers - on n900 what flickers is the right 1/3 of the display. We have no clue what is this but tmlind has a patch for us to test11:49
freemangordon3. with PVR EXA we have rendering artefacts when hildon-desktop runs. THis is something I sahll take care of11:50
scopshmm is it planed to support the n9 more actively?11:50
scops(i got one in the meantime)11:50
uvoswe would be happy if someone picked it up11:51
freemangordonI guess yes, once we have SGX running11:51
uvosbut atm no one works on it11:51
freemangordonand yes, ut needs someone to work on it11:51
freemangordonI plan to work on n95011:51
freemangordonbut it is different and also have no idea when I will start11:51
freemangordontoo much on the plate already11:51
scopsif there is an image sometime for testing... i'm here ;)11:52
Wizzupwe had a n9 image a long time ago I think contributed by dderby11:52
freemangordonWizzup: so, I think tmlind and uvos are talking about issue 211:52
uvosthere was a bug that it dident boot some time ago i think11:52
Wizzupbut we are trying to focus on a few devices and support those well before expanding to many more, but we'd love for others to take that up11:52
Wizzupfreemangordon: right11:52
uvosfreemangordon: yeah thats the only one that shows in sway11:52
freemangordonbut, only when hdmi is connected, right?11:53
uvosno allways11:53
freemangordonah11:53
uvoswith hdmi its _harder_ to see11:53
uvosbut it happens11:53
uvosthis is why i suspect dss11:53
freemangordonwell, I see no such flickering on d4 with omap-video11:53
uvosbecause when the display is merly re-refeshed (with same image)11:53
uvosfreemangordon: even with slow or hevly loaded sgx?11:53
freemangordonyes11:54
uvosok11:54
uvoswierd11:54
freemangordonI can run glmark2 within h-d and it will render corecctly (without pvr exa)11:54
freemangordonactually it renders correctly with pvr exa too11:54
uvosits mostly 2d on 3d engine stuff that shows it for me11:55
uvosie sway windows11:55
freemangordonbut some other things are rendered incorrectly (styatus menu for example)11:55
uvosok11:55
uvosneat about you having exa working allready :)11:55
uvoswell partally anyways11:55
freemangordon*almost* working :)11:55
freemangordonyeah11:55
freemangordonI need to fix CPU/GPU sync and to RE the composite part11:56
freemangordonttyl, luch11:56
tmlindfreemangordon: i agree on the 3 different issues you listed, except for issue 2 my test patch only hides the d4 command mode lcd issue so it too shows as flicker most likely12:01
freemangordontmlind: ah, I see12:01
tmlindso my patch is likely wrong, just a workaround to force refresh the d4 command mode lcd, it does nothing on n900 or on hdmi12:02
tmlindafaik the flicker only shows with pvr, so likely it needs to flush somewhere12:04
tmlindor has anybody seen it without pvr in play?12:04
uvosfreemangordon: claims so above lets12:05
uvoswait until he is back12:05
tmlindyeah gotta go soon, connection will be spotty over the weekend12:05
uvos"tmlind: also, it seems there is some issues with caching of BOs. Even without TILER and SGX rendering (so, pure 2D on non-rotated scanouts) I see wrongly rendered parts when doing x11perf" <--- unless he was using the pvr exa moudle that dosent touch pvr at all12:06
tmlindinteresting, that test case might be easiest to trace12:07
uvosactually let me thy this on ddk1.9 without hildon12:07
uvosthat uses the cpu to render too12:08
tmlindok12:08
freemangordonyes, this doesn't involve SGX12:17
freemangordonit is like reading from a WC memory reads stale data12:17
freemangordonI don't know how's that possible12:17
uvoshonestly x11perf is so flickery i cant tell if its wrong12:18
uvosi blacklisted pvr module on an otherwise usual leste 5.11 kernel12:18
uvosfreemangordon: what test did you use12:18
freemangordonx11perf -copywinwin50012:18
uvosindeed12:19
uvosits wrong on modesetting with no pvr and noAcell12:19
freemangordonmhm12:20
uvosit shows the top right missing rendering very well12:20
freemangordonyes12:20
uvosgreat find12:21
freemangordonlemme see if it happens on TILER BO12:21
freemangordonbottom-left part is affected12:22
uvossame thing on 5.14 sway droid 4 (on xorg noaccel modesetting)12:22
freemangordonalso, this https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/omapdrm/omap_drv.c#L488 worries me12:24
freemangordontmlind: have a look at   p, li { white-space: pre-wrap; }  d6f544f6b12:26
freemangordon"Now that the driver supports synchronization through fences..."12:27
freemangordonsearching for "fence" in the driver doesn't result in anything useful12:31
freemangordonuvos: ok, but what potentially is not being flushed with CPU access only?13:09
freemangordonnot enough pages being mapped should result in segfault, no?13:20
freemangordonok, the same x11perf mis-rendering happens on n900 with modesetting and no acceleration14:06
freemangordonso, something is wrong with mmap()-ed memory. or with DSS14:06
uvosfreemangordon: cpus cache would come to mind, but this allso seams to happen with pvr rendering into omapdrm buffers, so that leaves dss missbehaving really unless im missing something.14:31
Wizzupscops: are you up for doing development and testing, or just testing?14:32
freemangordonuvos: but, we have the issue when pvr renders too14:33
scopstesting ... i dont have the time to development atm14:33
scopss/to/for14:33
uvosfreemangordon: right thats why it leaves dss misbehaving14:34
freemangordonah, you mean "dss behaves correctly"14:34
freemangordonyeah, agree14:34
freemangordonit is something with cache coherency I think14:34
freemangordonbut I lack the details14:35
freemangordongnome crashed :(14:36
mighty17[m]can we get openpvrsgx with 5.15 full release instead of the rc? (i'd be happy to do it myself as well but the last commit/MR from the tree is confusing)14:41
mighty17[m]also #2 can we trouble TI to get info about ducati to make it run in mainline?14:41
uvoshttps://github.com/tmlind/linux_openpvrsgx/tree/droid4-pending-pvr-omapdrm-v5.1514:42
uvosunlikely14:42
freemangordonmighty17[m]: hmm, we are already on 5.15.214:42
freemangordonmighty17[m]: re 2 - feel free to do it, if you know who shall be pestered :)14:42
mighty17[m]uvos: Ah that's tmlind's tree, always forget to check it 😅14:43
mighty17[m]freemangordon: I was going to make an account on their website but they need my zip code smh14:44
uvosmighty17[m]: i would pretty much just track droid4-pending-* with an omap4 device14:44
uvosthere isent a reason not to14:44
mighty17[m]I keep forgetting that my bad14:46
mighty17[m]Will probably package it in pmos as well then14:46
mighty17[m]Esp coz tab uses 4430 like d414:47
mighty17[m]freemangordon: e2e.ti.com?14:47
freemangordonnoidea14:47
sicelomighty17[m]: i don't think you'll get anywhere with TI. if you want to test the waters, maybe ask in libera/#linux-ti14:56
mighty17[m]Ah I can ask in linux-omap mailing list as well? But I assume only tmlind is active14:57
freemangordonlinux-omap ML is active14:58
freemangordonbut this is in no way related to TI, AFAIK14:58
mighty17[m]Who else to pester than for ducati, it's TI who kept it a blob14:59
uvosthe firmware for the dsp is a blob15:03
uvosbut i mean thats fairly irelivant15:03
uvosthe kernel space drvier is in ti's tree15:03
uvosthe android userspace is a blob too15:04
uvosbut i think there were sources for the gstreamer plugin? not sure tho15:04
uvoswhat parts are you missing?15:04
uvosalso what are you trying to achive here15:05
uvosvideo playback or encoding and the alogrithums needed for dumb camera sensors?15:06
freemangordonwe have gst-dsp for C64x15:06
freemangordonbut, we lack drivers15:06
uvossure but not sure what he wants from ti15:07
freemangordonthough, I had that working with 4.9, iirc15:07
uvosthey have drivers15:07
freemangordonyeah15:07
uvosthey are just not in mainline15:07
mighty17[m]uvos: Preferably video playback, but in android that fw blob is needed15:08
mighty17[m]I thought it was the same case for mainline15:08
uvosthe android userspace blob is just a translator for the kernel interfaces to the android hal15:08
uvosits not realy relevant15:08
freemangordonisn't that supported by remoteproc?15:09
mighty17[m]uvos: Ooooh didn't know that15:09
uvosfreemangordon: on android vendors write closed source accelerator plugins for its hal, im not sure what kernel interfaces the motorola one ends up using.15:10
uvosyes it should use remoteproc if its sane15:10
freemangordonuvos: yes, it is the same on fremantle (closed source gst plugins), but interface was REed and gst-dsp came out15:11
mighty17[m]<freemangordon> "though, I had that working with..." <- So basically search ti's git for commits, add to my tree and magic?15:18
Wizzupscops: ok15:18
uvosi think magic is farily rare in this particular universe15:19
Wizzuphehehe15:20
freemangordonmighty17[m]: yeah, you need diskworld for that :)15:20
freemangordonis ducati C64x?15:20
uvosyes no15:20
uvosducti is two extra arm cores15:21
uvosone has c64x attached15:21
freemangordonmighty17[m]: https://github.com/pali/linux-n900/tree/v4.9-n900/drivers/staging/tidspbridge15:24
freemangordonif this can be of any use for you15:24
freemangordonit is ported to use iommu api15:24
freemangordonkeep in mind this wants COFF forma for firmware15:25
freemangordonif your firmware is in ELF, you should use remoteproc15:25
uvoson android d4 this is ab different iirc15:26
uvosthey upload a firmware that runs on the m3 core15:26
uvosthat uploads the fw for the dsp15:26
uvosnot sure if you have to do this15:26
mighty17[m]<uvos> "they upload a firmware that runs..." <- Yeah, even omapzoom has info about android15:45
mighty17[m]But for linux there isn't much15:45
mighty17[m]<freemangordon> "if this can be of any use for..." <- Unsure about this, afaik it does use remoteproc on Android15:46
freemangordonugh20:50
freemangordonI started Xephyr on my pc and executed x11perf on it and we have exactly the same artefacts20:51
freemangordonXephyr is 544x96020:54
freemangordonuvos: any clue why "end current task" button is missing in powerkey menu?22:31

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