tk has quit [Quit: Well, this is unexpected.]
tk has joined #maemo-leste
TonyStone has quit [Remote host closed the connection]
<Wizzup> uvos__: re: more corruption could also be that you have a custom theme and/or backgrounds on your other devices
TonyStone has joined #maemo-leste
Pali has quit [Ping timeout: 268 seconds]
uvos__ has quit [Ping timeout: 256 seconds]
cockroach has quit [Quit: leaving]
sunshavi_ has quit [Remote host closed the connection]
macros__ has joined #maemo-leste
macros_ has quit [Ping timeout: 268 seconds]
joerg has quit [Ping timeout: 256 seconds]
Daaanct12 is now known as Danct12
joerg has joined #maemo-leste
<freemangordon> Wizzup: 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 eMMC
<freemangordon> also, using 16bpp will greatly reduce memory usage
inky_ has joined #maemo-leste
DPA- has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
DPA has joined #maemo-leste
inky_ has quit [Read error: Connection reset by peer]
inky has joined #maemo-leste
inky_ has joined #maemo-leste
ikmaak2 is now known as ikmaak
inky has quit [Ping timeout: 256 seconds]
inky_ has quit [Read error: Connection reset by peer]
inky_ has joined #maemo-leste
joerg has quit [Read error: Connection reset by peer]
joerg has joined #maemo-leste
inky_ has quit [Read error: Connection reset by peer]
xmn has quit [Ping timeout: 260 seconds]
<Wizzup> freemangordon: yeah I am still not convinced about zswap being a bad idea and swapping to slow and irreplaceable disk instead
bencoh has joined #maemo-leste
bencoh has quit [Changing host]
<parazyd> Yeah swapping on such storage is bound to degrade lifetime
dingen has joined #maemo-leste
dingen is now known as dreamer
alex1216 has joined #maemo-leste
Pali has joined #maemo-leste
sunshavi has joined #maemo-leste
alex1216 has quit [Ping timeout: 240 seconds]
inky_ has joined #maemo-leste
uvos__ has joined #maemo-leste
<Wizzup> parazyd: hm it looks like /etc/kernel/postinst.d runs before the postinst of our kernel image package
<Wizzup> that can't be right?
<uvos__> parazyd: irc.txt is broken
<Wizzup> parazyd: hmmmm I guess our modifications to builddeb actually make it run our stuff before run-parts
<Wizzup> that's wrong
lel has joined #maemo-leste
<Wizzup> I fixed builddeb
<uvos__> freemangordon: is it really smart to swap on emmc on a device thats 10+ years old? its probubly getting up there on writes allready
<Wizzup> well it depends right
<Wizzup> if we want 0.75GB of swap we will need to do that
<Wizzup> (which is what fremantle has)
<Wizzup> we could swap to sd card as well but it is kinda slow
<Wizzup> otoh I think a bit of zswap really isn't a bad idea
<Wizzup> of course not too much, and maybe our ratio is off
<uvos__> if the 100mhz clock hack works on omap3/n900 then modern sdcards way outprerform mmc
<Wizzup> you tried this mostly on d4 though right?
<Wizzup> also iirc n900 bus width is small
<uvos__> exclusively yeah
<uvos__> its 4bit like d4
<uvos__> emmc bus with is 8
<uvos__> on both
<uvos__> doubleing the bus clock levels the field
<Wizzup> ok
<bencoh> the "hack" is basically allowing SDR104 even though it shouldn't be supported?
<uvos__> not really
<uvos__> so we can do in spec sdr50 with 5v bus
<uvos__> omap4 can also do sdr100 @5v and ddr50 @5v and thats supported by some mmc chips
<bencoh> 5V or 3.3V?
<uvos__> but sdcard spec for uhs1 is 50mhz @5v sdr or 50mhz @1.8 ddr or 100mhz @1.8v sdr
<uvos__> we cant do 1.8v at all
<uvos__> s/5v/3.3v
<uvos__> see sdcard uhs1 spec page 3
<freemangordon> Wizzup: 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 worse
<freemangordon> slow CPU on 256 MiB RAM zswap is a recipe for disaster
<freemangordon> even if you tell it to be 64MiB only
<freemangordon> so, we either have a dedicated swap partition on uSD (which will be slow as hell) or we use swap partition which is already there
<freemangordon> not much we can do about eMMC wearing
<Wizzup> I think we will give users the option
<Wizzup> We do zswap every where at the moment and it hasn't caused many problems really
<bencoh> including n900?
<Wizzup> yes
<Wizzup> btw, once latest droid4-linux is done I think n900 on experimental should apt-get upgrade to newer 5.15 kernel
<Wizzup> including postinst hook
<Wizzup> I still got a X crash on it after opening ~5 terminals though
<Wizzup> bencoh: but we might want to tweak the ratio for some low power devices perhaps
<freemangordon> Wizzup: please disable that on n900
<Wizzup> freemangordon: will it help with the x crash?
<freemangordon> do you want me to give you the link to TMO thread?
<Wizzup> no I remember the thread on compcache
<freemangordon> does it still crash?
<Wizzup> yes
<freemangordon> maybe, I dont; know
<freemangordon> is it still CMA related crash?
<Wizzup> [ 308.908050] cma: cma_alloc: reserved: alloc failed, req-size: 277 pages, ret: -12
<freemangordon> with compaction enabled?
<Wizzup> yes
<freemangordon> CMA is 32 MiB?
<Wizzup> yes
<freemangordon> maybe we have a memleak
<Wizzup> and proactive timeout of 120s
<freemangordon> and yes, maybe too much memory is non-evictable
<Wizzup> the kernel is building on jenkins atm
<bencoh> /proc/slabinfo might have some info
<bencoh> although .... nevermind
<freemangordon> Wizzup: please disable zswap and enable eMMC swap and see if it will continue with the crashes
<bencoh> cma might not show there
<freemangordon> bencoh: /proc/meminfo
<bencoh> freemangordon: I wanted something more detailed, but yeah
<Wizzup> freemangordon: seems insane to me but ok I'll rename the zram init script
<freemangordon> but I don;t really understand what exactly CmaFree is supposed to mean
<bencoh> is there any other CMA user on n900?
<Wizzup> freemangordon: ah wait looks like zram is already disabled
<freemangordon> no, it is not
<freemangordon> at least no in the image
<freemangordon> *not
<freemangordon> bencoh: none I am aware of
<freemangordon> buw we can simply have a memleak
<freemangordon> *but
<Wizzup> freemangordon: on my device
<freemangordon> ah
<freemangordon> and do you have swap?
<Wizzup> there was some
<Wizzup> I'm rebooting and will disable
<freemangordon> can't parse
<Wizzup> I am rebooting and will run swapoff
<Wizzup> and then try to crash it again
<freemangordon> of zswap?
<Wizzup> swapoff -a
<freemangordon> well, swapon /dev/mmcblk1p3
<Wizzup> why? we have only 80MB out of 250MB in use
<Wizzup> clearly swap is not needed for such a simple test
<freemangordon> (iirc this is swap partition on eMMC)
<freemangordon> Wizzup: I think swap is needed for page migration
<Wizzup> what is that?
<freemangordon> moving pages between zones
<freemangordon> in order to have CMA, you need to migrate pages
<freemangordon> compactin is the process which does it
<freemangordon> *compaction
<freemangordon> in order to have a big block of contiguous memory, you need to move the pages that are in the middle of the block
<freemangordon> used ones that is
<freemangordon> bencoh: do you have any idea how to choose CMA size?
<Wizzup> freemangordon: same problem
<Wizzup> with zram off and mmcblk1p3 as swap
<freemangordon> how many applications?
<Wizzup> I just open about ~5 osso-xterms quickly
<Wizzup> through the menu button and then the new button
<Wizzup> you caxn just press the same place on the ts to open many quickly
<freemangordon> hmm, cannot repro here
<freemangordon> lemme check though
<Wizzup> well let's wait for -experimental kernel
<freemangordon> *try
<Wizzup> it'll be ~2hrs
<Wizzup> solidrun still didn't ship the server, 6 weeks later :(
<freemangordon> ok, but using my config might bring different results
<Wizzup> freemangordon: sure
<freemangordon> also, I am with 24MiB CMA
<Wizzup> root@devuan-n900:~# zgrep COMPACT /proc/config.gz
<Wizzup> CONFIG_CMA_SIZE_MBYTES=32
<Wizzup> CONFIG_COMPACTION=y
<Wizzup> CONFIG_CMA_SIZE_SEL_MBYTES=y
<Wizzup> root@devuan-n900:~# zgrep CMA /proc/config.gz | grep MBYTES
<freemangordon> booting the device
<bencoh> freemangordon: cma= at boot
<freemangordon> 16 xterms open
<freemangordon> no crash
<bencoh> (bootargs I mean)
<freemangordon> 24
<freemangordon> CONFIG_COMPACTION=y
<freemangordon> root@devuan-n900:~# zgrep COMPACT /proc/config.gz
<freemangordon> root@devuan-n900:~# zgrep CMA /proc/config.gz | grep MBYTES
<freemangordon> CONFIG_CMA_SIZE_MBYTES=24
<freemangordon> CONFIG_CMA_SIZE_SEL_MBYTES=y
<freemangordon> bencoh: no, my question was not how to set it, but how to choose the size itself
<bencoh> ah
<freemangordon> like, do we prefer 16MiB or 64MiB
<freemangordon> Wizzup: I don;t understand why it behaves liek that on your device
<bencoh> well, 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 size
<bencoh> that's how I do it $here
<Wizzup> freemangordon: maybe try with repo kernel
<Wizzup> freemangordon: it's still building fwiw but the only diff is the postinst script swap
<Wizzup> (swapping of what runs when)
<freemangordon> Wizzup: ok
<Wizzup> freemangordon: probably easier to just fetch the branch and build yourself
<freemangordon> bencoh: what is "frames"?
<bencoh> freemangordon: display/gpu/whatever frame
<bencoh> as in framebuffer
<freemangordon> ah
<freemangordon> well, not that simple I think
<bencoh> it's that simple with v4l2 devices at least
<freemangordon> because every application uses additional front framebuffer which must be CMA
<bencoh> each app has its own buffer in CMA?
<freemangordon> mhm
<bencoh> how large is a frame? 840x480x2?
<bencoh> (assuming RGB565)
<freemangordon> 24 xterms+HAM+calculator+cpl+pdf reader
<freemangordon> 24bpp
<bencoh> ah
<bencoh> so 840x480x3
<freemangordon> mhm
<bencoh> ~1.2M, still need to know what it should be aligned to, 2M might be the right answer
<freemangordon> 2MiB per application?
<bencoh> that sounds silly and super high
<bencoh> but yeah
<freemangordon> lemme check something
<bencoh> I don't think I ever hit that limit on fremantle, let's see
<freemangordon> on fremantle it is different
<bencoh> why?
<freemangordon> they don;t flip (that's why the tearing)
<bencoh> ah
<freemangordon> on fremantle they use blit
<freemangordon> IIUC
<bencoh> well ...
<bencoh> considering that n900 is quite low on memory, I wonder if flipping is really the way to go then
<freemangordon> yeah
<freemangordon> well, we still need memory for the buffers
<freemangordon> the question is whether it will be CMA or not
<freemangordon> so not much of a difference
<freemangordon> Total 247 objects, 91979776 bytes
<freemangordon> cat /sys/kernel/debug/dma_buf/bufinfo that is
<freemangordon> ;)
<bencoh> 247 objects?
<freemangordon> this is for 24 xterms+HAM+calculator+cpl+pdf reader
<freemangordon> sure
<bencoh> uh
<Wizzup> 87MB?
<freemangordon> mhm
<freemangordon> only part of this is CMA
<bencoh> on desktop (intel/i915) I see 8 objects, 26148864 bytes
<bencoh> ah
<freemangordon> well, I guess your desktop is not 800x480 :)
<bencoh> sure, but the interesting part was : only 8 objects :)
<freemangordon> compositing WM?
<bencoh> oh, that's the difference
<bencoh> obviously not :)
<bencoh> (wmii)
<freemangordon> also, maybe it does not use DMA_BUF
<freemangordon> but normal memory
<bencoh> i915 uses dmabuf
<freemangordon> for everything?
<bencoh> no idea :)
<freemangordon> I mean - on omap DDX every pixmap is backed by BO
<bencoh> do you know which of those buffers are allocated in CMA?
<freemangordon> yes
<bencoh> is there really one per app then?
<freemangordon> lemme check
<freemangordon> hmm, something is wrong here
<bencoh> what is?
<freemangordon> 1z1mLC45
<freemangordon> flags should tell us whether this is scanout buffer or not
<freemangordon> but I only see OMAP_BO_WC
<bencoh> that's a lot of small (4k) buffers
<freemangordon> yeah
<bencoh> what are those used for?
<freemangordon> icons?
<freemangordon> I don;t know
<bencoh> ah, right
<freemangordon> root@devuan-n900:/sys/kernel/debug/dma_buf# cat bufinfo | grep 01536000 | wc -l
<freemangordon> 30
<bencoh> for 24 windows?
<freemangordon> mhm
<freemangordon> +2 for X itself
<freemangordon> not 24
<freemangordon> 28
<freemangordon> 24 xterms+HAM+calculator+cpl+pdf reader
<bencoh> ah
<bencoh> so window buffers are rounded to 1536000
<bencoh> what did you expect apart from BO_WC?
<freemangordon> OMAP_BO_SCANOUT
<bencoh> is it dmabuf-exported?
<freemangordon> hmm?
<freemangordon> what do you mean?
<bencoh> I'm basically wondering if the dss scanout buffer is actually supposed to show up in that list
<freemangordon> sure
<freemangordon> it is dma_buf BO
<bencoh> well ...
<freemangordon> yes, it is, omap DDX uses omap_bo_new(tiled)()
<freemangordon> for every CreatePixmap
<freemangordon> hmm
<freemangordon> /sys/kernel/debug/dri/1 seems to provide more info
<freemangordon> bencoh: https://pastebin.com/ybzQvDYH
<freemangordon> we have 5 scanout buffers only
<freemangordon> scanout == CMA allocated
<freemangordon> Wizzup: could you check on your device?
<bencoh> freemangordon: so 5*1536000
<freemangordon> mhm
<bencoh> unless we hit some mem alloc issue preventing the kernel from allocating a buffer from CMA
<bencoh> (which would sound like a bug)
<freemangordon> Total 56 objects, 6766592 bytes
<freemangordon> after I closed all applications
<bencoh> and still 5 CMA?
<freemangordon> mhm
<bencoh> well ... :)
<freemangordon> 4x1536000 and 1x16384
<freemangordon> I think the small one is cursor
<bencoh> we still need to know how buffers are allocated (alignement)
<bencoh> but in any case cma=16M should probably be enough
<freemangordon> what do you mean alignment? this is ordinary DMA memory (excluding CMA ones)
<freemangordon> and we use sg lists
<freemangordon> this is the patch I wrote yesterday, basically
<freemangordon> so, alignment is on page
<bencoh> like, page-aligned allocations (ie buffers allocated on page boundaries), but with a higher ... ah
<bencoh> well then ...
<freemangordon> no, this is valid for CMA allocations only (higher...)
<bencoh> but we _are_ talking about cma right ? :)
<bencoh> I mean, the question was to know how to define cma size
<freemangordon> no all the time :)
<freemangordon> ah yeah
<bencoh> :)
<freemangordon> Wizzup: which branch is the latest one?
<freemangordon> ah, found it
<freemangordon> or not?
<freemangordon> where are those patches?
<freemangordon> this is what happens with non-cma buffers
<freemangordon> bencoh: so, it seems we need 3+1 fulscreen buffers
<freemangordon> 3 are for DRI2 TripleBuffer
<freemangordon> 1 is for kernel console
<freemangordon> I think this is the math
<freemangordon> Wizzup: yep, found it
<freemangordon> Wizzup: could you share what you have in /sys/kernel/debug/dri/1/gem after you open few applications?
<Wizzup> ok
<Wizzup> let me boot
<freemangordon> Wizzup: oh, my wifi iface is wlan24 :)
<freemangordon> no wonder it does not work
<Wizzup> n900?
<freemangordon> mhm
<freemangordon> udev did that I guess
<freemangordon> not sure where to look though
<Wizzup> freemangordon: # ls /sys/kernel/debug/dri/*/gem
<Wizzup> /sys/kernel/debug/dri/0/gem /sys/kernel/debug/dri/128/gem
<Wizzup> do you want 0 ? 1 does not have gem here
<freemangordon> sec
<freemangordon> 'cat name' should show omapdrm
<freemangordon> check in 0
<Wizzup> # cat /sys/kernel/debug/dri/0/name
<Wizzup> omapdrm dev=omapdrm.0 master=omapdrm.0 unique=omapdrm.0
<freemangordon> mhm
<freemangordon> this one
<Wizzup> I have one osso-xterm open
<Wizzup> do you want the full output of gem?
<freemangordon> yeah
<freemangordon> please open 3-4
<freemangordon> terminals that is
<Wizzup> oh
<Wizzup> ok
<Wizzup> will open 3-4 and hope it doesn't already crash
<freemangordon> stop
<freemangordon> wait
<freemangordon> Wizzup: you're using wrong ddx
<Wizzup> how
<freemangordon> no idea
<Wizzup> didn't you build it?
<freemangordon> I did
<freemangordon> lemme check
<Wizzup> ii xserver-xorg-video-omap 0.5.1+2m7 armhf X.Org X server -- OMAP display driver
<freemangordon> ugh
<Wizzup> should be 0.5.4 it seems?
<freemangordon> mhm
<freemangordon> you bad boy :p
<Wizzup> ?
<Wizzup> I am fully up to date
<freemangordon> using wrong ddx makes you bad boy. kidding...
<freemangordon> how's that?
<Wizzup> yeah but it's not my fault
<Wizzup> I don't get it as update
<freemangordon> maybe I screwed it somehow
<Wizzup> Section: droid4
<freemangordon> lemme check
<Wizzup> this is not ideal
<Wizzup> still I think I have droid4 as component
<Wizzup> freemangordon: nah it looks ok
<freemangordon> Wizzup: plese help me to fix my wifi
<Wizzup> freemangordon: just nuke the persistent net rules file I think
<freemangordon> where this wlan24 comes from?
<freemangordon> where from?
<Wizzup> but I think this happens when you get a random mac every time
<freemangordon> yes, I know
<Wizzup> sorry my n900 is updating atm, sec
<freemangordon> ok
<freemangordon> /etc/udev/rules.d/ should be it
<Wizzup> root@devuan-n900:~# ls -lsh /etc/udev/rules.d/70-persistent-net.rules
<Wizzup> 0 lrwxrwxrwx 1 root root 9 Jan 1 2000 /etc/udev/rules.d/70-persistent-net.rules -> /dev/null
<freemangordon> I have no such rule
<freemangordon> actually there is nothing there
<Wizzup> yeah my n900 really does not see 0.5.4
<Wizzup> this will be fun to debug
<Wizzup> freemangordon: maybe try 'find /lib | grep persistent'
<Wizzup> freemangordon: ok I see
<Wizzup> freemangordon: I only had 'droid4' as component for experimental, not for -devel
<Wizzup> really the droid4 component in the control file should go
<freemangordon> coul dyou fix that?
<Wizzup> k
<freemangordon> thanks!
<freemangordon> umm, what the? it is wlan0
<Wizzup> what did you do?
<freemangordon> nothing
<freemangordon> I was thinking it is wlan24
<freemangordon> but it is wlan0
<Wizzup> freemangordon: wonder if it will also get faster now with new ddx
<freemangordon> maybe
<Wizzup> freemangordon: if you have your own kernel branch, I assume you picked my wifi patch
<freemangordon> no :)
<freemangordon> I guess this is the issue
<Wizzup> then yes it won't work
<freemangordon> mhm
<Wizzup> maybe apt install linux-image-omap
<freemangordon> ok, lemme try
<Wizzup> (also you need maemo-kernel-config-n900)
<freemangordon> oh, no
<freemangordon> no wifi :)
<freemangordon> wpa_supplicant I guess
<Wizzup> freemangordon: you can just cp the debs to the rootfs
<Wizzup> or use usbnet
<Wizzup> in any case when this works ok/stable I will push all experimental stuff to -devel for n900 and then we can empty experimental
<freemangordon> :nod:
<Wizzup> one thing I kind of want but won't for now is to have drm built in
<Wizzup> last time I tried that gave trouble, but it would be real nice to have fast tty output
<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)
<freemangordon> mighty17[m]: you should provide correct kmsdev to modesetting
<mighty17[m]> as in? i havent touched x at all
<uvos__> xorg.conf
<Wizzup> freemangordon: seems ok now, also with zswap or, and with normal swap on
<Wizzup> so we can rule out any form of swap being a problem
<uvos__> also MESA_LOADER_DRIVER_OVERRIDE dosent have anything to do with the window manager
<freemangordon> Wizzup: yeah, but I still kind of think zswap should be disabled
<uvos__> s/window manager/windowing system
<mighty17[m]> uvos__: well but in wayland i had tinydm which'd set env vars for me
<freemangordon> Wizzup: also, I think 24 MiB or even 16MiB of CMA should suffice
<mighty17[m]> uvos__: cant find it :(
<Wizzup> up to you , I am fine with whatever doesn't cause crashes
<uvos__> mighty17[m]: the xdg-session manager also has nothing to do with wayland vs x
<uvos__> they just start a xdg-session that starts some windowing system
<freemangordon> Wizzup: maybe try with 16 MiB
<freemangordon> or...
<Wizzup> freemangordon: I suggest we potentially postpone finding the exact number
<mighty17[m]> uvos__: right soo im confused aboout modsetting part
<Wizzup> I'm really hoping that I can start doing some non-kernel stuff again soon
<freemangordon> ok, make it 24 then
<freemangordon> not 32
<Wizzup> there are open issues but those are now mostly regarding idle/ret/off mode
<Wizzup> and I also have to do some work-work today :p
<freemangordon> ok :)
<uvos__> mighty17[m]: man modesetting
<Wizzup> freemangordon: this is great though
<Wizzup> freemangordon: I am not sure if it is at same perf as 5.1 with other ddk and other clutter
<Wizzup> but this is good
<freemangordon> it is not
<freemangordon> it is slightly slower
<Wizzup> yeah it feels a bit more stuttery
<Wizzup> but fine for now
<freemangordon> but, this is because of we wait in DDX for gpu rendering to complete before requesting flip
<uvos__> freemangordon: interesting side note
<freemangordon> instead of omapdrm waiting for write fence to be signalled
<mighty17[m]> uvos__: `man: No entry for modesetting in the manual.` :(
<freemangordon> mighty17[m]: sec to boot my d4
<freemangordon> uvos__: hmm?
<uvos__> mighty17[m]: freemangordon: since you worked around the corruption (looks like missing tiles) in omap ddx, when the d3/d4
<uvos__> upps
<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 frame
<uvos__> untill it watchdog reboots
<freemangordon> GPU hangs the system while rendering?
<freemangordon> hmm, no
<uvos__> mighty17[m]: hmm no thats not the right man page
<uvos__> anyhow on arch i have it, and the option you need to set is Option "kmsdev" "string"
<freemangordon> uvos__: I'll provide him xorg.conf for modesetting
<uvos__> you need to set it to /dev/dri/card1
<uvos__> freemangordon: ok
<uvos__> [15:21] <freemangordon> GPU hangs the system while rendering? <-- maybe, why do you say it cant be?
<mighty17[m]> uvos__: mandoc is what i have on alpine :D
<freemangordon> because that rendered frame is flipped
<freemangordon> mighty17[m]: create /usr/share/X11/xorg.conf.d/99-modesetting.conf
<uvos__> it might be leaving it in a bad state
<uvos__> so the next filp fails
<freemangordon> yeah, could be
<mighty17[m]> freemangordon: `samsung-espresso3g:/etc/X11$ ls` -> `Xwrapper.config xinit`
<freemangordon> mighty17[m]: and put https://pastebin.com/Ae7MzgKK in 99-modesetting.conf
<mighty17[m]> alrighty will do, thanks a lot
<freemangordon> mighty17[m]: look ath the options, you may want/need to tweak some
<freemangordon> if you comment Option "AccelMethod" "none" it will try to use glamor
<freemangordon> but it will fail
<mighty17[m]> aand it worked tadda!
<freemangordon> as glamor is broken on pvr
<mighty17[m]> freemangordon: but pvr doesnt like glamor
<freemangordon> mhm
<freemangordon> so, if you want to use accelerated X11
<mighty17[m]> can we do nothing about that missing egl extension?
<uvos__> the extension isent the real problem
<freemangordon> right
<mighty17[m]> im a bit lost here
<freemangordon> mighty17[m]: glamor does not work fine on pvr. period :)
<freemangordon> if you want fast 3D you need to use omap DDX (driver that is) instead of modesetting
alex1216 has joined #maemo-leste
<mighty17[m]> okay, so fast 3d + x, i need omap ddx
<uvos__> spcificly that omap ddx
<uvos__> not the upstream xorg one
<freemangordon> yeah
<freemangordon> though, it is not thoroughly tested with non-compositing WMs, so you may have issues
<mighty17[m]> uvos__: ohk, is it already in openpvrsgx
<uvos__> ?
<uvos__> its not a gpu driver
<uvos__> its a ddx
<uvos__> device dependand x
<freemangordon> or X driver
<freemangordon> :)
<uvos__> a glue driver between x and the real driver
<mighty17[m]> ooooh
<freemangordon> also, you want leste kernel as well
<mighty17[m]> leste kernel?
<uvos__> droid4-linux
<uvos__> rebase on that
<freemangordon> or, as known since yesterday, leste-omap :p
<freemangordon> or was it omap-leste?
* freemangordon checks
<uvos__> oh ok
<mighty17[m]> well uhh its still openpvrsgx?
<uvos__> did we move the git repo too
<freemangordon> don;t know
<freemangordon> it seems no
<uvos__> yeah
<uvos__> i dont like that...
<uvos__> uh Wizzup
<Wizzup> uvos__: what?
<uvos__> we were keeping sgx and the rest of the kernel seperate for a reason...
<freemangordon> hmm?
<Wizzup> uvos__: 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 commits
<uvos__> ok
<Wizzup> and no I didn't rename the repo yet
<Wizzup> we can do that if we want
<freemangordon> Wizzup: 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-on
<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 kernel
<mighty17[m]> so its mainline? (i dont think patches for d4/n900 specific help me on espresso)
<uvos__> i liked that the sgx stuf was seperate
<uvos__> and was merged at compile time
<uvos__> mighty17[m]: the d4 paches do help you on espresso
<Wizzup> uvos__: it was never merged at compile time?
<mighty17[m]> i dont seem to understand the diff in kernels (openpvrsgx and leste-omap)
<bencoh> uvos__: basically you're saying you prefer it as a set of patches?
<uvos__> bencoh: essentally
<bencoh> I'd rather have a branch
<uvos__> or a branch but based on mainline
<uvos__> and then leste patches in a different branch on mainline
<uvos__> and then merge before compile
<uvos__> essentaly patches yeah
<bencoh> "merge before compile" sounds just like something I'd want to avoid
<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 sgx
<Wizzup> uvos__: whatever we tagged did
<bencoh> is that part tainted?
<bencoh> I don't think it should be
<uvos__> bencoh: not tainted in the kernel sense
<bencoh> right
<uvos__> bencoh: ie the flag
<uvos__> but its tainted in that its somehting that can never be upstreamed
<Wizzup> uvos__: I am fine with separating some things out logically, point is this is just mostly my personal branch
<Wizzup> happy for some feedback also, but otoh it'd be nice to have something that's not -rc2 based
<uvos__> i mostly just want to be able to merge in leste patches onto a mainline kernel without mutch effort or merging in sgx
<freemangordon> uvos__: which patches in particular?
<uvos__> that varies with time :P
<freemangordon> how having a tree with PVR driver prevents you from sending patches upstream?
<uvos__> testing
<Wizzup> testing is harder without the pvr driver for mwe
<Wizzup> that's why I had it in
<uvos__> i want to allways test it on mainline as far a possible beofore sending it upstream to be applied to a kernel without pvr
<freemangordon> ok, seems your workflow is totally different compared to mine
<bencoh> :)
<uvos__> it used to be that d4 had real issues without leste patches (hanging etc) in the past
<uvos__> so i had to have those
<uvos__> those used to just be a couple of patches in the debian dir
<freemangordon> well, but you can always pull latest -rc, no?
<uvos__> so i could merge them without sgx without looking for random commits in the tree to cerry pick
<freemangordon> why shall we keep a mirror of upstream linux?
<Wizzup> the patches in the debian dir was a nightmare for maintenance
<uvos__> Wizzup: sure im not advocating for the return of it
<Wizzup> just let me know how you want it structured and I'll try
<Wizzup> really it's just a matter of a few cherry picks
<uvos__> so id like it like this
<bencoh> Since we're talking about patch management and git/cherrypicks and checking log: git log --cherry-mark --left-only origin/master...
<uvos__> we have a omap-linux-pending with patches we want to upstream at some point
<freemangordon> Wizzup: hmm, my mail to nigupta was rejected
<uvos__> all new patches go there
<freemangordon> it it possible s/he got none of the emails?
<freemangordon> *is it
<uvos__> we have omap-linux-pending-sgx with mainline+omap-linux-pending+sgx merged
<freemangordon> "550 5.4.1 Recipient address rejected: Access denied"
<Wizzup> freemangordon: could be, when did you sent it
<uvos__> sgx branch is just mainline + OpenPVRSGX + whatever we do that changes the pvr
<Wizzup> send*
<uvos__> driver
<freemangordon> a minute ago
<Wizzup> ah just now
<Wizzup> freemangordon: my most recent email also included the linux-mm ml
<Wizzup> which is hosted somewhere else (confusingly)
<Wizzup> but I also didn't see a response there
<freemangordon> ok, lets see if I will get a response
<freemangordon> do you see my mail?
xmn has joined #maemo-leste
<Wizzup> freemangordon: yes
<Wizzup> freemangordon: btw so maybe we do not need compaction after all
<Wizzup> since I had old ddx
<freemangordon> Wizzup: yes, we have it :)
<freemangordon> *need
<Wizzup> ok
<uvos__> do we need hugepages at all?
<uvos__> if your worryed about fragmentation
<uvos__> w/o compation
<uvos__> *compaction
<freemangordon> how will CMA work without that?
<uvos__> idk how cma works so no idea
<uvos__> thats why i ask
<freemangordon> I think CMA will not work without it
<freemangordon> someone shall do page migration when contiguous buffer is needed
<uvos__> not having hugepages dosent prevent in kernel users allocating contiguous buffers
<uvos__> afaik
<freemangordon> we are not talking about huge pages, but compaction
<uvos__> compaction was added for hugepages
<freemangordon> once memory gets fragmented...
<freemangordon> I think the same thing is used for CMA
<freemangordon> but might be wrong
<freemangordon> Wizzup: maybe it worths a try
<uvos__> well the compatction stuff was added for hugepages since ofc having those causes lots of fragmetnation having only 4kb pages dosent
<freemangordon> uvos__: ok, seems we lack knowledge, so Wizzup can try to disable compaction now he uses the correct DDX and see
<Wizzup> I mean I am fine keeping it on with the timeout nerfed
<Wizzup> just wanted to mention it
<uvos__> yeah sure
<uvos__> real fix is not having the timeout
<freemangordon> Wizzup: sure, but if it is not needed, then it will mean less code and one patch less to carry
<freemangordon> Wizzup: I can test too
<freemangordon> but not sure how valid my test will be
<freemangordon> Wizzup: btw, do I still need droid4 component on n900?
<bencoh> basically compaction shouldn't run in idle
<bencoh> and it shouldn't prevent the scheduler from entering idle either
<Wizzup> freemangordon: I need to triple check all components, so keep it for now
<freemangordon> ok
<freemangordon> ugh: E: Unable to locate package maemo-kernel-config-n900
<freemangordon> is that in experimental?
<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 fragmentation
<Wizzup> uvos__: regarding setup, which do we merge on top of which
<Wizzup> uvos__: I guess what you suggest can work if tmlind carries all our non pvr patches
<Wizzup> but not all of them are ready yet
<uvos__> not sure why we need tmlind
<Wizzup> well we were just based on top of his pending branches before
<uvos__> well we can have an intermeidate branch
<uvos__> thats his pending + our non pvr patches
<uvos__> or tmlind can accept maintinaice of essentally linux-omap for leste
<uvos__> he kinda dose allready
<uvos__> tmlind: ^^^
<Wizzup> uvos__: I think we/I need to do a bit of work and suggest which ones to carry
<Wizzup> some of mine are just reverts for things that broke that we still need proper fixes for
<uvos__> i gues a midway house here
<uvos__> is we have linux-omap for leste with everything sgx+our patches+hacks+whatever
<uvos__> and we try and "upstream" our patches to at least tmlinds brach soon
<uvos__> and then we rebase the linux-omap leste branch on timlind with eatch release as before
<uvos__> idk really what is best here
<Wizzup> well I did try to upstream whatever fixes I had, I just ran out of time and energy for others
<Wizzup> we'll have to revisit them in the future anyway
<Wizzup> bbiab
<bencoh> freemangordon: iiuic CMA should only use pre-allocated buffers
<bencoh> so compaction (or lack thereof) shouldn't affect it
<bencoh> basically you can even specify the CMA segment at boot (cma=42M@0x12120000)
huckg has joined #maemo-leste
inky has joined #maemo-leste
inky_ has quit [Ping timeout: 256 seconds]
inky has quit [Ping timeout: 256 seconds]
inky has joined #maemo-leste
<tmlind> Wizzup, 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 etc
<tmlind> then just merge those topic branches together :)
<Wizzup> agreed
inky has quit [Ping timeout: 256 seconds]
<uvos__> Wizzup: tmlind: looks like the touchscreen buttons are connected to KLC led cpcap channel
<uvos__> and is probubly the same on xt86x
<uvos__> *Wizzup: tmlind: looks like the touchscreen buttons are connected to KLC led cpcap channel on xt875
<tmlind> uvos: hmm is klc keyboard light controller or something like that?
<uvos__> yeah
<uvos__> but its unused on d4
<tmlind> ah
<uvos__> with the keyboard being on the other led chip instead
<tmlind> so does the xt875 firmware control the klc led then?
<uvos__> its set on on reset
<uvos__> other than that no i think
<tmlind> ah ok, so linux could control it
<uvos__> yeah
<tmlind> nice
<uvos__> for some reason
<uvos__> in the current leste tree
<uvos__> the sgx driver gets rebuilt on every build of modules
<tmlind> yeah that sucks.. it's because we can't yet build all the socs into a single module :(
<tmlind> uvos: so that's the CPCAP_REG_KLC then?
<uvos__> yeah
<tmlind> ok
<uvos__> i have a patch incomeing
<tmlind> :)
<uvos__> also needs support added to the cpcap led driver for that channel
<tmlind> ok
<Wizzup> uvos__: let's coordinate on your various patches so we can get them in omap-linux
<uvos__> ok
<tmlind> when v5.15 is out, i suggest we all set up minimal personal topic branches, then attempt to merge them to m-l kernel
<tmlind> i mean v5.16
<tmlind> one or more topic branches per developer
<tmlind> i think these branches already exist, we just need to merge them into the m-l kernel git tree
<Wizzup> well yeah, but for m-l purposes we also want a stable branch, maybe 5.15 based now
<tmlind> yeah, not sure if we want to redo the 5.15 branch though
<Wizzup> well I am going to clean up my 5.15 based one, but it's based on your rc2
<tmlind> most of these topic branches could be based on v5.15 at this point for sure
<Wizzup> yeah mostly meant that having a pvr one based on 5.15.y would be nice, but I imagine it might even just rebase without conflicts
<tmlind> yeah it should
<tmlind> we need some kind of txt list of topic branches to merge in :)
inky has joined #maemo-leste
uvos__ is now known as uvos
pere has quit [Ping timeout: 252 seconds]
alex1216 has quit [Ping timeout: 256 seconds]
<freemangordon> Wizzup: there is already 5.16-rc pvr repo
<freemangordon> my patches should be already there
<freemangordon> also, omapdrm patch is in rc as well
pere has joined #maemo-leste
<freemangordon> so I think it makes sense to go for that
<freemangordon> as next step ofc
mepy_ has joined #maemo-leste
<freemangordon> hmm, it is in drm-next, maybe it will be in 5.17-rc
mepy has quit [Ping timeout: 245 seconds]
<freemangordon> it is in linux-next, no idea what that means in terms of version
<Wizzup> freemangordon: I'd like something stable for our users too
<Wizzup> so maybe 5.15.y
<freemangordon> is it lts?
<freemangordon> or we don;t care
<Wizzup> don't care re lts
alex1216 has joined #maemo-leste
R0b0t1`` has quit [Ping timeout: 245 seconds]
<huckg> I 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.ova
<huckg> D'oh, thanks!
inky_ has joined #maemo-leste
inky has quit [Ping timeout: 256 seconds]
alex1216 has quit [Quit: WeeChat 2.3]
R0b0t1`` has joined #maemo-leste
<uvos> and causes 2 nullpointer derefs beacuse device_get_match_data fails (because ofc it dose)
<uvos> i dont get why the kernel would still try to probe cpcap-led for motorola,cpcap-led-adl when the dts node dosent exist
_inky has joined #maemo-leste
<uvos> tmlind: yeah i dont get it heres the dts runing on the system decompiled from the generated dtb http://uvos.xyz/maserati/tmp.dts
<uvos> ok
<uvos> i see i see
<uvos> tmlind: hmm static mfd_cell dosent seam a good fit for cpcap
<uvos> tmlind: since cpcap contains lots of devices that are often unused
R0b0t1`` has quit [Ping timeout: 240 seconds]
R0b0t1`` has joined #maemo-leste
Oksanaa has joined #maemo-leste
<uvos> Wizzup: so the ts-buttons on d3 are also connected to cpcap klc
<uvos> Wizzup: also the alt key light is on bledc
<uvos> Wizzup: and shift key light is on cledc
<uvos> neat that d2 has extra keyboard staus lights
LjL has quit [Quit: Scappò via con la paura di arrugginire. Il giornale di ieri lo dà morto arrugginito. I becchini ne raccolgono spesso fra la gente che si lascia piovere addosso.]
LjL has joined #maemo-leste
<uvos> Wizzup: unfortinatly the backlight isent on cpcaps pannel backlight channel, nor any of the other cpcap channels
<uvos> (d3)
<Wizzup> uvos: thanks for investigating :)
<Wizzup> huckg: did you manage with the bionic?
<huckg> Thanks for asking, I was just getting some of the pieces together. The sparks will fly later tonight.
<Wizzup> :)
<uvos> Wizzup: tmlind: little question here, how do you get from the gpio numbers in userspace to the gpio banks in dts
<uvos> i mean i know form expiramentation that <&gpio6 12> is 172
<uvos> by way of 5 banks of 32bit + 12
<uvos> but where is this defined?
huckg has quit [Quit: Client closed]
<Wizzup> hm... I'm trying to remember how I figured this out last time
huckg has joined #maemo-leste
<Wizzup> it might be in the logs, iirc you helped me with that
<uvos> i probubly told you the (bank-1)*32+dts_number rule
<huckg> It appears that I will have to do a crash course in qemu and bridging.
<uvos> but i just found this rule by expieramenting with the interface and what changes :P
<Wizzup> huckg: hm, bridging what? we probably need to document things if you run into problems
<uvos> you have to brige the adb usb if into quemu
<uvos> to root moto andorid 4.1
<huckg> I have already rooted and installed safestrap and lineage 14.1, do I need to do these steps?
<uvos> yes
<uvos> do you have linageos on the stock slot or a sdcard slot?
<huckg> not on stock slot
<uvos> ok
<uvos> the stock slot os need to be rooted
<huckg> got it
<uvos> also you will lose safestrap
<uvos> btw
<uvos> you atm cant boot android
<huckg> ok, the bionic is just a toy for me now, not relying on it for anything important.
<uvos> and leste at the same time
<uvos> ( on bionic on d4 you can )
<uvos> ok
<huckg> stock is 98.72.XT875.Verizon.en.US so I believe that I need to use the procedure outlined in https://maedevu.maemo.org/images/bionic/README.txt
<uvos> huckg: i dont know the numbers of the top o my head
<uvos> thats android 4.1 right?
<huckg> 4.1.2
<uvos> ok, yeah you need that
<uvos> unfortionatly this also means you have the very locked bootloader
<huckg> uh oh is that a showstopper?
<uvos> no
<uvos> just makes it harder to recover if flahsing fails
uvos has quit [Ping timeout: 240 seconds]