#
#asahi-re · 2022-04-06 14:49
marcanand xart depends on linux-apfs
#asahi-re · 2022-04-06 14:48
marcanthat wouldn't go in the driver
#asahi-re · 2022-04-06 14:48
marcanxart is something to be handled in userspace by sepd
#asahi-re · 2022-04-06 14:41
svenlet me see if I can find that again
#asahi-re · 2022-04-06 14:41
sveni also remember having worked out how the hashes for the actual SEP communication works but that doesn't seem to be in there as well
#asahi-re · 2022-04-06 14:40
sven i don't remember if sbio requires xart but i assume so
#asahi-re · 2022-04-06 14:40
svenor maybe those were two endpoints? my memory is rather fuzzy
#asahi-re · 2022-04-06 14:40
amarioguysbio for biometrics too
#asahi-re · 2022-04-06 14:40
svenand you need to handle it to bring up the sks endpoint which handles keys and passwords
#asahi-re · 2022-04-06 14:39
j`ey(or anywhere in m1n1)
#asahi-re · 2022-04-06 14:39
svenyeah, it's just one of the SEPOS endpoints
#asahi-re · 2022-04-06 14:39
amarioguygotcha, so xART is still something we need to do
#asahi-re · 2022-04-06 14:39
j`eyxart doesnt appear in that file
#asahi-re · 2022-04-06 14:39
sventhat doesn't do xart though iirc
#asahi-re · 2022-04-06 14:39
svenohh... right, i actually wrote something to boot sep from m1n1
#asahi-re · 2022-04-06 14:39
svenerm, s/write-only/read-only/ :D
#asahi-re · 2022-04-06 14:39
j`eyamarioguy: proxyclient/m1n1/hw/sep.py
#asahi-re · 2022-04-06 14:38
svenyou need to map the firmware, boot SEP, and then handle requests from the xart endpoint
#asahi-re · 2022-04-06 14:38
svenTZ0 is already setup, that's write-only by the time we get control
#asahi-re · 2022-04-06 14:37
svenuh, not really
#asahi-re · 2022-04-06 14:37
amarioguysaw a few SEP EPs being set up by XNU in boot logs (21, and 7 i think?)
#asahi-re · 2022-04-06 14:37
amarioguyso the flow i'm seeing here is: handle xART EP and send that to SEP, set up TZ0 again (since SEP is shut down), send boot TZ0, then set up remaining endpoints for things like the key store and such?
#asahi-re · 2022-04-06 14:29
sveniBoot shuts SEP down again and we have to re-start it and handle the xART endpoint
#asahi-re · 2022-04-06 14:28
svenno
#asahi-re · 2022-04-06 14:28
amarioguyfrom stuff i've read, iirc the xART stuff and booting sepOS is handled by iBoot before it hands off execution?
#asahi-re · 2022-04-06 14:24
sveni also have some description of the xART format somewhere required to boot it
#asahi-re · 2022-04-06 14:23
svenhttps://github.com/AsahiLinux/m1n1/pull/85/files don't remember why I never followed up, but that was a very early tracer
#asahi-re · 2022-04-06 14:22
amarioguykinda thinking about SEP for a second here, but what are the goals we have in mind for using the SEP?
#asahi-re · 2022-04-06 14:07
marcanmight be useful, yeah :)
#asahi-re · 2022-04-06 14:05
kameksone last thing, I saw documentation about the GPU shader assembly, but I didn't find much documentation about the driver itself (how packets are encoded, descriptors, texture tiling and so on). Maybe I could start reading the mesa driver and improve the documentation to familiarize myself if that's useful
#asahi-re · 2022-04-06 13:52
kamekswell, thank you very much for your time and advices
#asahi-re · 2022-04-06 13:51
kameksfair enough. I guess it also better belong to gpu channel too. Sorry I drifted the conversation a lot
#asahi-re · 2022-04-06 13:51
marcanI think alyssa can better answer that question :-)
#asahi-re · 2022-04-06 13:51
kamekshmmm, what kind of areas are still foggy?
#asahi-re · 2022-04-06 13:49
marcanbut also we don't really understand the GPU well enough yet to start working on vulkan
#asahi-re · 2022-04-06 13:49
kameks(yup, this is what I read from Alyssa's blog posts)
#asahi-re · 2022-04-06 13:49
marcanyeah, there's nobody working on vulkan yet
#asahi-re · 2022-04-06 13:48
marcan(the userspace side is tested on macos, with the ABI compat caveats of course; we already had to forward-port it once)
#asahi-re · 2022-04-06 13:48
kamekswhat about Vulkan, do you need help there?
#asahi-re · 2022-04-06 13:48
marcanon the kernel side we have nothing, but that's starting now :-)
#asahi-re · 2022-04-06 13:48
marcanon the userspace side, GLES2 compliance is at 95% or something
#asahi-re · 2022-04-06 13:48
kameksis there still stuff I can help with?
#asahi-re · 2022-04-06 13:47
kamekshow much work is left to do on the linux driver?
#asahi-re · 2022-04-06 13:47
kamekswell, you have a perfect point about it being impossible to do on macos
#asahi-re · 2022-04-06 13:47
marcanthe firmware is packaged with the OS and our installer installs the full 12.3 set
#asahi-re · 2022-04-06 13:47
kameksthat makes sense
#asahi-re · 2022-04-06 13:47
marcaniBoot loads the firmware for us
#asahi-re · 2022-04-06 13:46
kameksso during boot, you upload the firmware? or somehow you have the guarantee that it will not be impacted by macos
#asahi-re · 2022-04-06 13:46
marcanand we will stick with that until we have a good reason to support another one (e.g. new hardware or a critical bugfix)
#asahi-re · 2022-04-06 13:46
marcanwe currently support only one firmware set for linux, 12.3

plus ›