#
…

2021-05-11

00:05segheropticron: "was", before it all burned to a crisp? :-)
01:01artemist has quit [Quit: artemist]
01:02artemist has joined #asahi-gpu
02:36phiologe has joined #asahi-gpu
02:40PhilippvK has quit [Ping timeout: 265 seconds]
04:40phiologe has quit [Ping timeout: 260 seconds]
04:43phiologe has joined #asahi-gpu
06:04marcanazonenberg: bloom is doing the userspace side by blackboxing the userspace driver
06:04marcanand I'm writing a hypervisor so I can trace register accesses and blackbox the kernelspace driver right now
06:04marcanthat, plus just random guesswork
06:04marcanI mean I figured out the memory compress/decompress instructions and others just by guessing
06:05marcandynamic analysis is fair game
06:05marcanas in black-box
06:05marcanAIUI some FPGAs were done this way; feed the xilinx tools different constrained designs and diff bitstreams
06:05marcansame thing here
06:07marcanI'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
06:07marcan(like register names)
06:07marcanbut I figure anything the kernel *tells* me as part of a debug message that actually gets executed and fires is fair game
06:08monochromamarcan: nice
06:08marcan(though right now I'm reading those messages off of RAM on debugger break... because it dies before serial is initialized :p)
06:08marcan(but it's already inside panic() at that point)
06:10marcanreally 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)
06:12marcanazonenberg: 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
06:12marcannever destroyed any hardware
06:12marcanjust a few crashes
06:13marcanas long as you stay away from, like, regulator I²C spaces, it's very hard to actually blow modern hardware up
06:13marcanand 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
06:15marcanI 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
06:15marcanso disassembling *those* blobs is perfecly kosher, which is cute
06:15marcan(they moved them elsewhere after that one botched release)
06:17azonenbergand i wasn't talking about breaking hardware
06:17azonenbergmore like just causing lockups and panics by scribbling all over mmio regions
06:18marcanwell, you quickly build up a blocklist of registers you shouldn't touch
06:18lainthat's a nice goof
06:18marcanalso my reboot-to-interactive-debug-shell cycle is ~8 seconds right now
06:19marcanlet me time an actual hypervisor run to the current crash point...
06:20marcan26 seconds, a bunch of that is compression/checksumming that I want to speed up a bit
06:21marcanI spend a lot of time making my tools efficient; my register poking is remotely controlled from python scripts running on my PC, and most exceptions are caught and recovered from
06:21marcanonly if I do something unforeseen to break execution, or actually crash the hardware, do I have to reboot
06:21marcanand then that's just 8 seconds
06:21* monochromaknows of some open source github repos where they goofed and left some internal debug features in, and deleted them from git, so they don't show up in the history, but obviously still in the repo if you know where to look
06:26marcanI now have the same thing for the hypervisor; exceptions break to the same shell, I can inspect processor context, and as of yesterday get backtraces (with resolved symbols etc), decode panics, etc
06:28* JTLremembers when doing remote kernel patching and debugging was hot shit
06:28JTL(not M1, but something else I know)
08:25herbas has joined #asahi-gpu
08:40herbas has quit [Quit: herbas]
08:41herbas has joined #asahi-gpu
08:42herbas has quit [Client Quit]
12:26richbridger has joined #asahi-gpu
13:17odmir has joined #asahi-gpu
13:22odmir has quit [Ping timeout: 260 seconds]
14:45choozy has joined #asahi-gpu
17:42choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
18:08zkrx has quit [Ping timeout: 240 seconds]
18:13segherJTL: on a machine where you were not supposed to be able to do that?
18:15seghermarcan: PLL and VRM stuff is something you may want to stay away from, and yup, anything external
18:31zkrx has joined #asahi-gpu
18:59omoiti has joined #asahi-gpu
19:29DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
19:39DarkShadow44 has joined #asahi-gpu
19:53DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
20:09phiologe has quit [*.net *.split]
20:09artemist has quit [*.net *.split]
20:09neunon has quit [*.net *.split]
20:09austriancoder has quit [*.net *.split]
20:09JustinWhite[m] has quit [*.net *.split]
20:09sven has quit [*.net *.split]
20:09robinp has quit [*.net *.split]
20:09pcm720[m] has quit [*.net *.split]
20:09cepheus has quit [*.net *.split]
20:09bylaws has quit [*.net *.split]
20:09mtx0x43[m] has quit [*.net *.split]
20:09meiji163[m] has quit [*.net *.split]
20:09davidrysk[m] has quit [*.net *.split]
20:09ywest1280[m] has quit [*.net *.split]
20:09JJJollyjim has quit [*.net *.split]
20:09emily has quit [*.net *.split]
20:09PthariensFlame[m has quit [*.net *.split]
20:13davidrysk[m] has joined #asahi-gpu
20:13neunon has joined #asahi-gpu
20:13artemist has joined #asahi-gpu
20:13austriancoder has joined #asahi-gpu
20:13pcm720[m] has joined #asahi-gpu
20:13sven has joined #asahi-gpu
20:13JustinWhite[m] has joined #asahi-gpu
20:13cepheus has joined #asahi-gpu
20:13robinp has joined #asahi-gpu
20:13emily has joined #asahi-gpu
20:13PthariensFlame[m has joined #asahi-gpu
20:13ywest1280[m] has joined #asahi-gpu
20:13bylaws has joined #asahi-gpu
20:13meiji163[m] has joined #asahi-gpu
20:13mtx0x43[m] has joined #asahi-gpu
20:13JJJollyjim has joined #asahi-gpu
20:13phiologe has joined #asahi-gpu
20:13neunon has quit [Max SendQ exceeded]
20:14neunon has joined #asahi-gpu
20:16blazra has quit [Ping timeout: 246 seconds]
20:16morelightning[m] has quit [Ping timeout: 245 seconds]
20:16user1tt[m] has quit [Ping timeout: 245 seconds]
20:16avx3[m] has quit [Ping timeout: 258 seconds]
20:16Jasper[m] has quit [Ping timeout: 258 seconds]
20:16pcm720[m] has quit [Ping timeout: 276 seconds]
20:16bylaws has quit [Ping timeout: 276 seconds]
20:16emily has quit [Ping timeout: 276 seconds]
20:17konradybcio has quit [Ping timeout: 245 seconds]
20:17hypergenesis[m] has quit [Ping timeout: 250 seconds]
20:17idt23[m] has quit [Ping timeout: 246 seconds]
20:17rkjnsn[m] has quit [Ping timeout: 246 seconds]
20:17nimroot[m] has quit [Ping timeout: 246 seconds]
20:17mofux[m] has quit [Ping timeout: 248 seconds]
20:17ryanhrob[m] has quit [Ping timeout: 248 seconds]
20:17zzoon has quit [Ping timeout: 248 seconds]
20:17ezh has quit [Ping timeout: 248 seconds]
20:17TellowKrinkle[m] has quit [Ping timeout: 258 seconds]
20:17brentr123[m] has quit [Ping timeout: 258 seconds]
20:17Bastian[m] has quit [Ping timeout: 258 seconds]
20:17The_DarkFire_[m] has quit [Ping timeout: 247 seconds]
20:17izzyisles[m] has quit [Ping timeout: 260 seconds]
20:18JustinWhite[m] has quit [Ping timeout: 276 seconds]
20:18cepheus has quit [Ping timeout: 276 seconds]
20:18mtx0x43[m] has quit [Ping timeout: 276 seconds]
20:18meiji163[m] has quit [Ping timeout: 276 seconds]
20:18davidrysk[m] has quit [Ping timeout: 276 seconds]
20:18ywest1280[m] has quit [Ping timeout: 276 seconds]
20:18JJJollyjim has quit [Ping timeout: 276 seconds]
20:18PthariensFlame[m has quit [Ping timeout: 276 seconds]
20:18svenpeter has quit [Ping timeout: 248 seconds]
20:25DarkShadow44 has joined #asahi-gpu
20:38emily has joined #asahi-gpu
20:41bylaws has joined #asahi-gpu
20:44user1tt[m] has joined #asahi-gpu
20:44hypergenesis[m] has joined #asahi-gpu
20:44konradybcio has joined #asahi-gpu
20:44rkjnsn[m] has joined #asahi-gpu
20:45Jasper[m] has joined #asahi-gpu
20:47Bastian[m] has joined #asahi-gpu
20:47morelightning[m] has joined #asahi-gpu
20:47idt23[m] has joined #asahi-gpu
20:47blazra has joined #asahi-gpu
20:47TellowKrinkle[m] has joined #asahi-gpu
20:47nimroot[m] has joined #asahi-gpu
20:47avx3[m] has joined #asahi-gpu
20:47brentr123[m] has joined #asahi-gpu
20:49pcm720[m] has joined #asahi-gpu
20:57hypergenesis[m] has quit [Ping timeout: 245 seconds]
20:57pcm720[m] has quit [Ping timeout: 245 seconds]
21:02brentr123[m] has quit [Ping timeout: 246 seconds]
21:02idt23[m] has quit [Ping timeout: 245 seconds]
21:02avx3[m] has quit [Ping timeout: 245 seconds]
21:02morelightning[m] has quit [Ping timeout: 245 seconds]
21:02rkjnsn[m] has quit [Ping timeout: 245 seconds]
21:02konradybcio has quit [Ping timeout: 245 seconds]
21:03blazra has quit [Ping timeout: 258 seconds]
21:03nimroot[m] has quit [Ping timeout: 258 seconds]
21:03Bastian[m] has quit [Ping timeout: 258 seconds]
21:03user1tt[m] has quit [Ping timeout: 258 seconds]
21:03emily has quit [Ping timeout: 258 seconds]
21:03TellowKrinkle[m] has quit [Ping timeout: 276 seconds]
21:03Jasper[m] has quit [Ping timeout: 276 seconds]
21:03bylaws has quit [Ping timeout: 276 seconds]
21:13zzoon has joined #asahi-gpu
21:13mofux[m] has joined #asahi-gpu
21:13ezh has joined #asahi-gpu
21:13ryanhrob[m] has joined #asahi-gpu
21:16choozy has joined #asahi-gpu
21:16JJJollyjim has joined #asahi-gpu
21:17cepheus has joined #asahi-gpu
21:17meiji163[m] has joined #asahi-gpu
21:19The_DarkFire_[m] has joined #asahi-gpu
21:19izzyisles[m] has joined #asahi-gpu
21:20davidrysk[m] has joined #asahi-gpu
21:20PthariensFlame[m has joined #asahi-gpu
21:20mtx0x43[m] has joined #asahi-gpu
21:20ywest1280[m] has joined #asahi-gpu
21:20JustinWhite[m] has joined #asahi-gpu
21:22svenpeter has joined #asahi-gpu
21:25hypergenesis[m] has joined #asahi-gpu
21:26pcm720[m] has joined #asahi-gpu
21:28emily has joined #asahi-gpu
21:29brentr123[m] has joined #asahi-gpu
21:31Bastian[m] has joined #asahi-gpu
21:31nimroot[m] has joined #asahi-gpu
21:31blazra has joined #asahi-gpu
21:32user1tt[m] has joined #asahi-gpu
21:34idt23[m] has joined #asahi-gpu
21:34avx3[m] has joined #asahi-gpu
21:37konradybcio has joined #asahi-gpu
21:37morelightning[m] has joined #asahi-gpu
21:37rkjnsn[m] has joined #asahi-gpu
21:38TellowKrinkle[m] has joined #asahi-gpu
21:38Jasper[m] has joined #asahi-gpu
21:39bylaws has joined #asahi-gpu
21:39choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:12omoiti has quit [Ping timeout: 260 seconds]
23:15omoiti has joined #asahi-gpu
23:29omoiti has quit [Quit: Leaving]
23:58theracermaster has quit [Quit: Ping timeout (120 seconds)]
23:59theracermaster has joined #asahi-gpu
…