#
✕ nick:marcan
#asahi-dev · 2021-11-23 06:33
marcancould migrate the dwc3 logic to that
#asahi-dev · 2021-11-23 06:33
marcanwell, if I make a generic "disable things not in the ADT" function, we can just enable it by default
#asahi-dev · 2021-11-23 05:53
marcanweak does it too
#asahi-dev · 2021-11-23 05:51
marcanif I turn on the GPIO strong pull-up on sda/scl, that unjams it
#asahi-dev · 2021-11-23 05:51
marcanjannau: so on non-1gbe mac minis, the i2c port is weakly pulled down, which jams the bus
#asahi-dev · 2021-11-23 05:50
marcanoh, it's the hardware, lol
#asahi-dev · 2021-11-23 05:42
marcanI suspect it's missing a clock, but I can't find per-i2c clock regs anywhere
#asahi-dev · 2021-11-23 05:42
marcanI compared registers and can't find any differences with the other instances; I also tried a reset via PMGR but that didn't work
#asahi-dev · 2021-11-23 05:42
marcanwhat ends up happening is a mystery bit 30 lights up in XFSTA (doesn't exist on pasemi), and the transfer state machine never moves at all
#asahi-dev · 2021-11-23 05:41
marcanjannau: so that's fun. i2c3 times out on j274-1gbe.
#asahi-dev · 2021-11-22 11:13
marcandone!
#asahi-dev · 2021-11-22 11:10
marcanwill do :)
#asahi-dev · 2021-11-22 10:51
marcanthe speed selection though, yeah
#asahi-dev · 2021-11-22 10:50
marcanthe PCIE_LINK_WIDTH_SPEED_CONTROL bit is dwc-specific
#asahi-dev · 2021-11-22 10:49
marcanfwiw it seems that patch is required to get 10Gbe working on those Mac Minis; I think that NIC only does Gen2 or better, and without it everything trains at Gen1
#asahi-dev · 2021-11-22 10:48
marcanOTOH it might be possible to just do this in m1n1 too?
#asahi-dev · 2021-11-22 10:46
marcanit's kind of crappy that we can't use the config space accessors because stuff isn't initialized yet
#asahi-dev · 2021-11-22 10:46
marcanit's... not the prettiest approach :/
#asahi-dev · 2021-11-22 10:46
marcanI linked mine: https://github.com/AsahiLinux/linux/commit/35ee181fdfdea4c5c87b2365c6f3de707ddef745
#asahi-dev · 2021-11-22 10:00
marcanI think I missed that... please shout louder next time :)
#asahi-dev · 2021-11-22 09:41
marcansure :)
#asahi-dev · 2021-11-22 09:38
marcanif it applies to mainline you can just send it out as usual, up to you :)
#asahi-dev · 2021-11-22 09:37
marcanjannau: anything that applies to the changes in the t6000 bringup branch, you can just send me a PR to it and I'll squash it in and put you down as c-a-b.
#asahi-dev · 2021-11-22 09:11
marcanso the good news is dcp.py works as-is on 12.0.1, and all you need to do to make it bring up the screen is a standard modeset
#asahi-dev · 2021-11-22 08:53
marcanand nope, not fixed in the betas
#asahi-dev · 2021-11-22 08:42
marcanha
#asahi-dev · 2021-11-22 08:01
marcan(once DCP loads inside macOS it redraws the logo though)
#asahi-dev · 2021-11-22 08:01
marcanI guess iBoot1 is in charge of putting that up, and since that's broken, iBoot2 comes along and initializes a blank framebuffer...
#asahi-dev · 2021-11-22 08:01
marcanoh hahaha, I just caught a frame from an older macOS boot and there was no apple logo!
#asahi-dev · 2021-11-22 08:00
marcanwould've been really bad if it broke systemwide
#asahi-dev · 2021-11-22 08:00
marcanat least old installs still work, so when the iBoot2 bundle DCP gets loaded, at least that fixes it
#asahi-dev · 2021-11-22 07:54
marcanif 12.1 doesn't fix this I'm going to have to start shouting loudly at apple
#asahi-dev · 2021-11-22 07:54
marcanwell, this is a release blocker for us; we aren't shipping 11.x because just no, and we can't really ship betas, and 12.0.1 critically breaks the framebuffer on the mac mini...
#asahi-dev · 2021-11-22 07:53
marcandid they actually break HDMI out in iBoot on the Mini across the board?
#asahi-dev · 2021-11-22 07:52
marcanfails with two different capture cards
#asahi-dev · 2021-11-22 07:51
marcanI guess that's a reason to update to 12.1 betas and see if they fix it...
#asahi-dev · 2021-11-22 07:47
marcanjannau: lol, 12.0.1 broke my display too
#asahi-dev · 2021-11-22 07:40
marcankettenis: that the change affected t8103 too?
#asahi-dev · 2021-11-22 07:30
marcanrobher: is there some official punishment we can give apple for changing the ADT binding without changing the compatible? ;)
#asahi-dev · 2021-11-22 07:25
marcan(dammit apple)
#asahi-dev · 2021-11-22 07:25
marcanjannau: m1n1 update pushed, should fix your problem
#asahi-dev · 2021-11-22 07:12
marcanI guess the easiest thing to do here is count the number of reg entries, subtract the header, and divide by the number of ports
#asahi-dev · 2021-11-22 07:09
marcanbeta5 had 4, 12.0 RC had 5, not sure when it changed, probably with the RC
#asahi-dev · 2021-11-22 07:08
marcangoddammit
#asahi-dev · 2021-11-22 07:08
marcanthat's it
#asahi-dev · 2021-11-22 07:08
marcanyuuuuuup
#asahi-dev · 2021-11-22 07:07
marcan... now the problem is how do I sanely check for firmware versions in m1n1...
#asahi-dev · 2021-11-22 07:06
marcanthen the first port will work and all the others will die a horrible death
#asahi-dev · 2021-11-22 07:06
marcanwhat if that is 12.0.1+
#asahi-dev · 2021-11-22 07:06
marcanwhat if that isn't t6k

plus ›