#
✕ nick:sven
#asahi-dev · 2026-01-04 22:24
svenmaybe i still have my slightly broken typec -> a adapter that can trigger *very* quick role switches
#asahi-dev · 2026-01-04 22:23
sveni think dwc3_apple doesn't ignore those because the original role switch hack assumed host -> host meant the cable was disconnected inbetween
#asahi-dev · 2026-01-04 22:22
svensounds good to me
#asahi-dev · 2026-01-04 22:20
sventbt still hates me though :(
#asahi-dev · 2026-01-04 22:20
svenand then we can keep the debounce timeout at 0.5s
#asahi-dev · 2026-01-04 22:19
sveni'll add it again and that should get rid of some of the warnings we see
#asahi-dev · 2026-01-04 22:19
svenit's useful for devices that are very slow at switching from usb3 to usb3+dp
#asahi-dev · 2026-01-04 22:19
svenlooks like the "allow mode switches while pipehandler up" code we used to have inside atcphy was actually there for a reason :D
#asahi-dev · 2026-01-04 21:27
svenmy tbt code is back to resetting the SoC after 5 seconds as well :D
#asahi-dev · 2026-01-04 18:50
svenwant me to put Reported-by: Thomas Glanzmann <thomas@glanzmann.de> in there?
#asahi-dev · 2026-01-04 18:49
svenGlanzmann: yup, that's gonna fix the oops you saw as well
#asahi-dev · 2026-01-04 18:33
svenbut jannau really is the right person to talk to, he knows a lot more about drm and dcp than I do
#asahi-dev · 2026-01-04 18:32
sventhere's a HPD bit somewhere in the apple variant that is also correct if you have some usb3+dp hub fwiw
#asahi-dev · 2026-01-04 18:31
svenbut the altmode driver wants to do the negotiation itself iirc
#asahi-dev · 2026-01-04 18:31
sveni think we can recover some of the VDOs
#asahi-dev · 2026-01-04 18:29
svenI didn't reverse engineering the entire firmware so maybe those are still there but the original TI commands certainly don't exist
#asahi-dev · 2026-01-04 18:29
svenbut i found no evidence of either in the firmware I dumped from the apple-variant of those chips
#asahi-dev · 2026-01-04 18:28
sventhe TI chips both have a mode where we control the raw PD messages (i.e. they effectively act like a dumb PD PHY) and another mode where we can tell them to enter other altmodes
#asahi-dev · 2026-01-04 18:28
svenyup
#asahi-dev · 2026-01-04 18:27
svenwhich is a bit unfortunate because that means we can't use the usb3 fallback that most tbt docks have right now :(
#asahi-dev · 2026-01-04 18:27
svenwe just get told by that pd controller what mode it negotiated and have to deal with it
#asahi-dev · 2026-01-04 18:26
svenwe don't have any control over altmode negotiation or the PD VDO/PDO messages
#asahi-dev · 2026-01-04 18:26
svenwe deliberately bypass it even
#asahi-dev · 2026-01-04 18:26
svenwe can't use that :D
#asahi-dev · 2026-01-04 18:25
svenokay, that should have a slightly higher chance of working
#asahi-dev · 2026-01-04 18:25
svenare you running bare metal or under the HV?
#asahi-dev · 2026-01-04 18:24
svenearlycon is also very helpful for early bringup
#asahi-dev · 2026-01-04 18:24
svenas long as you have very basic stuff like aic and the serial in there it should work
#asahi-dev · 2026-01-04 18:23
svenpd_ignore_unused
#asahi-dev · 2026-01-04 18:22
sventhere's a kernel bootarg, something something unused_pd
#asahi-dev · 2026-01-04 18:22
svenyuka: you can boot without the pmgr driver, but if you instantiate the pmgr driver you have to make sure it doesn't disable the serial power domain
#asahi-dev · 2026-01-04 18:21
svenrosalyntg_: https://social.treehouse.systems/@janne/115808166298942165 might be interesting for you
#asahi-dev · 2026-01-04 18:18
svenmaybe, didn’t look at the your dmesg tbh. I stumbled upon this while starting with tbt bringup
#asahi-dev · 2026-01-04 18:16
svenhuh?
#asahi-dev · 2026-01-04 18:13
svenreasons I dislike C: https://gist.github.com/svenpeter42/a2b3602ca1f6e27e5cadd912a0ae7dec
#asahi-dev · 2026-01-04 18:08
svenwe'll have to build this in a way that eventually also supports the dp-via-tbt tunnels and supports more complicated routings on max/pro machines that have N dcpext and M ports with 3 different DP stream inputs (dp-altmode, 2x tbt tunnel)
#asahi-dev · 2026-01-04 18:06
svennah, just keep it in this channel. he's probably already noticed now that i mentioned him
#asahi-dev · 2026-01-04 18:05
svenm1 air will also only ever support one external display concurrently
#asahi-dev · 2026-01-04 18:05
svenjannau is the right person to talk to
#asahi-dev · 2026-01-04 18:05
svenso that's playing the dcpext mix-and-match game then which is complicated
#asahi-dev · 2026-01-04 18:03
svenrosalyntg_: i assume you're talking about a machine that has multiple dcpext?
#asahi-dev · 2026-01-04 18:00
svensame!
#asahi-dev · 2026-01-04 17:58
sveni'm only going to look at a linux git tree i can pull
#asahi-dev · 2026-01-04 17:57
svenbut good to hear you guys are still working on them
#asahi-dev · 2026-01-04 17:57
sveneither way, i'll take a look at the patches once they are on LKML or if you send me a git tree i can do a quick review before you send them out
#asahi-dev · 2026-01-04 17:55
sveni don't really use discord, sorry :(
#asahi-dev · 2026-01-04 16:09
svenstrings is such an underrated reverse engineering tool :D
#asahi-dev · 2026-01-04 15:47
svensure
#asahi-dev · 2026-01-04 15:46
svenmaybe just add a comment before return 0 then
#asahi-dev · 2026-01-04 15:45
svennickchan: must've overlooked that

plus ›