ChanServ changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | WARNING: this channel (only) may contain binary reverse engineering discussion | RE policy: https://alx.sh/re (MANDATORY READ) | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-re
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-re
riker77_ has joined #asahi-re
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
phiologe has quit [Ping timeout: 480 seconds]
phiologe has joined #asahi-re
the_lanetly_052 has joined #asahi-re
<sven> display port bring up is ~200 lines in the mmio trace and a bunch of that seems to be some kind of "write magic value to magic register"
<sven> with fun registers like LANE0_AUSPMA_TX_SHM_BLK_TXA_IMP_REG2.PMA_TXA_MARGIN or LANE0_AUSPMA_RX_SHM_TJ_BLK_RXA_VREF_CTRL22.PMA_RXA_VREF_BIAS_SEL
<sven> and from what I can tell just constant values that they'd usually stuff into a tunable
MajorBiscuit has joined #asahi-re
MajorBiscuit has quit []
MajorBiscuit has joined #asahi-re
kameks has joined #asahi-re
<Jamie[m]1> continuing regarding AVD firmware, the offsets for all the firmwares for different AVD versions can be found, since each one is at a symbol called avdM3 in the binary
<Jamie[m]1> but telling which is which is nontrivial
<Jamie[m]1> as is finding their lengths
<Jamie[m]1> (i.e. both those things only come from analyzing the code)
<Jamie[m]1> are you just gonna hardcode length plus some identifying heuristic to match the current exact firmware blob?
<Jamie[m]1> (when i say "the binary" above, i mean the AppleAVD kext binary)
<Jamie[m]1> additionally, you might want to extract the tunables array? they're at the symbol avd (which again is duplicated for each model, and the length and exact meaning can only be determined through code analysis)
chengsun_ has joined #asahi-re
chengsun has quit [Ping timeout: 480 seconds]
darkapex has quit [Ping timeout: 480 seconds]
kameks has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-re
cyrozap has quit [Quit: Client quit]
cyrozap has joined #asahi-re
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-re
MajorBiscuit has quit [Quit: WeeChat 3.4]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
m6wiq has joined #asahi-re
m6wiq has quit []
kgarrington has joined #asahi-re
kgarrington has quit [Remote host closed the connection]