2022-05-14.log

- chomwitt (QUIT: Remote host closed the connection) (~chomwitt@2a02:587:dc21:9e00:6dfd:37a:2bc3:ca7e)00:26
+ chomwitt (~chomwitt@2a02:587:dc21:9e00:6dfd:37a:2bc3:ca7e)00:26
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)00:29
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)00:30
- S0rin (QUIT: Ping timeout: 248 seconds) (~S0rin@user/s0rin)00:30
+ S0rin (~S0rin@user/s0rin)00:33
- Christoph_ (QUIT: Remote host closed the connection) (~Christoph@p4fe73f87.dip0.t-ipconnect.de)01:02
- chomwitt (QUIT: Ping timeout: 248 seconds) (~chomwitt@2a02:587:dc21:9e00:6dfd:37a:2bc3:ca7e)01:34
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:40)02:41
- Guest447 (QUIT: Ping timeout: 248 seconds) (~nicolas@229-48-142-46.pool.kielnet.net)03:46
+ nsc (~nicolas@244-99-142-46.pool.kielnet.net)03:47
* nsc -> Guest674903:48
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)05:18
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)05:18
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149-210-16-210.mobile.nym.cosmote.net)05:38
+ Ar|stote|is (~linx@149-210-16-210.mobile.nym.cosmote.net)05:38
- littlebobeep (QUIT: Ping timeout: 240 seconds) (~alMalsamo@gateway/tor-sasl/almalsamo)06:50
+ littlebobeep (~alMalsamo@gateway/tor-sasl/almalsamo)06:51
- littlebobeep (QUIT: Remote host closed the connection) (~alMalsamo@gateway/tor-sasl/almalsamo)08:52
+ littlebobeep (~alMalsamo@gateway/tor-sasl/almalsamo)08:58
+ chomwitt (~chomwitt@2a02:587:dc21:9e00:d416:b93a:7a85:a330)09:18
- chomwitt (QUIT: Ping timeout: 248 seconds) (~chomwitt@2a02:587:dc21:9e00:d416:b93a:7a85:a330)10:42
+ chomwitt (~chomwitt@2a02:587:dc21:9e00:e28b:dfc7:bbce:95de)11:48
- littlebobeep (QUIT: Remote host closed the connection) (~alMalsamo@gateway/tor-sasl/almalsamo)12:20
+ littlebobeep (~alMalsamo@gateway/tor-sasl/almalsamo)12:30
- chomwitt (QUIT: Ping timeout: 252 seconds) (~chomwitt@2a02:587:dc21:9e00:e28b:dfc7:bbce:95de)12:55
- littlebobeep (QUIT: Ping timeout: 240 seconds) (~alMalsamo@gateway/tor-sasl/almalsamo)13:16
+ littlebo1eep (~alMalsamo@gateway/tor-sasl/almalsamo)13:16
+ chomwitt (~chomwitt@2a02:587:dc21:9e00:e28b:dfc7:bbce:95de)13:16
+ Christoph_ (~Christoph@p4fe737fa.dip0.t-ipconnect.de)13:25
* littlebo1eep -> littlebobeep13:27
cinap_lenrekok, xhci works14:31
cinap_lenrek(when i run usb start in uboot before booting my kernel)14:32
cinap_lenrektime for the display14:34
slyesss15:31
cinap_lenrekthe mipi dsi spec seems to be closed15:33
cinap_lenreki'd like to read it to at least get some overview15:33
cinap_lenrekthere are so many moving parts in the whole display setup15:33
cinap_lenrekdcss -> nwl -> ti-sn65dsi8615:34
cinap_lenrekthe nwl controller has the capability of sending some kind of command packets15:35
cinap_lenreki'm not sure if that is really needed15:35
cinap_lenrekbut i cant know what is needed when i cant even read the dsi spec15:35
cinap_lenreki bet half the code can be ignored15:36
cinap_lenreki do not want a generic driver really15:36
cinap_lenrekjust do the god damn modeset and get the fuck out15:36
cinap_lenreki dont care about hdmi15:37
cinap_lenrekpeople who use hdmi can fuck themselfs15:37
cinap_lenrekyeah15:44
cinap_lenreki think it is not needed15:44
cinap_lenrekas we'r talking to the bridge and that needs to be configured separately thru i2c15:48
cinap_lenrekand down the bridge it would be all standard vesa stuff15:48
+ stjohn (~stjohn@cpe-68-174-13-238.nyc.res.rr.com)16:16
sigridyay16:21
sigridcinap_lenrek: you got ethernet working too?16:22
cinap_lenreklast weekend, yes16:22
cinap_lenrekits commited already16:22
sigridoh nice16:22
cinap_lenrekalso multicore16:22
cinap_lenrekits even more complicated16:24
cinap_lenrekwe have dcss -> nwl -> dphy -> dsi2edp bridge -> panel16:25
cinap_lenrekpoco a poco16:25
sigridmaybe the right way to do mipi dsi is to log which registers linux kernel sets to get shit working. and then do the same within u-boot, doesn't matter if it's completely unreadable bit-fuckery16:25
cinap_lenrekone sais like the software architecture is usually a reflection of the organizations structure16:26
cinap_lenrekthis tells me i'll never want to work for nxp16:26
cinap_lenreksigrid: exactly.16:26
cinap_lenreksigrid: tho theres no way we can reprogram the dcss from uboot16:27
cinap_lenreksigrid: but yes, this was the plan16:28
cinap_lenrektho i bet linux will also be reconfiguring all the clocks and fuck around with gpios and who knows what too16:28
cinap_lenrekthe whole display thing has like fuckin 7 different clock signals16:28
cinap_lenreksigrid: the thing is we need to understand enougth of the relationships between these different parts to be able to troubleshoot it16:29
cinap_lenreksigrid: because it will definitely not just work16:30
cinap_lenrekthats just completely impossible with so many moving parts16:30
sigridI see :(16:31
cinap_lenrekplus i dont have a i2c driver nor a clock module driver ;)16:31
cinap_lenreknor gpio driver16:32
minutecinap_lenrek: alternatively you can use lcdif instead of dcss, it's simpler16:35
sigridcrazy idea: linux, then kexec to 9front16:35
minutecinap_lenrek: there's a mux register that toggles between dcss and lcdif input to nwl-dsi IIRC16:35
cinap_lenrekoh16:36
minutei will also read the dsi spec soon even if it is closed, because i have lots of trouble with dsi and other chips, too16:36
cinap_lenrekminute: thanks for the hint!16:37
minutecinap_lenrek: bluerise also did some more exploratory code work on internal display in uboot, he has a branch somewhere16:37
minutei think sigrid has the link too16:37
minutebluerise theoretically set up everything correctly (using dcss) but it still didn't work (color bars from the sn chip ok, but black screen otherwise)16:38
minutei believe it could be related to delays or the order of things or something with LP vs HS mode on the dsi lines16:39
bluerisesup16:50
- littlebobeep (QUIT: Ping timeout: 240 seconds) (~alMalsamo@gateway/tor-sasl/almalsamo)17:02
minutebluerise: cinap_lenrek is attacking mipi dsi on the imx8m (for plan9)17:06
cinap_lenrekbluerise: do you need traces from linux for mipi dsi and the internal panel?17:06
cinap_lenreki think thats where i'm going to start17:06
cinap_lenreki found your repo17:07
cinap_lenrek:)17:07
cinap_lenrekthe lcdif approach sounds nice17:07
cinap_lenrekthe controller is alot simpler17:07
cinap_lenrekbut nobody knows if it works at all17:07
cinap_lenrekmaybe later when i'm understanding stuff more17:08
cinap_lenrekminute: my plan is to leave out all that mipidsi shit out of my kernel17:08
cinap_lenrekjust give me a linear framebuffer and thats it17:08
cinap_lenrekthe kernel is the wrong place for this stuff17:09
+ littlebobeep (~alMalsamo@gateway/tor-sasl/almalsamo)17:14
- V (QUIT: Ping timeout: 252 seconds) (~v@ircpuzzles/2022/april/winner/V)17:31
+ V (~v@ircpuzzles/2022/april/winner/V)17:55
cinap_lenrekwait a minute17:56
cinap_lenrekwhy's the linux kernel 486MB17:56
erlebloat18:00
cinap_lenrekah18:00
erlewhat was it?18:00
- V (QUIT: Quit: We're here. We're queer. Connection reset by peer) (~v@ircpuzzles/2022/april/winner/V)18:02
+ V (~v@ircpuzzles/2022/april/winner/V)18:03
cinap_lenrekwrong file18:15
cinap_lenrekthe Image file is *ONLY* 32MB18:16
cinap_lenrekit is so rocket science to just load a kernel now18:17
cinap_lenreki cant paste in the kernel as uboot looses the characters18:17
cinap_lenrekso i wanted to make a environment variable for the load lines18:18
cinap_lenrekjust fetching the Image from tftp18:18
cinap_lenrekand the rest from mmc as the boot script18:18
cinap_lenrekbut i cant remember how to escape the commands18:18
cinap_lenreki tried:18:18
cinap_lenreksetenv bla ,.... '&&' ....18:18
cinap_lenrekprintenv LOOKS good18:18
cinap_lenrekbut apparently its not right18:18
cinap_lenrekanyone remmeber how to escape ; or && for setenv?18:19
cinap_lenrekgot it18:22
cinap_lenrekrun envname18:23
cinap_lenrekhere we go18:24
+ mtm (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)18:57
cinap_lenrekhm19:45
cinap_lenrekapparently theres already some infra for register tracing now19:45
cinap_lenrekwith the regmap stuff19:45
cinap_lenrekbut i cant get it to work19:45
cinap_lenrekdefined my regmap_should_log function but nothing is logged19:45
cinap_lenreki'm not really sure anymorw how you can pass linux arguments to the kernel19:46
cinap_lenreki just set bootargs environment variable but it seems to have no effect19:46
cinap_lenreki set loglevel=819:46
cinap_lenrekbut no change19:46
cinap_lenrekany linux experts here?19:47
_Ecinap_lenrek: depends on the definition of "expert"20:00
cinap_lenrekafaik, devicetree blob passed to the kernel would contain the boot command line, no?20:00
cinap_lenrekor maybe the whole concept of kernel command line doesnt exist in uboot anymore?20:01
_Earen't dtb's compiled in advance?20:02
cinap_lenrekthey get patched20:02
_Eah20:02
cinap_lenrekit used to be all simple20:02
cinap_lenrekwith atags on arm20:02
cinap_lenrekbut my question is how i can pass the linux "loglevel=8" argument to the kernel20:03
cinap_lenrekiirc it would be just:20:03
cinap_lenreksetenv bootargs .....20:03
cinap_lenrekbefore booti, no?20:03
_Ewell, that's how it worked for me20:04
cinap_lenrekmaybe loglevel= is wrong20:04
_EI was doing setenv bootargs "$bootargs (whatever else)"20:04
_Ebut if you need to rewrite existing params, your option is what I would have ended up doing20:05
cinap_lenrek[?2004hroot@reform:/proc# cat cmdline20:12
cinap_lenrek[?2004lloglevel=820:12
cinap_lenrekit works20:12
cinap_lenrekits the regmap tracing that doesnt work20:12
cinap_lenreki'll need to dig20:12
cinap_lenrekgot it20:40
cinap_lenrekdev_name() is just some devietree argate20:40
cinap_lenrekgarbage*20:40
cinap_lenreki need dev_driver_string() to match20:40
cinap_lenrekhttp://felloff.net/usr/cinap_lenrek/mipi-dsi-trace1.txt20:46
cinap_lenrekthe dcss is not using the regmap framework20:46
cinap_lenrekso its not appearing in the trace20:46
cinap_lenreki'll hack it and provide logs20:46
cinap_lenrekhttp://felloff.net/usr/cinap_lenrek/mipi-dsi-trace2.txt21:16
cinap_lenrekits still virtual addresses21:16
cinap_lenrektheres a AT instruction to get physical addresses21:16
cinap_lenrekbut i can't remember the gcc inline assembly syntax for it21:17
cinap_lenrekworks.21:48
cinap_lenrekhttp://felloff.net/usr/cinap_lenrek/mipi-dsi-trace3.txt22:01
cinap_lenrekthat should be all relevant registers22:01
cinap_lenrekand i checked that the display does indeed, turn on :)22:02
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)22:56
cinap_lenrekhttp://felloff.net/usr/cinap_lenrek/mipi-dsi-trace4.txt23:11
cinap_lenrektracing the registers for ctxld too23:11
cinap_lenreksyntax is <ctxid>/<addr>23:12
cinap_lenrekbluerise, sigrid: http://felloff.net/usr/cinap_lenrek/mipi-dsi-trace4.txt23:47
cinap_lenrekheres your traces from linux modeset23:47
cinap_lenrekwhen a register prints as x/ it means it gets queued to the ctx loader23:48
cinap_lenrekif anything, it helps seeing the order in which linux does stuff23:49

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