#
…

2022-09-20

00:06jole has joined #asahi-dev
00:10DarkShadow44 has quit [Quit: ZNC - https://znc.in]
00:10DarkShadow44 has joined #asahi-dev
00:18CME has quit [Read error: No route to host]
00:19CME has joined #asahi-dev
00:30thelounge7571340 has quit [Remote host closed the connection]
00:33thelounge7571340 has joined #asahi-dev
01:10nsklaus has quit [Ping timeout: 480 seconds]
01:16nsklaus has joined #asahi-dev
01:33thelounge7571340 has quit [Remote host closed the connection]
01:35jacobcrypusa[m] has left #asahi-dev [#asahi-dev]
01:39thelounge7571340 has joined #asahi-dev
02:38thelounge7571340 has quit [Read error: Connection reset by peer]
02:43thelounge7571340 has joined #asahi-dev
03:01skipwich has quit [Quit: DISCONNECT]
03:25kov has quit [Quit: Coyote finally caught me]
03:27chadmed has quit [Ping timeout: 480 seconds]
03:30nicolas17 has quit [Quit: Konversation terminated!]
03:42thelounge7571340 has quit [Remote host closed the connection]
03:46thelounge7571340 has joined #asahi-dev
04:43OfirRubenov[m] has joined #asahi-dev
04:46thelounge7571340 has quit [Remote host closed the connection]
04:49thelounge7571340 has joined #asahi-dev
05:48thelounge7571340 has quit [Remote host closed the connection]
05:50thelounge7571340 has joined #asahi-dev
06:27SSJ_GZ has joined #asahi-dev
06:49thelounge7571340 has quit [Read error: Connection reset by peer]
06:51jannaustill no update from Joerg
06:51thelounge7571340 has joined #asahi-dev
06:53MajorBiscuit has joined #asahi-dev
07:37svenhuh, if I bring up atcphy for thunderbolt and then enable acio the pciec mmio becomes accessible... so why doesn't that happen inside linux as well?!
07:38svenjannau: :(
07:38svenmaybe he's on vacation or sick or something like that
07:49_jannau_probably, he was planning to look at the t600x dart series last week
07:50_jannau_maybe a power-domain that gets disabled in linux?
07:51thelounge7571340 has quit [Read error: Connection reset by peer]
07:52j`eyI wonder if there is a power domain equivalent to clk_ignore_unused
07:52svenhm... let me check that. maybe i'm just missing some domain in my hacked up device tree
07:55thelounge7571340 has joined #asahi-dev
08:01svenj`ey: I guess I could mark all of them as always on :D
08:02svenlooks like there's pd_ignore_unused though
08:03j`eygive it a try!
08:03steevyeah pd_ignore_unused is power domains
08:04svensame result, I guess there's a subtle bug in my atcphy.c then :(
08:05j`eycan you trace it?
08:05jluthra has quit [Remote host closed the connection]
08:06svenstill going to be annoying to figure out the difference to my python code
08:06jluthra has joined #asahi-dev
08:06svenI guess I could run m1n1 inside the hv and then run atcphy.py against that el1-m1n1 and trace it with el2-m1n1 and look for differences
08:06j`eyI guess double check the register offsets/values is a good place to start too
08:07svenyeah, i bet it some BIT() #define that's wrong
08:55thelounge7571340 has quit [Remote host closed the connection]
08:58thelounge7571340 has joined #asahi-dev
09:50roxfan has quit [Remote host closed the connection]
09:53roxfan has joined #asahi-dev
09:58thelounge7571340 has quit [Remote host closed the connection]
10:01duban6 has quit []
10:01duban6 has joined #asahi-dev
10:01thelounge7571340 has joined #asahi-dev
10:23chengsun_ has joined #asahi-dev
10:25chengsun has quit [Ping timeout: 480 seconds]
10:36nickchan has joined #asahi-dev
10:36nickchan has quit []
10:38Major_Biscuit has joined #asahi-dev
10:48Major_Biscuit has quit []
11:01thelounge7571340 has quit [Remote host closed the connection]
11:06thelounge7571340 has joined #asahi-dev
11:08gilutsu_test03[m] has joined #asahi-dev
11:15gilutsu_test03[m] has left #asahi-dev [#asahi-dev]
11:42tanty has quit []
11:43qdot has quit [Ping timeout: 480 seconds]
11:44tanty has joined #asahi-dev
11:44akemin_dayo has quit [Ping timeout: 480 seconds]
11:44mattgirv has quit [Ping timeout: 480 seconds]
11:45irth` has quit [Ping timeout: 480 seconds]
11:45maz has quit [Ping timeout: 480 seconds]
11:46maz has joined #asahi-dev
11:50mattgirv has joined #asahi-dev
11:54akemin_dayo has joined #asahi-dev
11:55maz has quit [Quit: ZNC 1.8.2+deb2+b5 - https://znc.in]
11:55tanty has quit []
11:56qdot has joined #asahi-dev
11:58maz has joined #asahi-dev
12:00kov has joined #asahi-dev
12:00tanty has joined #asahi-dev
12:04irth` has joined #asahi-dev
12:05thelounge7571340 has quit [Remote host closed the connection]
12:07thelounge7571340 has joined #asahi-dev
13:07thelounge7571340 has quit [Remote host closed the connection]
13:09thelounge7571340 has joined #asahi-dev
13:38nehsou^ has joined #asahi-dev
14:04thelounge7571340 has quit [Ping timeout: 480 seconds]
14:34chipxxx has joined #asahi-dev
14:38caligulam[m] has joined #asahi-dev
14:40sven[syslog] * [splayInterface.cpp:1107]operator(): WARNING: no color or timing modes from the link.Faking, since we have non-null VI.
14:40svengot that once with dp-altmode but can't reproduce it anymore now :(
14:41svenI guess that means it didn't manage to negotiate modes?
14:42svenactually.. looks like I get that everytime now. progress I guess?
14:46_jannau_"... from the link." sounds if dcp can't read the EDID
14:46svenif anyone speaks DCP and can make sense of that.
14:49svenand ofc there's also timing issues/some race involved *sigh*
14:51svenah, no, i'm just an idiot and disconnected the cable :D
14:56_jannau_fps_frac = 0 doesn't look good
14:57_jannau_message sounds if the dp aux channel is not enabled/working
14:57nehsou^ has quit [Remote host closed the connection]
14:59chipxxx has quit [Read error: No route to host]
15:02_jannau_dp aux is using sbu1/2, that could require routing in tps6598x
15:04thelounge7571340 has joined #asahi-dev
15:05svenohhhh... that's a good point
15:18_jannau_if you have something someone else can test it could make sense to try it on atc3/hdmi on macbook pro 14"/16"
15:20sventhis code is horribly cursed fwiw
15:21sveni'll have to clean it up a little bit first
15:26sventhere are some strings related to displayport in the tps6598x kext
15:28thelounge7571340 has quit [Remote host closed the connection]
15:32thelounge7571340 has joined #asahi-dev
15:35_jannau_tps6598x has a multiplexer for SBU and AUX_P/N pins for displayport aux
15:39_jannau_but it sounds as if tps6598x handles that itself without configuration
15:43yamii has quit [Quit: WeeChat 3.6]
15:43yamii has joined #asahi-dev
15:45EricCurtin[m] has joined #asahi-dev
15:50svenbut maybe apple did something special for their variant
15:55chipxxx has joined #asahi-dev
16:31thelounge7571340 has quit [Remote host closed the connection]
16:34thelounge7571340 has joined #asahi-dev
16:43gladiac has joined #asahi-dev
16:50MajorBiscuit has quit [Ping timeout: 480 seconds]
17:34thelounge7571340 has quit [Remote host closed the connection]
17:37thelounge7571340 has joined #asahi-dev
17:43svenlol, running it again gets a bit further
17:43svenjannau:, marcan: ^--
17:43svenstill doesn't work though
17:44sven[syslog] * [PmgrService.cpp:319][AFK]_pmgrConfigVideoClock Failed to configure video clock freq= 74250000
17:54svenselecting different modes doesn’t seem to help either :(
18:06jannau"VideoInterfaceIOAV::open_ioav_gated(): IOAVVideoInterface open failed" sounds broken as well
18:06jannaucan you test dcpep instead of dcp_iboot?
18:09svennot easily, I’ll have to untangle some of this mess first
18:10jannauwhich mode did you set? 1920x1080@30 or 1280x720@60
18:16svenin that trace 1920x1080@60, then later I tried @30 and some other random lower resolution mode
18:20jannau74.25 MHz would be CEA-861 pixel clock for 1920x1080@30 or 1280x720@60
18:23svenhuh, weird
18:24svenChosen timing mode claims fps_int = 60 though :/
18:24sven(At 1920x1080)
18:30sven[syslog] * [PmgrService.cpp:319][AFK]_pmgrConfigVideoClock Failed to configure video clock freq= 13500000 <-- that's with 1440x480@29
18:32sven[syslog] * [PmgrService.cpp:319][AFK]_pmgrConfigVideoClock Failed to configure video clock freq= 37087912 <-- and that with 1920x1080@29
18:33jannauso it's ~2 off, strange
18:33svenyeah. i'll double check my atcphy configuration
18:33svenbut maybe the iboot protocol just doesn't work with dcpext for some reason
18:36svenit also reliably oscillates between "no color modes" and "valid colors modes" so there's still something that's obviously broken
18:37thelounge7571340 has quit [Remote host closed the connection]
18:37jannaunot sure how the pixel clock calculation should be dependent on the atc phy config. it should just depend on the selected mode
18:38svenknowing how entangled that mess is it wouldn't have surprised me
18:39sventhere's some PCLK (which I assume means pixel clock) configuration inside atcphy and something else that depends on the link rate
18:39svenbut it doesn't look like there's an additional diver or multipler to be configured
18:40thelounge7571340 has joined #asahi-dev
18:44jannaulet me check what the dcp does with the pixel clock. I remember that it was not what I expected but since it works I didn't pay attention what was off
18:47min[m] has joined #asahi-dev
18:50jannauno, I misremembered. pixel clock is as expected for h/v total pixels and refresh rate
18:55svenreal dcp protocol seems to first print [syslog] * [nifiedPipeline.cpp:6553]set_digital_out_mode returned 80000104
18:55svenand then
18:55sven while mgr.iomfb_prop['DPTimingModeId'] != timing_mode:
18:55svenKeyError: 'DPTimingModeId'
18:56svenahh.. nvm
18:56svenalso fails with [syslog] * [PmgrService.cpp:319][AFK]_pmgrConfigVideoClock Failed to configure video clock freq= 74250000
18:56jannauit logs however a vid0 value which is half rate of the pixel clock: "syslog message: ock_Config_H13P.cpp:886: program_frame_size: pixel_clock 265250000, vid0 132625000, 000084a0 000001ef"
18:57sveni think it currently fails before that
18:57svenreal dcp seems to always get the correct mode list though fwiw
18:58svenso maybe the iboot code has a weird race somewhere
19:05svenso this is either some subtle DCP issue or some subtle ATCPHY issue. i actually don't know which would be worse :(
19:08jannaufull dcp seems to have "IOMobileFramebufferAP::setProperty_int(key='VideoClock', value=74250000)" in a log which should be 1920x1080@60. resolution is certain, but I can't easily see the display refresh rate
19:09svenso that would match [syslog] * [PmgrService.cpp:319][AFK]_pmgrConfigVideoClock Failed to configure video clock freq= 74250000 at the same resolution here
19:10svensame thing happens when I just replay the hv trace instead of using my atcphy code
19:12jannauyes. so there's a video clock which runs at half-rate of the pixel clock
19:13svenwhy doesn't it just work then =(
19:20gladiac has quit [Quit: k thx bye]
19:20jannauhave you checked pmgr with tools/dump_pmgr.py?
19:32sven User: /device-tree/arm-io/disp0.clk[0] User: /device-tree/arm-io/disp0.clk[0]
19:32sven#101: 24000000 0 0xa0/0x23b0400a4: regval: 0x80100000 | #101: 24000000 0 0xa0/0x23b0400a4: regval: 0x88100000
19:32sven#102: 0 0 0xa4/0x23b0400a8: regval: 0xa000000c | #102: 0 0 0xa4/0x23b0400a8: regval: 0xa0000002
19:33sventhat... sounds wrong.. shouldn't it change the dispext clk?
19:35jannaumaybe, for disp0 it none of the 2 clocks is the pixel or video clock though
19:36svenah.. could be just mislabled ADT or something then
19:37jannauor the video clock is not in the adt since dcp manages it directly
19:39thelounge7571340 has quit [Remote host closed the connection]
19:39sven0x23b738018 is passed instead of 0x23b738014 in rt_bandwidth_setup_ap but that doesn't seem to make a difference
19:39jannauis the DISPEXT_CPU0 power-domain enabled? I doubt you would get that far if it wasn't
19:40svenyeah, it's on
19:42thelounge7571340 has joined #asahi-dev
19:43svenalso bit=3 instead of 2 there but that also doesn't help
19:46jannauare you sure that the values in rt_bandwidth_setup_ap don't make a difference? that are offsets from the pmgr reg in dcp(ext)'s regs
19:46svenI changed them to what I observed in my macOS trace and nothing changed
19:46jannaui.e. wrong values should try to set the wrong clock
19:47sven00000000 00 ff ff ff 01 00 52 47 18 80 73 3b 02 00 00 00 |......RG..s;....|
19:47sven00000010 00 c0 c3 3b 02 00 00 00 72 61 63 74 03 00 00 00 |...;....ract....|
19:47sven00000030 42 4c 61 79 65 72 5f 4d 00 00 00 00 |BLayer_M.... |
19:47sven00000020 6e 02 00 00 00 00 00 00 00 73 11 00 04 00 00 00 |n........s......|
19:47svenso that's from my macos trace
19:47svenfrom that I got bit=3, 0x23b738018 and 0x23bc3c000 for the regs
19:50svendisp0 is also hardcoded in sr_mapDeviceMemoryWithIndex but changing that to dispext0 also doesn't make a difference
19:57jannau0x23bc3c000 is pmp and 0x23b738018 is inside pmgr, the last 3 regs of disp0 and dispext0 are identical
19:57chipxxx has quit [Read error: Connection reset by peer]
19:59svenah, that explains it. it just requested one of those 3 regs
20:09jannauhave you already found trace_dcp dump? uncomment/copy the last line in hv/trace_dcp.py
20:09jannauthe dump can be analysed with python -m m1n1.fw.dcp.parse_log dcp.log
20:10jannauthat's easier to compare than the full output. it's only dcpep though
20:11svenhah, didn’t know about that
20:12svenill compare DCP and dcpext tomorrow then and see if there’s any difference
20:17jannauI was more thinking of comparing dcpext macos / your m1n1 scripts
20:19svenI think there the more interesting stuff happens to the other endpoints
20:20svenbut I’ve wanted to run m1n1 in el1 to check the atcphy bringup anyway
20:21dingodoppelt has quit [Quit: ZNC 1.9.x-git-170-9be0cae1 - https://znc.in]
20:22dingodoppelt has joined #asahi-dev
20:42thelounge7571340 has quit [Remote host closed the connection]
20:44thelounge7571340 has joined #asahi-dev
21:43thelounge7571340 has quit [Remote host closed the connection]
21:48thelounge7571340 has joined #asahi-dev
21:54Phorous has joined #asahi-dev
21:57thelounge7571340 has quit [Ping timeout: 480 seconds]
21:59SSJ_GZ has quit [Ping timeout: 480 seconds]
22:08mps has quit [Ping timeout: 480 seconds]
22:52thelounge7571340 has joined #asahi-dev
23:13loki_val has joined #asahi-dev
23:16crabbedhaloablut has quit [Ping timeout: 480 seconds]
23:22compassion1 has joined #asahi-dev
23:28compassion has quit [Ping timeout: 480 seconds]
23:28compassion1 is now known as compassion
23:51thelounge7571340 has quit [Remote host closed the connection]
23:56thelounge7571340 has joined #asahi-dev
…