#asahi-dev · 2022-11-06 12:30
jannauhttp://paste.debian.net/1259723/#asahi-dev · 2022-11-06 12:30
jannauunsure if that's the best solution#asahi-dev · 2022-11-06 12:30
jannauI have a preliminary patch preventing calling extcon_find_edev_by_node() in dwc3_get_extcon()#asahi-dev · 2022-11-06 10:58
jannauI can retake traces with another display. it was the display I was testing when you asked for the traces#asahi-dev · 2022-11-06 10:56
jannauI think the traces are taken with the cursed dell 4k display, requires MST for 4k 60Hz and tends to be a bit flakey. dcp offers only 4K 30Hz and macos seems to have no problems#asahi-dev · 2022-11-06 10:52
jannauI tried 3 different displays, 2 with usb-c/dp adapter and one direct usb-c#asahi-dev · 2022-11-06 10:45
jannaufrom the devicetree that's the only thing I'd expect to happen since there's only 'mux-controls = <&atcphy1_xbar 0>;'#asahi-dev · 2022-11-06 10:44
jannausven: should anything switch dpin0/1 to dcpext on hotplug? The only thing I see is "Switched dpin{0,1} to disconnected state" and on dcpext probe "Switched dpphy to dispext0,0"#asahi-dev · 2022-11-06 09:33
jannauwith the rebased tree I see "phy-apple-atc 503000000.phy: Invalid state 0 in usb3_set_phy" not sure if that's the rebase or if I missed it yesterday#asahi-dev · 2022-11-06 09:32
jannausven: yes, no change in behavior. on dcpext side everything looks ok but still no signal#asahi-dev · 2022-11-05 23:19
jannaudcpext0 on t6001 seems now more or less in the same state, hotplug works and dcpext0 is configured for the display but no signal#asahi-dev · 2022-11-05 21:27
jannausigh, dwc3 without extcon is broken again in v6.1-rc3 d182c2e1bc92084c038b44c618f29589a4de9f66#asahi-dev · 2022-11-05 18:08
jannauin both cases booted without anything connected -> connect dp adapter -> connect cable -> reboot#asahi-dev · 2022-11-05 18:07
jannausven: https://www.jannau.net/asahi/atc_macos_12.3.log and https://www.jannau.net/asahi/atc_linux.log#asahi-dev · 2022-11-05 17:03
jannauno change with udelay(100) in mask32#asahi-dev · 2022-11-05 15:39
jannauthat's first connecting the usb-c dp adapter and than connecting the dp cable#asahi-dev · 2022-11-05 15:38
jannausven: http://paste.debian.net/1259652/#asahi-dev · 2022-11-05 15:17
jannauno change http://paste.debian.net/1259645/#asahi-dev · 2022-11-05 15:12
jannaulet me try that. I'm testing with an usb-c dp adapter and an usb-c display#asahi-dev · 2022-11-05 15:06
jannauare "DPTXPort: unhandled call" for 11, 13, 14, 20, 22 expected?#asahi-dev · 2022-11-05 15:05
jannauyes, but I see one possible problem now: apple-dcp 271c00000.dcp: unexpected busy command channel#asahi-dev · 2022-11-05 15:02
jannaus/migging/missing/#asahi-dev · 2022-11-05 15:02
jannauyes#asahi-dev · 2022-11-05 15:02
jannauon dcpext side everything looks ok but the displays complain about a migging signal#asahi-dev · 2022-11-05 15:01
jannausven: no luck so far here with actually getting a picture out of dcptext#asahi-dev · 2022-11-05 12:49
jannausven: dptxep.h is missing#asahi-dev · 2022-11-05 12:48
jannaurebases cleanly except for the conflicting solutions for the uninitialized values in tipd's interrupt handlers#asahi-dev · 2022-11-05 12:25
jannauit's ontop of an older dcp branch + commits to add dcpext/dcpext0/4. should rebase ontop of the current asahi-wip without too much conflicts (hopefully)#asahi-dev · 2022-11-05 11:59
jannaudcp initialization might a little bit flaky too. I had a single occurance of some weirdness which was solved by turning the display off and on. unfortunately I didn't had time to investigate and now I've even forgotten what the issue was#asahi-dev · 2022-11-05 11:52
jannaunice. can you test if it works with HBR3 and 2 lanes as well?#asahi-dev · 2022-11-05 10:17
jannauif the ADT is not a lie. I find it a little suspicious that the tables and constants are the same over all devices#asahi-dev · 2022-11-05 10:01
jannau0.124 for milliAmps2DACPart2MaxCurrent means at the reported brightness of 510 nits a normalization by ~410 nits#asahi-dev · 2022-11-05 10:01
jannau0.1945 for milliAmps2DACPart1MaxCurrent means at the reported brightness of 99 nits a normalization by 514 nits#asahi-dev · 2022-11-05 09:57
jannauif I solve the polynomial for milliAmps2DACPart1MaxCurrent and milliAmps2DACPart2MaxCurrent I get conflicting results#asahi-dev · 2022-11-05 09:55
jannauthe polynomial seems to expect normalized nits from 0 to 1 + x#asahi-dev · 2022-11-05 09:53
jannauin addition I have milliAmps2DACPart1MaxCurrent and milliAmps2DACPart2MaxCurrent and coefficients for a quadratic polynomial to convert nits to mAmps (nits2mAmps*OrderCoef)#asahi-dev · 2022-11-05 09:51
jannautwo tables which give a linear index to brightness translation (one for 0 - 100 nits, the other one for 100 - 510 nits) milliAmps2DACTablePart1, milliAmps2DACTablePart2. brightness values as reported back by dcp#asahi-dev · 2022-11-05 09:49
jannausigh. I do not understand how the brightness mapping is supposed to work. The backlight node in the ADT gives the following#asahi-dev · 2022-11-04 22:26
jannau+1#asahi-dev · 2022-11-04 22:23
jannauthe justification to send them both together is that 10ms timeout breaks the typec chip on some apple silicon system in combination with faster processing with irqs#asahi-dev · 2022-11-04 22:21
jannausome might prefer it though if the timeout increase and the irq change are two separate commits#asahi-dev · 2022-11-04 22:19
jannauI would also leave the error recovery patch out. it has little to do with the topic of this already in progress "series".#asahi-dev · 2022-11-04 21:01
jannauI guess I should then start looking into why dcpext0 doesn't work on m1 max/ultra#asahi-dev · 2022-11-04 20:46
jannauor maybe not up but in a weird state?#asahi-dev · 2022-11-04 20:46
jannaucould it be that the dp to hdmi brigde in the hub keeps the dp connection up after the hdmi unplug?#asahi-dev · 2022-11-04 20:41
jannauare missing interrupts only a problem with the usb3+dp hub? I see tps6598x irq on dp connect and disconnect with a sample usb-c to dp dongle#asahi-dev · 2022-11-04 20:03
jannauyes#asahi-dev · 2022-11-04 20:00
jannauthe tps65987 data sheet says that it can be configured to use gpio3 for hpd when hpd is signaled through usb pd, see "8.3.8 DisplayPort HPD"#asahi-dev · 2022-11-04 19:49
jannauso it seems to be unlikely that tps6598x uses a gpio without mention in the ADT#asahi-dev · 2022-11-04 19:47
jannauthe hdmi hpd on the macbook pro 14" is a gpio and in the adt