#
✕ nick:alyssa
#asahi-dev · 2021-09-18 23:34
alyssaAnd we're missing equivalents for ~41 commits from corellium, covering:
#asahi-dev · 2021-09-18 23:34
alyssaWe have DCP (and I think USB hotplug?) support which is unique to our tree.
#asahi-dev · 2021-09-18 23:33
alyssaWe have equivalents for ~28 commits from corellium's.
#asahi-dev · 2021-09-18 23:33
alyssaTaking a look at the commits in corellium's repo versus my own branch (which has ~everyone's WIP merged together)
#asahi-dev · 2021-09-14 23:28
alyssajn: yep, that's the standard fixed point trick
#asahi-dev · 2021-09-14 23:18
alyssaHehe
#asahi-dev · 2021-09-14 23:17
alyssaso that's 1.777777 ~= 16 / 9
#asahi-dev · 2021-09-14 23:17
alyssa0xc71c / 0x10000 ~= 0.7777777
#asahi-dev · 2021-09-14 23:17
alyssain hex that's 0x1c71c
#asahi-dev · 2021-09-14 23:17
alyssa "PreciseAspectRatio": 116508
#asahi-dev · 2021-09-14 23:17
alyssae.g.
#asahi-dev · 2021-09-14 23:16
alyssaif anyone was as confused as I was -- PreciseAspectRatio is a 16:16 fixed point
#asahi-dev · 2021-09-14 19:43
alyssa🙃
#asahi-dev · 2021-09-14 19:43
alyssamarcan: https://rosenzweig.io/timing.py
#asahi-dev · 2021-09-13 16:11
alyssa🤔
#asahi-dev · 2021-09-13 16:09
alyssa.....nope
#asahi-dev · 2021-09-13 16:09
alyssawhich 1/4 did you fix?
#asahi-dev · 2021-09-13 16:08
alyssaOoh
#asahi-dev · 2021-09-13 16:08
alyssadidn't you have half broken hotplug a week ago?
#asahi-dev · 2021-09-13 16:07
alyssasven: could be either :/
#asahi-dev · 2021-09-13 11:13
alyssawill be 'fun' to do in safe kernel C but hey I hear there's rust now ;-p
#asahi-dev · 2021-09-13 11:13
alyssamarcan: thanks :-)
#asahi-dev · 2021-09-12 22:50
alyssaset_digital_out_mode(TimingElements[i].ColorModes[j].ID, TimingElements[i].ID)
#asahi-dev · 2021-09-12 22:50
alyssaand then the modeset is as simple as
#asahi-dev · 2021-09-12 22:49
alyssaSo pick j maximizing TimingElements[i].ColorModes[j].Score
#asahi-dev · 2021-09-12 22:49
alyssaand then TimingElements[i].ColorModes is an array of colour modes, which the DCP helpfully scores for you
#asahi-dev · 2021-09-12 22:48
alyssais your resolution
#asahi-dev · 2021-09-12 22:48
alyssaTimingElements[i].VerticleAttributes.Active
#asahi-dev · 2021-09-12 22:48
alyssaTimingElements[i].HorizontalAttributes.Active
#asahi-dev · 2021-09-12 22:48
alyssathe TimingElements array has an entry for each mode
#asahi-dev · 2021-09-12 22:47
alyssamode setting is easy enough:
#asahi-dev · 2021-09-12 22:43
alyssabeen staring at the ioreg for DCP stuff for a little while now, feel comfortable with all this property stuff now
#asahi-dev · 2021-09-12 22:26
alyssa`ioreg -l` is a treasure trove
#asahi-dev · 2021-09-12 14:57
alyssaso it's a team problem? 😋
#asahi-dev · 2021-09-12 14:57
alyssabut display-crossbar sounds like mine
#asahi-dev · 2021-09-12 14:57
alyssasven: atc definitely sounds like your problem
#asahi-dev · 2021-09-12 11:29
alyssa*atc1
#asahi-dev · 2021-09-12 11:29
alyssadisplay-crossbar0, atc0-dpxbar, atc0-dpphy, atc0-dpin0, atc0-dpin1, ...same but atc2
#asahi-dev · 2021-09-12 11:29
alyssasven: re dcpext crossbar on the two type-c ports, that's literally modeled in the ADT whoops
#asahi-dev · 2021-09-12 11:20
alyssaTL;DR macOS userspace with private APIs can access the i2c bus for the type-c display but not the hdmi port
#asahi-dev · 2021-09-12 11:19
alyssathis was an interesting read (and from there, the upstream blog post)
#asahi-dev · 2021-09-12 11:19
alyssahttps://hackaday.com/2021/09/08/controlling-external-monitors-on-m1-macs-with-undocumented-apis/
#asahi-dev · 2021-09-11 23:57
alyssathere goes my "clever" idea
#asahi-dev · 2021-09-11 23:57
alyssa[syslog] * [UPPipeDCP_H13P.cpp:3114]bool IOMFB::UPPipeDCP_H13P::verify_surfaces(IOMFB::SwapRequest *): plane requires a minimum of 32x32 for the source buffer
#asahi-dev · 2021-09-11 18:11
alyssaso wanted to get hotplugging in dcp.py first
#asahi-dev · 2021-09-11 18:11
alyssadcp.py is just a r/e proof of concept thing. but debugging dcp.py is way easier than actual kernel driver
#asahi-dev · 2021-09-11 18:11
alyssakettenis: m1n1's dcp.py, not m1n1 proper
#asahi-dev · 2021-09-11 17:51
alyssawill wire this into the linux driver shortly
#asahi-dev · 2021-09-11 17:50
alyssathis is functional anyway
#asahi-dev · 2021-09-11 17:50
alyssahttps://rosenzweig.io/0001-Fix-hotplugging.patch

plus ›