#
…

2022-03-28

00:06amarioguy has quit [Ping timeout: 480 seconds]
00:34MajorBiscuit has quit [Ping timeout: 480 seconds]
01:00doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:00doggkruse has joined #asahi-re
01:32chadmed has joined #asahi-re
02:00user982492 has joined #asahi-re
02:17phiologe has joined #asahi-re
02:20PhilippvK has quit [Ping timeout: 480 seconds]
02:45nicolas17so iBoot is encrypted, keys to decrypt it are not available for M1, and the unencrypted vmapple iBoot isn't useful because it doesn't deal with hardware stuff
02:45nicolas17but we do have A14 iBoot, would that give any hardware clues? https://www.theiphonewiki.com/wiki/SkySeed_19A5325f_(iPhone13,2)
02:55doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:59doggkruse has joined #asahi-re
03:30jakebot has quit [Quit: The Lounge - https://thelounge.chat]
03:30jakebot has joined #asahi-re
03:32user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:50doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:51doggkruse has joined #asahi-re
04:02user982492 has joined #asahi-re
04:05doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:58grange_c has quit [Server closed connection]
04:58grange_c has joined #asahi-re
05:05firefox317 has quit [Server closed connection]
05:07firefox317 has joined #asahi-re
05:09Jamie[m]1update: who knew scaling could be so complicated lmao
05:15commandoline has quit [Server closed connection]
05:15commandoline has joined #asahi-re
05:32manawyrm has quit [Server closed connection]
05:32manawyrm has joined #asahi-re
05:33pg12 has quit [Server closed connection]
05:34pg12 has joined #asahi-re
05:35tired has quit [Server closed connection]
05:36tired has joined #asahi-re
05:40arekm has quit [Remote host closed the connection]
05:42eloy_ has quit [Server closed connection]
05:42eloy_ has joined #asahi-re
05:44lonjil has quit [Server closed connection]
05:44lonjil has joined #asahi-re
06:04Fanfwe has quit [Server closed connection]
06:05Fanfwe has joined #asahi-re
06:16rqou_yeah this pile of "random misc" IP is _very_ complicated
06:28rikkaa has joined #asahi-re
06:53jannau has quit [Server closed connection]
06:53jannau has joined #asahi-re
07:16nicolas17 has quit [Quit: Konversation terminated!]
07:35user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:55the_lanetly_052 has joined #asahi-re
08:02user982492 has joined #asahi-re
08:26user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:44kameks has joined #asahi-re
08:45MajorBiscuit has joined #asahi-re
08:59kloenk has quit [Remote host closed the connection]
09:06kloenk has joined #asahi-re
09:08arekm has joined #asahi-re
09:27rqou_took a quick look at prores and it seems pretty simple in terms of interfacing
09:27rqou_there's some kind of ringbuffer that descriptors are added to, and then stuff happens
09:28rqou_actually getting it to work would require me to get around to understanding both prores a lot better as well as the different DART
09:28rqou_but otherwise you just feed the hardware frames and it gives you data back when it's done
09:29rqou_(this is all from REing the driver)
09:31rqou_has anybody looked at the dart,t8110 yet other than Jamie[m]1?
09:39the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:39chadmedfor it to be useful we'd have to add ProRes 422 support to VAAPI or something right
09:40rqou_uhh i don't know anything about the linux driver side
09:40rqou_worse case you can make a char/misc device or something awful like that
09:42chadmedhttps://wiki.multimedia.cx/index.php/Apple_ProRes this page has some decent info on the different bitfields in the prores headers and stuff
09:42chadmedincluding its fourccs
09:42marcanwe're shaving all the yaks here, no char/misc devices please
09:42marcanleave that nonsense to lazy hardware vendors
09:42marcanour goal is to do things right and upstream them, and that isn't upstreamable
09:43marcanfor video codecs there's different frameworks, stuff like v4l m2m
09:43marcansomething along those lines is probably the way to go, but it needs to be discussed with upstream to make sure what we're doing makes sense
09:44marcanalso keep in mind that "the x86 way" is often the wrong way
09:44marcane.g. the x86 world of video decoding is centered around GPUs doing it, which is not the case here
09:44rqou_yeah, i'm mostly focused on RE/hardware docs and don't actually know much about linux driver dev or upstream
09:44marcanand around things like keeping decode output in VRAM, which is also not the case here
09:46marcanrqou_: also re compressed formats, at least some of them need additional out of band metadata beyond dimensions/pitch as usual
09:46ChaosPrincess has quit [Quit: WeeChat 3.4.1]
09:46marcanDCP has a whole bunch of that
09:46rqou_huh that's interesting
09:47marcanand the reason for this is so that macos can do stuff like play 4K youtube videos in safari with the GPU *off* and the video decoder feeding directly into a DCP surface with minimum memory bandwidth usage
09:47ChaosPrincess has joined #asahi-re
09:47rqou_ooh that's actually really cool
09:48dottedmagmarcan: how would that work? a special case in compositor if it knows that nothing has to be composited over the surface that shows the video? (presumably any overlay interface element would require GPU to be enabled)
09:49marcanDCP supports alpha channels, it can composite for you
09:49marcanand basic scaling
09:49marcanyou can put the video surface below an overlay layer with the rest of the UI
09:49rqou_lol how many "scaling" blocks does this chip have?
09:49marcanall display output hardware has scaling these days...
09:49rqou_the jpeg block also has a scaler
09:49rqou_in addition to the dedicated "scaler"
09:50marcanAIUI the dedicated scaler blocks are actually useful because they're pretty fast? I don't know what apple uses them for though, but I'm guessing at least video/image scaling? would be nice to find out
09:50marcanit might be mostly for stuff like huge images
09:52marcanalso I heard that on the Pro/Max, there is even more nonsense for HDR output
09:52marcanlike dedicated HDR overlay planes or something
09:52marcanthat all seems like a giant mess though, and Linux support for HDR is kind of a joke still
09:52marcanso I wouldn't think too hard about that until people first figure out how it should all work on linux anyway
09:53_jannau_I'd guess the seperate scalers are for camera input/isp
09:53marcanISP is its own thing
09:53dottedmagOTOH, unless the capabilities of hardware are known, it's unclear what to expose in Linux.
09:53marcanthe scalers are instantiated by the AP
09:53marcanso ISP probably has its own
09:54marcandottedmag: yeah but first you need to, like, figure out HDR/color management/etc at the application layer for any of this to be useful
09:54marcanhasn't exactly been linux's forte ever...
09:54_jannau_not sure if the isp includes it's on scaler, i.e. you would use the scaler on the isp output
09:54marcanI do want to work on that, once the GPU is nice and smooth ;)
09:54marcan_jannau_: could be, but ISP does more complicated stuff than scaling anyway...
09:54marcancamera processing these days is magic
09:54marcanso I would expect it to have a scaler
09:55marcan(and possibly also a JPEG encoder)
09:56rqou_lol another jpeg encoder?
09:56rqou_and yeah, linux hdr support was a mess last time i poked it
09:56rqou_basically the only program that seems to work properly is firefox
09:56marcanthat alone would be good to get working though, if it really does
09:57rqou_and you have to twiddle a special setting in about:config
09:57chadmedcollabora is working on colour management in wayland i think
09:57marcananyway, this is all predicated on wayland for sure, and wayland is predicated on GPU because it's kind of worse than xorg without one IME :-)
09:57chadmedbut i mean theyre basically starting from nothing so its going to be a while before their labour bears any fruit
09:57rqou_iirc firefox color management works on xorg
09:57marcanso it'd be good to talk to the people involved to be a test platform, but let's not get too carried away with it as a goal
09:58marcanrqou_: I doubt HDR works on xorg as intended
09:58marcanlots of things don't work on xorg as intended :p
09:58marcanI shipped with xorg because the OOTB experience is better
09:58rqou_hrm, "color management so that you don't get extremely intense red" did work
09:58rqou_idk about the rest of HDR
09:58marcanbut the end goal should be wayland... I just hope they make xwayland suck less, because that one surprised me with how crappy it was
09:58marcan(broken HiDPI)
09:58marcanrqou_: that's not HDR
09:59marcanHDR is about *brightness*
09:59marcanthat's just wide gamut
09:59marcanmind you, not that any of this is perfect on macOS with popular applications anyway
09:59marcanevery time I clipboard paste an image into Discord on macOS it comes washed out due to a bad gamut conversion
09:59marcanit's been broken for at least a year now
10:00chadmedonly niggle ive had with wayland over the last two-and-a-bit months has been the lack of blue light filtering at night, because no gamma_lut_crtc
10:00rqou_oh yeah hmm i guess you can have wide gamut without hdr
10:00rqou_maybe hdr is indeed broken
10:01_alicei wonder if that’s just something busted with electron/Discord and colour space handling, because it works fine for me everywhere else ><
10:01marcanchadmed: before release I gave it a spin to see if I should default to it, saw the cute insta-HiDPI scaling hack (except it looks ugly until you restart the apps, so not that great a user experience), and then tried firefox and cringed at the blur because apparently it runs at 1x and gets scaled up?
10:01marcanin xwayland
10:01marcan(guess it defaulted to X)
10:01marcanI'm sure it can all be improved but the defaults were not great and I didn't have time to poke a stick at it
10:01marcanand apparently xwayland HiDPI issues are a long-standing problem
10:01rqou_unrelated: i just threw the scaler driver into ghidra and wao it's complicated
10:02marcansometimes reading HV logs is easier, you know
10:02rqou_yeah i know
10:02marcanapple like to overcomplicate code
10:02chadmedoh yeah xwayland scaling is just completely borked. for firefox i just added MOZ_ENABLE_WAYLAND=1 to /etc/env and that sorted it, but its not really a shippable fix. not sure why they havent got wayland enabled by default upstream though
10:02rqou_i'm just trying to figure out how to work the dart,t8110 :(
10:03rqou_marcan: idk if you saw, but for some reason the m1 max has dart,t8110 for the prores, scaler, usb4, and avd blocks
10:03marcanyeah I saw
10:03marcanthey're probably just moving to that for everything
10:04rqou_wait have you already RE'd it?
10:04marcanI kinda feel like the t6000 DART was a hack to avoid a full SoC block upgrade
10:04marcanand t8110 is the "new" upgraded DART
10:05marcananyway, that's a blocker for everything so it's a good thing to look at first
10:05marcanand it *shouldn't* be too hard to figure out from HV traces
10:08rqou_hmm y'know what would be really helpful in the asahi dart docs? a diagram
10:08Jamie[m]1omg there are asahi dart docs?
10:09rqou_well, there's mini/hw/dart.py
10:10chadmedmight be worthwhile compiling actual docs for some of this stuff at some point, once things have stabilised a bit
10:10marcanPRs accepted :>
10:12PthariensFlame[m] has quit [Server closed connection]
10:12PthariensFlame[m] has joined #asahi-re
10:19rqou_lol, project zero actually has a diagram
10:19rqou_of the DART
10:19rqou_from back when they pwned the broadcom wifi
10:21sventhat’s probably for the DART from long before m1 was a thing :D
10:21sventhere’s an older version from the iPhones that only does 4K pages
10:21svenand the registers look a bit different
10:22sventhe best DART docs we have is probably the Linux driver and that dart.py :D
10:23svenI very briefly looked at that t8110 dart kext and it seems that it changed quite a bit
10:23sveniirc it supports one more pagetable level now, and presumably a bigger iova space with that
11:00bisko has joined #asahi-re
11:20phire has quit [Remote host closed the connection]
11:21phire has joined #asahi-re
11:44JuniorJPDJ has quit [Server closed connection]
11:44JuniorJPDJ has joined #asahi-re
11:53amarioguy has joined #asahi-re
11:57rikkaa has quit [Quit: Connection closed for inactivity]
12:05amarioguy has quit [Ping timeout: 480 seconds]
12:13amarioguy has joined #asahi-re
13:23bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:28eragon has quit [Quit: WeeChat 3.4]
13:29chadmed has quit [Ping timeout: 480 seconds]
13:29eragon has joined #asahi-re
13:31yuyichao has quit [Ping timeout: 480 seconds]
13:31alcazar has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
13:45kameks has quit [Ping timeout: 480 seconds]
13:55the_lanetly_052 has joined #asahi-re
13:55amarioguy has quit [Ping timeout: 480 seconds]
13:56bisko has joined #asahi-re
13:59yuyichao has joined #asahi-re
13:59amarioguy has joined #asahi-re
14:06bisko has quit [Read error: Connection reset by peer]
14:07bisko has joined #asahi-re
14:29emsi has joined #asahi-re
14:34meowmomo1[m] has joined #asahi-re
14:55amarioguy has quit [Remote host closed the connection]
14:55amarioguy has joined #asahi-re
15:27MajorBiscuit has quit [Ping timeout: 480 seconds]
15:28msmith12[m] has quit [Server closed connection]
15:28msmith12[m] has joined #asahi-re
15:52nicolas17 has joined #asahi-re
15:57amarioguy has quit [Ping timeout: 480 seconds]
16:00doggkruse has joined #asahi-re
16:04bisko has quit [Read error: Connection reset by peer]
16:05bisko has joined #asahi-re
16:08emsi has quit [Quit: Textual IRC Client: www.textualapp.com]
16:35roxfan2 has joined #asahi-re
16:39roxfan has quit [Ping timeout: 480 seconds]
16:47amarioguy has joined #asahi-re
17:17YichaoYu[m]<marcan> "but the end goal should be..." <- Please at least keep supporting sort for a few more years…. Currently the hack it took to get input methods working in wayland is just terrible….
17:22marcanwe're not going to stop supporting xorg, we'll just support both and probably default to wayland at some point
17:33roxfan2 is now known as roxfan
17:46amarioguy has quit [Ping timeout: 480 seconds]
17:53amarioguy has joined #asahi-re
17:57user982492 has joined #asahi-re
18:17unevenrhombus[m] has quit [Server closed connection]
18:17unevenrhombus[m] has joined #asahi-re
18:28Hinata[m] has quit [Server closed connection]
18:28Hinata[m] has joined #asahi-re
18:29AnalogDigital[m] has quit [Server closed connection]
18:30AnalogDigital[m] has joined #asahi-re
18:30davay[m] has quit [Server closed connection]
18:30davay[m] has joined #asahi-re
18:31BastienSaidi[m] has quit [Server closed connection]
18:31BastienSaidi[m] has joined #asahi-re
18:32booffo[m] has quit [Server closed connection]
18:32booffo[m] has joined #asahi-re
18:34daniel0611[m] has quit [Server closed connection]
18:34daniel0611[m] has joined #asahi-re
18:37feeleep[m] has quit [Server closed connection]
18:37feeleep[m] has joined #asahi-re
18:37hectour[m] has quit [Server closed connection]
18:38hectour[m] has joined #asahi-re
18:40javier_varez[m] has quit [Server closed connection]
18:40javier_varez[m] has joined #asahi-re
18:40jeh[m] has quit [Server closed connection]
18:40jeh[m] has joined #asahi-re
18:41josipknezovic[m] has quit [Server closed connection]
18:41josipknezovic[m] has joined #asahi-re
18:41kedde[m] has quit [Server closed connection]
18:41kedde[m] has joined #asahi-re
18:42lockna has quit [Server closed connection]
18:42lockna has joined #asahi-re
18:42landscape15[m] has quit [Server closed connection]
18:42landscape15[m] has joined #asahi-re
18:43LilleCarl[m] has quit [Server closed connection]
18:43LilleCarl[m] has joined #asahi-re
18:44matthewayers[m] has quit [Server closed connection]
18:44matthewayers[m] has joined #asahi-re
18:46DanStrong[m] has quit [Server closed connection]
18:46DanStrong[m] has joined #asahi-re
18:46latko[m] has quit [Server closed connection]
18:46latko[m] has joined #asahi-re
18:47plantaintion3[m] has quit [Server closed connection]
18:47plantaintion3[m] has joined #asahi-re
18:47pulpy_orange2[m] has quit [Server closed connection]
18:47pulpy_orange2[m] has joined #asahi-re
18:48pwn0rz[m] has quit [Server closed connection]
18:48pwn0rz[m] has joined #asahi-re
18:48quentin[m] has quit [Server closed connection]
18:48quentin[m] has joined #asahi-re
18:49Redecorating[m] has quit [Server closed connection]
18:49Redecorating[m] has joined #asahi-re
18:50rhys has quit [Server closed connection]
18:50rhys has joined #asahi-re
18:50RowanGoemans[m] has quit [Server closed connection]
18:50RowanGoemans[m] has joined #asahi-re
18:51ryanhrob1[m] has quit [Server closed connection]
18:51ryanhrob1[m] has joined #asahi-re
18:51s-urabe[m] has quit [Server closed connection]
18:51s-urabe[m] has joined #asahi-re
18:52shaman_br[m] has quit [Server closed connection]
18:52shaman_br[m] has joined #asahi-re
18:53sikkileo[m] has quit [Server closed connection]
18:53sikkileo[m] has joined #asahi-re
18:53simjnd[m] has quit [Server closed connection]
18:53simjnd[m] has joined #asahi-re
18:54JacksonR[m] has quit [Server closed connection]
18:54JacksonR[m] has joined #asahi-re
18:55spokv[m] has quit [Server closed connection]
18:55spokv[m] has joined #asahi-re
18:55sppdqd[m] has quit [Server closed connection]
18:55sppdqd[m] has joined #asahi-re
18:55sproede[m] has quit [Server closed connection]
18:55sproede[m] has joined #asahi-re
18:55svenpeter[m] has quit [Server closed connection]
18:55svenpeter[m] has joined #asahi-re
18:56svenpeter[m] is now known as Guest580
18:56tophevich[m] has quit [Server closed connection]
18:56tophevich[m] has joined #asahi-re
18:56user1tt[m] has quit [Server closed connection]
18:56user1tt[m] has joined #asahi-re
18:57vimsos[m] has quit [Server closed connection]
18:57vimsos[m] has joined #asahi-re
18:58xorly[m] has quit [Server closed connection]
18:58xorly[m] has joined #asahi-re
19:00m6wiq has joined #asahi-re
19:05the_lanetly_052 has quit [Ping timeout: 480 seconds]
19:06Andre[m]1 has quit [Server closed connection]
19:06Andre[m]1 has joined #asahi-re
19:40fbd222[m] has quit [Server closed connection]
19:40fbd222[m] has joined #asahi-re
19:43yamii has quit [Quit: WeeChat 3.3]
19:43yamii has joined #asahi-re
19:56bisko has quit [Read error: Connection reset by peer]
19:57bisko has joined #asahi-re
20:11doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:28doggkruse has joined #asahi-re
20:56HardWall has joined #asahi-re
21:02m6wiq has quit []
21:16user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:22amarioguy has quit [Ping timeout: 480 seconds]
21:49bisko has quit [Read error: Connection reset by peer]
21:52bisko has joined #asahi-re
22:13user982492 has joined #asahi-re
22:47user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:20bisko has quit [Read error: Connection reset by peer]
23:21bisko has joined #asahi-re
23:50user982492 has joined #asahi-re
…