libera/#maemo-leste/ Monday, 2022-01-03

Wizzupuvos__: neat, I'll try that as well00:03
Wizzupuvos__: does emergency shell start droid4-powermanagement and detach kernel console?00:04
uvos__Wizzup: no00:04
Wizzupuvos__: glad you're testing the throughput btw00:04
Wizzupuvos__: well that's the explanation then00:04
Wizzupuvos__: I'm 99% sure the problem is console detach00:04
uvos__ok00:04
Wizzup(or caused by at least)00:04
uvos__that explains why i just failed at captureing the problem on uart00:05
Wizzupit prints it to console when it tries to power down00:08
Wizzupit should be in your messages00:09
Wizzupuvos__: re: more corruption could also be that you have a custom theme and/or backgrounds on your other devices01:18
freemangordonWizzup: one more thing while we are at it - I think it makes sense to not set zswap on n900 but use dedicated swap partition on eMMC08:12
freemangordonalso, using 16bpp will greatly reduce memory usage08:12
Wizzupfreemangordon: yeah I am still not convinced about zswap being a bad idea and swapping to slow and irreplaceable disk instead10:43
parazydYeah swapping on such storage is bound to degrade lifetime11:01
Wizzupparazyd: hm it looks like /etc/kernel/postinst.d runs before the postinst of our kernel image package12:40
Wizzupthat can't be right?12:41
uvos__parazyd: irc.txt is broken12:41
Wizzupparazyd: hmmmm I guess our modifications to builddeb actually make it run our stuff before run-parts12:41
Wizzupthat's wrong12:41
WizzupI fixed builddeb12:43
uvos__freemangordon: is it really smart to swap on emmc on a device thats 10+ years old? its probubly getting up there on writes allready12:43
Wizzupwell it depends right12:44
Wizzupif we want 0.75GB of swap we will need to do that12:44
Wizzup(which is what fremantle has)12:44
Wizzupwe could swap to sd card as well but it is kinda slow12:44
Wizzupotoh I think a bit of zswap really isn't a bad idea12:44
Wizzupof course not too much, and maybe our ratio is off12:45
uvos__if the 100mhz clock hack works on omap3/n900 then modern sdcards way outprerform mmc12:45
Wizzupyou tried this mostly on d4 though right?12:47
Wizzupalso iirc n900 bus width is small12:47
uvos__exclusively yeah12:47
uvos__its 4bit like d412:47
uvos__emmc bus with is 812:47
uvos__on both12:47
uvos__doubleing the bus clock levels the field12:47
Wizzupok12:50
bencohthe "hack" is basically allowing SDR104 even though it shouldn't be supported?13:04
uvos__not really13:04
uvos__so we can do in spec sdr50 with 5v bus13:06
uvos__omap4 can also do sdr100 @5v and ddr50 @5v and thats supported by some mmc chips13:06
bencoh5V or 3.3V?13:07
uvos__but sdcard spec for uhs1 is 50mhz @5v sdr or 50mhz @1.8 ddr or 100mhz @1.8v sdr13:07
uvos__we cant do 1.8v at all13:07
uvos__s/5v/3.3v13:10
uvos__see sdcard uhs1 spec page 313:11
freemangordonWizzup: re zswap, as I told you, I played enough with compcache (which is the same) back then, and I can tell you that it only makes things worse13:23
freemangordonslow CPU on 256 MiB RAM zswap is a recipe for disaster13:23
freemangordoneven if you tell it to be 64MiB only13:23
freemangordonso, we either have a dedicated swap partition on uSD (which will be slow as hell) or we use swap partition which is already there13:24
freemangordonnot much we can do about eMMC wearing13:25
WizzupI think we will give users the option13:25
WizzupWe do zswap every where at the moment and it hasn't caused many problems really13:25
bencohincluding n900?13:26
Wizzupyes13:26
Wizzupbtw, once latest droid4-linux is done I think n900 on experimental should apt-get upgrade to newer 5.15 kernel13:26
Wizzupincluding postinst hook13:26
WizzupI still got a X crash on it after opening ~5 terminals though13:26
Wizzupbencoh: but we might want to tweak the ratio for some low power devices perhaps13:27
freemangordonWizzup: please disable that on n90013:27
Wizzupfreemangordon: will it help with the x crash?13:28
freemangordondo you want me to give you the link to TMO thread?13:28
Wizzupno I remember the thread on compcache13:28
freemangordondoes it still crash?13:28
Wizzupyes13:28
freemangordonmaybe, I dont; know13:28
freemangordonis it still CMA related crash?13:28
Wizzup[  308.908050] cma: cma_alloc: reserved: alloc failed, req-size: 277 pages, ret: -1213:29
freemangordonwith compaction enabled?13:29
Wizzupyes13:29
freemangordonCMA is 32 MiB?13:29
Wizzupyes13:29
freemangordonmaybe we have a memleak13:29
Wizzupand proactive timeout of 120s13:29
freemangordonand yes, maybe too much memory is non-evictable13:29
Wizzupthe kernel is building on jenkins atm13:30
bencoh/proc/slabinfo might have some info13:30
bencohalthough .... nevermind13:30
freemangordonWizzup: please disable zswap and enable eMMC swap and see if it will continue with the crashes13:30
bencohcma might not show there13:30
freemangordonbencoh: /proc/meminfo13:30
bencohfreemangordon: I wanted something more detailed, but yeah13:31
Wizzupfreemangordon: seems insane to me but ok I'll rename the zram init script13:31
freemangordonbut I don;t really understand what exactly CmaFree is supposed to mean13:31
bencohis there any other CMA user on n900?13:31
Wizzupfreemangordon: ah wait looks like zram is already disabled13:31
freemangordonno, it is not13:31
freemangordonat least no in the image13:31
freemangordon*not13:31
freemangordonbencoh: none I am aware of13:31
freemangordonbuw we can simply have a memleak13:32
freemangordon*but13:32
Wizzupfreemangordon: on my device13:32
freemangordonah13:32
freemangordonand do you have swap?13:32
Wizzupthere was some13:32
WizzupI'm rebooting and will disable13:32
freemangordoncan't parse13:32
WizzupI am rebooting and will run swapoff13:33
Wizzupand then try to crash it again13:33
freemangordonof zswap?13:33
Wizzupswapoff -a13:33
freemangordonwell, swapon /dev/mmcblk1p313:33
Wizzupwhy? we have only 80MB out of 250MB in use13:33
Wizzupclearly swap is not needed for such a simple test13:33
freemangordon(iirc this is swap partition on eMMC)13:33
freemangordonWizzup: I think swap is needed for page migration13:34
Wizzupwhat is that?13:34
freemangordonmoving pages between zones13:34
freemangordonin order to have CMA, you need to migrate pages13:34
freemangordoncompactin is the process which does it13:35
freemangordon*compaction13:35
freemangordonin order to have a big block of contiguous memory, you need to move the pages that are in the middle of the block13:36
freemangordonused ones that is13:36
freemangordonbencoh: do you have any idea how to choose CMA size?13:36
Wizzupfreemangordon: same problem13:39
Wizzupwith zram off and mmcblk1p3 as swap13:39
freemangordonhow many applications?13:39
WizzupI just open about ~5 osso-xterms quickly13:39
Wizzupthrough the menu button and then the new button13:39
Wizzupyou caxn just press the same place on the ts to open many quickly13:39
freemangordonhmm, cannot repro here13:39
freemangordonlemme check though13:39
Wizzupwell let's wait for -experimental kernel13:40
freemangordon*try13:40
Wizzupit'll be ~2hrs13:40
Wizzupsolidrun still didn't ship the server, 6 weeks later :(13:40
freemangordonok, but using my config might bring different results13:40
Wizzupfreemangordon: sure13:40
freemangordonalso, I am with 24MiB CMA13:41
Wizzuproot@devuan-n900:~# zgrep COMPACT /proc/config.gz13:41
WizzupCONFIG_COMPACTION=y13:41
Wizzuproot@devuan-n900:~# zgrep CMA /proc/config.gz  | grep MBYTES13:41
WizzupCONFIG_CMA_SIZE_MBYTES=3213:41
WizzupCONFIG_CMA_SIZE_SEL_MBYTES=y13:41
freemangordonbooting the device13:42
bencohfreemangordon: cma= at boot13:43
freemangordon16 xterms open13:43
freemangordonno crash13:43
bencoh(bootargs I mean)13:43
freemangordon2413:44
freemangordonroot@devuan-n900:~# zgrep COMPACT /proc/config.gz13:46
freemangordonCONFIG_COMPACTION=y13:46
freemangordonroot@devuan-n900:~# zgrep CMA /proc/config.gz  | grep MBYTES13:46
freemangordonCONFIG_CMA_SIZE_MBYTES=2413:46
freemangordonCONFIG_CMA_SIZE_SEL_MBYTES=y13:46
freemangordonbencoh: no, my question was not how to set it, but how to choose the size itself13:46
bencohah13:47
freemangordonlike, do we prefer 16MiB or 64MiB13:47
freemangordonWizzup: I don;t understand why it behaves liek that on your device13:47
bencohwell, simply count how many frames we need, round frame size to silly-aligned-size (I don't know what it is aligned to on n900), and it should give us the required size13:48
bencohthat's how I do it $here13:48
Wizzupfreemangordon: maybe try with repo kernel13:48
Wizzupfreemangordon: it's still building fwiw but the only diff is the postinst script swap13:49
Wizzup(swapping of what runs when)13:49
freemangordonWizzup: ok13:49
Wizzupfreemangordon: probably easier to just fetch the branch and build yourself13:49
freemangordonbencoh: what is "frames"?13:49
bencohfreemangordon: display/gpu/whatever frame13:50
bencohas in framebuffer13:50
freemangordonah13:50
freemangordonwell, not that simple I think13:50
bencohit's that simple with v4l2 devices at least13:50
freemangordonbecause every application uses additional front framebuffer which must be CMA13:50
bencoheach app has its own buffer in CMA?13:51
freemangordonmhm13:51
bencohhow large is a frame? 840x480x2?13:51
bencoh(assuming RGB565)13:52
freemangordon24 xterms+HAM+calculator+cpl+pdf reader13:52
freemangordon24bpp13:52
bencohah13:52
bencohso 840x480x313:52
freemangordonmhm13:52
bencoh~1.2M, still need to know what it should be aligned to, 2M might be the right answer13:53
freemangordon2MiB per application?13:53
bencohthat sounds silly and super high13:53
bencohbut yeah13:53
freemangordonlemme check something13:53
bencohI don't think I ever hit that limit on fremantle, let's see13:53
freemangordonon fremantle it is different13:54
bencohwhy?13:54
freemangordonthey don;t flip (that's why the tearing)13:54
bencohah13:54
freemangordonon fremantle they use blit13:54
freemangordonIIUC13:54
bencohwell ...13:54
bencohconsidering that n900 is quite low on memory, I wonder if flipping is really the way to go then13:55
freemangordonyeah13:55
freemangordonwell, we still need memory for the buffers13:56
freemangordonthe question is whether it will be CMA or not13:56
freemangordonso not much of a difference13:56
freemangordonTotal 247 objects, 91979776 bytes13:57
freemangordoncat /sys/kernel/debug/dma_buf/bufinfo that is13:57
freemangordon;)13:57
bencoh247 objects?13:57
freemangordonthis is for 24 xterms+HAM+calculator+cpl+pdf reader13:58
freemangordonsure13:58
bencohuh13:58
Wizzup87MB?13:58
freemangordonmhm13:58
freemangordononly part of this is CMA13:58
bencohon desktop (intel/i915) I see 8 objects, 26148864 bytes13:58
bencohah13:58
freemangordonwell, I guess your desktop is not 800x480 :)13:59
bencohsure, but the interesting part was : only 8 objects :)13:59
freemangordoncompositing WM?14:00
bencohoh, that's the difference14:00
bencohobviously not :)14:00
bencoh(wmii)14:00
freemangordonalso, maybe it does not use DMA_BUF14:00
freemangordonbut normal memory14:00
bencohi915 uses dmabuf14:00
freemangordonfor everything?14:00
bencohno idea :)14:01
freemangordonI mean - on omap DDX every pixmap is backed by BO14:01
bencohdo you know which of those buffers are allocated in CMA?14:01
freemangordonyes14:01
bencohis there really one per app then?14:01
freemangordonlemme check14:02
freemangordonhmm, something is wrong here14:09
bencohwhat is?14:09
freemangordon1z1mLC4514:10
freemangordonhttps://pastebin.com/1z1mLC4514:10
freemangordonflags should tell us whether this is scanout buffer or not14:10
freemangordonhttps://elixir.bootlin.com/linux/latest/source/include/uapi/drm/omap_drm.h#L4214:11
freemangordonbut I only see OMAP_BO_WC14:11
bencohthat's a lot of small (4k) buffers14:11
freemangordonyeah14:12
bencohwhat are those used for?14:12
freemangordonicons?14:12
freemangordonI don;t know14:12
bencohah, right14:12
freemangordonroot@devuan-n900:/sys/kernel/debug/dma_buf# cat bufinfo | grep 01536000 | wc -l14:13
freemangordon3014:13
bencohfor 24 windows?14:13
freemangordonmhm14:13
freemangordon+2 for X itself14:13
freemangordonnot 2414:13
freemangordon2814:13
freemangordon24 xterms+HAM+calculator+cpl+pdf reader14:14
bencohah14:14
bencohso window buffers are rounded to 153600014:14
bencohwhat did you expect apart from BO_WC?14:15
freemangordonOMAP_BO_SCANOUT14:15
bencohis it dmabuf-exported?14:15
freemangordonhmm?14:15
freemangordonwhat do you mean?14:16
bencohI'm basically wondering if the dss scanout buffer is actually supposed to show up in that list14:17
freemangordonsure14:17
freemangordonit is dma_buf BO14:18
bencohwell ...14:18
freemangordonyes, it is, omap DDX uses omap_bo_new(tiled)()14:19
freemangordonfor every CreatePixmap14:19
freemangordonhmm14:24
freemangordon/sys/kernel/debug/dri/1 seems to provide more info14:25
freemangordonbencoh: https://pastebin.com/ybzQvDYH14:30
freemangordonhttps://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/omapdrm/omap_gem.c#L103814:31
freemangordonwe have 5 scanout buffers only14:33
freemangordonscanout == CMA allocated14:33
freemangordonWizzup: could you check on your device?14:33
bencohfreemangordon: so 5*153600014:34
freemangordonmhm14:34
bencohunless we hit some mem alloc issue preventing the kernel from allocating a buffer from CMA14:35
bencoh(which would sound like a bug)14:35
freemangordonTotal 56 objects, 6766592 bytes14:35
freemangordonafter I closed all applications14:36
bencohand still 5 CMA?14:36
freemangordonmhm14:36
bencohwell ... :)14:36
freemangordon4x1536000 and 1x1638414:36
freemangordonI think the small one is cursor14:36
bencohwe still need to know how buffers are allocated (alignement)14:37
bencohbut in any case cma=16M should probably be enough14:37
freemangordonwhat do you mean alignment? this is ordinary DMA memory (excluding CMA ones)14:38
freemangordonand we use sg lists14:38
freemangordonthis is the patch I wrote yesterday, basically14:38
freemangordonso, alignment is on page14:39
bencohlike, page-aligned allocations (ie buffers allocated on page boundaries), but with a higher ... ah14:39
bencohwell then ...14:39
freemangordonno, this is valid for CMA allocations only (higher...)14:39
bencohbut we _are_ talking about cma right ? :)14:40
bencohI mean, the question was to know how to define cma size14:40
freemangordonno all the time :)14:40
freemangordonah yeah14:40
bencoh:)14:40
freemangordonWizzup: which branch is the latest one?14:41
freemangordonah, found it14:41
freemangordonor not?14:41
freemangordonwhere are those patches?14:42
freemangordonbencoh: see this https://github.com/maemo-leste/droid4-linux/commit/d1668c20ff26556874392947337a03cbf43b13e614:43
freemangordonhttps://github.com/maemo-leste/droid4-linux/commit/d1668c20ff26556874392947337a03cbf43b13e6#diff-9b3c6ba4dcbd05c07bafe254dd7bc5fd1ac42fede2f7d43aa8250a20c31eecb3R104114:43
freemangordonthis is what happens with non-cma buffers14:43
freemangordonbencoh: so, it seems we need 3+1 fulscreen buffers14:44
freemangordon3 are for DRI2 TripleBuffer14:44
freemangordon1 is for kernel console14:44
freemangordonI think this is the math14:44
Wizzupfreemangordon: this branch https://github.com/maemo-leste/droid4-linux/commits/wip/n900/maemo-5.15-cleaned-up14:46
freemangordonWizzup: yep, found it14:46
freemangordonWizzup: could you share what you have in /sys/kernel/debug/dri/1/gem after you open few applications?14:46
Wizzupok14:47
Wizzuplet me boot14:47
freemangordonWizzup: oh, my wifi iface is wlan24 :)14:50
freemangordonno wonder it does not work14:50
Wizzupn900?14:50
freemangordonmhm14:50
freemangordonudev did that I guess14:50
freemangordonnot sure where to look though14:50
Wizzupfreemangordon: # ls /sys/kernel/debug/dri/*/gem14:50
Wizzup/sys/kernel/debug/dri/0/gem  /sys/kernel/debug/dri/128/gem14:50
Wizzupdo you want 0 ? 1 does not have gem here14:50
freemangordonsec14:51
freemangordon 'cat name' should show omapdrm14:52
freemangordoncheck in 014:52
Wizzup# cat /sys/kernel/debug/dri/0/name14:53
Wizzupomapdrm dev=omapdrm.0 master=omapdrm.0 unique=omapdrm.014:53
freemangordonmhm14:53
freemangordonthis one14:53
WizzupI have one osso-xterm open14:53
Wizzupdo you want the full output of gem?14:53
freemangordonyeah14:53
freemangordonplease open 3-414:53
freemangordonterminals that is14:54
Wizzuphttps://dpaste.com/34D2762RF14:54
Wizzupoh14:54
Wizzupok14:54
Wizzupwill open 3-4 and hope it doesn't already crash14:54
freemangordonstop14:54
freemangordonwait14:54
freemangordonWizzup: you're using wrong ddx14:54
Wizzuphow14:54
freemangordonno idea14:54
Wizzupdidn't you build it?14:54
freemangordonI did14:54
freemangordonlemme check14:54
Wizzupii  xserver-xorg-video-omap                        0.5.1+2m7                               armhf        X.Org X server -- OMAP display driver14:55
freemangordonugh14:55
Wizzupshould be 0.5.4 it seems?14:56
freemangordonhttps://github.com/maemo-leste/xf86-video-omap/blob/master/debian/changelog#L114:56
freemangordonmhm14:56
freemangordonyou bad boy :p14:56
Wizzup?14:57
WizzupI am fully up to date14:57
freemangordonusing wrong ddx makes you bad boy. kidding...14:57
freemangordonhow's that?14:57
Wizzupyeah but it's not my fault14:57
WizzupI don't get it as update14:57
freemangordonmaybe I screwed it somehow14:57
WizzupSection: droid414:57
freemangordonlemme check14:57
Wizzupthis is not ideal14:57
Wizzupstill I think I have droid4 as component14:57
Wizzupfreemangordon: nah it looks ok14:57
freemangordonWizzup: plese help me to fix my wifi14:58
Wizzupfreemangordon: just nuke the persistent net rules file I think14:58
freemangordonwhere this wlan24 comes from?14:58
freemangordonwhere from?14:58
Wizzupbut I think this happens when you get a random mac every time14:58
freemangordonyes, I know14:58
Wizzupsorry my n900 is updating atm, sec14:58
freemangordonok14:58
freemangordon/etc/udev/rules.d/ should be it14:59
Wizzuproot@devuan-n900:~# ls -lsh /etc/udev/rules.d/70-persistent-net.rules14:59
Wizzup0 lrwxrwxrwx 1 root root 9 Jan  1  2000 /etc/udev/rules.d/70-persistent-net.rules -> /dev/null14:59
freemangordonI have no such rule14:59
freemangordonactually there is nothing there14:59
Wizzupyeah my n900 really does not see 0.5.415:00
Wizzupthis will be fun to debug15:00
Wizzupfreemangordon: maybe try 'find /lib | grep persistent'15:00
Wizzupfreemangordon: ok I see15:01
Wizzupfreemangordon: I only had 'droid4' as component for experimental, not for -devel15:01
Wizzupreally the droid4 component in the control file should go15:01
freemangordoncoul dyou fix that?15:02
Wizzupk15:02
freemangordonthanks!15:02
freemangordonumm, what the? it is wlan015:03
Wizzupwhat did you do?15:03
freemangordonnothing15:03
freemangordonI was thinking it is wlan2415:03
freemangordonbut it is wlan015:03
Wizzupfreemangordon: wonder if it will also get faster now with new ddx15:03
freemangordonmaybe15:04
Wizzupfreemangordon: if you have your own kernel branch, I assume you picked my wifi patch15:04
freemangordonno :)15:04
freemangordonI guess this is the issue15:04
Wizzupthen yes it won't work15:04
freemangordonmhm15:04
Wizzupmaybe apt install linux-image-omap15:04
freemangordonok, lemme try15:04
Wizzup(also you need maemo-kernel-config-n900)15:05
freemangordonoh, no15:05
freemangordonno wifi :)15:05
freemangordonwpa_supplicant I guess15:05
Wizzupfreemangordon: you can just cp the debs to the rootfs15:06
Wizzupor use usbnet15:06
Wizzuphttps://leste.maemo.org/Status/USB_Peripheral#Share_PC_network_with_Leste_device15:06
Wizzupin any case when this works ok/stable I will push all experimental stuff to -devel for n900 and then we can empty experimental15:07
freemangordon:nod:15:07
Wizzupone thing I kind of want but won't for now is to have drm built in15:10
Wizzuplast time I tried that gave trouble, but it would be real nice to have fast tty output15:10
mighty17[m]tried running xfce with openpvrsgx and freemangordon's mesa, and it fails even on sw rendering https://paste.debian.net/1225677/ (i didnt set MESA_LOADER_DRIVER_OVERRIDE=pvr coz idk how its done in x)15:11
freemangordonmighty17[m]: you should provide correct kmsdev to modesetting15:13
mighty17[m]as in? i havent touched x at all15:13
uvos__xorg.conf15:13
Wizzupfreemangordon: seems ok now, also with zswap or, and with normal swap on15:13
Wizzupso we can rule out any form of swap being a problem15:14
uvos__also MESA_LOADER_DRIVER_OVERRIDE dosent have anything to do with the window manager15:14
freemangordonWizzup: yeah, but I still kind of think zswap should be disabled15:14
uvos__s/window manager/windowing system15:14
mighty17[m]uvos__: well but in wayland i had tinydm which'd set env vars for me15:14
freemangordonWizzup: also, I think 24 MiB or even 16MiB of CMA should suffice15:15
mighty17[m]uvos__: cant find it :(15:15
Wizzupup to you , I am fine with whatever doesn't cause crashes15:15
uvos__mighty17[m]: the xdg-session manager also has nothing to do with wayland vs x15:15
uvos__they just start a xdg-session that starts some windowing system15:15
freemangordonWizzup: maybe try with 16 MiB15:16
freemangordonor...15:16
Wizzupfreemangordon: I suggest we potentially postpone finding the exact number15:16
mighty17[m]uvos__: right soo im confused aboout modsetting part15:17
WizzupI'm really hoping that I can start doing some non-kernel stuff again soon15:17
freemangordonok, make it 24 then15:17
freemangordonnot 3215:17
Wizzupthere are open issues but those are now mostly regarding idle/ret/off mode15:17
Wizzupand I also have to do some work-work today :p15:17
freemangordonok :)15:17
uvos__mighty17[m]: man modesetting15:17
Wizzupfreemangordon: this is great though15:17
Wizzupfreemangordon: I am not sure if it is at same perf as 5.1 with other ddk and other clutter15:17
Wizzupbut this is good15:17
freemangordonit is not15:18
freemangordonit is slightly slower15:18
Wizzupyeah it feels a bit more stuttery15:18
Wizzupbut fine for now15:18
freemangordonbut, this is because of we wait in DDX for gpu rendering to complete before requesting flip15:19
uvos__freemangordon: interesting side note15:19
freemangordoninstead of omapdrm waiting for write fence to be signalled15:19
mighty17[m]uvos__: `man: No entry for modesetting in the manual.` :(15:19
freemangordonmighty17[m]: sec to boot my d415:20
freemangordonuvos__: hmm?15:20
uvos__mighty17[m]: freemangordon: since you worked around the corruption (looks like missing tiles) in omap ddx, when the d3/d415:20
uvos__upps15:20
uvos__freemangordon: since you worked around the corruption (looks like missing tiles) in omap ddx, it dosent show up anymore but when the d3/d4  hangs (d3 dose it way more often) it displays a frame that has the corruption again as its last frame15:21
uvos__untill it watchdog reboots15:21
uvos__mighty17[m]: https://linux.die.net/man/4/modesetting15:21
freemangordonGPU hangs the system while rendering?15:21
freemangordonhmm, no15:21
uvos__mighty17[m]: hmm no thats not the right man page15:22
uvos__anyhow on arch i have it, and the option you need to set is Option "kmsdev" "string"15:22
freemangordonuvos__: I'll provide him xorg.conf for modesetting15:22
uvos__you need to set it to /dev/dri/card115:22
uvos__freemangordon: ok15:22
uvos__[15:21] <freemangordon> GPU hangs the system while rendering? <-- maybe, why do you say it cant be?15:23
mighty17[m]uvos__: mandoc is what i have on alpine :D15:23
freemangordonbecause that rendered frame is flipped15:23
freemangordonmighty17[m]: create /usr/share/X11/xorg.conf.d/99-modesetting.conf15:24
uvos__it might be leaving it in a bad state15:24
uvos__so the next filp fails15:24
freemangordonyeah, could be15:24
mighty17[m]freemangordon: `samsung-espresso3g:/etc/X11$ ls` -> `Xwrapper.config  xinit`15:24
freemangordonmighty17[m]: and put https://pastebin.com/Ae7MzgKK in 99-modesetting.conf15:25
mighty17[m]alrighty will do, thanks a lot15:26
freemangordonmighty17[m]: look ath the options, you may want/need to tweak some15:26
freemangordonif you comment Option "AccelMethod" "none" it will try to use glamor15:27
freemangordonbut it will fail15:27
mighty17[m]aand it worked tadda!15:27
freemangordonas glamor is broken on pvr15:27
mighty17[m]freemangordon: but pvr doesnt like glamor15:27
freemangordonmhm15:27
freemangordonso, if you want to use accelerated X1115:27
mighty17[m]can we do nothing about that missing egl extension?15:27
uvos__the extension isent the real problem15:27
freemangordonthen you have to use https://github.com/maemo-leste/xf86-video-omap/blob/master/debian/changelog#L115:27
freemangordonright15:28
mighty17[m]im a bit lost here15:28
freemangordonmighty17[m]: glamor does not work fine on pvr. period :)15:29
freemangordonif you want fast 3D you need to use omap DDX (driver that is) instead of modesetting15:29
mighty17[m]okay, so fast 3d + x, i need omap ddx15:32
uvos__spcificly that omap ddx15:32
uvos__not the upstream xorg one15:32
freemangordonyeah15:32
freemangordonthough, it is not thoroughly tested with non-compositing WMs, so you may have issues15:34
mighty17[m]uvos__: ohk, is it already in openpvrsgx15:34
uvos__?15:34
uvos__its not a gpu driver15:34
uvos__its a ddx15:34
uvos__device dependand x15:34
freemangordonor X driver15:34
freemangordon:)15:34
uvos__a glue driver between x and the real driver15:35
mighty17[m]ooooh15:35
freemangordonalso, you want leste kernel as well15:35
mighty17[m]leste kernel?15:35
uvos__droid4-linux15:35
uvos__rebase on that15:35
freemangordonor, as known since yesterday, leste-omap :p15:35
freemangordonor was it omap-leste?15:36
* freemangordon checks15:36
uvos__https://github.com/maemo-leste/droid4-linux/tree/wip/n900%2Fmaemo-5.15-cleaned-up15:36
uvos__oh ok15:36
mighty17[m]well uhh its still openpvrsgx?15:36
uvos__did we move the git repo too15:36
freemangordondon;t know15:36
freemangordonit seems no15:36
uvos__yeah15:37
uvos__i dont like that...15:37
uvos__uh Wizzup15:37
Wizzupuvos__: what?15:37
uvos__we were keeping sgx and the rest of the kernel seperate for a reason...15:37
freemangordonhmm?15:37
Wizzupuvos__: this is my wip branch, it is not meant to be the main branch for all our stuff, but if you're worried about a rebase I am happy to cherry pick 15 commits15:38
uvos__ok15:38
Wizzupand no I didn't rename the repo yet15:38
Wizzupwe can do that if we want15:38
freemangordonWizzup: if you're going to do that (cherry-pick), please LMK, or simply make sure you don;t cherry-pick old versions of my omapdrm/pvr patches which a re reverted later-on15:39
uvos__so if you need to bisect some problem you dont want sgx in the tree, really. also keeping the sgx seperate makes sense for people who want a untainted kernel15:39
mighty17[m]so its mainline? (i dont think patches for d4/n900 specific help me on espresso)15:39
uvos__i liked that the sgx stuf was seperate15:39
uvos__and was merged at compile time15:39
uvos__mighty17[m]: the d4 paches do help you on espresso15:40
Wizzupuvos__: it was never merged at compile time?15:40
mighty17[m]i dont seem to understand the diff in kernels (openpvrsgx and leste-omap)15:40
bencohuvos__: basically you're saying you prefer it as a set of patches?15:41
uvos__bencoh: essentally15:41
bencohI'd rather have a branch15:41
uvos__or a branch but based on mainline15:41
uvos__and then leste patches in a different branch on mainline15:41
uvos__and then merge before compile15:41
uvos__essentaly patches yeah15:41
uvos__Wizzup: https://github.com/maemo-leste/droid4-linux/commits/droid4-pending-v5.15 dosent contain sgx15:42
bencoh"merge before compile" sounds just like something I'd want to avoid15:42
uvos__bencoh: right but now if i want a untainted kernel with leste patches i have to cherry pick random commits to avoid merging in sgx15:43
Wizzupuvos__: whatever we tagged did15:43
bencohis that part tainted?15:43
bencohI don't think it should be15:43
uvos__bencoh: not tainted in the kernel sense15:43
bencohright15:43
uvos__bencoh: ie the flag15:43
uvos__but its tainted in that its somehting that can never be upstreamed15:44
Wizzupuvos__: I am fine with separating some things out logically, point is this is just mostly my personal branch15:44
Wizzuphappy for some feedback also, but otoh it'd be nice to have something that's not -rc2 based15:44
uvos__i mostly just want to be able to merge in leste patches onto a mainline kernel without mutch effort or merging in sgx15:45
freemangordonuvos__: which patches in particular?15:46
uvos__that varies with time :P15:46
freemangordonhow having a tree with PVR driver prevents you from sending patches upstream?15:46
uvos__testing15:46
Wizzuptesting is harder without the pvr driver for mwe15:47
Wizzupthat's why I had it in15:47
uvos__i want to allways test it on mainline as far a possible beofore sending it upstream to be applied to a kernel without pvr15:47
freemangordonok, seems your workflow is totally different compared to mine15:47
bencoh:)15:47
uvos__it used to be that d4 had real issues without leste patches (hanging etc) in the past15:47
uvos__so i had to have those15:47
uvos__those used to just be a couple of patches in the debian dir15:47
freemangordonwell, but you can always pull latest -rc, no?15:48
uvos__so i could merge them without sgx without looking for random commits in the tree to cerry pick15:48
freemangordonwhy shall we keep a mirror of upstream linux?15:48
Wizzupthe patches in the debian dir was a nightmare for maintenance15:48
uvos__Wizzup: sure im not advocating for the return of it15:48
Wizzupjust let me know how you want it structured and I'll try15:48
Wizzupreally it's just a matter of a few cherry picks15:48
uvos__so id like it like this15:49
bencohSince we're talking about patch management and git/cherrypicks and checking log: git log --cherry-mark --left-only origin/master...15:49
uvos__we have a omap-linux-pending with patches we want to upstream at some point15:49
freemangordonWizzup: hmm, my mail to nigupta was rejected15:49
uvos__all new patches go there15:49
freemangordonit it possible s/he got none of the emails?15:49
freemangordon*is it15:49
uvos__we have omap-linux-pending-sgx with mainline+omap-linux-pending+sgx merged15:50
freemangordon"550 5.4.1 Recipient address rejected: Access denied"15:50
Wizzupfreemangordon: could be, when did you sent it15:50
uvos__sgx branch is just mainline + OpenPVRSGX  + whatever we do that changes the pvr15:50
Wizzupsend*15:50
uvos__driver15:50
freemangordona minute ago15:51
Wizzupah just now15:51
Wizzupfreemangordon: my most recent email also included the linux-mm ml15:51
Wizzupwhich is hosted somewhere else (confusingly)15:51
Wizzupbut I also didn't see a response there15:51
freemangordonok, lets see if I will get a response15:51
freemangordondo you see my mail?15:52
Wizzuphttps://marc.info/?l=linux-mm&m=163966788011309&w=215:54
Wizzupfreemangordon: yes15:54
Wizzupfreemangordon: btw so maybe we do not need compaction after all15:54
Wizzupsince I had old ddx15:54
freemangordonWizzup: yes, we have it :)15:55
freemangordon*need15:55
Wizzupok15:55
uvos__do we need hugepages at all?15:55
uvos__if your worryed about fragmentation15:55
uvos__w/o compation15:55
uvos__*compaction15:55
freemangordonhow will CMA work without that?15:55
uvos__idk how cma works so no idea15:55
uvos__thats why i ask15:55
freemangordonI think CMA will not work without it15:55
freemangordonsomeone shall do page migration when contiguous buffer is needed15:56
uvos__not having hugepages dosent prevent in kernel users allocating contiguous buffers15:56
uvos__afaik15:56
freemangordonwe are not talking about huge pages, but compaction15:56
uvos__compaction was added for hugepages15:57
freemangordononce memory gets fragmented...15:57
freemangordonI think the same thing is used for CMA15:57
freemangordonbut might be wrong15:57
freemangordonWizzup: maybe it worths a try15:58
uvos__well the compatction stuff was added for hugepages since ofc having those causes lots of fragmetnation having only 4kb pages dosent15:58
freemangordonuvos__: ok, seems we lack knowledge, so Wizzup can try to disable compaction now he uses the correct DDX and see15:59
WizzupI mean I am fine keeping it on with the timeout nerfed16:00
Wizzupjust wanted to mention it16:00
uvos__yeah sure16:00
uvos__real fix is not having the timeout16:00
freemangordonWizzup: sure, but if it is not needed, then it will mean less code and one patch less to carry16:00
freemangordonWizzup: I can test too16:00
freemangordonbut not sure how valid my test will be16:01
freemangordonWizzup: btw, do I still need droid4 component on n900?16:02
bencohbasically compaction shouldn't run in idle16:04
bencohand it shouldn't prevent the scheduler from entering idle either16:04
Wizzupfreemangordon: I need to triple check all components, so keep it for now16:05
freemangordonok16:05
freemangordonugh: E: Unable to locate package maemo-kernel-config-n90016:06
freemangordonis that in experimental?16:06
uvos__yeah the 500ms timer is clearly silly, i mean whats the point of checking fragmentation potentaly hours since the device was last awake for anything. if nothing runs nothing can cause fragmentation16:06
Wizzupuvos__: regarding setup, which do we merge on top of which16:06
Wizzupuvos__: I guess what you suggest can work if tmlind carries all our non pvr patches16:07
Wizzupbut not all of them are ready yet16:07
uvos__not sure why we need tmlind16:07
Wizzupwell we were just based on top of his pending branches before16:07
uvos__well we can have an intermeidate branch16:07
uvos__thats his pending + our non pvr patches16:07
uvos__or tmlind can accept maintinaice of essentally linux-omap for leste16:09
uvos__he kinda dose allready16:09
uvos__tmlind: ^^^16:09
Wizzupuvos__: I think we/I need to do a bit of work and suggest which ones to carry16:11
Wizzupsome of mine are just reverts for things that broke that we still need proper fixes for16:11
uvos__i gues a midway house here16:12
uvos__is we have linux-omap for leste with everything sgx+our patches+hacks+whatever16:12
uvos__and we try and "upstream" our patches to at least tmlinds brach soon16:13
uvos__and then we rebase the linux-omap leste branch on timlind with eatch release as before16:13
uvos__idk really what is best here16:13
Wizzupwell I did try to upstream whatever fixes I had, I just ran out of time and energy for others16:14
Wizzupwe'll have to revisit them in the future anyway16:14
Wizzupbbiab16:14
bencohfreemangordon: iiuic CMA should only use pre-allocated buffers16:34
bencohso compaction (or lack thereof) shouldn't affect it16:34
bencohbasically you can even specify the CMA segment at boot (cma=42M@0x12120000)16:35
tmlindWizzup, uvos: it's best to try to mainline what we can, then set up topic branches that can be merged together for m-l kernel. i'd rather not start piling up patches, best to have uvos deal with his own patches, freemangordon deal with his patches etc17:42
tmlindthen just merge those topic branches together :)17:42
Wizzupagreed17:46
uvos__Wizzup: tmlind: looks like the touchscreen buttons are connected to KLC led cpcap channel17:52
uvos__and is probubly the same on xt86x17:52
uvos__*Wizzup: tmlind: looks like the touchscreen buttons are connected to KLC led cpcap channel on xt87517:54
tmlinduvos: hmm is klc keyboard light controller or something like that?17:57
uvos__yeah17:57
uvos__but its unused on d417:57
tmlindah17:57
uvos__with the keyboard being on the other led chip instead17:57
tmlindso does the xt875 firmware control the klc led then?17:57
uvos__its set  on on reset17:58
uvos__other than that no i think17:58
tmlindah ok, so linux could control it17:58
uvos__yeah17:58
tmlindnice17:58
uvos__for some reason18:01
uvos__in the current leste tree18:01
uvos__the sgx driver gets rebuilt on every build of modules18:01
tmlindyeah that sucks.. it's because we can't yet build all the socs into a single module :(18:02
tmlinduvos: so that's the CPCAP_REG_KLC then?18:02
uvos__yeah18:02
tmlindok18:02
uvos__i have a patch incomeing18:02
tmlind:)18:02
uvos__also needs support added to the cpcap led driver for that channel18:02
tmlindok18:02
Wizzupuvos__: let's coordinate on your various patches so we can get them in omap-linux18:04
uvos__ok18:04
tmlindwhen v5.15 is out, i suggest we all set up minimal personal topic branches, then attempt to merge them to m-l kernel18:05
tmlindi mean v5.1618:06
tmlindone or more topic branches per developer18:07
tmlindi think these branches already exist, we just need to merge them into the m-l kernel git tree18:08
Wizzupwell yeah, but for m-l purposes we also want a stable branch, maybe 5.15 based now18:08
tmlindyeah, not sure if we want to redo the 5.15 branch though18:09
Wizzupwell I am going to clean up my 5.15 based one, but it's based on your rc218:09
tmlindmost of these topic branches could be based on v5.15 at this point for sure18:11
Wizzupyeah mostly meant that having a pvr one based on 5.15.y would be nice, but I imagine it might even just rebase without conflicts18:11
tmlindyeah it should18:11
tmlindwe need some kind of txt list of topic branches to merge in :)18:12
freemangordonWizzup: there is already 5.16-rc pvr repo18:51
freemangordonmy patches should be already there18:51
freemangordonalso, omapdrm patch is in rc as well18:52
freemangordonso I think it makes sense to go for that18:52
freemangordonas next step ofc18:52
freemangordonhmm, it is in drm-next, maybe it will be in 5.17-rc18:54
freemangordonit is in linux-next, no idea what that means in terms of version18:56
Wizzupfreemangordon: I'd like something stable for our users too18:58
Wizzupso maybe 5.15.y18:58
freemangordonis it lts?18:58
freemangordonor we don;t care18:58
Wizzupdon't care re lts18:59
huckgI am following directions from this page: https://maedevu.maemo.org/images/bionic/README.txt  I am wondering where is a safe place to obtain the file Root_Bionic_JB_20130501-4.ova19:58
uvoshuckg: https://maedevu.maemo.org/images/bionic/19:59
huckgD'oh, thanks!20:00
uvostmlind: any idea why if i remove https://github.com/maemo-leste/droid4-linux/blob/32fd293562d705670dfb3522e19e533e98729a9e/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi#L13721:36
uvosand https://github.com/maemo-leste/droid4-linux/blob/32fd293562d705670dfb3522e19e533e98729a9e/arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi#L14321:36
uvoscpcap_led_probe https://github.com/maemo-leste/droid4-linux/blob/32fd293562d705670dfb3522e19e533e98729a9e/drivers/leds/leds-cpcap.c#L159 still runs a total of 5 times21:38
uvosand causes 2 nullpointer derefs beacuse device_get_match_data fails (because ofc it dose)21:38
uvosi dont get why the kernel would still try to probe cpcap-led for motorola,cpcap-led-adl when the dts node dosent exist21:39
uvostmlind: yeah i dont get it heres the dts runing on the system decompiled from the generated dtb http://uvos.xyz/maserati/tmp.dts21:56
uvosah, this: https://github.com/maemo-leste/droid4-linux/blob/32fd293562d705670dfb3522e19e533e98729a9e/drivers/mfd/motorola-cpcap.c#L27022:01
uvosok22:01
uvosi see i see22:01
uvostmlind: hmm static mfd_cell dosent seam a good fit for cpcap22:10
uvostmlind: since cpcap contains lots of devices that are often unused22:10
uvosWizzup: so the ts-buttons on d3 are also connected to cpcap klc23:37
uvosWizzup: also the alt key light is on bledc23:38
uvosWizzup: and shift key light is on cledc23:38
uvosneat that d2 has extra keyboard staus lights23:39
uvosWizzup: unfortinatly the backlight isent on cpcaps pannel backlight channel, nor any of the other cpcap channels23:49
uvos(d3)23:49
Wizzupuvos: thanks for investigating :)23:59
Wizzuphuckg: did you manage with the bionic?23:59

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