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

freemangordonWizzup: this is how it should be, no?08:13
freemangordonI don;t see any problem being able to unlock via power key only08:13
freemangordontmlind: ping08:50
Wizzupfreemangordon: well, I think the vm maybe should just not lock, as it looks like the device is hanging for new people10:56
freemangordonI don;t think we shall treat VM in a special way10:59
freemangordonbut, no strong preference either10:59
Wizzupwe could just disable the autolock in the vm image builder, for example11:03
freemangordonok11:04
freemangordonmakes sense11:04
bencohsounds like a good idea11:06
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/579 (disable autolock in image builder for VM images)11:07
lelMerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/579 (disable autolock in image builder for VM images)11:07
freemangordonhmm, I think I know why kernel rebuilds every time11:13
freemangordondamn CROSS_COMPILE should be env var it seems, not make parameter11:13
freemangordonlike 'export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-'11:13
bencohyou mean make CROSS_COMPILE=whatever- doesn't work?11:14
bencohfunny, I never actually tried I think11:14
WizzupI always have them as env var11:14
bencohsame11:14
freemangordonit works, but make ARCH=arm omap2plus_defconfig seems to use HOST gcc version string11:14
Wizzupha11:14
freemangordonand ofc I do not pass CROSS_COMPILE for make defconfig11:15
Wizzupah, you should11:15
freemangordonyeah, looks like :)11:15
WizzupI do this:11:15
Wizzupmake -j16 ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- omap2plus_defconfig11:15
WizzupARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make -j1611:15
freemangordonbut, with env var EVERYBODY is aware of the situation11:15
WizzupINSTALL_MOD_PATH=`pwd`/output ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make -j16 modules_install11:15
freemangordonyeah, yeah11:15
Wizzup:)11:15
Wizzuplet me know if I can help facilitate the bisect somehow11:16
freemangordonI am not sure how to deal with that11:16
freemangordongit diff tmlind/droid4-pending-pvr-omapdrm-v5.9..tmlind/droid4-pending-pvr-omapdrm-v5.15 drivers/gpu/drm/pvrsgx/ results in differences that cannot result in a device hang (makefiles changes and more platforms supported)11:18
freemangordongit diff tmlind/droid4-pending-pvr-omapdrm-v5.9..tmlind/droid4-pending-pvr-omapdrm-v5.10 drivers/gpu/drm/omapdrm results in only one suspicious change I am going do test reverted now11:18
freemangordonif it is not that, I have no idea how to find what breaks it11:19
freemangordonthere are lots of changes in drm though11:19
Wizzupmaybe there is a slight chance that something is printed on serial when it hangs11:22
freemangordonok, you can try it11:23
WizzupI'll need to set up a sd card for it, I don't have any of that set up (yet)11:23
freemangordonhmm, why?11:23
freemangordonyou just need one directory I will share11:24
Wizzupok11:25
freemangordonWizzup: http://46.249.74.23/leste/sgx.tar.gz11:26
freemangordonextract to /root11:27
freemangordonand then export LD_LIBRARY_PATH=/root/sgx11:27
freemangordonpvrsrvctl --start --no-module11:27
freemangordonkmscube -D /dev/dri/card111:28
Wizzupdo you probe the module manually? I assume so?11:28
freemangordonno11:28
Wizzupok11:28
freemangordonor kmscube -D /dev/dri/card011:28
freemangordonnot sure how they are numbered11:28
Wizzupbtw I think there is /dev/dri/by-path/ if you want to prevent that11:28
Wizzup(but yeah)11:28
freemangordoncould be11:28
Wizzupok, I will wait for your one revert and after that I will do the test11:29
freemangordonok11:29
Wizzup(in any case it will be good to have this set up)11:29
WizzupI assume it's similar to the d4)11:29
freemangordonyes11:29
freemangordonthe only difference is blobs11:29
freemangordonon d4 are those for d4 :)11:29
Wizzupah11:30
freemangordonWizzup: I don't have high hopes though11:32
freemangordonyeah, it didn't boot at all11:33
freemangordonWizzup: ^^^11:34
Wizzupwhat change did you revert?11:35
Wizzupor shall I try the kernel we were on yesterday11:35
Wizzup5.15 with one revert to make it boot11:35
freemangordonyes11:35
freemangordon5.15 with one revert11:35
freemangordonoh, I didn;t revert that properly11:38
freemangordonlemme try again11:38
freemangordoncannot revrt :(11:39
Wizzupwhat commit is it11:41
freemangordoncouple of it seems11:41
Wizzupok11:41
freemangordonWizzup: ok, lets do it like that11:41
Wizzupfreemangordon: one thing, did you try to disable pm for pvr to see if that causes problems on the n900 somehow?11:41
freemangordonit is there on 5.9 too11:42
Wizzupfreemangordon: like what exactly?11:42
Wizzupok11:42
freemangordoncould you build 5.10 from tmlind's tree with 25ec90d0eb7aa5d8c5edc6e12adc901204c17616 cherry-picked11:42
freemangordonand see why it does not boot11:42
freemangordonit will be less easier for me if I have 5.10 booting instead of 5.1511:42
freemangordon*more easy11:42
Wizzupok11:43
freemangordonthanks11:43
Wizzupso droid4-pending-pvr-omapdrm-v5.10 with omap2plus_defconfig ?11:44
Wizzup+ that commit11:44
freemangordonyes11:44
freemangordonhmm, maybe it is the same commit that shall be reverted11:44
Wizzupwhat branch contains 25ec90d0eb7aa5d8c5edc6e12adc901204c17616 ? I don't want 'git fetch' all branches11:44
Wizzup5.9? 5.11?11:45
freemangordonno idea11:45
freemangordonhow to verify?11:45
freemangordonI fetched all branches11:46
freemangordon5.15 for sure has it though11:46
Wizzuphm...11:46
Wizzupit's also not here: https://github.com/openpvrsgx-devgroup/linux_openpvrsgx/commit/25ec90d0eb7aa5d8c5edc6e12adc901204c1761611:49
Wizzupis this a revert you did or something?11:49
freemangordonno, just a second11:49
freemangordon"ARM: dts: Fix swapped mmc order for omap3"11:49
freemangordondo you have this commit ^^^11:50
Wizzupit is a1ebdb3741993f853865d1bd8f77881916ad53a7 for me11:51
freemangordonhmm11:51
freemangordonweird11:51
Wizzupso:11:51
Wizzuporigin/droid4-pending-pvr-omapdrm-v5.10 + a1ebdb3741993f853865d1bd8f77881916ad53a7 (Fix swapped mmc order), build, and try to init11:51
freemangordonand try to boot11:51
Wizzupdo you expect that to hang or not to hang?11:51
freemangordonthis one hangs for me11:51
freemangordonbut I want it to boot, to be able to test11:52
Wizzupok11:52
Wizzupbuilding now11:52
freemangordonin 5.10 that it, which is closer to 5.9 that 5.15, so less things to try, hopefully11:52
Wizzupbtw, my head for origin/droid4-pending-pvr-omapdrm-v5.10 is a20e7866242dde42bb5692c2611f862385c395b511:53
Wizzupdo you also have that11:53
freemangordonyes11:53
Wizzupok11:54
Wizzupand you don't have a1ebdb3741993f853865d1bd8f77881916ad53a7 ?11:54
freemangordonI have both , but cherry-picked 25ec90d0eb7aa5d8c5edc6e12adc901204c1761611:56
freemangordonkeep in mind I have linux stable tree fetched as well11:56
Wizzupok11:56
freemangordonttyl, lunch11:57
Wizzupstops here and resets:12:02
Wizzuphttps://dpaste.com/AEKCW3V2S12:03
Wizzupbuilding in watchdog12:04
freemangordonhmm, ok12:04
freemangordonthat should be it12:05
Wizzupok12:05
Wizzupgetting trace12:05
Wizzuphttps://dpaste.com/AH3YBY6BY.txt12:05
Wizzupdoes it need ec76c2eea903947202098090bbe07a739b5246e9 ?12:07
Wizzuphttps://github.com/maemo-leste/droid4-linux/commit/ec76c2eea903947202098090bbe07a739b5246e912:07
freemangordonmaybe12:07
freemangordonalso, I think we need to revert off mode commit12:08
freemangordonnot that I remember which one was it12:08
WizzupI think this commit I just linked is absolutely necessary12:08
Wizzupshall I add it and rebuild?12:08
Wizzupdoing so now12:09
freemangordonyes please12:11
Wizzupbtw, running 'git log ec76c2eea903947202098090bbe07a739b5246e9' shows a bunch of other fixes surrounding that one12:14
Wizzuprebuilding now12:14
Wizzupah, was wondering why it didn't work but I forgot the usual cat + mkimage12:15
freemangordon:)12:16
Wizzupalready doing a clean build *sigh*12:16
Wizzupflashbacks from my old job where I'd forget that kind of stuff constantly :(12:16
freemangordonin the meanwhile I will try letux-pvrsrvkm-5.15-rc112:19
freemangordonto see if it is tmlind's fixes that break it12:20
Wizzupok12:21
Wizzupso once I cherry pick that commit I'm back to the initial state where it's stuck after this and then resets:12:38
Wizzup[    2.989746] Registering SWP/SWPB emulation handler12:38
Wizzupodd12:38
freemangordonyeah12:38
freemangordonthe fuck!!!12:38
freemangordonletux-pvrsrvkm-5.15-rc1 does not boot12:38
tmlindfreemangordon: hmm so what did i break now? :)12:40
tmlindhave not read the logs yet, but you trying to update pvr hopefully?12:40
freemangordontmlind: I am not sure it is you12:40
WizzupWe're trying to debug why the n900 hangs for pvr since 5.10+12:41
freemangordonbut I hope you can help me with that one, so:12:41
freemangordontmlind: 33bc438d6d8883d77e37b369fe5144ee9b01fad8 makes it unbootable on n90012:41
freemangordonbut, the initial issue is that starting with 5.10, kmscube renders one frame and device freezes12:42
freemangordonI did git diff tmlind/droid4-pending-pvr-omapdrm-v5.9..tmlind/droid4-pending-pvr-omapdrm-v5.10 drivers/gpu/drm/pvrsgx and git diff tmlind/droid4-pending-pvr-omapdrm-v5.9..tmlind/droid4-pending-pvr-omapdrm-v5.10 drivers/gpu/drm/omapdrm but I see nothing suspicios12:43
freemangordonso, the problem must be somewhere else, but I have no idea what to do12:43
freemangordontmlind: ^^^12:44
tmlindfreemangordon: i'd try with v5.15 pvr branch, then revert 33bc438d6d8883d77e37b369fe5144ee9b01fad8 or whatever that commit might be there12:44
freemangordontmlind: already did - it boots, but as I said, device hangs after the first frame is rendered12:45
tmlindok12:45
freemangordonthe same was on 5.10 (the hang)12:45
freemangordonon 5.0 it was working12:45
freemangordon*5.912:46
tmlindand pvr clock is configured in the dts for omap3?12:46
freemangordonshould be12:46
freemangordonit is your tree I am using :)12:46
tmlindyeah ok12:46
tmlindso what commands to reproduce on n900?12:47
tmlindjust start kmscube or something?12:47
freemangordon(12,26,53) freemangordon: Wizzup: http://46.249.74.23/leste/sgx.tar.gz12:47
freemangordon(12,27,06) freemangordon: extract to /root12:47
freemangordon(12,27,28) freemangordon: and then export LD_LIBRARY_PATH=/root/sgx12:47
freemangordon(12,27,48) freemangordon: pvrsrvctl --start --no-module12:47
freemangordon(12,28,10) freemangordon: kmscube -D /dev/dri/card112:47
freemangordonyes, kmscube12:48
tmlindok12:48
freemangordonbut you need 33bc438d6d8883d77e37b369fe5144ee9b01fad8 reverted, otherwise omapdss won't probe properly12:48
tmlindabout to catch a train here in about an hour, will read through the logs on train12:48
freemangordonok12:48
freemangordonnot that there is something useful there though12:48
tmlindyeah weird, folks are using the pvr patches on many different socs12:49
freemangordonmhm12:49
tmlindah on omap4 there's the tiler while omap3 does not have it, so 33bc438d6d8883d77e37b369fe5144ee9b01fad8 might need some extra checks12:50
tmlindalso folks using the pvr tree on pyra have tiler12:50
tmlindbeaglebone users on am335x don't have the tiler i think12:50
tmlindanyways, bbl12:50
freemangordonok12:50
freemangordonWizzup: so, we cannot make 5.10 booting, right?12:57
freemangordonif that's the case, maybe we shall try your initial suggestion12:57
freemangordon(5.15 and see if there is anything on the serial)12:58
freemangordonalsi, I thing there are some debug messages to be printed12:58
freemangordonI mean - you can enable additional messages from config12:59
freemangordonnever tried it though12:59
freemangordontmlind: also, are you sure there is no typo here: https://github.com/tmlind/linux_openpvrsgx/commit/33bc438d6d8883d77e37b369fe5144ee9b01fad8#diff-9b3c6ba4dcbd05c07bafe254dd7bc5fd1ac42fede2f7d43aa8250a20c31eecb3L72713:03
freemangordonI see you inverted the condition https://github.com/tmlind/linux_openpvrsgx/commit/33bc438d6d8883d77e37b369fe5144ee9b01fad8#diff-9b3c6ba4dcbd05c07bafe254dd7bc5fd1ac42fede2f7d43aa8250a20c31eecb3L70713:03
Wizzupok, I can do that (5.15 + serial)13:16
Wizzupdo you know what debug options are to be enabled?13:16
WizzupI guess there is the slub stuff, then drm debug, and pvr/sgx debug?13:17
freemangordonthere is pvr config option13:18
freemangordonno idea how useful it is13:18
Wizzupright, drm debug is toggleable at runtime13:25
Wizzupfreemangordon: heh compiling with the debug on results in compiler errors13:33
freemangordon:(13:34
freemangordondisable it13:34
Wizzupyeah13:35
siceloi recall mighty had issues with that in the past too :-)13:45
Wizzuphurm https://dpaste.com/9XQRMYVTE13:54
Wizzuplet me reboot and try again13:54
Wizzupyeah that seemed random13:54
Wizzupgone on reboot13:55
freemangordonin the meanwhile I will try a different approach - boot 5.9 and merge 5.1-rc1, to see if it will break13:56
freemangordonthen rc2 etc13:56
freemangordon5.10-rc1 ofc13:56
Wizzupfreemangordon: regarding your sgx instructions13:57
Wizzuproot@devuan-n900:~/sgx# ./pvrsrvctl --start --no-module13:57
Wizzup./pvrsrvctl: error while loading shared libraries: libsrv_init.so.1: cannot open shared object file: No such file or directory13:57
WizzupI think I did do the export13:57
Wizzupoh no...13:57
freemangordon:)13:57
Wizzup[  216.640441] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]13:58
freemangordongood13:58
freemangordonenable drm debug13:58
Wizzupshould kmscube use omap drm or the gpu13:58
Wizzup(I guess the gpu)13:58
freemangordonmhm13:58
Wizzuproot@devuan-n900:~/sgx# ls /dev/dri/by-path/13:58
Wizzupplatform-50000000.gpu-card    platform-omapdrm.0-card13:58
Wizzupplatform-50000000.gpu-render  platform-omapdrm.0-render13:58
Wizzupso platform-50000000.gpu-render13:58
Wizzupwhere does kmscube come from?13:59
freemangordonkmscube?14:00
Wizzupyup14:00
Wizzupthe binary14:00
freemangordonlike apt-get install kmscube14:00
Wizzupk14:00
freemangordonyes, package name is the same as the binary14:00
freemangordonpray for 5.9 to boot14:02
freemangordon:)14:02
* sicelo activates black magic14:03
freemangordondidn;t help :(14:04
freemangordonI am missing more commits it seems14:04
WizzupI emailed sre about the cnc files14:05
Wizzuplet's see14:05
freemangordonyup, saw it14:06
Wizzup# kmscube -D /dev/dri/by-path/platform-50000000.gpu-render14:06
Wizzupkmscube: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /root/sgx/libgbm.so.1)14:06
Wizzupkmscube: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /root/sgx/libEGL.so.1)14:06
Wizzupdo you have some other libc installed?14:06
freemangordonhmm14:06
freemangordonlemme check14:07
Wizzup# /lib/arm-linux-gnueabihf/libc.so.6  | grep 'release version'14:07
WizzupGNU C Library (Debian GLIBC 2.28-10) stable release version 2.28.14:07
Wizzupdoes this require the weakening thing?14:08
Wizzupfrom https://github.com/maemo-leste/bugtracker/issues/524#issuecomment-88137308014:08
freemangordonit seems I have libc-2.31.so14:08
freemangordonI have the needed packages, but I guess you don;t want to break that one14:09
Wizzupwell with the weaken script run on it it does start14:10
freemangordongreat14:10
freemangordondoes it work?14:10
WizzupI don't see anything on the display, but it doesn't hang14:11
freemangordon:D14:11
Wizzuphang on14:11
Wizzup# kmscube -D /dev/dri/by-path/platform-50000000.gpu-card14:11
Wizzupkmscube: /lib/arm-linux-gnueabihf/libm.so.6: weak version `GLIBC_2.29' not found (required by /root/sgx/libgbm.so.1)14:11
Wizzupkmscube: /lib/arm-linux-gnueabihf/libm.so.6: weak version `GLIBC_2.29' not found (required by /root/sgx/libEGL.so.1)14:11
WizzupdrmModeGetResources failed: Operation not supported14:11
Wizzupfailed to initialize legacy DRM14:11
freemangordontry the other card14:12
Wizzupsegfaults after a bit, don't see anything14:12
freemangordonI guess you should LD_PRELOAD14:12
WizzupLD_PRELOAD what?14:12
freemangordonnot sure14:13
freemangordonok, first try with the other card14:13
Wizzupthat is the segfault14:13
freemangordonah14:13
Wizzup[ 1084.468292] [drm:omap_irq_handler [omapdrm]] lcd: apply done14:13
Wizzup[ 1084.484771] omapdrm omapdrm.0: [drm:drm_update_vblank_count [drm]] updating vblank count on crtc 0: current=1926, diff=1, hw=0 hw_last=014:13
Wizzup[ 1084.485748] [drm:omap_irq_handler [omapdrm]] lcd: apply done14:13
Wizzup[ 1084.490905] omapdrm omapdrm.0: [drm:vblank_disable_fn [drm]] disabling vblank on crtc 014:13
Wizzup[ 1084.491760] omapdrm omapdrm.0: [drm:drm_update_vblank_count [drm]] updating vblank count on crtc 0: current=1927, diff=0, hw=0 hw_last=014:13
Wizzup[ 1084.492523] [drm:omap_irq_disable_vblank [omapdrm]] dev=943cbf4f, crtc=014:13
Wizzup[ 1084.493041] [drm:omap_irq_update [omapdrm]] irqmask=0000d64014:13
WizzupSegmentation fault14:13
freemangordonwell, you can;t recreate the issue because of glibc14:14
freemangordonI can;t recall what needs to be preloaded14:14
freemangordonhmm, I am sure I had a script to weaken dependencies around14:16
freemangordonaoont find it14:16
freemangordon*cannot14:16
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/524#issuecomment-88137308014:17
WizzupI ran it on libEGL and libgbm and it didn't help14:17
freemangordonthey are symlinks14:17
freemangordonyou should run on the real libs, iirc14:17
Wizzupon .so.114:17
freemangordonon libEGL.so.1.0.014:18
Wizzupsame thing14:18
freemangordonmaybe preload libm14:18
Wizzupwhich libm?14:19
freemangordonthe one you have14:19
Wizzupsystem libm?14:19
freemangordon/lib/arm-linux-gnueabihf/libm.so.614:19
freemangordonyes14:19
WizzupI don't understand why14:20
freemangordontry it14:20
Wizzupbut it doesn't help it seems14:20
freemangordonok14:20
Wizzup(also: omg it's so annoying that bash printing to serial is this buggy)14:20
Wizzupjust remembered I have ssh14:20
Wizzupheh14:20
Wizzupdoes the egl shim need to preloaded?14:21
freemangordonno14:21
freemangordonbut you shouldn;t have problems14:21
freemangordonthat's weird14:21
freemangordonwhat does ldd says about it?14:22
Wizzupwhat is it14:22
freemangordonldd  libEGL.so.1.0.014:22
Wizzuphttps://dpaste.com/4BP467HZN14:22
Wizzupit doesn't seem to use the libgbm there14:23
freemangordonmhm14:23
Wizzupit's because I am on ssh14:24
Wizzuphttps://dpaste.com/9WQ8SSW3T14:24
freemangordonand LD_PRELOAD=libm.so.6 ldd  libEGL.so.1.0.014:24
Wizzuphttps://dpaste.com/A4FC9LQXP14:24
freemangordonok14:25
freemangordonsec14:25
freemangordonofc my d4 battery is flat14:26
Wizzuphehe14:26
WizzupI can set up remote ssh if it makes sense14:27
freemangordonyes, please14:29
_uvos_with regular ti blobs you have to prelaod pvr_dri.so14:30
_uvos_with the mesa path you dont have to do anything just use my repo14:30
Wizzuphi uvos14:31
Wizzupthe sgx in fmg's tar does not contain pvr_dri.so14:32
freemangordonhmm14:32
freemangordonwait14:32
Wizzupgoing to make a coffee :)(14:33
Wizzup:) *14:33
freemangordonyeah, my bad14:36
freemangordonok, gets better14:42
freemangordonWizzup: https://pastebin.com/2W5dmCmF14:43
Wizzupjust paniced14:44
freemangordondid it?14:44
freemangordonover the serial?14:44
freemangordonyeeeeaaaah!14:44
freemangordondo you have cube on the screen?14:44
Wizzuphttps://wizzup.org/panic.txt14:45
Wizzupno cube as far as I can see14:45
WizzupI was doing some other coding and just saw the n900 display do something14:45
Wizzupthis is with dmesg -w btw, the actual console was still set to tty114:46
Wizzup(pali's u-boot sets that, I need to change that)14:46
Wizzupfreemangordon: the paste you sent me says it cannot init the shader compiler, so I am not sure if I should expect the cube?14:47
freemangordonI fixed that14:48
freemangordonthat's why it panicked14:48
Wizzupah14:48
freemangordonthis https://pastebin.com/1jK6DgaH14:48
freemangordonmaybe if you run it without drm debug you will see the cube14:49
freemangordonI guess we need pm_runtime_get_sync somewhere14:50
freemangordonbut lets wait for tmlind14:51
freemangordonWizzup: maybe retry with drm debug disabled14:52
Wizzupok, I can reboot, retry and see if I see something14:56
Wizzupheh there's definitely a race when booting14:59
Wizzuptmlind: probably unrelated to pvr, seeing this *sometimes* when booting omap2plus_defconfig on 5.15 on n900 https://wizzup.org/pm-panic.txt14:59
Wizzupfreemangordon: apart from that command in the pastebin, what else do I need to run15:03
Wizzupoh wait15:04
Wizzupfreemangordon: I get this still:15:05
WizzupPVR:(Error): LoadCompilerModule: Couldn't load library libglslcompiler.so [0, ]15:05
Wizzupvertex shader compilation failed!:15:05
Wizzupfailed to initialize EGL15:05
Wizzupdid you add it so ld library path?15:05
freemangordonsure15:12
freemangordonyou need export LD_LIBRARY_PATH=/root/sgx15:12
WizzupI did that15:12
Wizzupanything else?15:12
Wizzupdoes the libglsl compiler need to be weaked?15:13
freemangordonI already weakened it15:13
Wizzupit is possible that whatever you did was not saved because of the immediate panic15:13
Wizzupyeah so that was lost probably15:13
freemangordonah, ok15:13
freemangordonI put anothe script in sgx dir15:13
Wizzupyeah15:14
WizzupI see a cube + panic now15:14
freemangordonwhich it seems is the same as what you use, but still15:14
freemangordonok, great15:14
freemangordonsame panic? external abort?15:14
Wizzuphttps://wizzup.org/panic-with-cube.txt15:14
freemangordonI guess it needs some PM functions15:15
Wizzupyeah, maybe this is a moment to wait for tmlind :p15:16
freemangordon:nod:15:16
WizzupI need to do some things in the house15:16
freemangordonme too15:16
tmlindyeah that looks like some pm_runtime issue15:36
freemangordontmlind: any hint how to fix it? is it possible to disable PM in runtime to test if it will still fail?15:40
tmlindfreemangordon: yeah let me tell you what to comment out, a bit bad connection right now, few mins15:41
freemangordonok15:41
tmlindfreemangordon: you can disable runtime pm via sysfs by finding the target module in /sys and echo on > power/control, auto re-enables runtime pm15:45
freemangordonok, lemme try15:45
tmlindecho on > /sys/devices/platform/68000000.ocp/50000014.target-module/power                                                                               │[~] $15:55
freemangordondoing that resulted in freeze without cube15:55
tmlindsorry power/control i mean15:56
freemangordonroot@devuan-n900:/sys/module/pvrsrvkm_omap3_sgx530_121/drivers/platform:pvrsrvkm/50000000.gpu/power# echo on > control15:56
freemangordon^^^ is not correct?15:56
tmlindboth should work, the target module controls the resources, gpu module controls internal gates only15:57
freemangordontmlind: shall I try /sys/devices/platform/68000000.ocp/50000014.target-module/power/control or what I already tried is ok?15:57
tmlindfreemangordon: well sounds like it already removed the runtime pm issue?15:57
freemangordonok, what I tried resulted in device hang, with no cube15:58
Wizzuptrying as well to see if I get a panic15:58
Wizzupthe write itself does nothing bad for me at least15:59
Wizzupyeah I think I see the same as fmg, similar panic, but no first frame is rendered16:00
tmlindyeah i see the runtime pm issue too on n90016:06
Wizzupmaybe it is not related to powervr but gets triggered and it's similar to the random boot failure I se16:06
tmlinddo did it work earlier with the same dts config or just with older ddk?16:13
WizzupI think freemangordon said it worked on 5.9 with the same ddk16:14
tmlindweird16:15
Wizzupbut we're having trouble bringing 5.10 to live/boot at all, so the bisect is harder16:16
tmlindheh16:16
Wizzupfreemangordon: maybe you can (re)confirm that the ddk on 5.9 does work16:17
bencohdo you have earlycon / a serial console?16:17
Wizzupyes, but there's many things to dig through16:18
Wizzupsee earlier log today16:18
freemangordonyes, I confirm16:21
freemangordon5.9 was fine16:21
freemangordonI even posetd benchmarks16:21
freemangordon*posted16:21
freemangordoncould it be that off mode that was enabled?16:22
tmlindseems like this should be really tracked down with git bisect.. does v5.10.y boot better with all the stable fixes?16:22
freemangordonI can try16:22
tmlindok16:22
freemangordonbut, how do you think I shall bisect?16:22
tmlindwell you're have to carry the a patch with you through the bisect, there's some option for carrying a commit16:23
tmlindassuming v5.10.y has some fix that makes v5.10 usable for bisect that is16:23
freemangordonI don;t know which patch I need for 5.10 to boot16:23
freemangordonback then I was able to boot 5.10, but today I failed16:23
tmlindright but if v5.10.y boots, there's some patch there between v5.10..v5.10.y16:24
freemangordonoh, bisect to find the one I need first16:24
freemangordonright16:24
freemangordonthis will take ages16:24
tmlindyeh, then carry it..16:24
freemangordonyeah16:24
freemangordonok16:24
tmlindseems like two bisects are needed, one to boot, then another hopefully much easier one to track down the pvr issue16:25
freemangordonyeah16:25
freemangordonok16:25
tmlindat some point we had to change the pvr build options for memory allocation, i think that was never properly resolved16:25
freemangordonmhm16:26
freemangordonif I can boot 5.10 at all16:26
tmlindneed to transit now, bbl16:26
freemangordonbye16:26
freemangordonWizzup: ok, what now16:30
freemangordonI mean - I am not sure I'll be able to boot 5.9 without serial16:30
Wizzup5.9 or 5.1016:31
freemangordonI think we need 5.9 and then bisect to 5.1016:31
freemangordonlemme try first to see if vanilla 5.9 boots on n90016:31
freemangordon5.9.y that is16:32
Wizzupit might also be good to see if 5.10 stable boots16:32
freemangordonmhm16:32
Wizzupthen we can rebase pvr on top of stable and bisect that way16:32
freemangordonright16:32
freemangordonhmm, no16:32
freemangordonit is not a pvr change I think16:32
Wizzupwe will figure that out soon enough then, at least it'll boot16:38
Wizzupbut yeah, maybe16:38
Wizzuptmlind said they did change stuff for memory allocation, so it could be that16:38
freemangordonI know what he means, it is not that, it was a change in 3.816:39
Wizzup5.8?16:39
freemangordonyeah16:40
freemangordon5.816:40
Wizzupok16:40
freemangordonmaybe we can split the work16:40
freemangordonI can bisect 5.9 to see what commits are needed for it to boot16:41
freemangordonyou can do the same for 5.1016:41
Wizzupsure, but I won't have a lot more time today16:41
Wizzupso you're asking me to figure out what patches from 5.10.y are required for plain 5.10 to boot?16:42
freemangordonyeah, but if you don't have time, I'll try to figure it out16:43
WizzupI have a visitor for the rest of the day soon16:45
WizzupI can continue tomorrow16:45
freemangordonok16:45
freemangordon5.9.16 boots, at least16:49
Wizzupmaybe we can confirm that that + ddk 1.17 works for the cube?16:52
freemangordonthis is what I am doing16:53
freemangordonjust merged tony's 5.9 droid branch16:54
mighty17[m]do we have a workaround for GL_EXT_read_format_bgra on series5 (sgx5) gpus?17:17
tmlindmighty17[m]: have not hit that one so far, what happens?18:29
tmlindfreemangordon: plain v5.10 boots on n900 for me, maybe the mmc devices moving around again?18:34
freemangordon5.9.y boots for me, but not with droid4-pending-pvr-omapdrm-v5.9 merged18:36
freemangordonwill revert "Flush what framebuffer wants flushed even if using page faults" and will retry18:40
tmlindok18:44
mighty17[m]<tmlind> "mighty17: have not hit that..." <- comes in phosh for me (everything is fine just this comes up in log)18:44
mighty17[m]tmlind: do we have a fix for missing GL_OES_texture_border_clamp as well?18:44
tmlindmighty17[m]: the border clamp yeah, maybe the IMG_read_format workaround needs to be extended also for GL_EXT_read_format_bgra?18:46
mighty17[m]we can try that, but funny part is ` render/gles2: handle IMG_read_format like EXT_read_format_bgra ` we already do it?18:47
tmlindoh ok18:47
mighty17[m]send me the border clamp patch pls :D18:47
tmlindoh we only have the "render/gles2: Properly handle GL_EXT_unpack_subimage", no idea what else you might need there18:48
mighty17[m]so nothing for GL_OES_texture_border_clamp?18:50
tmlinddon't think so, but see "render/wlr_texture: clamp texture coordinates to edge by default"18:50
mighty17[m]this https://github.com/swaywm/wlroots/pull/2476 ?18:52
mighty17[m]well GL_OES_texture_border_clamp happens in plamo for me18:53
mighty17[m]plamo doesnt use wlroots it uses kwin i think?18:53
tmlindno idea.. anyways the earlier patch from jonathan bakker had that included i think but that turned out to be a more generic problem18:54
mighty17[m]indeed18:57
mighty17[m]either i have to package 1.9 for xwayland or give up18:57
sicelo1.9 being?18:58
mighty17[m]ddk18:58
sicelothat's deprecated. newer kernels don't support it.18:58
mighty17[m]tmlind's newer kernel dropped it, but openpvrsgx should support it?19:00
mighty17[m]atleast 5.15-rc119:00
tmlindi would not bother with that old crap, it never worked properly afaik19:02
tmlindi think xwayland is still broken for gles2 acceleration, ddk-1.9 won't help with that19:04
freemangordondoes not boot, but, in a different way :(19:33
freemangordonoh, but at least I have dmesg log19:36
freemangordonhmm:19:37
freemangordonudevd[455]: could not open moddep file '/lib/modules/5.9.16-00404-g43c25c2037ae/modules.dep.bin'19:37
mighty17[m]<tmlind> "i think xwayland is still broken..." <- oh well, is 1.19 the magical solution then? :P19:39
freemangordonI guess I should have waited for FS sync to complete19:39
tmlindheh19:42
freemangordonfinally 17.217437] [drm] Initialized pvr 1.17.4948957 20110701 for 50000000.gpu on minor 020:21
freemangordontmlind: "PVR_K:(Error): PollForValueKM: Timeout. Expected 0x1 but found 0x0 (mask 0x1)." needs vmalloc patch, right?20:22
tmlindi guess yeah20:22
freemangordonI was able to boot letux-pvrsrvkm-5.9-rc2 with 5.9.y on top20:24
freemangordondroid4-pending-pvr-omapdrm-v5.9 with 5.9.y merged does not boot20:24
freemangordonbut then I hit the above error when doing pvrsrvctl20:25
tmlindok so does letux-pvrsrvkm-5.9-rc2 with 5.9.y work for kmscube?20:26
freemangordonand with eda22727a5575fe449a479539360282789bbc9fe cherry-picked kmscube works20:26
tmlindhmm sorry what's the eda22 commit, not seeing that one20:27
freemangordonUse PVR_LINUX_MEM_AREA_USE_VMAP to load driver properly20:28
tmlindok20:28
freemangordonno idea why you don;t have that sha20:28
tmlindnot sure sounds like i should20:29
freemangordonmhm, it is signed off by you :)20:29
tmlindyeah and i remember chasing that one down :)20:29
freemangordonmhm20:29
freemangordonanyway, we have something that works on n90020:30
freemangordonnow what?20:30
freemangordontry to "downgrade" 5.9.y to 5.9?20:31
tmlindhow about try to merge letux-pvrsrvkm-5.9-rc2 and that vmap patch on v5.10.y?20:31
freemangordonhmm, ok, lets try20:31
freemangordonAutomatic merge failed; fix conflicts and then commit the result. :(20:34
freemangordonCONFLICT (content): Merge conflict in Documentation/devicetree/bindings/vendor-prefixes.yaml20:34
tmlindsounds like you can resolve that one whichever way :)20:38
freemangordonyeah20:38
freemangordontmlind: sorry, my bad, commit is f11c7d82d983b4bdcf6fbedd2e8748b3321e39f120:44
freemangordonit seems cherry-pick changes sha20:44
tmlindyeah ok20:46
tmlindnot seeing much anything changing between letux-pvrsrvkm-5.9-rc2..letux-pvrsrvkm-5.10-rc1 based on a quick diff, sucks if you have to test all the versions up to v5.15 :(20:56
tmlindanyways, ttyl20:58
freemangordonthat's why I think the change is in linux, not in pvr20:58
freemangordonfingers crossed :)21:12
freemangordondoesn;t boot :(, lemme check if I broke something21:15
freemangordontmlind: 5.10.72 with letux-pvrsrvkm-5.9-rc2 on top works22:23
Wizzupah22:33
Wizzupfreemangordon: nice going ;)22:33
Wizzuptakes a weekend, but solid progress22:33
Wizzupty22:33
freemangordonyeah22:34
freemangordonbut, why it didn't work back then?22:34
freemangordonmaybe some other patch breaks it22:34
freemangordonalso, I see  'power off on boot' half of the times with 5.1022:35
freemangordonI guess this is the same issue you reported22:35
freemangordonanyway, enough for today22:47
freemangordongn!22:47
Wizzup22:35 < freemangordon> also, I see  'power off on boot' half of the times with 5.1022:58
Wizzup22:35 < freemangordon> I guess this is the same issue you reported22:58
Wizzupprobably22:58

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