#
…

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:25marcanalyssa: we do not
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:26alyssawhich kext was that..?
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:26marcan(even if no swap requests were made)
14:27marcansee AppleMobileDispH13G-DCP.kext vs AppleMobileDispH13G.kext
14:28alyssaFWIW AppleMobileDispH13G-DFR.kext is for the touch bar
14:28alyssaSo plausibly it uses both kexts depending which display
14:28marcanah, I was wondering about DFR
14:28marcanIIRC the display hardware for that thing is different
14:28marcanso that makes sense
14:29marcanI don't think DCP has anything to do with the touch bar
14:29alyssaDynamic Function Row
14:30marcanalso see IOMobileGraphicsFamily.kext vs IOMobileGraphicsFamily-DCP.kext
14:30marcanwhich have the other half of the driver
14:31marcanyou can piece together the DCP firmware from existing kexts, e.g. parts of IOAVFamily.kext are in there too
14:33marcanAppleMCDP29XX.kext is in there too etc
14:36marcanlook for all the *Proxy.kext ones too; those are proxies to specific DCP endpoints
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:55alyssaThis is horrifying, you know?
14:56marcanalyssa: *shrug* nothing surprises me any more
14:58alyssamarcan: I just..
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:00marcanof course it would be
15:00marcanbut we don't have that luxury :p
15:00marcanit is completely evident this was made for macos and only for macos
15:02alyssa..so I'm wondering how upstream will feel about this from @marcan.st and @rosenzweig.io addresses :|
15:03marcanI mean... it's either this or no M1 support
15:03marcanso far nobody hates me in #dri-devel at least
15:04alyssaThey haven't seen the RPC list yet ;-P
15:04marcanI did paste the RPC dump there
15:05j_eyit might be possible that not all of the RPC is needed? maybe a subset can be used?
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:10marcan(without docs)
15:12sveni.. uh... so maybe that RPC protocol isn't as ugly as it looks :P
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 the big dcpav prop dump
15:28marcanand that's the end of init
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
15:30marcanand that's it, then it starts submitting surface updates
15:32marcanthe set_block_dcp stuff looks like float arguments, which is interesting
17:45alyssamarcan: So you'll have reference code in mini by Tuesday? 😉
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
17:46TheLinksounds like programming oss is like working for a black company
18:34alyssacyrozap: Ahhhh
18:34alyssaTheLink: actually programming oss is a lot of waiting for other people to review your code
18:34alyssamore so than actually writing code
18:35TheLinkI was just making fun of your proposed schedule for marcan
18:35TheLinkI'll frfrain from doing son again, sorry
18:36TheLink*refrain
18:37jnTheLink: jokes and humor are ok, we just failed to undestand this one
18:38TheLinkyeah, my anime "knowledge" sometimes gets in the way of getting the message thru ;)
18:46alyssaMaking fun is okay, I'm just a boring North American :-p
19:39TheLinkGermans aren't supposed to be funny so that might be it, too :)
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
…