#asahi-re · 2022-02-12 11:35
marcan>>> ((41-0x44) & 0xff)#asahi-re · 2022-02-12 11:35
marcan>>> ((41-0x44) & 0x7ff)#asahi-re · 2022-02-12 11:35
marcan(why they did it this way, not the faintest clue)#asahi-re · 2022-02-12 11:35
marcan* *11-bit*#asahi-re · 2022-02-12 11:35
marcan68 is the additive inverse of 1980 in *11* math, not 8. maybe they have a char cast/variable somewhere where they meant a short, and 3 bits fell off.#asahi-re · 2022-02-12 11:34
marcanbut for some bizarre reason, instead of adding 1980, they subtract 68 instead, then truncate to 8 bits and use that as the number#asahi-re · 2022-02-12 11:33
marcanthey use a standard SBS command to get the date, and the format is standard; year is in years since 1980#asahi-re · 2022-02-12 11:33
marcanit's a bug, lol#asahi-re · 2022-02-12 11:33
marcanso I'm looking at SMC firmware and now the 290915 mfg date for my battery makes "sense"#asahi-re · 2022-02-11 09:11
svenjannau: afaict the 12.2.x kernel still requires com.apple.private.hypervisor.vmapple and/or com.apple.private.hypervisor to allow things like SPRR/GXF in EL1#asahi-re · 2022-02-10 21:20
svenThat’s the thing that decides which features are allowed. Iirc it passes a “hv level” to the syscall which created the vm #asahi-re · 2022-02-10 21:19
sventhe interesting part is inside hypervisor.framework fwiw#asahi-re · 2022-02-10 21:16
svenBut it could also just be the virtual iboot thingy and gpu paravirtualization #asahi-re · 2022-02-10 21:16
svenI’ll take a look at the kernel this weekend. It could be that it now allows GXF,SPRR and the apple PAC stuff#asahi-re · 2022-02-10 21:14
jannausee "Virtualize macOS 12" on https://github.com/utmapp/UTM/releases #asahi-re · 2022-02-10 21:13
sven(… and the gpu virtualization ofc)#asahi-re · 2022-02-10 21:13
svenbut I should probably take a look again #asahi-re · 2022-02-10 21:13
svenhm, so far I assumed that was just their virtual iboot thing#asahi-re · 2022-02-10 21:10
jannauhttps://developer.apple.com/documentation/virtualization/installing_macos_on_a_virtual_machine?language=objc#asahi-re · 2022-02-10 21:09
jannauit might be even enough to run m1n1#asahi-re · 2022-02-10 21:09
jannauApple added macos specific things to hvf in 12.0 and I suspect you need them to run vmapple#asahi-re · 2022-02-10 21:07
svenso you can probably build a hackintosh and likely run that kernel inside qemu but you won’t get any graphics#asahi-re · 2022-02-10 21:07
svenAnd as usual I keep forgetting the gpu…#asahi-re · 2022-02-10 21:05
svenalyssa: ^—#asahi-re · 2022-02-10 21:05
svenI wouldn’t be surprised if you could build a arm64 hackintosh with some patching of that kernel#asahi-re · 2022-02-10 21:04
svenid be surprised if m1n1 runs in there #asahi-re · 2022-02-10 21:04
svenWhen I looked into hvf a while ago you essentially got a regular armv8 without apple-internal entitlements#asahi-re · 2022-02-10 20:48
jannauthat might even run m1n1#asahi-re · 2022-02-10 20:46
jannauI think it will use the macos specific parts of the virtualization framework https://developer.apple.com/documentation/virtualization/vzmacplatformconfiguration?language=objc#asahi-re · 2022-02-10 20:40
alyssasven: ...arm64 hackintosh?#asahi-re · 2022-02-10 19:10
svenit’s probably their kernel that can be booted on a “normal” arm machine without all their fancy extensions #asahi-re · 2022-02-10 18:57
roxfanah, mentioned with Virtualization.framework#asahi-re · 2022-02-10 18:56
roxfansome kind of virtualization?#asahi-re · 2022-02-10 18:56
roxfan <string>vmapple2</string>#asahi-re · 2022-02-10 18:56
roxfan <key>Platform</key>#asahi-re · 2022-02-10 18:53
roxfanwhat's kernelcache.release.vma2 for?#asahi-re · 2022-02-09 15:12
sven:D#asahi-re · 2022-02-09 13:57
alyssasven: you're magic#asahi-re · 2022-02-09 13:06
phirethanks#asahi-re · 2022-02-09 13:06
sven0x85000000000000 is "stop firmware for recovery inspection"#asahi-re · 2022-02-09 13:06
phireand it does seem to generate quite a lot of 0x83000000000000 without bits 2 or 3 set#asahi-re · 2022-02-09 13:05
sven0x84000000000000 can be "new mapping", "new unmapping" or "block for ring empty"#asahi-re · 2022-02-09 13:04
phire?#asahi-re · 2022-02-09 13:04
phireany mention of 0x84000000000000 and 0x85000000000000 #asahi-re · 2022-02-09 13:04
phireit does a lot of "kick firmware" then.#asahi-re · 2022-02-09 13:02
sven0x83000000000010 is "kick firmware". 0x83000000000002 is "submit CL channel", 0x83000000000001 is "submit 3D channel", 0x83000000000000 is "submit TA channel". but it always ORs something else into bits 2 and 3#asahi-re · 2022-02-09 12:58
svenalright, let's see#asahi-re · 2022-02-09 12:58
phirethat could be helpful#asahi-re · 2022-02-09 12:58
svenphire: if you want to i can go look for 0x83000000000000 in the kext and see if there are interesting strings or function names where it's used#asahi-re · 2022-02-08 02:38
chadmedim not fit to write a driver that blinks an LED let alone one to submit work to a GPU so you dont need to worry about me pinching code from apple or anyone else. this is a relatively new interest for me and ive no professional compsci or software design background so its mostly just out of curiosity for the workflow that i did it.