George Hotz | Programming | writing a Qualcomm GPU driver | Freedreno | Mesa for compute | part 2
Date of the stream 16 Dec 2023.
from $1250 buy https://comma.ai/shop/comma-3x & best ADAS system in the world https://openpilot.comma.ai
Live-stream chat added as Subtitles/CC - English (Twitch Chat) - at the bottom - Show Transcript
Sources:
- https://github.com/tinygrad
tinygrad bounties:
- https://docs.google.com/spreadsheets/d/1WKHbT-7KOgjEawq5h5Ic1qUWzpfAzuD_J06N1JwOCGs/
Hardware:
- Plugable BT-KEY3
- Samsung Galaxy Z Fold5
Follow for notifications:
- https://twitch.tv/georgehotz
Support George:
- https://twitch.tv/subs/georgehotz
Pre-order tinybox:
- https://buy.stripe.com/5kAaGL6lk9uX9nW144 (https://tinygrad.org/)
Chapters:
00:00:00 intro
00:01:02 writing a GPU driver
00:01:54 ssh to the phone, code server, vs code server
00:02:22 user space GPU driver, graphics kernel
00:05:10 asking Quentin, Perplexity
00:13:00 regex pattern allow spaces
00:21:30 parsing struct
00:25:45 GPU driver, how long in C
00:31:05 tinygrad import Tensor
00:35:40 init, GPU not controlled in kernel space, single layer pointers
00:36:55 replay this GPU command
00:38:10 TinyJit, tinygrad prints
00:44:30 kgsl_gpu_command, msm_kgsl.py
00:49:10 Galaxy Z Fold5
00:49:45 who knows that green is executable +x
00:50:18 linux dma-fence.h
00:53:00 offset gpuaddr size flags id
00:58:20 struct_kgsl_command_object
01:06:25 building a driver before building a chip
01:07:00 jobs creation, comma lesson
01:08:25 thneed openpilot, mmap64
01:12:30 gpu command, parsing the command buffer
01:19:45 freedreno driver, freedreno cffdump
01:23:05 Perplexity hallucinating
01:25:40 rnndb database 404 link
01:28:25 real command buffer
01:31:00 PM4
01:35:20 pkt_is_type7
01:41:44 alloc memoryview writable
01:46:55 type 7 and type 4 packets
01:48:40 very cool freedreno people
01:49:05 qualcomm switching to opensource driver
01:50:00 writing registers, opcode
01:52:40 number of globals, and total number
01:54:40 adreno_pm4_type3,7_packets, 7 commands, 4 write registers
01:56:50 python format string add 0x to hex
01:57
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from george hotz archive · george hotz archive · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
comma ai Driving to self racing cars with openpilot
george hotz archive
comma ai Still driving
george hotz archive
comma ai was live
george hotz archive
comma ai Going home
george hotz archive
comma ai We go to the airport
george hotz archive
comma ai Reversing Prius with cabana + panda telethon!
george hotz archive
comma ai panda manufacturing!
george hotz archive
comma ai Self driving to Best Buy
george hotz archive
comma ai shilling for giraffe!
george hotz archive
comma ai Toyota Prius Driving!!!
george hotz archive
comma ai Late night civic driving
george hotz archive
comma ai Toyota giraffe shilling
george hotz archive
comma ai Live car hacking with panda this time or bust!
george hotz archive
comma ai Product launch question time
george hotz archive
comma ai Driving with the RAV4, launching Tuesday!
george hotz archive
comma ai giraffe ship o' clock
george hotz archive
comma ai openpilot 0.3.9
george hotz archive
comma ai EON assembly!
george hotz archive
comma ai Going through the GM investor deck
george hotz archive
comma ai I love my EON
george hotz archive
comma ai RAV4 driving
george hotz archive
comma ai Shilling at the holiday party
george hotz archive
comma ai EON shipping party
george hotz archive
comma ai EON unboxing!
george hotz archive
comma ai The very straight roads of Nevada
george hotz archive
comma ai Starting our trip with openpilot 0.4
george hotz archive
comma ai Little EON on the prairie
george hotz archive
comma ai The urban sprawl of Colorado
george hotz archive
comma ai Onward to Omaha
george hotz archive
comma ai nothing, nowhere
george hotz archive
comma ai shop.comma.ai Buy things!!!
george hotz archive
comma ai The youth are woke
george hotz archive
comma ai Photo shoot!
george hotz archive
comma ai Product announcements are LIT!
george hotz archive
comma ai Breaking down hype of CES
george hotz archive
comma ai Salt Lakes Everywhere!
george hotz archive
comma ai This is the last one
george hotz archive
comma ai Corolla port o’clock!
george hotz archive
comma ai Presentation where it’s like you are in Omaha with us
george hotz archive
comma ai Asking the scopies the banned question
george hotz archive
comma ai Driving in the Corolla!
george hotz archive
comma ai We got new products! shop.comma.ai
george hotz archive
comma ai Sunday w scopies!
george hotz archive
comma ai Our first Lexus, the Lexus RX!
george hotz archive
comma ai Scopie saturday!
george hotz archive
comma ai Panda!
george hotz archive
comma ai Scopie Sunday! *NOT CLICKBAIT*
george hotz archive
comma ai comma Tree!
george hotz archive
comma ai Scopie Saturday
george hotz archive
comma ai Ok scopie Friday
george hotz archive
comma ai comma pedal!
george hotz archive
comma ai okay this time comma pedal!
george hotz archive
comma ai Why aren’t car companies good
george hotz archive
comma ai How can driving be better
george hotz archive
comma ai Scopie Sunday
george hotz archive
comma ai comma got a new car!
george hotz archive
comma ai Mapping Sunday!
george hotz archive
comma ai Let’s go buy a car
george hotz archive
comma ai Ok I take back all the bad things I said about Ford
george hotz archive
comma ai comma smays are in stock!
george hotz archive
Related AI Lessons
Chapters (36)
intro
1:02
writing a GPU driver
1:54
ssh to the phone, code server, vs code server
2:22
user space GPU driver, graphics kernel
5:10
asking Quentin, Perplexity
13:00
regex pattern allow spaces
21:30
parsing struct
25:45
GPU driver, how long in C
31:05
tinygrad import Tensor
35:40
init, GPU not controlled in kernel space, single layer pointers
36:55
replay this GPU command
38:10
TinyJit, tinygrad prints
44:30
kgsl_gpu_command, msm_kgsl.py
49:10
Galaxy Z Fold5
49:45
who knows that green is executable +x
50:18
linux dma-fence.h
53:00
offset gpuaddr size flags id
58:20
struct_kgsl_command_object
1:06:25
building a driver before building a chip
1:07:00
jobs creation, comma lesson
1:08:25
thneed openpilot, mmap64
1:12:30
gpu command, parsing the command buffer
1:19:45
freedreno driver, freedreno cffdump
1:23:05
Perplexity hallucinating
1:25:40
rnndb database 404 link
1:28:25
real command buffer
1:31:00
PM4
1:35:20
pkt_is_type7
1:41:44
alloc memoryview writable
1:46:55
type 7 and type 4 packets
1:48:40
very cool freedreno people
1:49:05
qualcomm switching to opensource driver
1:50:00
writing registers, opcode
1:52:40
number of globals, and total number
1:54:40
adreno_pm4_type3,7_packets, 7 commands, 4 write registers
1:56:50
python format string add 0x to hex
🎓
Tutor Explanation
DeepCamp AI