libera/#maemo-leste/ Thursday, 2021-12-02

uvosso imanaged to boot devuan on mz617 depolying lest on00:09
uvosthis thing is going to be fun00:09
uvoswe have to create a small 600 mb ish image that we flash to preinstall that copyies itself over to userdata and then downloads the rest of the packages00:10
Wizzupuvos: hm... making a small image isn't a big problem if we make it interactive I guess00:15
uvosnow i want one of these :P00:26
uvoshttps://www.ebay.com/itm/174740269983?_trkparms=amclksrc%3DITM%26aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20180816085401%26meid%3Db821bd2503c94b92b81814b632a7b0f4%26pid%3D100970%26rk%3D1%26rkt%3D10%26sd%3D174740269983%26itm%3D174740269983%26pmt%3D0%26noa%3D1%26pg%3D2380057%26brand%3DMotorola&_trksid=p2380057.c100970.m5481&_trkparms=pageci%3Affb68de1-52fd-11ec-92a4-6e6689b06521%7Cparentrq%3A7851696517d0a74485204c06ffe69a06%7Ciid%00:26
uvos3A100:26
uvosaperantly the link is to long00:26
uvoshttps://www.ebay.com/itm/17474026998300:27
Wizzupuvos: yeah neat01:47
parazydsicelo: How much do you know about libsharing in fremantle?12:19
mighty17[m]<uvos> ""[14:51] <mighty17> uvos..." <- https://paste.debian.net/1221661/15:03
Wizzupdsc_: managed to get a n900 for you for cheap15:06
Wizzupwill send it next week15:06
mighty17[m]<uvos> "anyhow on d4 we have 6 errors in..." <- https://paste.debian.net/1221662/ here's my full_log, can you tell what the errors in d4 are?15:11
uvosWizzup: got dronbl banned _again_.17:06
Wizzupuff17:07
uvosbanning shared, rotating and nat'd ips is pretty silliy17:08
Wizzupmhm17:08
Wizzupprobably helps in the short term17:08
uvosanyways: mighty17[m]: http://uvos.xyz/maserati/os_idle_uc_audit_details.txt17:10
uvoswe acctually just have 5 now (since swtiching to ddk1.17 a sgx related error vanished)17:11
mighty17[m]hm I have an error with TIMER10 which is related to my pwm backlight (which is gptimer)17:12
mighty17[m]i know my pwm value `pwms = <&pwm10 0 5000000 0>;` is wrong ie 5000000 should be smth else but idk how to find it17:12
uvosthat oops is very descriptive no?17:12
uvosjust go into dss_set_fck_rate and follow backwards to check why it thinks that the rate should be 5688888917:13
uvosprobubly something you did in dts17:13
uvosor some driver thinks this is a device limit17:13
mighty17[m]uvos: because 56888889 is the correct rate17:13
mighty17[m]But then display goes haywire17:14
uvoshow do you know its the correct rate?17:14
uvoswhy not compear the registers on android with those on mainline17:14
uvosbtw dsi can do double signaling17:15
mighty17[m]uvos: https://github.com/Unlegacy-Android/android_kernel_ti_omap4/blob/3.0/common/arch/arm/mach-omap2/board-espresso-display.c#L6517:15
uvos(ie on leading and falling eadge)17:15
uvosso you might be set for sdr and then have the clock at 2x17:16
uvoswhile the pannel wants ddr at 1x17:16
uvosthat might kinda work17:16
uvossometimes17:16
uvosbut is wrong ofc17:16
uvosmighty17[m]: just becasue the board source saies that dosent mean its true17:17
mighty17[m]uvos: yeah that'd kinda make sense, as i use `56888889/2` and display works fine (altho at 30Hz)17:17
uvosmighty17[m]: on d4 the kernel drivers do sometimes just use other values17:17
uvoscheck the regs17:17
mighty17[m]on downstream? how so17:17
uvosrwmem?17:17
mighty17[m]that'll give clk?17:19
uvossure if you look at the trm and find the right register it will give you anything17:19
uvosclk rate mismatch: 170666667 != 56888889 <= these arnt 2x away from eatch other17:20
mighty17[m]`clock-frequency = <28444445>;`17:20
uvosyeah well why dont you flow the oops backtrace backwards to figure out where it comes up with the 170666667 number17:22
mighty17[m]well yeah thats the only option17:23
freemangordonYAY! Tomi accepted the patch :)17:30
freemangordonvrfb comes next ;)17:30
bencoh:)17:31
freemangordonbut I'll really appreciate if someone take on the tearing/6ms issue17:31
tmlindfreemangordon: hey that's good news :) tomi usually ends up testing what he merges one way or another, so it will likely get some proper attention17:59
tmlindof course the possible security issues involved there also help to get some attention17:59
tmlindfreemangordon: how about sprinkle some trace_printk() to track down where the 6ms delay comes from?18:00
freemangordontmlind: yeah (merges)18:03
freemangordontmlind: it is not that I don't have ideas how to tackle that, the point is that I want to focus on VRFB and then to return to adressbook18:04
freemangordonI've already wasted too much time on sgx. well wasted time, but still18:04
freemangordontmlind: BTW, do we have some omapdrm patch in your tree that is not upstream?18:05
uvosfreemangordon: i mean if you leave it lieing around ill do it eventually, rn im playing around with mz617 - but still18:05
uvosits not killing us is it ;)18:05
freemangordonyes, but is frustrating18:06
freemangordonand obviously we have some deeper issue with omap/drm18:06
tmlindyup18:06
uvosyeah we do18:06
freemangordonI *think* 6ms delay comes from FB pin()18:07
tmlindfreemangordon: i think the only remaining patch we carry is really the vblank patch, the others are just hacks18:07
freemangordondo you plan to send it for upstreaming? or it has issues?18:07
uvosspeaking of which - bit of a devuan problem, i setup a devuan rootfs for mz617 and i can use the default runlevel just fine and also modprobe whatever i need & mknode it. eveything seams to work fine18:08
freemangordonbut?18:08
uvosbut if i start udev the serial console dissconects, the device is still running & fine otherwise18:09
freemangordon:)18:09
uvoscant seam to find why udev would do that18:09
tmlindfreemangordon: i did send the vblank already about a year ago, but was promised a promptly review only :)18:09
freemangordonand still no review?18:09
tmlindheh no, i should resend it18:09
freemangordonI can at least add Tested-by:18:09
freemangordonplease do18:10
Wizzupuvos: huh, that's odd18:10
tmlindok will do when i get a chance18:10
freemangordonthanks!18:10
uvosWizzup: yeah frustrating, becuase the display dosent work so i cant look at anything after udev starts, the only way i know the system is still up & fine is because i wrote a script that dose sleep 30; touch /survived18:11
uvosso not sure how to debug even (maybe get usbnet up or something and then start udev)18:12
tmlinduvos: i think there was some issue loading usb modules in ealier kernels with mz617.. what kernel version?18:12
uvos5.16-rc318:12
uvos+ your dts18:12
tmlinduvos: hmm let me see, that sounds familiar, i had an issue where loading the usb or phy would kill the uart..18:13
tmlinduvos: ah right, now i remember.. get rid of the emif nodes in the dts!18:14
uvostmlind: thanks ill try that!18:15
tmlinduvos: ok let's hope it helps18:15
freemangordontmlind: BTW, what are those 'hacks'?18:25
tmlindfreemangordon: the latest incarnation of trying to flush to avoid the tearing18:25
freemangordonah18:26
freemangordonI still think this is not kernel's job :)18:26
tmlindyeah ok18:26
freemangordonbut yeah18:26
tmlindthen there's the fix for making paging work18:26
freemangordonhmm, what is this?18:27
tmlindmaybe that's not needed at all after your patch?18:27
freemangordonwhich patch is that, I can look at it to see if needed18:27
tmlinddrm/omap: Fix shmem write-combined buffer handling18:28
tmlinda similar fix should be done at least one more location, but that does not affect anything afaik18:28
freemangordontmlind: the point is - maybe at some point we'll have to send mail to Tomi or Laurent re tearing issue, I want to be sure this tearing is not caused by something we did. That's why I am asking.18:29
tmlindyeah18:29
tmlindthe tearing is hard on normal panels as the next refresh will hide it18:30
freemangordonnot really18:30
tmlindi mean it's hard to see on normal panels18:30
freemangordonI see it on hdmi18:31
uvosits harder to se hdmi18:31
tmlindok18:31
uvosbut i would not call it hard18:31
freemangordonyeah, harder18:31
tmlinddo you see it only after slowing down sgx?18:31
freemangordonno18:31
uvosno18:31
freemangordonthe one that was caused when sgx is slowed down is another one18:31
tmlindmaybe the tearing and the 6ms issue are related?18:32
freemangordonI fixed it in DDX18:32
freemangordontmlind: could be18:32
freemangordonmaybe we just don;t understand how that 'flush' happens18:32
tmlindheh yeah :)18:32
freemangordonmaybe panel shall be somehow 'prepared' first18:32
freemangordonI mean - do you know if it has 'shadow framebuffer memory' in it?18:33
tmlindfreemangordon: but yeah if you can test if we need at all path drm/omap: Fix shmem write-combined buffer handling18:33
freemangordonlemme see that18:33
tmlindok18:33
tmlindso i have two fixes to send to tomi it seems, maybe only one18:33
uvosfreemangordon: shadow framebuffer memory?18:34
freemangordontmlind: so, on my question - is there any memory in th epanel itself?18:34
uvosthe pannel has its own ram18:34
freemangordonmy question, yes18:34
uvosbut thats totaly transperant to the kernel afaik18:34
tmlindyup18:34
freemangordonbut, it seems we write in that memory while it is being read from18:34
tmlindthat's the command mode lcd right?18:35
uvosno18:35
freemangordonthat's why the tearing18:35
uvosbecuase then on hdmi there would be no tearing18:35
freemangordonuvos: how could you explain it then?18:35
tmlindright18:35
uvoswe must be uploding the frame with tearing allready18:35
freemangordonhmm18:35
tmlindagree18:35
freemangordonright18:35
tmlindthe command mode lcd we only refresh with delayed work18:35
freemangordonyeah18:35
tmlindafaik that is not blocking anything for 6ms, but i could be wrong18:36
freemangordonok, maybe I can try to dump frames to see what is in there18:36
freemangordonI mean - the ones that come from h-d18:36
tmlindbest to test the tearing and 6ms issue on hdmi to leave out the command mode lcd issues..18:36
freemangordontmlind: I think pin()-ing the framebuffer is what takes 6ms18:37
freemangordonto me it is easier to test on command mode18:37
tmlinddo we really do pin/unpin for each frame?18:37
freemangordonbecause noone urges me to do the next flip18:37
freemangordonI think so18:37
freemangordonevery flip ends up with   drmModeRmFB()18:38
freemangordonand starts with  drmModeAddFB()18:39
tmlindseems heavy, but what do i know18:39
freemangordondidn;t verify it though18:39
freemangordonyeah18:39
Wizzuposso-abook should be in -devel (latest)18:39
Wizzupfyi18:39
freemangordonthanks!18:40
freemangordontmlind: drmModeAddFB() takes less than 1ms18:41
tmlindwhat about drmModeRmFB() then?18:42
freemangordonit takes even less :)18:44
freemangordonmhm18:47
tmlindbut total from drmModeAddFB() to drmModeRmFB() is 6ms?18:50
freemangordonno18:50
freemangordontmlind: https://pastebin.com/RExGh68318:51
freemangordondrmmode_page_flip() is where both drmModeAddFB() and   drmModePageFlip() are called18:52
freemangordonsgxFlipPrepare() waits for gpu ops to complete18:52
freemangordonand happens just before drmModePageFlip()18:53
freemangordonOMAPDRI2SwapDispatch() is called after exit from drmmode_page_flip()18:53
freemangordonttyl18:53
tmlindok18:54
tmlindlater18:55
uvostmlind: yeah the emif was it20:44
uvostmlind: not sure how/why emif would disconnect uart20:45
uvoswithout locking up the whole system that is20:45
uvosWizzup: remember how this works from us debuging xt860: DT: clk_lane=1 clk_pos=0 d1_lane=2 d1_pos=0 d2_lane=3 d2_pos=0 d3_lane=4 d3_pos=0 d4_lane=5 d4_pos=022:03
Wizzuplet me try to remember...22:04
uvosDT: clk_lane=1 clk_pos=0 d1_lane=2 d1_pos=0 d2_lane=3 d2_pos=0 d3_lane=0 d3_pos=0 d4_lane=0 d4_pos=022:04
uvosfirst is mz61722:04
uvoslast is d422:04
uvostmlind: ^^^ clerly the dsi lanes are different22:04
uvosso irrc the lanes here are diff-pairs22:05
uvosand xt860 just had the diff-pair polarity flipped22:05
uvosie every other line was exchanged22:05
Wizzupok I see the difference22:06
Wizzup    //CLK+, CLK-, DATA0+, DATA0-, DATA1+, DATA1-, ...22:07
Wizzup    // clk+ = 1, data1_pos = 122:07
Wizzup    lanes = <1 0 3 2 5 4>;22:07
WizzupI had this as notes from the d322:07
Wizzupthat is as opposed to lanes = <0 1 2 3 4 5>;22:07
Wizzup(from mapphone common)22:07
Wizzupideally we'd dig up the DT line from d3 - do you have it around?22:08
uvosso mz617 goes <0 1 2 3 4 5 6 7 8 9> and has 2x the data lanes22:10
uvosam i reading this right?22:10
Wizzuphmm22:10
uvosxt860: DT: clk_lane=1 clk_pos=1 d1_lane=2 d1_pos=1 d2_lane= 3 d2_pos= 122:10
Wizzupwe should dig up the irc logs, sec22:11
Wizzupuvos: https://dpaste.com/8GK3ZR8WS22:12
Wizzupuvos: yes I suppose that could work22:14
uvoshmm no thats not it - or something else is wrong aswell22:36
uvospretty sure <0 1 2 3 4 5 6 7 8 9> is right actually - but we have a problem with the bridge too22:37
uvosmaybe i should try not touching the bridge and pretending we have a dsi pannel and hope the android kernel set everything up allready22:37
uvosDSI: omapdss DSI: failed to send nop between frames: -2222:53
uvosno i gues the chip gets reset22:53
uvos:\22:53
uvoshmm22:53

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