ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
pthariensflame has joined #asahi-dev
kidplayer666 has quit [Quit: Connection closed for inactivity]
<sven>
i'm trying to figure out where that number comes from
flom84 has quit [Quit: Leaving]
<sven>
I think it's ~(-0x1 << n) and n has always been 5 for me. no idea what exactly n is though
<janneg>
sven: I see 0x1f and 0x7f for logs which should be macos (possibly over different devices and displays). 0x3f seems to appear only in linux logs
<sven>
okay, so for me n = 6 always and you see 5 and 7
nela has quit [Ping timeout: 480 seconds]
<sven>
could be related to the link rate somehow since we already know it at that point
<sven>
and I think the same n is used later for mask32(rx_shm + LN_AUSPMA_RX_SHM_TJ_RXA_SAVOS_CTRL16, LN_TX_CAL_CODE, FIELD_PREP(LN_TX_CAL_CODE, 6));
<janneg>
for LN1_AUSPMA_TX_SHM_TXA_IMP_REG0 I see 0xf
<sven>
LN_TXA_CAL_CTRL_BASE you mean?
<janneg>
yes, I have t6020 macos traces with PMA_TXA_CAL_CTRL=0xf on LN1_AUSPMA_TX_SHM_TXA_IMP_REG0 (does it depend on the type-c orientation which lane pair is used for DP?)
<sven>
that would be n=4 then.
<sven>
i'm not really sure where it comes from yet
nela has joined #asahi-dev
<janneg>
yes, LN_TXA_CAL_CTRL and LN_TX_CAL_CODE are based on the same value for my traces
<sven>
ok, so LN_TXA_CAL_CTRL is just (1<< LN_TX_CAL_CODE)-1 then
<sven>
can you paste the trace where it's 0xf?
i509vcb has quit [Quit: Connection closed for inactivity]
nimprod3l has quit [Quit: Leaving]
<sven>
I think it might get that n from 0x503000a20 (whatever that is)
kidplayer666 has quit [Quit: Connection closed for inactivity]
<nicolas17>
I could make it marginally less stupid by implementing items() so I don't have both keys() and values() independently recursing through the nodes and parsing them
flom84 has joined #asahi-dev
flom84 has quit []
chadmed has joined #asahi-dev
flom84 has joined #asahi-dev
kidplayer666 has joined #asahi-dev
flom84 has quit [Quit: Leaving]
elvishjerricco has quit [Ping timeout: 480 seconds]
jeisom has quit [Quit: Leaving]
jeisom has joined #asahi-dev
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
cow123 has quit [Remote host closed the connection]