#
#asahi-dev · 2023-07-15 13:18
svenugh, I’m already running late. I’ll ping you later
#asahi-dev · 2023-07-15 13:18
sven dunno if my vague idea is any better there :/
#asahi-dev · 2023-07-15 13:17
jannau"this" == my draft device tree model and the sub drivers I'm writing
#asahi-dev · 2023-07-15 13:16
svenso we’ll very likely need a phy node for that
#asahi-dev · 2023-07-15 13:16
svenDpin is a real phy-like thing that needs some setup fwiw
#asahi-dev · 2023-07-15 13:16
sven“this”?
#asahi-dev · 2023-07-15 13:15
jannauthis tries to copy the drm/kms device model which is a terrible fit for DCP
#asahi-dev · 2023-07-15 13:14
svenbut essentially for DP tunneling we’ll have a “dpin” phy that will also trigger the HPD notification
#asahi-dev · 2023-07-15 13:12
jannauI hope we can shove into the dp controller as well altough the second dcp dp out will be a strange fit
#asahi-dev · 2023-07-15 13:12
svenif it works the way I expect it to I have some very vague idea, I’m about to head out but I can dump my thoughts later
#asahi-dev · 2023-07-15 13:11
jannaudcp connects via ports/graph to those dp controller but I'm unsure how dp-tunneling fits into that
#asahi-dev · 2023-07-15 13:11
svenbut I think DP tunneling and ideally also multi output should work first because there might still be some nasty surprises lurking
#asahi-dev · 2023-07-15 13:09
jannaucurrent plan is to have "fake" (as in not backed by HW) displayport controllers which control the phy and mux
#asahi-dev · 2023-07-15 13:09
svenI also have some vague ideas about how to model this in the DT that we should also discuss at some point
#asahi-dev · 2023-07-15 13:08
sventhe only reason the current one doesn’t have that because it was built for intel and the drm side can actually read the current state from somewhere
#asahi-dev · 2023-07-15 13:08
svenwhat I definitely want to change is that oob hpd notification to include the current state
#asahi-dev · 2023-07-15 13:07
svensure
#asahi-dev · 2023-07-15 13:07
svenbut that can come later
#asahi-dev · 2023-07-15 13:07
jannaudon't or talk to me first, I'm working on that to at least allow in principle dynamic switching
#asahi-dev · 2023-07-15 13:07
svenI think crossbar needs some work on t6000 for dual output though
#asahi-dev · 2023-07-15 13:06
svenbut I first want to make sure dp tunneling works similar to DP altmode
#asahi-dev · 2023-07-15 13:06
svenyeah, but I have some vague plans how to improve that
#asahi-dev · 2023-07-15 12:55
jannausven: dcp is mostly still the same hardcoded hacks regarding phy and mux?
#asahi-dev · 2023-07-15 12:54
jannausplit usb3 and DP seems to be sane default and is good up to 4k60 (8bpp, rgb 4:4:4, no compression) which should cover most displays and many dp-altmode usb-c displays will have an usb hub
#asahi-dev · 2023-07-15 12:44
svenI also think I know how dp tunneling works now so that’s next after usb3/tipd
#asahi-dev · 2023-07-15 12:43
svenwhat I might end up doing is just always setting up usb3+DP anyway for the current hw
#asahi-dev · 2023-07-15 12:43
jannauno worries about pcie/tbt, that was just a quick tests for new HW
#asahi-dev · 2023-07-15 12:42
svenbut essentially I can switch the atcphy mode without going through a full reset and everything still works
#asahi-dev · 2023-07-15 12:42
svenor maybe I just misremember the first part :D
#asahi-dev · 2023-07-15 12:42
svenI think so. Iirc xnu used to do that additional reset but at some point they also stopped doing it
#asahi-dev · 2023-07-15 12:41
jannauyeah! on the the unneeded reset. I guess it's on the HW a side effect of not supporting usb3.2 gen 2x2 or whatever the 2 lane mode is called today
#asahi-dev · 2023-07-15 12:41
svenand the whole pcie hotplug issues ofc
#asahi-dev · 2023-07-15 12:40
sventhere are still some issues with pcie power management over tbt but I first want to get this new tipd/usb3 part ready
#asahi-dev · 2023-07-15 12:40
sven😵‍💫
#asahi-dev · 2023-07-15 12:39
jannaucompletely unrelated: the intel 2.5 gb network chip which didn't work in my thunderbolt dock works as random PCIe card in a razor core x (thunderbolt 3 gpu case) (using the same code)
#asahi-dev · 2023-07-15 12:35
svenalso, usb3 followed by a mode switch to usb3+DP doesn’t require a dwc3 reset anymore \o/
#asahi-dev · 2023-07-15 12:35
svennow lets see about that weird bit that flips when xnu runs but didn’t with my old code
#asahi-dev · 2023-07-15 12:34
svenyay, looks like usb is stable again
#asahi-dev · 2023-07-15 07:54
sid-linuxj`ey: thank you for your prompt reply (as usual :-) )
#asahi-dev · 2023-07-15 07:53
j`eycurrently the only use is getting an rng inside m1n1 for kaslr
#asahi-dev · 2023-07-15 07:53
j`eyhttps://support.apple.com/en-gb/guide/security/sec59b0b31ff/web
#asahi-dev · 2023-07-15 07:53
j`eysep = sencure enclave processor
#asahi-dev · 2023-07-15 07:51
sid-linuxwhat exactly is the SEP firmware (SEPFW) ?
#asahi-dev · 2023-07-15 03:21
chadmedyeah i had a play with it a while ago, i should revisit it
#asahi-dev · 2023-07-15 03:19
marcanthere's some rust lv2 thing that didn't look too hard to use
#asahi-dev · 2023-07-15 03:19
marcanmaybe we should just pull out their algorithm into a standalone thing then
#asahi-dev · 2023-07-15 03:19
marcannice :)
#asahi-dev · 2023-07-15 03:12
chadmedi managed to beat the final boss of loudness with no apparent damage to my machine too
#asahi-dev · 2023-07-15 03:11
chadmedno code changes though
#asahi-dev · 2023-07-15 03:11
chadmedyeah, just with some tweaked parameters

plus ›