#asahi-re · 2021-08-30 03:17
alyssabecause why would a single device need multiple independent IOMMUs? :v#asahi-re · 2021-08-30 03:17
alyssathis is a kludge to workaround linux only allowing a device to have a single IOMMU#asahi-re · 2021-08-30 03:17
alyssahave a DCP driver and a KMS driver and they are independent modules with mutual references in their private structs it's not good#asahi-re · 2021-08-30 03:16
alyssaI uhhh#asahi-re · 2021-08-30 03:16
alyssaforefront on the pile of hacks is the mess of a DT i've made#asahi-re · 2021-08-30 03:16
alyssaso no I am not putting up with 1080 on a 27" monitor#asahi-re · 2021-08-30 03:15
alyssaLook my chromebook is 2400x1600 on a laptop screen#asahi-re · 2021-08-30 03:15
alyssaTomorrow will be ~~cleaning up the pile of hacks~~ adding more hacks so I get 4k@60 on linux#asahi-re · 2021-08-30 03:14
alyssa^ that gets us to "hello KMS" on the DCP#asahi-re · 2021-08-30 03:14
alyssa 14 files changed, 1684 insertions(+), 18 deletions(-)#asahi-re · 2021-08-30 03:13
alyssathen again i can only imagine what dcp.kext looks like 😋#asahi-re · 2021-08-30 03:12
alyssaI want to say the mess I've produced is not that#asahi-re · 2021-08-30 03:12
alyssajinx#asahi-re · 2021-08-30 03:12
alyssaactually you know what i'm done trying to apply logic to this pile of hacks#asahi-re · 2021-08-30 03:11
alyssa`but#asahi-re · 2021-08-30 03:11
alyssawhy can't the dcp use sr_map_device_memory for that#asahi-re · 2021-08-30 03:11
alyssathough err#asahi-re · 2021-08-30 03:10
alyssarock on !#asahi-re · 2021-08-30 03:04
alyssaFun#asahi-re · 2021-08-29 16:07
alyssaOh, like that. Expose a primary, a cursor, and an overlay and reject request sto enable all 3 at once#asahi-re · 2021-08-29 16:07
alyssa"Checking that virtualized resources exported to userspace are not oversubscribed. For various reasons it can make sense to expose more planes, crtcs or encoders than which are physically there"#asahi-re · 2021-08-29 16:04
alyssa(in particular to support broken compositors that expect a cursor plane but ignore overlay planes)#asahi-re · 2021-08-29 16:04
alyssaI'm more wondering how to model this for linux#asahi-re · 2021-08-29 16:02
alyssa🤷#asahi-re · 2021-08-29 15:59
alyssaAlthough I guess it's not super surprising given this was designed for iPhones where you only ever have a primary and an overlay#asahi-re · 2021-08-29 15:59
alyssamarcan: baffling#asahi-re · 2021-08-29 13:34
alyssa(or some opaque flag enabled)#asahi-re · 2021-08-29 13:34
alyssaunless maybe it's still ARGB but with some alpha flpag disabled somewhere#asahi-re · 2021-08-29 13:33
alyssa(*is* there a fourcc for it?)#asahi-re · 2021-08-29 13:32
alyssado we know the fourcc for XBGR, though?#asahi-re · 2021-08-29 13:28
alyssaalpha is possibly, yeah#asahi-re · 2021-08-29 04:05
alyssa[Also, the use of %d instead of %u on scaling syslog implies that dcp rect is actually s32's, but the DCP rejects negative values. Which is a shame, it would've been a lovely way to indicate X/Y flips. Which I know the hardware can do since I know the actual register for it...]#asahi-re · 2021-08-29 04:03
alyssanini#asahi-re · 2021-08-29 04:03
alyssano dice there either. 🤷#asahi-re · 2021-08-29 03:58
alyssaor it could be that it's computed on the fly, maybe based on what's in use or maybe resoution-- let me try at 1080p#asahi-re · 2021-08-29 03:58
alyssait could be the firmware wants to be generic to different devices (...but it hardcodes H13P in the name lol)#asahi-re · 2021-08-29 03:57
alyssathe relevant string int he firmware has a %d format specifier, it's not hardcoded to 2#asahi-re · 2021-08-24 12:51
alyssamarcan: translation table base address... table..? :_p#asahi-re · 2021-08-24 03:13
alyssathis too..#asahi-re · 2021-08-24 03:13
alyssa gpu-region-base = 42949640192#asahi-re · 2021-08-24 03:11
alyssai have to assume at least the latter is an address for the graphics shared region ..#asahi-re · 2021-08-24 03:11
alyssa gfx-shared-region-base = 42949378048#asahi-re · 2021-08-24 03:11
alyssa ttbat-phys-addr-base = 2621438#asahi-re · 2021-08-24 03:11
alyssai just realized the ADT has, under sgx,#asahi-re · 2021-08-24 03:11
alyssasven: re where is GART#asahi-re · 2021-08-24 00:03
alyssaoh that's a standard term ok 👍#asahi-re · 2021-08-24 00:03
alyssamarcan: 🤔#asahi-re · 2021-08-23 22:36
alyssa(too much math)#asahi-re · 2021-08-23 22:36
alyssa*scaler#asahi-re · 2021-08-23 22:36
alyssawonders if jpeg/scalar are used at all in macOS or are just legacy from old iphones