#asahi-dev · 2022-11-05 14:05
sveni bet that’s another hdcp fail#asahi-dev · 2022-11-05 14:05
svenalso, lol, this display doesn’t work at all under macOS with one of my cables but it does work just fine in linux :D#asahi-dev · 2022-11-05 14:00
svenjannau: fwiw, another know race is during probe time: if drm probes after tipd it won’t get the first oob hotplug event #asahi-dev · 2022-11-05 13:04
svenand the SS phy really doesn’t like that *sigh*#asahi-dev · 2022-11-05 13:04
svenif the tps chip takes just a bit too long to recognize the altmode dwc3 is already up when it tries to reconfigure the lanes #asahi-dev · 2022-11-05 13:04
svenurgh… I know why usb3 in usb3/DP mode sometimes fails #asahi-dev · 2022-11-05 12:51
svenpushed#asahi-dev · 2022-11-05 12:50
svenuh, let me fix that#asahi-dev · 2022-11-05 12:45
svenalright, now that jannau has volunteered to fix all the bugs I introduced to dcp (:P) let's see if I can bring up thunderbolt#asahi-dev · 2022-11-05 12:20
svenI just based this on some branch jannau prepared for me#asahi-dev · 2022-11-05 12:19
svenno idea#asahi-dev · 2022-11-05 12:17
svenjannau: ^--#asahi-dev · 2022-11-05 12:17
svenhttps://github.com/AsahiLinux/linux/tree/dp-altmode-WIP absolutely not ready for testing and/or end users#asahi-dev · 2022-11-05 12:03
svenyeah, it's probably gonna be a while before this is stable enough#asahi-dev · 2022-11-05 11:55
svenI sometimes also only get a high-speed device when I connect it via this hub. not sure if that's an atcphy issue or just a broken hub though#asahi-dev · 2022-11-05 11:53
svensometimes I have to do modetest -M apple to get something to appear when I connect via this usb3/dp hub. but i have a feeling that this hub is a bit broken anyway#asahi-dev · 2022-11-05 11:53
svenbut I'm cleaning up the mess a bit right now so that I can push it later#asahi-dev · 2022-11-05 11:53
svenI don't think I have a display that negotiates that mode#asahi-dev · 2022-11-05 11:40
sven3840x2160@60.00 with HBR2 works as well :>#asahi-dev · 2022-11-04 22:25
svenif you do decide to split the timeout off I’d make sure that patch comes first. otherwise the in between state is broken #asahi-dev · 2022-11-04 22:09
svenI’d only send them as a single series if they are strongly related (e.g. new dt bindings or subsystem quirks/changes followed by a driver)#asahi-dev · 2022-11-04 22:08
svenand then the error handling can come later and make things even better #asahi-dev · 2022-11-04 22:08
svenI’d just send your patch first, it strictly improves things #asahi-dev · 2022-11-04 21:04
sven*pretty big#asahi-dev · 2022-11-04 21:03
sventhere's also the DT bindings, right now they are pretty hack as you will notice tomorrow#asahi-dev · 2022-11-04 20:52
svenoh well, I think I'll spend some time to clean this up a bit tomorrow so that other people can play with it as well#asahi-dev · 2022-11-04 20:50
svenbut I assume it will break if I e.g. plug in a different screen that can't work with the previously negotiated link#asahi-dev · 2022-11-04 20:50
svenI can just plug the hdmi in again and it recovers the connection#asahi-dev · 2022-11-04 20:50
svenBIT(7) in byte 5 of that thing#asahi-dev · 2022-11-04 20:49
sven#define TPS_REG_DP_SID 0x58 <-- that thing is updated#asahi-dev · 2022-11-04 20:48
svenand macos somehow notices that the HDMI cable is disconnected and removes the display from system settings#asahi-dev · 2022-11-04 20:48
svenbut the HPD state in that DP SID register does change#asahi-dev · 2022-11-04 20:48
svenyeah, pretty much#asahi-dev · 2022-11-04 20:43
svenbut for the usb3/dp hub it only transitions to 1 once and is then stuck there#asahi-dev · 2022-11-04 20:43
sventhat's what works for HPD in TPS_REG_DATA_STATUS most of the time#asahi-dev · 2022-11-04 20:42
sven#define APPLE_CD_DATA_STATUS_DP_HPD BIT(15)#asahi-dev · 2022-11-04 20:42
svenit only doesn't work with this USB3/DP hub that has a HDMI out when I disconnect the HDMI side#asahi-dev · 2022-11-04 20:41
svenit works fine on my usb-c to hdmi and my usb-c to dp cable#asahi-dev · 2022-11-04 20:41
svenyes#asahi-dev · 2022-11-04 20:04
svenmaybe there's some magic configuration for the cd321x missing that somehow enables that DP SID interrupt#asahi-dev · 2022-11-04 20:03
svenhm.. but we'd still need the gpio configured in the ADT, wouldn't we?#asahi-dev · 2022-11-04 20:01
sventhe TPS65987DDH datasheet claims there is an interrupt for changes to that DP SID register but it looks like that one just doesn't exist on the CD321X chips#asahi-dev · 2022-11-04 19:52
svens/cable/capable/#asahi-dev · 2022-11-04 19:49
svenit's also a bit weird when they have a perfectly cable i2c bus and a gpio for the irq to waste another gpio on hpd#asahi-dev · 2022-11-04 19:49
svenyeah#asahi-dev · 2022-11-04 19:44
svenoh, but then it would be in the ADT and last time I checked I didn't see anything there#asahi-dev · 2022-11-04 19:43
svenhrm, it might be a GPIO but that would be a bit strange#asahi-dev · 2022-11-04 19:38
sventhe tps chip can only speak i2c to the main SoC afaik#asahi-dev · 2022-11-04 19:36
svenand then there's this tps6598x chip that (among other things) negotiates the cable mode (e.g. usb3, dp altmode, etc.)