2021-07-18
00:59quarkyalice_ has joined #asahi-dev
00:59quarkyalice__ has joined #asahi-dev
01:00quarkyalice_ has quit [Remote host closed the connection]
01:00quarkyalice has quit [Remote host closed the connection]
01:00quarkyalice__ has quit [Remote host closed the connection]
01:44quarkyalice has joined #asahi-dev
02:14balrog has joined #asahi-dev
02:16kthxg has joined #asahi-dev
02:55PhilippvK has joined #asahi-dev
02:58phiologe has quit [Ping timeout: 480 seconds]
03:07norwoodites has joined #asahi-dev
03:07pinskia has quit [Remote host closed the connection]
03:11pinskia has joined #asahi-dev
03:16norwoodites has quit [Ping timeout: 480 seconds]
09:38aleasto has joined #asahi-dev
13:11aleasto has quit [Ping timeout: 480 seconds]
13:30aleasto has joined #asahi-dev
13:46aleasto has quit [Quit: Konversation terminated!]
13:56alyssa has joined #asahi-dev
13:58alyssamarcan: Do we know why the DCP exists? IIRC the early (S5L) iPhones managed the display directly from the AP, the DCP was added for some presumably good technical reason. Do we know what it is? (And recursively, why the DCP has a copro of its own)
13:59alyssaIt doesn't necessarily change our lives at this point (if specific functionality can only be done with the DCP), I just am trying to understand what motivated Apple to design the copro at all
14:17bngs[m] has joined #asahi-dev
14:25marcanand the fact that there is a whole driver kext for *M1* silicon that does not use DCP suggests that was certainly in the cards at some point
14:26marcanone good reason, though, would be to allow the main CPU to go to sleep for extended periods of time. I wouldn't at all be surprised if DP/HDMI protocol bullshit required the DCP to wake up for every frame under some circumstances.
14:31marcanyou can piece together the DCP firmware from existing kexts, e.g. parts of IOAVFamily.kext are in there too
14:37marcanseems the RPC system for those is called "EPIC" and I hope it's less insane than the main DCP one
14:48yuyichao has quit [Ping timeout: 480 seconds]
14:59alyssaIf I were an upstream DRM maintainer with no especial interest in Apple, and if the patches were coming from @apple.com developers, it'd be a "hard no" unless there was an _overwhelming_ reason to have the layers of crap.
15:02alyssa..so I'm wondering how upstream will feel about this from @marcan.st and @rosenzweig.io addresses :|
15:06svenor "just" reverse engineer that RTKit firmware crap and write a driver that does MMIO pokes :P
15:09marcansven: you wanna sign up to write the displayport training and bandwidth calculation code?
15:10marcanboth of those are on my list of things I sure hope I don't have to touch because I don't even know how you would cleanroom that
15:25marcansven: to be fair it's not *that* bad. I think we can ignore a lot of the crap macos calls
15:26marcanand a lot of the callbacks are bullshit, like registering/looking up iokit stuff that just has to return "true"
15:27marcanhttps://mrcn.st/p/W4ijTdUF like the beginning of that boils down to "return true" crap, a bunch of property updates, and then another big nested callback where the AP starts doing stuff
15:27marcanand that stuff is more init calls with no args, some memory management thing, and that's about it
15:28marcanthen there's thrashing because for some reason it detects a display hotplug (this might be related to HDCP crap or my capture card)
15:29marcanthen finally more easy no-arg calls, a writeDebugInfo thing we can surely ignore, some power management stuff, and finally IOMobileFramebufferAP::set_digital_out_mode which again causes a big prop thrash
15:30marcanthen it stats doing swaps; the first time it does some interesting things with configuring the color matrices etc, there's also a generic "set_block_dcp" which might well be raw reg writes
17:45quarkyalice has quit [Quit: Leaving]
17:46alyssaAnd then have it cleaned up by Friday morning so I can wrap it with DRM stuff and have the patch set merged to drm-misc-next by Sunday night? 🙃
17:46quarkyalice has joined #asahi-dev
18:30cyrozapI think TheLink is referring to this: https://en.wikipedia.org/wiki/Black_company_(Japanese_term)
18:34alyssaTheLink: actually programming oss is a lot of waiting for other people to review your code
19:55norwoodites has joined #asahi-dev
19:55pinskia has quit [Remote host closed the connection]
19:56norwoodites is now known as pinskia
20:28bisko has joined #asahi-dev
20:28bisko has quit []
20:28bisko has joined #asahi-dev
20:44quarkyalice has quit [Remote host closed the connection]
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi-dev