#
#asahi-dev · 2023-09-07 18:20
ChaosPrincessRequired read = something is read-sensitive and won't boot w/o it?
#asahi-dev · 2023-09-07 18:04
eilnthe power domains, the one required read the revision version register, not being in the dt, is such a nice touch
#asahi-dev · 2023-09-07 17:34
eilnquickly inverting the iovas in m1n1 does not break it. frankly, it was pasted from the ane code, and also the familiar iovas make debugging a lot easier. I will check on the bottom-up allocator though
#asahi-dev · 2023-09-07 17:34
eilnwith the heap gone (thank you), the only iova arithmetic is in firmware boot stage 2, but that's all contained within the ipc surface so it shouldn't matter.
#asahi-dev · 2023-09-07 17:34
eilnas for the ANE, DMA to/from the upper iovas (I think it was piodma_size <= iova <= vm_size) is noticeably slower, at least 10x, and their kext actually does tricks to avoid using this range. it seems loading/unloading an entire transformers model is cheaper
#asahi-dev · 2023-09-07 17:34
eilnthe drm mm allocator is because iova.c can't allocate bottom up. there was a patch some time ago but it wasn't reviewed. some stuff about zero iovas
#asahi-dev · 2023-09-07 17:33
eilnANE/AVE also use greek mythology code names, particularly the Hyperion/Crius family tree
#asahi-dev · 2023-09-07 17:33
eilnalso I can finally boot the ANE firmware with my cursed ISP knowledge. not sure what to do with this
#asahi-dev · 2023-09-07 17:33
eilnISP is not the only one with a static non-iboot carveout. see ANE and AVE ;)
#asahi-dev · 2023-09-07 17:33
eilnshower thought. piodma could mean peripheral IO DMA device
#asahi-dev · 2023-09-07 16:20
marcanthere's so much junk in this firmware, like Face ID stuff...
#asahi-dev · 2023-09-07 16:02
marcanother than that no, I think
#asahi-dev · 2023-09-07 16:02
marcanGPU has some stuff
#asahi-dev · 2023-09-07 16:02
_jannau__have there been any surprise differences between Pro and MAx variants so far? I can't think of anything
#asahi-dev · 2023-09-07 16:02
marcant8103 -> pallas, t600x -> astraeus, t8112 -> triton, t602x -> helios (yes another set of codenames)
#asahi-dev · 2023-09-07 16:01
marcanand yeah I think so
#asahi-dev · 2023-09-07 16:01
marcanactually it's the same firmware so yeah
#asahi-dev · 2023-09-07 16:00
_jannau__are t6000 and t6001 identical?
#asahi-dev · 2023-09-07 15:59
marcan(though I kind of hope/assume it's identical to t6021)
#asahi-dev · 2023-09-07 15:59
marcanbtw, does anyone have a t6020 *laptop*? I think that's the only ISP SoC variant I can't personally test (because I have the mini...)
#asahi-dev · 2023-09-07 15:58
_jannau__same same
#asahi-dev · 2023-09-07 15:58
marcanmore like no time
#asahi-dev · 2023-09-07 15:58
_jannau__and not allowed to fix past mistakes
#asahi-dev · 2023-09-07 15:57
marcanand also rushing to ship
#asahi-dev · 2023-09-07 15:57
marcanyeah...
#asahi-dev · 2023-09-07 15:57
_jannau__different teams not allowed to know of each other without adult oversight
#asahi-dev · 2023-09-07 15:56
marcanthe random hardcoded addresses/values in kexts make me cry
#asahi-dev · 2023-09-07 15:55
marcanthis is like the only coproc that has a statically allocated heap not carved out in iBoot
#asahi-dev · 2023-09-07 15:55
marcanman why is apple so damn inconsistent about everything
#asahi-dev · 2023-09-07 15:54
marcannot sure about the rest
#asahi-dev · 2023-09-07 15:54
marcanat least the heap has to go at a specific iova, but I just took care of that one
#asahi-dev · 2023-09-07 15:54
_jannau__is there a need to map specific things at specific iova? or is it needed due to dart mess? i.e. mapping subsets but only consistantly over multiple darts?
#asahi-dev · 2023-09-07 15:51
marcanI'll try to look at the DART mess next
#asahi-dev · 2023-09-07 15:51
marcananyway, let me know what you think of those changes
#asahi-dev · 2023-09-07 15:50
marcan(the drm stuff is more... peculiar since it's intended for GPUs)
#asahi-dev · 2023-09-07 15:50
marcanbtw, why the drm_mm/manual iova management? I'm not sure if the DRM folks will want non-drm drivers using that infra, but I'd normally expect the regular kernel iommu/iova allocators to do all that for you?
#asahi-dev · 2023-09-07 15:48
marcanI *think* the logic in isp.c for the heap sizes is correct for all the combinations we care about. I think. Might've guesstimated based on nearby versions :p
#asahi-dev · 2023-09-07 15:47
marcanalso started adding t8112 but that's half-assed
#asahi-dev · 2023-09-07 15:47
marcanthat moves the heap alloc to m1n1 which removes the slightly dodgy thing of allocating it as a surface. the driver still needs to parse the heap base+size to compute the region top, but that's not that bad.
#asahi-dev · 2023-09-07 15:47
marcandidn't break it on t8103 at least :p
#asahi-dev · 2023-09-07 15:47
marcaneiln: I need to get some sleep, but I pushed a bunch of stuff to m1n1 & linux under the isp/heap-alloc branch on both
#asahi-dev · 2023-09-07 15:11
eilnyeah, that 13.5 issue I had some time ago was this
#asahi-dev · 2023-09-07 15:10
marcanthen that's a good reason to do it in m1n1
#asahi-dev · 2023-09-07 15:10
marcanah, ew
#asahi-dev · 2023-09-07 15:08
eilnbut the sizes are different per OS version too. that's not in the kext
#asahi-dev · 2023-09-07 15:05
marcanlook at drivers/gpu/drm/asahi/hw/* if you want pain :p
#asahi-dev · 2023-09-07 15:05
marcanit should be if it's mostly hardware stuff
#asahi-dev · 2023-09-07 15:03
eilnoh that. sigh, they have a firmware for each fucking device I dont know why they couldn't have took care of that shit in there. t8103 is probably all the same, but it might not be
#asahi-dev · 2023-09-07 15:01
marcanby hardcoded values I mean apple_isp_hw_t8103 etc
#asahi-dev · 2023-09-07 15:01
marcanbut it's not board type

plus ›