#
✕ nick:marcan
#asahi-gpu · 2021-05-11 06:15
marcanso disassembling *those* blobs is perfecly kosher, which is cute
#asahi-gpu · 2021-05-11 06:15
marcanI also mentioned in my stream yesterday that there is a *specific* goof where Apple, when they tried to close up M1 bring-up code (for some reason, ARM lawyers almost certainly), the first release was libary blobs included in their open source kernel release, which by all available documentation makes them openly licensed with no anti-RE clause
#asahi-gpu · 2021-05-11 06:13
marcanand at least in the case of the M1, I think power management that deep down is handled by other cores running firmware we don't care about
#asahi-gpu · 2021-05-11 06:13
marcanas long as you stay away from, like, regulator I²C spaces, it's very hard to actually blow modern hardware up
#asahi-gpu · 2021-05-11 06:12
marcanjust a few crashes
#asahi-gpu · 2021-05-11 06:12
marcannever destroyed any hardware
#asahi-gpu · 2021-05-11 06:12
marcanazonenberg: re poking randomly, I've done literal "try flipping every single register bit" on a PS4 GPU (radeon) and on some register spaces on wii u
#asahi-gpu · 2021-05-11 06:10
marcanreally the important thing is not to copy any code; that's a lot easier to prove if you're not looking at the code to begin with (other than incidental "it crashed and I got some context around the instruction pointer" stuff)
#asahi-gpu · 2021-05-11 06:08
marcan(but it's already inside panic() at that point)
#asahi-gpu · 2021-05-11 06:08
marcan(though right now I'm reading those messages off of RAM on debugger break... because it dies before serial is initialized :p)
#asahi-gpu · 2021-05-11 06:07
marcanbut I figure anything the kernel *tells* me as part of a debug message that actually gets executed and fires is fair game
#asahi-gpu · 2021-05-11 06:07
marcan(like register names)
#asahi-gpu · 2021-05-11 06:07
marcanI'm pushing things a bit more in the kernel side than bloom is in userspace, because as of a few days ago I'm using a dev kernel build (which are available to anyone with an apple account, no need to pay anything or sign any NDAs) and I noticed it's rather eager to say interesting things in debug assertions
#asahi-gpu · 2021-05-11 06:05
marcansame thing here
#asahi-gpu · 2021-05-11 06:05
marcanAIUI some FPGAs were done this way; feed the xilinx tools different constrained designs and diff bitstreams
#asahi-gpu · 2021-05-11 06:05
marcanas in black-box
#asahi-gpu · 2021-05-11 06:05
marcandynamic analysis is fair game
#asahi-gpu · 2021-05-11 06:04
marcanI mean I figured out the memory compress/decompress instructions and others just by guessing
#asahi-gpu · 2021-05-11 06:04
marcanthat, plus just random guesswork
#asahi-gpu · 2021-05-11 06:04
marcanand I'm writing a hypervisor so I can trace register accesses and blackbox the kernelspace driver right now
#asahi-gpu · 2021-05-11 06:04
marcanazonenberg: bloom is doing the userspace side by blackboxing the userspace driver
#asahi-gpu · 2021-05-10 10:06
marcanah, neat
#asahi-gpu · 2021-05-10 10:01
marcandoes it do sinc interpolation? :>
#asahi-gpu · 2021-05-10 09:57
marcanremember this gpu is TBDR; I wonder if that affects your optimizations
#asahi-gpu · 2021-05-10 09:53
marcanbut my uneducated guess is that computer shaders are *easier* than 3D
#asahi-gpu · 2021-05-10 09:53
marcancc bloom (I think she's asleep though)
#asahi-gpu · 2021-05-10 09:52
marcan\o
#asahi-gpu · 2021-04-13 07:07
marcannice nice :)
#asahi-gpu · 2021-04-03 04:29
marcanwill prioritize it
#asahi-gpu · 2021-04-03 04:29
marcanyup
#asahi-gpu · 2021-04-03 04:29
marcan:-)
#asahi-gpu · 2021-04-03 04:29
marcanwonder if there's a way to destroy it with e.g. firmware misconfiguring power, then we wouldn't even need to take the things apart
#asahi-gpu · 2021-04-03 04:28
marcan*registers a company to re-sell Apple M1 laptops with the wifi chip nerfed
#asahi-gpu · 2021-04-03 04:27
marcanexcept for the wifi
#asahi-gpu · 2021-04-03 04:27
marcanI guess!
#asahi-gpu · 2021-04-03 04:27
marcanyup, exactly
#asahi-gpu · 2021-04-03 04:27
marcanso I do not expect us to ever have any redistribution issues, unless Apple starts having some hardware that 1TR lacks drivers for but needs firmware
#asahi-gpu · 2021-04-03 04:26
marcanand 1TR *is* a full macOS install with all necessary firmware (currently, wifi as far as we know)
#asahi-gpu · 2021-04-03 04:26
marcaneither way, we can assume 1TR will be there, deleting 1TR is not a supported use case for us
#asahi-gpu · 2021-04-03 04:24
marcanall those pre-loaded: 1 nodes are things iBoot2 loads firmware for us for
#asahi-gpu · 2021-04-03 04:24
marcanwhich is under sgx (yes, sgx, hi powervr)
#asahi-gpu · 2021-04-03 04:24
marcanthat's under iop-gfx-nub
#asahi-gpu · 2021-04-03 04:23
marcan firmware-name: GFX
#asahi-gpu · 2021-04-03 04:23
marcanso the trick is to look for pre-loaded: 1 in the ADT
#asahi-gpu · 2021-04-03 04:23
marcanoh actually GFX.img4 I believe
#asahi-gpu · 2021-04-03 04:21
marcanand yes, RTKit is their RTOS
#asahi-gpu · 2021-04-03 04:20
marcanor something like that
#asahi-gpu · 2021-04-03 04:20
marcanand then on boot provisioning that should end up in AGX.img4 next to iBoot2
#asahi-gpu · 2021-04-03 04:19
marcanit should get copied into ./Firmware/Preboot/C1EB0F38-C67D-43AB-BA6F-3CFA88FC9E6F/restore/Firmware/agx/armfw_g13g.im4p for installation/recovery purposes
#asahi-gpu · 2021-04-03 04:18
marcanbloom: that firmware should be loaded by iBoot2, before m1n1 runs

plus ›