2021-08-30
00:51skipwich has joined #asahi-re
01:18quarkyalice has quit [Ping timeout: 480 seconds]
01:43chadmed has joined #asahi-re
01:47chadmed has quit [Remote host closed the connection]
02:52phiologe has joined #asahi-re
02:54austriancoder has quit [Read error: Connection reset by peer]
02:55austriancoder has joined #asahi-re
02:56PhilippvK has quit [Ping timeout: 480 seconds]
02:59marcanalyssa: so actually what that rt bandwidth thing does is call function-bw_req_interrupt0 from the ADT (which is a link to elsewhere)
03:10marcanalyssa: https://github.com/AsahiLinux/m1n1/commit/219950235c5f95be8e7c2f69c0039317fdeaf895 enjoy
03:11marcanprobably because the bit or something? this is calling out to some other RTBandwidth service
03:12marcanit's our job to stick it to apple and make the linux version orders of magnitude more beautiful ;)
03:15alyssaTomorrow will be ~~cleaning up the pile of hacks~~ adding more hacks so I get 4k@60 on linux
03:17alyssahave a DCP driver and a KMS driver and they are independent modules with mutual references in their private structs it's not good
03:18marcanwell, you can still have different devices from Linux's point of view, managed by one driver
03:18alyssathe KMS driver needs to "own" disp0 stream 0, so that way framebuffer memory can be allocated by the DRM core and be automatically mapped with no driver twiddling
03:19marcanbut I mean, you can have different drivers in one module that just happen to know about each other and share all kinds of private data
03:19alyssaon the other hand, the DCP module needs to "own" the DCP dart so the rtkit crap can just do dma_alloc_coherent properly
03:20marcanso pick one that will be the "parent" driver that kicks everything off, then that defers probing until everything else is probed
03:23alyssa(Obviously letting a copro map whatever memory it wants defeats the purpose of having an IOMMU)
03:23marcanit only call it right after sr_mapDeviceMemoryWithIndex(PROV, 4, 256, 0x23b3d0000, 0x4000)
03:25marcanin this case it's disp0 index 4, though for us that might be a different index, in which case we'd want a mapping table anyway
03:25alyssathat's what I assumed but am trying to check my assumptions off you since you complained I don't ask enough questions 😋
03:26marcanlike {4, <reference to what we call that range>} and then the map call can just check that what is being mapped is something in that table (resolved)
03:29marcanapple seriously doesn't care, they have drivers poking other devices' registers *everywhere*
04:31thunfisch has quit [Quit: frrrp!]
04:39thunfisch has joined #asahi-re
12:07Emantor has quit [Quit: ZNC - http://znc.in]
12:07Emantor has joined #asahi-re
13:30jbowen has joined #asahi-re
14:05yuyichao has quit [Ping timeout: 480 seconds]
14:37PhilippvK has joined #asahi-re
14:40phiologe has quit [Ping timeout: 480 seconds]
16:37X-Scale has joined #asahi-re
16:46skoobasteeve_ has joined #asahi-re
16:51skoobasteeve has quit [Ping timeout: 480 seconds]
17:02phiologe has joined #asahi-re
17:05PhilippvK has quit [Ping timeout: 480 seconds]
17:12PhilippvK has joined #asahi-re
17:15phiologe has quit [Ping timeout: 480 seconds]
23:35riker77_ has joined #asahi-re
23:37riker77 has quit [Ping timeout: 480 seconds]
23:37riker77_ is now known as riker77