ChanServ changed the topic of #asahi-gpu to: Asahi Linux: porting Linux to Apple Silicon macs | GPU / 3D graphics stack black-box RE and development (NO binary reversing) | Keep things on topic | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-gpu
user982492 has joined #asahi-gpu
user982492_ has joined #asahi-gpu
user982492 has quit [Ping timeout: 480 seconds]
user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jbowen has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-gpu
jbowen has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-gpu
Graypup_ has quit [Quit: meow]
Graypup_ has joined #asahi-gpu
phiologe has joined #asahi-gpu
PhilippvK has quit [Ping timeout: 480 seconds]
M0x8FF[m] has joined #asahi-gpu
sheepgoose has quit [Ping timeout: 480 seconds]
willemml has joined #asahi-gpu
jbowen has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
<phire> good news: I have the "control struct", I can easily read memory, I can monitor changes to it
<phire> bad news: The amount of infomation changing in this control stuct is still a bit limited
<phire> an 8bit value that counts up, and what might be the lower 32bits of a VA address
<phire> (16kb aligned)
<phire> I might have to monitor all changes to the entire (mapped) gpu va space
willemml has quit [Quit: willemml]
FLHerne has joined #asahi-gpu
FLHerne is now known as Guest2059
willemml has joined #asahi-gpu
<phire> Or... I should expand the monitoring area
<phire> ffffffa000031f20 534b5452 4b434154 534b5452 4b434154 534b5452 4b434154 00000001 00000002
<phire> ffffffa000031f00 00000001 00000001 00000000 00000000 00000000 4b430000 534b5452 4b434154
<phire> Thats RTKSTACK repeated
jbowen has joined #asahi-gpu
<phire> GFX Tempest-ASC4.1 FW cold booted! (Jan 11 2022 20:36:18)
<phire> G13 Firmware initializing
<phire> Build variant: X
<phire> Build version: B0
jbowen has quit [Ping timeout: 480 seconds]
<phire> WARNING: Waiting for space to add statistics! Consider resizing buffer or adjust interrupt heuristics
<sven> phire> Thats RTKSTACK repeated <-- sounds like that's also how the firmware and RAM of the co-processor is mapped then
<phire> I think this area that I'm seeing changing is the firmware's heep, or stack
<sven> yeah, sounds like it
<phire> big 0x88000 byte region
<sven> there's a segment-ranges property in the ADT that usually contains the mapping for the firmware fwiw
<phire> This is an address that has been mapped in via UAT
<phire> I think it's actually CPU controlled
<phire> how do I decode segment ranges?
<sven> usually the CPU needs to map in the firmware for most of these co-processors. it's usually just already done by iBoot fwiw
<sven> erm, let me check. but iirc it was just a list of u64s (paddr, size, iova) or something similar
<phire> well, something is responding to ASC messages on boot, I assume that's the firmware
<sven> yes
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alicela1n has joined #asahi-gpu
<phire> slightly annoying for writing a driver, we will have to understand and recreate this initilzation struct to make the firmware happy
abilash1994[m] has joined #asahi-gpu
willemml has quit [Quit: willemml]
Major_Biscuit has joined #asahi-gpu
<sven> just be glad you didn't decide to look into DCP instead. that thing's full of magic structs from what i can tell
jevinskie[m] has joined #asahi-gpu
MajorBiscuit has joined #asahi-gpu
Major_Biscuit has quit [Ping timeout: 480 seconds]
<phire> wait... this might actually be single four level page table
<phire> with only two entries in L0
<phire> If so, the gpu firmware has already initilized a bunch of page tables. Some of them point into phyisical memory
<phire> quite a few of them, actually
<phire> oh, it's the firmware from iboot
V has quit [Ping timeout: 480 seconds]
Guest2059 has quit []
FLHerne has joined #asahi-gpu
FLHerne is now known as Guest2079
Guest2079 has quit [Remote host closed the connection]
FLHerne_ has joined #asahi-gpu
V has joined #asahi-gpu
FLHerne_ is now known as FLHerne
V has quit [Remote host closed the connection]
V has joined #asahi-gpu
V has quit [Remote host closed the connection]
V has joined #asahi-gpu
V has quit [Remote host closed the connection]
V has joined #asahi-gpu
VinDuv_ has joined #asahi-gpu
VinDuv has quit [Ping timeout: 480 seconds]
VinDuv_ is now known as VinDuv
Gaspare has joined #asahi-gpu
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi-gpu
Gaspare has quit [Read error: No route to host]
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-gpu
user982492 has joined #asahi-gpu
jbowen has joined #asahi-gpu
balrog has quit [Ping timeout: 480 seconds]
nsklaus_ has joined #asahi-gpu
nsklaus has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-gpu
MajorBiscuit has quit [Quit: WeeChat 3.4]
jbowen has quit [Ping timeout: 480 seconds]
<marcan> phire: don't get confused by all the ASC side junk
<marcan> yes they have page tables and data sections and the code is readable too
<marcan> but you don't care about any of that
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jbowen has joined #asahi-gpu
user982492 has joined #asahi-gpu
<sven> sounds like it maps those with thus UAT iommu as well, which also makes sense I guess
<sven> *that
Mary has quit [Quit: Ping timeout (120 seconds)]
os has quit [Quit: Ping timeout (120 seconds)]
Mary has joined #asahi-gpu
balrog has joined #asahi-gpu
os has joined #asahi-gpu
mort_8 has joined #asahi-gpu
commandoline_ has joined #asahi-gpu
deflax_ has joined #asahi-gpu
commandoline has quit [charon.oftc.net helix.oftc.net]
NightsOnly[m] has quit [charon.oftc.net helix.oftc.net]
ChristianOndaatje[m] has quit [charon.oftc.net helix.oftc.net]
Stary has quit [charon.oftc.net helix.oftc.net]
mort_ has quit [charon.oftc.net helix.oftc.net]
DarkShadow4444 has quit [charon.oftc.net helix.oftc.net]
nafod has quit [charon.oftc.net helix.oftc.net]
kdwk-l[m] has quit [charon.oftc.net helix.oftc.net]
dottedmag has quit [charon.oftc.net helix.oftc.net]
shaman_br[m] has quit [charon.oftc.net helix.oftc.net]
vup has quit [charon.oftc.net helix.oftc.net]
deflax has quit [charon.oftc.net helix.oftc.net]
dottedmag has joined #asahi-gpu
ChristianOndaatje[m] has joined #asahi-gpu
NightsOnly[m] has joined #asahi-gpu
DarkShadow4444 has joined #asahi-gpu
kdwk-l[m] has joined #asahi-gpu
vup has joined #asahi-gpu
LasseWendland[m] has joined #asahi-gpu
jix has joined #asahi-gpu
denden[m] has joined #asahi-gpu
ar has joined #asahi-gpu
N3ros[m] has joined #asahi-gpu
daniel0611[m] has joined #asahi-gpu
vivg[m] has joined #asahi-gpu
user1tt[m] has joined #asahi-gpu
tophevich[m] has joined #asahi-gpu
unevenrhombus[m] has joined #asahi-gpu
thebrinkoftomorrow[m] has joined #asahi-gpu
TellowKrinkle[m] has joined #asahi-gpu
JacksonR[m] has joined #asahi-gpu
simjnd[m] has joined #asahi-gpu
shaman_br[m] has joined #asahi-gpu
sajattack[m] has joined #asahi-gpu
s-urabe[m] has joined #asahi-gpu
rkjnsn[m] has joined #asahi-gpu
Stary has joined #asahi-gpu
rgort10[m] has joined #asahi-gpu
not_a_weeaboo[m] has joined #asahi-gpu
nilsi[m] has joined #asahi-gpu
joerosenberg[m] has joined #asahi-gpu
mofux[m] has joined #asahi-gpu
brentr123[m] has joined #asahi-gpu
bpalmer4[m] has joined #asahi-gpu
bngs[m] has joined #asahi-gpu
NikolaCicmil[m] has joined #asahi-gpu
dnjmis[m] has joined #asahi-gpu
daftfrog[m] has joined #asahi-gpu
gpanders[m] has joined #asahi-gpu
fridtjof[m] has joined #asahi-gpu
nafod has joined #asahi-gpu
arnidg[m] has joined #asahi-gpu
alexanderwillner[m] has joined #asahi-gpu
m6wiq has joined #asahi-gpu
nafod has quit [Ping timeout: 480 seconds]
nafod has joined #asahi-gpu
alexanderwillner[m] has quit [Server closed connection]
alexanderwillner[m] has joined #asahi-gpu
arnidg[m] has quit [Server closed connection]
arnidg[m] has joined #asahi-gpu
bngs[m] has quit [Server closed connection]
bngs[m] has joined #asahi-gpu
bpalmer4[m] has quit [Server closed connection]
bpalmer4[m] has joined #asahi-gpu
brentr123[m] has quit [Server closed connection]
brentr123[m] has joined #asahi-gpu
NikolaCicmil[m] has quit [Server closed connection]
NikolaCicmil[m] has joined #asahi-gpu
daftfrog[m] has quit [Server closed connection]
daftfrog[m] has joined #asahi-gpu
dnjmis[m] has quit [Server closed connection]
dnjmis[m] has joined #asahi-gpu
fridtjof[m] has quit [Server closed connection]
fridtjof[m] has joined #asahi-gpu
gpanders[m] has quit [Server closed connection]
gpanders[m] has joined #asahi-gpu
joerosenberg[m] has quit [Server closed connection]
joerosenberg[m] has joined #asahi-gpu
mofux[m] has quit [Server closed connection]
mofux[m] has joined #asahi-gpu
nilsi[m] has quit [Server closed connection]
nilsi[m] has joined #asahi-gpu
not_a_weeaboo[m] has quit [Server closed connection]
not_a_weeaboo[m] has joined #asahi-gpu
rgort10[m] has quit [Server closed connection]
rgort10[m] has joined #asahi-gpu
rkjnsn[m] has quit [Server closed connection]
rkjnsn[m] has joined #asahi-gpu
s-urabe[m] has quit [Server closed connection]
s-urabe[m] has joined #asahi-gpu
sajattack[m] has quit [Server closed connection]
sajattack[m] has joined #asahi-gpu
shaman_br[m] has quit [Server closed connection]
shaman_br[m] has joined #asahi-gpu
simjnd[m] has quit [Server closed connection]
simjnd[m] has joined #asahi-gpu
JacksonR[m] has quit [Server closed connection]
JacksonR[m] has joined #asahi-gpu
TellowKrinkle[m] has quit [Server closed connection]
TellowKrinkle[m] has joined #asahi-gpu
thebrinkoftomorrow[m] has quit [Server closed connection]
thebrinkoftomorrow[m] has joined #asahi-gpu
tophevich[m] has quit [Server closed connection]
tophevich[m] has joined #asahi-gpu
unevenrhombus[m] has quit [Server closed connection]
unevenrhombus[m] has joined #asahi-gpu
user1tt[m] has quit [Server closed connection]
user1tt[m] has joined #asahi-gpu
vivg[m] has quit [Server closed connection]
vivg[m] has joined #asahi-gpu
jbowen has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m6wiq has quit []
m6wiq has joined #asahi-gpu
saddsaasd has joined #asahi-gpu
* saddsaasd https://worldhacker.org/index.php/irc-server/ COME TO Us , Let's Learn 0day together ... . everyone welcome , after audit ... . United Nations Candidate open now ...
saddsaasd has quit [autokilled: This host violated network policy. Mail support@oftc.net if you feel this in error. (2022-02-07 21:40:15)]
m6wiq has quit []
m6wiq has joined #asahi-gpu
user982492 has joined #asahi-gpu
<phire> marcan: yeah, the UAT iommu is "unified" and covers the ASC stuff (at 0xffffff8000000000) and the gpu allocations from userspace (useally at around 0x1500000000)
<alyssa> fun
<alyssa> no way that could go wrong ;-p
<phire> yes, I raised my eyebrows when I realised that. The pagetages controlling the 0xffffff8000000000 range get mapped into UAT too
<alyssa> no way that could go wrong ;-p
<phire> marcan: how would you feel if I had to RE the AGXG13X kext? Because I'm really lost and not finding the communication channel that gpu work is submitted over
<phire> I'm supicious the comunication channel is simply not listed in ADT
yuyichao has quit [Ping timeout: 480 seconds]