libera/#maemo-leste/ Saturday, 2021-10-16

tmlindfyi, here's a little shell script for a few socs to use with pvrsrvinit: muru.com/linux/d4/pvrsgx-init08:07
tmlindtrying to do the init on nfsroot was just driving me nuts with different modules and separate library path for each soc..08:07
uvosthe fact that the blobs cant even deal with the core revision being different is nuts08:08
uvosat runtime08:08
tmlindif anybody wants to play with n9, looks like initializes with the ti335x blobs08:08
uvosi wonder how there code looks08:08
tmlindsome of it could be fixed and detected in pvrsrvinit.c08:08
uvoswell i know accually its #ifdef CONDITION_6000000008:09
tmlinddetect the soc like my shell script does08:09
freemangordonuvos: did you manage to try sway on n900?08:39
freemangordonor whatever it was08:40
freemangordontmlind: can I help somehow with fixing 33bc438d6d8883d77e37b369fe5144ee9b01fad8 ?08:43
freemangordonwait, what? pvr_dri in blobs is with debug symbols?08:50
freemangordonuvos: does it make sense to pull leste mesa master into 'your' mesa (the one with pvr driver)08:54
uvosfreemangordon: no not yet08:58
freemangordonok08:59
freemangordonwhat about mesa?08:59
freemangordonI am going to try to build and test it08:59
uvosfreemangordon: leste mesa is just upstream08:59
freemangordonI know08:59
uvosfreemangordon: we just have the package because its newer08:59
uvosfreemangordon: so no i think i based the pvr mesa on the same version as the leste one09:00
freemangordondoes it make sense to merge it to your tree?09:00
uvosfreemangordon: not atm09:00
freemangordonok09:00
freemangordonuvos: do you cross-compile it?09:01
freemangordonor you build on d409:01
uvosno i just compiled it on d409:01
freemangordonoh09:01
uvoswas not that bad09:01
freemangordonI will try to cross-compile09:01
uvos30 min or so09:01
freemangordonyeah,but... still09:01
uvosmaybe less09:01
uvosyeah corss-compile would be great09:01
freemangordonwill try09:01
freemangordonuvos: mesa-pvr-meamo branch I guess?09:02
uvosanother reason for me to get leste to work on xt1602 - ts farily fast09:02
uvosyes09:02
freemangordonwon.t happen09:17
freemangordonwill have to compile on the device09:18
freemangordonand ofc battery is on 0 % :)09:19
uvoswhy dont you do it on the n900 instead then? :P09:20
freemangordonsingle 600MHz core09:21
freemangordonwill take ages to compile09:21
WizzupYou can do it with qemu09:21
Wizzupor with spinals methods09:21
Wizzuphttps://leste.maemo.org/Development#Cross-distro_solution_for_development_inside_an_ARM.2FARM64_chroot_on_a_PC09:21
freemangordonI was looking for qemu debian armhf images ;)09:21
Wizzupwhich is https://leste.maemo.org/Development#Crossbuilding09:22
Wizzupyou would have to update systemd-nspawn with lxc or something09:22
freemangordontrying to install armhf gl libs in x86 leste wanted to remove almost everything09:22
freemangordonlemme try with a container09:24
Wizzupmaybe we need to provide a lxc file09:26
freemangordonmhm09:29
freemangordonI think for now I will just wait d4 battery to charge09:30
freemangordonlets hope it is not broken09:30
freemangordonhmm, I see 15%, SO IT SHOULD BE OK09:31
freemangordonoops09:31
Wizzupusually leaving it on a pc charger overnight09:31
uvosfrendly reminder that https://github.com/maemo-leste/leste-config/pull/25 makes leste shutdown before the battery is totaly empty avoiding this state on mapphones09:32
Wizzupuvos: I think the phone still uses some when powered off no09:32
uvoson d4 ist manageble09:33
uvos1 ish mA09:33
uvosso takes quite some time for the battery to get to the sate where its hard to charge09:33
uvoson bionic yeah09:33
uvosshits bad09:33
uvoshmm just booted 5.15 with new rootfs09:35
uvosno wlan interface09:35
uvosfun09:35
Wizzupuvos: what if you manually probe the driver09:36
uvosits loaded09:36
freemangordonon n900?09:38
uvosyeah09:38
freemangordonyou need to modprobe wl1251 and wl1251_spi09:38
freemangordonalso, wlan inteface gets renamed after every bood09:38
uvosyeah they are there09:38
freemangordon*boot09:38
uvosi only have lo09:38
freemangordonwlan0,1,2...09:39
freemangordoncheck in dmesg what wlan0 was renamed to09:39
uvosmissing fw maybe09:39
freemangordonthis is debian not leste?09:39
uvospretty hard to check dmesg on device09:39
uvosyeah09:39
freemangordonah, could be missing FW, yeah09:39
uvosno serial :(09:39
freemangordonyeah, its tricky, I know ;)09:40
uvosanyhow ill have to pick this up later09:40
uvosttyl09:40
uvosneat i cant even type wl1251 to reload the driver09:46
uvosto look at dmesg09:46
uvosbeacuse no numbers09:46
freemangordonburn leste image and move dsme from /etc/init.d09:46
uvosbut then i dont have new enough glibc09:47
uvosanyhow i really need to go no ttyl for real09:48
uvos*now09:48
freemangordonttyl09:48
freemangordonhmm, I shall fix dsme to not spit errors when it cannot open a watchdog09:48
freemangordonoh, oops on d4 :(09:54
freemangordonwhile it was upgrading09:54
Wizzupthis might be the 'dsme is restarting' issue09:54
freemangordonno09:55
Wizzupkernel oops?09:55
freemangordonkernel oops in 8250_serial09:55
Wizzuphm09:55
freemangordonhttps://pastebin.com/XAgVu6YY09:55
Wizzupwell is it new kernel?09:55
freemangordonno, should be stock one09:56
freemangordonLinux devuan-droid4 5.11.22 #1 SMP PREEMPT Thu Sep 30 10:40:46 UTC 2021 armv7l GNU/Linux09:57
freemangordonthough that is after the restart, no idea if kernel was upgraded09:57
Wizzupit probably was10:03
freemangordonhmm, glib was not upgraded with the fixed version?10:14
tmlindfreemangordon: let's debug that revert a bit later, trying to adding pvr_ocp_readl/writel to pvr-drv.c..10:14
freemangordonok10:14
freemangordonhmm, it was upgraded10:14
freemangordonah, I guess I need hildon-mime-whatever10:15
freemangordonwtf! meson (>= 0.52)10:27
freemangordonparazyd: where shall I get that from! backports?10:29
freemangordonuvos: hmm, I don;t see pvr driver being build10:38
freemangordondo I need to tweak build scripts?10:38
Wizzupwe have a package to build it don't we?10:51
Wizzupmaybe that contains some instructions10:51
freemangordonI had to tweak debian/rules10:51
freemangordonstill building so not sure what the result will be10:52
Wizzupok10:52
freemangordonWizzup: any clue why wlan interface get renamed on every reboot? on n900 with 5.15 that is11:06
freemangordon*gets11:06
Wizzupyes, it gets a random mac11:12
Wizzupand our ifup thing is not called probably11:12
Wizzupthe one that assigns a static mac from a file11:12
freemangordonah11:13
freemangordonhmm, I was under the impression this is fixed in the kernel11:13
freemangordonlike, it does FW load of a FW that was generated by reading CAL11:13
freemangordonhmm, where is Pali11:14
WizzupI think the kernel folks didn't like it or something11:14
freemangordondid they come up with a way to fix that?11:15
freemangordonI don;t remember how did that discussion end11:15
WizzupI don't think so11:17
freemangordonhmm, pvr_dri in 1.17 seems to have more stuff that chromiumos pvr_dri11:29
freemangordon*than11:29
freemangordonluckily it is compiled with debug symbols, so I can RE back the missing parts11:29
Wizzupwhat parts are missing?11:31
freemangordonlike for example PVRDRIFlushBuffersForSwap calls (missing in chromeos) PVRDRICacheFlushSurfaces11:32
freemangordonblobs support PVRDRI_API_GL it seems11:33
freemangordonI think I've just hit zswap on d411:38
freemangordonand it looks dead :)11:38
freemangordonwe shall remove that11:38
Wizzuphm11:40
Guest62hi guys, can anyone tell me if sphone is working on Droid 4? (if yes, how do I get it to install? do I need to add a new package repository?)11:56
Wizzuphi11:59
Wizzupit works for me in the sense that I can smses and it vibrates on calls, but the audio switching does not work for me yet11:59
Guest62I see; so how did you install it?12:01
WizzupI think you might need to enable the -devel repo(s)12:01
Wizzupso you need additional repos in the apt sources12:02
Wizzupadd this/these:12:02
Wizzup# cat /etc/apt/sources.list | grep devel12:02
Wizzupdeb https://maedevu.maemo.org/leste beowulf-devel main contrib non-free  droid412:02
Wizzupdeb-src https://maedevu.maemo.org/leste beowulf-devel main contrib non-free  droid412:03
Guest62firing up the Droid rn12:03
Wizzupthen 'apt install sphone' should work12:04
Guest62ha, how do I enter this "|" character on the Droid keyboard? :P12:07
Guest62nevermind, used nano to edit the source.list file12:26
Guest62and got this to install, thank you!12:27
Wizzupgreat12:40
Wizzupbtw, got a nickname other than guest?12:40
Wizzupand for |, it's mapped on p12:40
WizzupGuest62: see here https://leste.maemo.org/Motorola_Droid_4#Notes12:41
freemangordonhmm, mesa still builds14:25
tmlindfreemangordon: maybe send your fix with a description etc to the linuxopenpvr mailing list? my changes will take some more time and testing..16:03
freemangordonok16:06
freemangordonhmm, glmark works with mesa I just build16:56
freemangordonuvos said it doesn't, weird17:00
freemangordonglmark2 Score: 3617:02
freemangordonwith TI provided blobs it is 37, but I guess this is within the margin of the error17:02
freemangordonXorg started with no issue, however, I hit the known bugs as soon as I tried xterm17:08
freemangordonok, seems we have x support :D17:09
freemangordonuvos was right17:09
freemangordonok, everything runs fine, besides that es2gears_x11 are noit visible :D17:15
freemangordonbut, I am almost sure this is glamor bug I was fixing17:16
freemangordon234.848] (II) modeset(0): glamor X acceleration enabled on PowerVR SGX 53017:17
freemangordonyou know what! all this means we don;t need any shim or hacks :D17:18
freemangordonworst thing is to patch 2-3 blobs to relax glibc requirement17:19
freemangordonbut nothing needs to be preloaded ;)17:19
sunshavigood news. And a lot of work have been done17:25
Wizzupfreemangordon: right, and then glamor fixes or alt 2d path?17:28
freemangordonI am waiting for uvos to report on the performance with wayland17:30
Wizzupright17:30
freemangordonhmm17:30
freemangordones2gears seem to run on swrast17:31
freemangordonWizzup: do you know how to tell mesae wich dri driver to use?17:32
freemangordon*mesa17:32
Wizzuphttps://docs.mesa3d.org/envvars.html maybe helpful17:35
freemangordonlooking at it, but cannot find anything useful17:36
Wizzupyeah, I guess it's not gallium17:36
Wizzupmaybe MESA_LOADER_DRIVER_OVERRIDE ?17:36
* freemangordon tries17:37
freemangordonyeah, that's better :)17:38
freemangordonI still see no gears, but fps is 57 instead of 1917:38
freemangordonOMG I see gears!!!17:40
Wizzupwhat did you change?17:40
freemangordoninitially I started xorg with 16bpp17:41
Wizzupah17:41
freemangordonalso, I added MESA_LOADER_DRIVER_OVERRIDE=pvr to xorg startup17:41
freemangordonno idea which one helped17:42
freemangordonwill try17:42
Wizzupnext up, h-d? ;D17:42
freemangordonno, glamor needs to be fixed first, IIUC17:42
freemangordonyeah, depth 16 is not somehting that pvr likes it seems17:43
freemangordonI can try to hack it though17:43
WizzupI don't think we use 16bpp even on the n900 now17:44
Wizzup(otherwise the status applet was buggy)17:44
freemangordonbecause of the buggy drivers17:44
Wizzupyeah ok, I suppose I meant it's nice ot have, but we don't need it right now17:45
freemangordonsure17:45
freemangordonrunning glmark_es2 now, lets see17:48
Wizzupin x11 mode I guess, not drm mode?17:49
freemangordoncould someone run glmark_es2 with old driver to have a base to compare to17:49
freemangordonyes, in x11 mode17:49
freemangordonhmm, x11 eats all the cpu, not good17:50
Wizzupprobably a bottleneck in the 2d part?17:50
freemangordonyeah, maybe17:50
freemangordonbut, why 2d part?17:50
Wizzupfreemangordon: isn't this also using glamor?17:54
WizzupI mean, for anything that is drawn on the screen, no/17:55
freemangordonyes17:55
Wizzupwell that could be the bottleneck then?17:55
freemangordonbut, 3d only calls present, which should not take twice the time17:55
Wizzupwell what's the score? :)17:56
freemangordonstill running, but I expect something like 2017:56
freemangordonor even less17:56
freemangordonit does something with the CPU17:56
freemangordonoh, wait17:57
freemangordonI think I know what it is17:57
freemangordonby default glamor doesn;t know about BGRA17:57
freemangordonso i guess it does BGRA<->ARGB in software17:57
freemangordonwell, I have a patch for that s well :)17:57
Wizzupheh17:59
freemangordonoh, ok, I will have to get back to xorg17:59
freemangordonabook will have to wait :)17:59
Wizzupget back to what part in particular?17:59
freemangordonstart from where I stopped18:00
freemangordonSubImage2D or whatever18:00
Wizzupah, I didn't know we were at this point before with 1.1718:00
WizzupI guess we were18:00
Wizzupright18:00
freemangordonmaybe it will work with upstream mesa18:00
freemangordonglmark2 Score: 2518:01
Wizzupso what does not work right now18:01
freemangordonxorg(pvr) hangs as soon as you start xterm18:01
Wizzupthere were the previous ones: https://pastebin.com/hXWt4HPP18:01
Wizzupso maybe it is the swizzle as you mention18:01
freemangordonmhm18:01
freemangordonI will have to build xorg18:02
freemangordonthis will take a while :)18:02
freemangordonxterm:18:04
freemangordon[ 2195.355468] PVR_K:(Error): SGXOSTimer() detected SGX lockup (0x12 tasks)18:04
freemangordon[ 2195.362487] PVR_K: HWRecoveryResetSGX: SGX Hardware Recovery triggered18:04
freemangordonbut, this is a known issue18:04
freemangordonThe fact we don;t need my shim is really great18:05
tmlindcool :)18:05
freemangordonyeah18:05
freemangordonlets see what uvos will report about WL 2d rendering performace18:06
tmlindwhat's the 2d test, glmark2 also?18:06
freemangordonif it is acceptable, I am goint to resume fixing glamor18:07
freemangordontmlind: no, but I am not sure what it is18:07
freemangordonvideo playback I guess18:07
tmlindok, there's some moving linaro windows around test in glamark218:07
freemangordonor scrolling long lists18:07
freemangordonyeah, but it is still 3D18:07
tmlindright, all 2d is using 3d with wl18:08
freemangordonthe point is - is n900 capable of video playback through 3D18:08
freemangordonfor example18:08
freemangordonor - is it powerful enough so one can do kinetic scrolling of long list without (much) stutter18:10
freemangordontmlind: will omap2_defconfig kernel boot on droid4?18:18
freemangordonyour 5.15-rc2 tree that is18:18
freemangordonoh, I need that reverted patch back I guess18:22
freemangordonWizzup: tmlind: d4 is ti443x, right?18:33
tmlindfreemangordon: yeah omap2plus_defconfig should boot on droid4 and n90018:41
freemangordonok18:43
tmlindyeah ti443x18:43
freemangordonthanks18:43
Wizzuptmlind: what would be a good way to make a static minimal kernel for kexecboot purposes? I started with doing something based on the loaded list of modules on the d4, but that seems not to work too well, so now I am trying omap2plus_defconfig with all '=m' set to '=y' _+ make defconfig19:00
Wizzupso this boots to a point, but then it just doesn't want to mount any rootfs19:06
Wizzupeven rootdelay doesn't make it panic after the delay19:06
tmlindWizzup: something uvos uses for the clownboot on bionic should do the trick19:08
tmlindfreemangordon: so which xorg driver did you end up tweaking, the armsoc driver?19:08
Wizzupyeah, but he doesn't have the config/remember19:12
Wizzup:)19:13
Wizzupwe'll see19:13
Wizzupok, I think I know what went wrong19:14
tmlindok19:15
Wizzupyeah ok, the out of tree dtb was out of sync19:15
tmlindok19:15
tmlindWizzup, uvos: you might be able to recover the clownboot .config with zcat /proc/config.gz if it was built in19:16
Wizzupyeah, I also suggested that a while aog19:17
WizzupI think I got it now though19:18
Wizzupthe dtb -mostly- worked fine, except that it didn't see the mmc sd card19:18
tmlindok19:18
Wizzupbut screen, modem, etc worked19:18
Wizzupunlucky I guess :)19:18
Wizzupgoing to pick a partition for kexecboot now19:18
tmlindwell the old dtbs are incomplete nowadays, you need a quite recent one for now19:18
Wizzupyeah this was from 5.1119:18
Wizzupand I am booting 5.1419:19
Wizzupminor changes to the common dtsi19:19
Wizzupenough to break it :D19:19
tmlindyeah ok, we dropped all the old platform data for hwmod, so only dtb will have the interconnect data19:19
tmlindyou should see a warning about old dtb during boot19:20
freemangordontmlind: umm, what do you mean?19:21
freemangordonI didn;t tweak anything, what I did is to get chromeos mesa that has pvr dri driver19:22
freemangordonso, now it uses modesetting with glamor19:24
freemangordon'it' == xorg19:24
tmlindoh ok nice :)19:24
tmlindwow19:24
freemangordonas uvos correctly guessed, with that mesa there is no need of my shim as X support will be there19:24
freemangordonand yes, it is there19:25
tmlindgreat19:29
Wizzupwhat is a sensible way to see what partition is bpsw?19:41
tmlindwhich kernel?19:42
Wizzupjust a second19:43
Wizzup2.6.35.7-g5fa415519:43
Wizzup2.6.35.7-g5fa415519:44
Wizzupoops19:44
tmlindcat /proc/cmdline might show it for android kernels19:44
Wizzupshows: console=/dev/null rw mem=456M@0x80000000 mem=52M@0x9CC00000 vram=4M omapgpu.vram=0:4M init=/init ip=off mmcparts=mmcblk1:p7(pds),p15(boot),p16(recovery),p17(cdrom),p18(misc),p19(cid),p20(kpanic),p21(system),p22(cache),p23(preinstall),p24(userdata),p25(emstorage)19:45
tmlindhmm maybe do strings on the cid partition?19:48
tmlindhmm no cdt partition, not sure which one it is19:48
Wizzupcid seems to be only 0xff19:48
Wizzuphttps://pastebin.com/raw/Byg5J5fJ19:49
WizzupIt might just be the same as on bionic, so p14, but I don't really know how to verify that19:50
WizzupI just need to figure it out so that I can give the static zimage the right partition to load kexecboot from19:50
tmlindif it's empty it's not in use, if it's not empty, don't overwrite19:51
Wizzupclearly fastboot knows what bpsw is19:51
tmlinddo hd on it to see19:51
Wizzupsorry, hd?19:51
Wizzuphexudmp19:52
Wizzupok19:52
Wizzupyeah I did that19:52
tmlindcould be p14, but only 2MB?19:55
tmlindwould be still enough for kexecboot, kexec and busybox19:55
Wizzupgoing to flash to bspw and see what's in p1419:55
WizzupFAILED (remote: Battery Low)19:57
Wizzupin another hour I guess :)19:57
Wizzupyeh it is p1420:00
Wizzupuvos: when you get back, I have trouble mounting /system as rw from android20:07
Wizzup# mount -o remount,sw /system20:08
WizzupUsage: mount [-r] [-w] [-o options] [-t type] device directory20:08
Wizzupmaybe it needs none there or something?20:08
Wizzupit wasn't the sw typo20:09
Wizzupit needs to be like this20:09
Wizzupmount -o remount,rw /dev/block/system /system20:09
Wizzupoh, looks like mmc1 is not visible, but mmc0 is [...]20:13
WizzupI guess I get to reflash android now20:13
bencohhttps://www.devuan.org/os/announce/chimaera-release-announce-2021-10-14 :)20:25
Wizzupjust for the record the modem unlock survived android reflash, as expected21:01
Wizzupah, I think it might just be called mmcblk0p2 ....21:05
Wizzuperr mmcblk2**21:05
Wizzupah, no internal mmc on my 5.14.9 - will fix that later21:09
WizzupI think once that's solved for the droid3 then kexecboot will work21:09
freemangordonhmm, h-d starts but nothing gets rendered21:15
freemangordonI suspect I shall export MESA_LOADER_DRIVER_OVERRIDE=pvr systemwide21:16
freemangordonhmm, glmark2 does not work on d421:36
freemangordonglmark2-drm that is21:36
siceloi'm really impressed fmg :-)21:37
freemangordon:)21:38
Wizzupfreemangordon: yeah that seems like a safe bet (system wide)21:39
freemangordonwhere should I put that?21:41
Wizzupdon't know per se, but if you put it in /etc/profile it might work21:49
freemangordonomg, hildon-desktop started :)21:56
freemangordonon n900 that is21:58
sunshaviawesome21:59
freemangordonh-d scrolls with 58 fps22:01
sicelothis is N900?22:01
freemangordonmhm22:01
freemangordonwell, there are artifacts22:02
freemangordonlike the last 2-3 frames are 'recycled'22:02
freemangordonalso, it seems TFP does not work22:04
freemangordon(texture-from-pixmap)22:05
freemangordoncould be a clutter bug though, but I doubt22:05
freemangordonyeah, glamor is buggy as hell :(22:06
freemangordonoh22:06
freemangordontmlind: any idea:22:06
freemangordoncma: cma_alloc: reserved: alloc failed, req-size: 332 pages, ret: -1222:06
Wizzuplarger cma required maybe? sometimes there is a hardcoded limit in kernel22:14
freemangordonyeah22:16
freemangordonhmm, why h-d does not rotate?22:16
freemangordonok, xrand rotates it, but scrolling is with 10 fps22:18
Wizzupfreemangordon: n900 sensors are not set up for rotation22:20
Wizzupif they would, current n900 would break22:20
freemangordonI am sending signal with dbus-send22:20
freemangordonrun-standalone.sh dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_orientation_ind string:'portrait'22:21
freemangordonhmm, I guess it needs mce running22:21
Wizzupright22:22
Wizzuprotated being slow could be many things I guess22:22
freemangordonno, I mean - h-d does not rotate when I send signal with dbus-send22:23
freemangordonif I rotate with xrandr, then scrolling is slow22:23
freemangordonoh, maybe orientation is locked?22:24
freemangordonwhat was the gconf key?22:24
Wizzupsorry, do not know22:28
sicelo /apps/osso/hildon-desktop/orientation_lock (at least here on my fremantle system)22:29
freemangordonyeah, but it is true22:29
freemangordonoh22:29
sicelo:-)22:29
siceloshould be false if you want orientation active22:30
freemangordonorientation_lock = false22:30
freemangordonsorry, I meant false22:30
freemangordonanyway, I think I should stop for today22:30
siceloah22:31

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