George Hotz | Reverse engineering | switching from AQL to PM4 to avoid bugs on the AMD 7900XTX Part2

preview_player
Показать описание
Date of the stream 6 Apr 2024.
Live-stream chat added as Subtitles/CC - English (Twitch Chat) - at the bottom - Show Transcript

Source:
Follow for notifications:
Support George:
Pre-order tinybox:

Chapters:
00:00:00 intro
00:01:50 meditation
00:04:10 questions, AQL packets, radeon southern islands
00:06:00 two code paths
00:10:10 amd vulkan, dispatch_indirect
00:18:30 packet queue = AQL packets, amdgpu eop
00:22:10 AQL_CONTROL
00:30:55 blog part 3
00:37:00 resnet training job to crash
00:40:00 DEBUG=2
00:43:00 getting rid of AQL
00:45:30 engineer wrote something specific and project manager changed the words
00:47:10 selected pipe, queue does not matter
00:48:10 different queues
00:50:15 PM4, PGM_RSRC2
00:56:10 EVENT_WRITE.partial_flush comment
00:58:40 more testing of KFD, moving away from AQL
01:05:30 does someone want's to write PM4?
01:09:45 when I make the GPU
01:10:20 nvidia and amd very similar
01:10:50 firmware absolutely simple as possible, how easy is updating different tier of software
01:11:20 why AQL exists?
01:19:45 we got the crash
01:29:00 double banned, umr, smc bits read_smc
01:33:00 30% chance PM4 does not have bugs
01:33:40 rosetta stone style translation F32 and RS64
01:38:10 radeon_tools marcan
01:38:20 is AMD going to open source anything useful
01:40:40 ghost locomotion, argo ai
01:42:40 argo the next thing, can everyone stop, cleaning solution
01:44:30 can we all just be more honest
01:45:35 AMD NDA, infringing patents,
01:52:15 being afraid of getting sued
01:55:30 DISPATCH_DIRECT packet
02:00:40 amd gpus codenames, fiji
02:02:55 linux-firmware license, not a lawyer
02:06:10 nvidia gsp license, cuda license no datacenter use
02:07:55 risk averseness of people
02:10:40 linux-firmware
02:20:40 rosetta stone, F32, RS64
02:37:00 launching specific kernel
02:40:40 first GPU to support AQL
02:46:50 NSA, Ghidra, IDA Pro, Russian tools
02:48:30 respect NSA github
02:48:50 NSA better at open source then AMD
02:49:14 NSA more open source than AMD
02:49:30 backdoors
02:54:20 drake rosetta stone song
02:57:30 credit marcan for writing the disassembler
03:15:45 binvis
03:19:30 fail0verflow radeon talk
03:39:25 F32
03:48:30 gfx1101
03:53:20 amd rs64
04:10:15 gfx rs64
04:17:55 python os lseek
04:23:15 amdgpu_regs, mmio
04:34:35 decompiling now
04:38:50 all the different addresses
04:42:30 dump_ip.c, upset writing C
04:48:25 c example mmap fd
04:51:18 read without advancing file pointer
05:03:20 bugs in the dispatch
05:20:25 frequency analysis on code
05:31:45 next 4 bytes are register
05:47:00 amd_emu_mode
05:57:35 we broke the gpu, what did we learn today?
06:00:05 I have given you the tools you need to solve the problem
06:05:40 switch to nvidia if you have AMD crashes
06:09:05 risc-v opcode groups
06:12:30 capstone risc-v disassembler
06:18:20 skip instructions, CS_ARCH_RISCV mode
06:22:20 bad at ghidra
06:23:30 don't spoil the risc-v
06:33:00 if labeled easier to read, launch instructions, almost just compile
06:33:55 figuring out the first instruction
06:38:30 load this register map
06:52:00 ghidra load map file
07:35:20 jump table that goes there, some CP function
07:54:25 cmd 3 packets pm4
08:05:00 it's cool that is risc-v
08:23:40 now we can know if AMD open sources anything real
08:29:50 I bet this did not support AQL
08:33:50 we need to stup
08:42:45 I have found why there is so many bugs in this
08:49:15 back in the days of bonaire
08:56:50 HSA was a marketing campaign
08:57:30 internet issues

Official George Hotz communication channels:

Follow for notifications:

Thank you for reading and using the SHOW MORE button.
We hope you enjoy watching George's videos as much as we do.
See you at the next video.
Рекомендации по теме
Комментарии
Автор

Documentation for the 7900XTX -> github.com/geohot/7900xtx PRs (Pull requests) welcome! | phrack.org/issues/7/3.html | | | |
Bounties for tiny corp / tinygrad ->
youtu.be/lnVQsJJFcdg?&t=13715 Hiring entire stack for tiny corp join if you are interested | youtu.be/lnVQsJJFcdg?&t=14195 work major source of value in your life
Pre-order tinybox more info on -> tinygrad.org/#tinybox | github.com/tinygrad/tinygrad <- simple powerful deep learning framework
tiny corp is accepting new interns. more info on tinygrad.org and tinygrad discord | comma.ai is accepting interns comma.ai/jobs#open-positions
from $1250 buy -> comma 3X comma.ai/shop/comma-3x | best ADAS system in the world openpilot.comma.ai | from $999 comma.ai/shop/body the future of people
Support George by subscribing twitch.tv/subs/georgehotz | Follow George on twitter.com/realGeorgeHotz to be up to date | Read George's geohot.github.io/blog/
Chapters:
00:00:00 intro
00:01:50 meditation
00:04:10 questions, AQL packets, radeon southern islands
00:06:00 two code paths
00:10:10 amd vulkan, dispatch_indirect
00:18:30 packet queue = AQL packets, amdgpu eop
00:22:10 AQL_CONTROL
00:30:55 blog part 3
00:37:00 resnet training job to crash
00:40:00 DEBUG=2
00:43:00 getting rid of AQL
00:45:30 engineer wrote something specific and project manager changed the words
00:47:10 selected pipe, queue does not matter
00:48:10 different queues
00:50:15 PM4, PGM_RSRC2
00:56:10 EVENT_WRITE.partial_flush comment
00:58:40 more testing of KFD, moving away from AQL
01:01:20 gpu_driver.cc
01:05:30 does someone want's to write PM4?
01:09:45 when I make the GPU
01:10:20 nvidia and amd very similar
01:10:50 firmware absolutely simple as possible, how easy is updating different tier of software
01:11:20 why AQL exists?
01:19:45 we got the crash
01:29:00 double banned, umr, smc bits read_smc
01:33:00 30% chance PM4 does not have bugs
01:33:40 rosetta stone style translation F32 and RS64
01:38:10 radeon_tools marcan
01:38:20 is AMD going to open source anything useful
01:40:40 ghost locomotion, argo ai
01:42:40 argo the next thing, can everyone stop, cleaning solution
01:44:30 can we all just be more honest
01:45:35 AMD NDA, infringing patents,
01:52:15 being afraid of getting sued
01:55:30 DISPATCH_DIRECT packet
02:00:40 amd gpus codenames, fiji
02:02:55 linux-firmware license, not a lawyer
02:06:10 nvidia gsp license, cuda license no datacenter use
02:07:55 risk averseness of people
02:10:40 linux-firmware
02:20:40 rosetta stone, F32, RS64
02:37:00 launching specific kernel
02:40:40 first GPU to support AQL
02:46:50 NSA, Ghidra, IDA Pro, Russian tools
02:48:30 respect NSA github
02:48:50 NSA better at open source then AMD
02:49:14 NSA more open source than AMD
02:49:30 backdoors
02:54:20 drake rosetta stone song
02:57:30 credit marcan for writing the disassembler
03:15:45 binvis
03:19:30 fail0verflow radeon talk
03:39:25 F32
03:48:30 gfx1101
03:53:20 amd rs64
04:10:15 gfx rs64
04:17:55 python os lseek
04:23:15 amdgpu_regs, mmio
04:34:35 decompiling now
04:38:50 all the different addresses
04:42:30 dump_ip.c, upset writing C
04:48:25 c example mmap fd
04:51:18 read without advancing file pointer
05:03:20 bugs in the dispatch
05:20:25 frequency analysis on code
05:31:45 next 4 bytes are register
05:47:00 amd_emu_mode
05:57:35 we broke the gpu, what did we learn today?
06:00:05 I have given you the tools you need to solve the problem
06:05:40 switch to nvidia if you have AMD crashes
06:09:05 risc-v opcode groups
06:12:30 capstone risc-v disassembler
06:18:20 skip instructions, CS_ARCH_RISCV mode
06:22:20 bad at ghidra
06:23:30 don't spoil the risc-v
06:33:00 if labeled easier to read, launch instructions, almost just compile
06:33:55 figuring out the first instruction
06:38:30 load this register map
06:52:00 ghidra load map file
07:35:20 jump table that goes there, some CP function
07:54:25 cmd 3 packets pm4
08:05:00 it's cool that is risc-v
08:23:40 now we can know if AMD open sources anything real
08:29:50 I bet this did not support AQL
08:33:50 we need to stup
08:42:45 I have found why there is so many bugs in this
08:49:15 back in the days of bonaire
08:56:50 HSA was a marketing campaign
08:57:30 internet issues

geohotarchive
Автор

Babe wake up new george stream dropped

zakridouh
Автор

watching this guy motivates me to code

asumaran
Автор

George two streams in a row with the mic on at the start of the stream. I'm really happy for you. You're turning a page George. I'm here for it.

PreferredAxe
Автор

watching you back from ps days and now we in 2024, damn time flies

ViiralDzn
Автор

I had to go back and listen to light it up contenst. I cant believe its been 13years. Wish you more success!

majidsalam
Автор

Bro i love this dude idk what he is doing but damn he is fucking insane.

madeinhvn
Автор

This is exactly how I code: talking to my screen, yelling, swearing, and meditating

dmitriybradul
Автор

George Hotz may be one of the last people on earth that i trust to challenge any new or controversial scientific topic that needs further scrutiny to nail down a true and believable statement and proclamation regarding its fundamentals.
also - x- could Georges keyboard be ANY louder ?!?!!

daveminion
Автор

That first sentence has me in stitches...

PJDonoghue
Автор

When Jensen Huang was doing this 15 years ago his stock price dropped 80%, the entire wall st valued cuda at 0. it is his vision and many years of pain and suffering made him

MARKXHWANG
Автор

Do it for culture not for money -Geohot

_MrCode
Автор

How did I grow up to be such a genius? This guy is a legend.

LungToLau
Автор

In the GPU hardware’s Command Processor—the GPU reads AQL packets from memory and processes them into PM4 commands within its hardware command processor

andrewh
Автор

Could anyone explain to me what is he even doing? I have no clue and yet enjoy this streams

TheAguilacelestial
Автор

I love your work and your projects ❤ a lot of effort from your part

DavidCosta
Автор

naive question here as im very new. What is George trying to make/achieve here

justlachy
Автор

Nicely done, Geo. AMD open-sourced everything.

Tripp
Автор

what are the min requirements to understand what he does?

gan
Автор

A random question. what other medication do you recommend in addition to modafinil?

HeatherAminian