libera/#maemo-leste/ Sunday, 2021-10-17

Wizzupfreemangordon: nice, opening pdf from email just worked09:45
freemangordonnot on my freshly upgraded d409:47
Wizzupweird09:47
freemangordonyeah, but I am not going to dig into that09:47
freemangordonmy concern is modesetting/glamor09:48
freemangordonI think those are FUBAR09:48
freemangordonthe point is: it seems that PRESENT implementation in modesetting is more or less broken09:49
freemangordonmaybe I shall pull latest master and see it is is better09:49
freemangordonwhat I see on n900 - for some reason 'older' frames are drawn 'after' newer09:50
freemangordonTFP is broken as well09:50
freemangordonCMA area is 16 MB - how much more is needed for MS/GLAMOR to work?09:51
freemangordonhmm, I have to try some video playback09:51
freemangordonbut given that performance is 3/4th of that without xorg, I doubt it will look nice09:52
freemangordonWizzup: I built mesa with dri3 enabled, does it make sense to build it with dri2?09:54
freemangordonah, where is uvos, he knows a bit about hat09:54
freemangordon*that09:54
freemangordontmlind: does glmark-es2-drm works for you on d4?09:56
Wizzupfreemangordon: which xorg is this?09:57
Wizzupit is possible some of the modeset problems are kms problems09:58
freemangordonlemme check09:58
Wizzupesp. the frame stuff/trails you mention09:58
freemangordon5e3900904ddc27f3d5580ce3a07929469d82fb5e09:59
WizzupI do not know regarding dri2, probably not09:59
WizzupI would really suggest separating glamor and ms if we can in our evaluation10:00
Wizzupmodesetting I think we really want to use for the mode setting part10:00
Wizzupthere is no reason not to10:00
Wizzupglamor if potentially a different story10:00
Wizzupis*10:00
Wizzupfreemangordon: cannot check the commit hash atm but iirc tmlind had some fixes for xorg modeset and rotation10:01
Wizzupif that is what you mean with present10:01
freemangordonhmm, upstream has lots of fixes for glamor/ms10:02
WizzupI use modesetting on my laptop and it does not seem broken10:02
freemangordonworths rtying latest master10:02
Wizzupright10:02
Wizzupwe also patch our xorg but only with my patch iirc10:02
Wizzup(xrexcorcd related)10:03
freemangordonwe are at https://gitlab.freedesktop.org/xorg/xserver/-/commits/master?search=Use+different+scroll+increment+than+libinput+in+inputtest+drv10:03
freemangordonsince that there is a pile of commits10:04
freemangordonso I am going to try latest master10:04
Wizzupok10:09
freemangordonhmm, ABI_INPUT has changed, lets hope there will be no issue with that10:09
freemangordonABI_XINPUT_VERSION that is10:10
freemangordononly minor is changed though10:10
WizzupI think the xorg server builds some drivers as well no10:12
Wizzupso you should just get them10:12
freemangordonthose are in separate repos10:13
Wizzupok10:13
freemangordonbut, for video, it is no issue as we use only modesetting10:13
freemangordonand input ABI major is still 24, lets see10:13
freemangordonRequested 'fixesproto >= 6.0' but version of FixesProto is 5.010:15
freemangordonRequested 'inputproto >= 2.3.99.1' but version of InputProto is 2.3.210:15
freemangordonNo package 'libxcvt' found10:15
freemangordon:(10:15
Wizzupso this is a buster/beowulf+1 thing?10:21
freemangordonmhm10:21
Wizzupit could also be that master is prepped for some rc10:22
freemangordonjust installed one package from buster, with no issue10:22
freemangordonlets see10:22
Wizzupthey never merged this either https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/56810:22
freemangordonyeah, but we don;t need it with chromeos mesa10:23
Wizzuphttps://gitlab.freedesktop.org/xorg/xserver/-/merge_requests?scope=all&state=opened&search=glamor heh10:23
freemangordonwe need x11proto-dev_2021.5-1_all.deb10:24
freemangordonhttps://salsa.debian.org/xorg-team/lib/libxcvt.git10:27
freemangordontmlind: yeah, glmark doesn't work on droid4-pending-pvr-omapdrm-v5.1510:35
freemangordonmaybe the same "Fix page fault handling..." patch10:36
freemangordonok, upstream xorg is being build, fingers crossed10:37
Wizzup:)10:40
freemangordonglmark2 Score: 2112:34
freemangordontrying to start hildon-desktop, xorg segfault12:36
freemangordonThread 1 "Xorg" received signal SIGSEGV, Segmentation fault.12:39
freemangordon0xb55eb612 in ?? () from /root/mesa/sgx/libGLESv2_PVR_MESA.so12:39
Wizzupdebug symbols?12:48
freemangordonno12:54
freemangordonthis is ion the blob12:54
freemangordon*in the12:54
freemangordonI am trying some other thing ATM12:55
freemangordonyes, with this h-d starts13:07
freemangordonnot that it works13:12
freemangordonbut at least good thing is that I can rmmod/modprobe on hang13:13
freemangordonok, TFP seems to work, somehow :)13:21
freemangordonseems we need GL_OES_texture_border_clamp or replacement13:24
freemangordonotherwise all repaints are fullscreen13:24
Wizzupcool @ tfp13:30
* Wizzup is excited13:34
freemangordonbut, I don;t know how to implement GL_OES_texture_border_clamp replacement13:34
freemangordonwithout that this is useless13:34
Wizzupwonder if newer x will work with lima better13:34
Wizzupright13:35
freemangordontrying to play video:13:47
freemangordonERROR: 0:1: Syntax error, GLSL Version 120 not supported13:47
freemangordonI think this is a dead-end13:47
bencohoh13:48
bencohwhat are you playing that video with?13:48
freemangordongst-launch13:48
bencohhmm13:48
bencohis glsl mandatory? that's odd13:48
bencohI bet it's for yuv/rgb conversion13:48
freemangordonthis is error from Xorg13:48
freemangordonmodesetting/glamor13:48
bencohah13:49
freemangordonyeah, I would guess the same (yuv/rgb)13:49
freemangordonI can try to force gst to do it in SW, but what is th epoint13:49
bencohI'd rather try disabling it in glamor, but yeah13:50
bencohor backport shader to older glsl13:50
freemangordonand where it should be done?13:50
freemangordonyeah, porting is ok13:50
bencohI mean, glsl shaders have been working for ... years, I doubt they just recently added something that enables yuv/rgb :)13:50
freemangordonbut doesn;t really make sense, given that PRV2d supports tens of types of surfaces in HW13:51
bencohwhat do you mean by that?13:51
freemangordonit is just that SGX 3D driver functionality is limited to ES213:51
freemangordonI mean that we can try to not use glamor for EXA13:52
bencohyeah13:52
bencohah, I see13:52
freemangordontoo many pieces are missing IIUC13:52
mighty17[m]<freemangordon> "but, I don;t know how to..." <- Is the bgra extension working?13:52
freemangordonyes13:52
freemangordonmighty17[m]: sec, I'll pastebin the patch13:53
freemangordonmighty17[m]: https://pastebin.com/XiYgriJ113:54
Wizzupnot sure if relevant https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/40413:54
bencohhuh, https://github.com/freedesktop/glamor/commit/b48fb31d70a16976b1cff60604e39ac042d1efac13:55
mighty17[m]freemangordon you're a savior13:55
bencohI wonder if this got dropped at some point13:55
freemangordonmighty17[m]: this alone is not enough13:55
freemangordonat least for modesetting/glamor13:56
mighty17[m]Can we try to patch gles instead of glamor?13:56
freemangordonyou need https://pastebin.com/ciGS2zJt too13:56
freemangordonmighty17[m]: patch what exactly?13:56
freemangordonuplift SGX driver to ES3.0?13:57
mighty17[m]freemangordon: Heh that's impossible13:58
freemangordonmhm13:58
mighty17[m]freemangordon: Like wrapper around libegl or smth13:58
mighty17[m]Else we'll have to patch all apps for support for the missing gles extensions13:59
freemangordonbencoh: the point is that SGX driver seems to perform very well for 3D stuff, but glamor is FUBAR on gles213:59
bencohfreemangordon: oh, I see14:00
bencohwell then there is really no point in keeping it14:00
freemangordonso, we can use modesetting without glamor but instead RE pvr_drv from old IMG DDKs14:00
freemangordonbut, I want to hear from uvos on that, I am not really experienced in that shit14:01
bencohwait, you really want to re the pvr driver?14:01
freemangordonit is ~50k and I have a version with debug symbols14:01
freemangordona week or so14:01
bencohoh14:01
bencohwell14:02
Wizzupthis also doens't seem too bad: $ wc -l ./src/sgx_exa.c14:04
Wizzup1176 ./src/sgx_exa.c14:04
freemangordonwhat is this?14:05
Wizzupxf86-video-pvrsgx driver14:05
Wizzupbased on fbdeb, but I assume that exa plugin arch didn't change much14:05
Wizzupfbdev*14:05
Wizzuphttps://github.com/maemo-leste/xf86-video-pvrsgx/blob/master/src/sgx_exa.c14:05
freemangordondoes it call into libpvr2d?14:06
Wizzuphttps://github.com/maemo-leste/xf86-video-pvrsgx/blob/master/src/sgx_pvr2d.c14:06
Wizzupmaybe it contains the pvr2d stuff, I can't really tell without looking at the .so14:07
freemangordonI think it does14:07
freemangordonyes, it does14:08
freemangordonit includes pvr2d.h14:09
freemangordonwhich I guess comes from SDK/DDK14:09
freemangordonactually, if we build that, it should work against the new sdk14:09
freemangordondid we try it?14:09
freemangordonanyway, going to a walk, ttyl14:10
mighty17[m]I'll try to add bgra patch to wayland (wlroots) ig, is that even possible14:22
Wizzupfreemangordon: we do not want to and cannot use most of xf86-video-pvrsgx14:41
Wizzupbut the exa part we can use in modesetting14:41
Wizzupfreemangordon: yeah pvrsgx_drv_la_LDFLAGS = -module -avoid-version -lm -lpvr2d14:43
Wizzupfreemangordon: most of the stuff in there I don't think we want/need, a lot of it is related to old omapfb and the really weird api with overlays14:54
bencohunused symbols can't hurt though14:55
Wizzupthe code is a mess14:55
Wizzupwe're trying to move away so we don't have to touch it again14:55
bencohah14:56
WizzupI don't think there's much of value there14:56
Wizzupapart from the exa over pvr2d stuff14:56
Wizzupfreemangordon: does 3d work if you disable glamor, or does it require glamor to be loaded for dri314:58
freemangordonI think glamor is required because of dri315:57
freemangordongoing to try without glamor15:57
freemangordonhmm, it works with out glamor15:59
bencohneat16:00
freemangordonbut, veeeery slow16:00
freemangordonGL_RENDERER:   llvmpipe (LLVM 7.0.1, 128 bits)16:01
freemangordon:)16:01
bencohhuhu16:01
freemangordonyes, because of dri316:01
freemangordonbut, I think I can compile mese for dri216:01
freemangordon*mesa16:01
freemangordonWizzup: yes, we don't want xf86-video-pvrsgx, that's why I want to RE pvr_drv16:05
freemangordonxf86-video-pvrsgx doesn't use 2D engine, iiuc16:05
freemangordonthis fbdev stuff we will want someday, because of XV stuff16:06
freemangordonofc it will need to be ported to drm16:06
Wizzupfreemangordon: what 2d engine is that18:03
freemangordonthe one on SGX18:08
freemangordon"Advanced and standard 2D operations (that is, vector graphics, BLTs (fixed blitters), ROPs (raster operating processors operations))"18:12
freemangordonWizzup: at least blit is in HW, IIUC18:16
freemangordonWizzup: look at pvr2d.h for type of ROPs it can do18:18
Wizzupok, so this is part of the gpu then18:18
freemangordonyeah18:18
freemangordonand this is the public SDK18:19
freemangordonit seems it can do more then that, at least by the looks of pvr_drv18:19
Wizzupok18:20
freemangordonmaybe it can do vektor stuff in HW18:20
freemangordon*vactor18:20
freemangordonaaah18:20
freemangordonvector :)18:21
WizzupI need to go for some time of the eve, but will hopefully finish the droid3 kexecboot tomorrow18:26
uvoshi20:13
uvosi am back around20:13
freemangordonhi20:13
uvoswhats the state on pvr-xorg20:13
freemangordonbad20:13
uvosalso any suggestions on what to do about the n900 wrt wayland20:14
freemangordonbasically nothing works ok20:14
freemangordonwhat do you mean?20:14
uvosdose someone have the patched blobs for me to use with a leste image?20:14
freemangordonsure20:14
uvosor shal i work to get wlan working on debian 1120:14
freemangordonI will provide blobs, including mesa20:14
freemangordonchromeos mesa that is20:14
uvosok20:14
freemangordonBTW, I had x11 working with that20:15
freemangordonbut we hit various bug in modesetting/glamor20:15
uvosyeah i saw that20:15
freemangordon*bugs20:15
freemangordonok20:15
uvoscool :)20:15
uvosso the x11 emulation path in mesa works on pvr20:15
freemangordonyeah20:15
freemangordonso, now the plan is - I am REing pvr_drv, in hope we will have working EXA20:16
freemangordonand then, somehow will implement PRESENT in it20:16
uvosok, taking the exa code from the old fbdev video-pvr driver is not an option?20:16
uvosnot for present ofc20:16
freemangordonWizzup: doesn;t like it20:17
freemangordonme neuther, it doesnt really do any 2d accel20:17
freemangordonIIUC20:17
uvosWizzup: can you comment on that?20:17
uvosok20:17
freemangordonwell, ofc I am not sure there will be any use of pvr_frv20:18
freemangordon*pvd_drv20:18
freemangordonwhat the?!?20:18
freemangordonPVR_DRV20:18
freemangordonbut at least we will have a better understanding on what is under the hood20:18
uvosok20:19
uvosWizzup:  with kexecboot on d320:20
uvosif bspw is just 2 mb on d3 i dont think its viable to use for kexecboot20:20
uvosjust put it on cdrom20:20
uvosandroid dosent need that20:21
uvoscdrom is pretty big20:21
uvos212mb on xt89420:23
uvoshmm21:14
uvoshaving touble compileing a hildon application21:14
uvoshildon-gtk.h includes maemo-gtk-compat.h21:14
uvosmaemo-gtk-compat.h dosent appear to exist on my system21:14
uvosat least acording to find21:15
uvosoh i need to define MAEMO_GTK21:17
uvoscan we drop this21:17
uvossince maemo-gtk-compat.h appears gohne21:17
freemangordon[ 41324.198] (II) pvr: Driver for PowerVR chipsets: PowerVR SGX21:25
freemangordon[ 41324.308] (EE) ERROR: Couldn't get PVR Services status21:25
uvosfreemangordon: context?21:26
freemangordonREed driver21:27
freemangordonmost of it is still stubs though21:27
uvosneat21:28
Wizzupfreemangordon: uvos: hi, I don't think I said I don't like the exa code for xf86-video-pvrsgx, but the fbdev code I don't like21:52
WizzupI cannot comment on whether it actually uses the 2d unit/api/whatever, that requires some more examination at leats from me21:52
Wizzupuvos: I was able to load kexecboot in there I think21:52
Wizzupit seems to fit at least21:52
uvoswell even if it dosent use it execpt to blit21:52
uvosits still usefullt21:53
Wizzupyeah21:53
uvos(as we would start with pvr2d just doing blits too)21:53
uvosWizzup: fastboot dosent check sizes if you flash:raw21:53
Wizzupuvos: re: d3, I think I am almost there, the only thing that is missing is mmcblk1 not showing up21:53
Wizzupuvos: ls -ls seems to indicate it matches21:53
Wizzupafaik21:54
uvosWizzup: omap4 has 3 mmc controllers iirc21:54
uvosWizzup: might be on a different one than on d4/bionic21:54
uvosWizzup: btw im massively refacotring sphone rn21:56
uvosWizzup: to make it modular21:56
uvosdont work on it untill that drops21:56
Wizzupuvos: no because it works on 5.1121:58
Wizzupit shows up as mmcblk221:58
uvosoh ok21:58
Wizzupso I could build 5.11 statically instead, I suppose21:58
Wizzupjust for the proof of concept21:58
Wizzupbut there are some traces in 5.14.9, so maybe that is the problem21:58
uvosi would kinda prefer a lts kernel for the bootloader21:58
uvosso 5.1021:58
uvosbut yeah fixing 5.14+ is good in any case21:59
uvosdose mmc work on d4 on 5.14? i dont think i have checked recently21:59
uvosi wouldent notice21:59
Wizzupnot sure, haven't checked either22:00
uvossec ill boot the sway d422:00
Wizzupright, and I mean internal mmc, but you got that22:00
uvosworks fine on d422:01
uvosits mmcblk122:01
uvos(5.15-rc2)22:02
uvosmaybe is broken in 5.14 only22:02
uvoshad a 5.14 kernel on it too22:04
uvosworks just the same22:04
uvosits d3 specific22:04
uvosor there is patch about this that i pulled in via tmlids -pending22:05
uvosinto my tree22:05
uvostmlind: ^^^22:05
uvosWizzup: your d3 kernel is vanilla mainline right?22:07
Wizzupyes22:10
Wizzupjust the tar from kernel.org22:10

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