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
xcpy0 has quit [Read error: Connection reset by peer]
xcpy09 has joined #asahi-dev
xcpy09 is now known as xcpy0
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
kesslerd_ has quit [Quit: Konversation terminated!]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
kesslerd has quit [Remote host closed the connection]
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
zef_ has joined #asahi-dev
robinp has joined #asahi-dev
zef has quit [Ping timeout: 480 seconds]
robinp has quit [Ping timeout: 480 seconds]
hightower3 has joined #asahi-dev
aomizu has joined #asahi-dev
hightower2 has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
Hibyehello has joined #asahi-dev
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
Hibyehello has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
Hibyehello has joined #asahi-dev
Hibyehello_ has joined #asahi-dev
Hibyehello has quit [Ping timeout: 480 seconds]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
sam_- has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
sam_ has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
systwi has quit [Ping timeout: 480 seconds]
systwi has joined #asahi-dev
robinp has joined #asahi-dev
aomizu has joined #asahi-dev
Emantor_ is now known as Emantor
eiln has quit [Remote host closed the connection]
karpouzi has joined #asahi-dev
Ziemas has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
xaiki has quit [Remote host closed the connection]
Ziemas has joined #asahi-dev
fugi has quit [Quit: Ping timeout (120 seconds)]
fugi has joined #asahi-dev
m42uko has quit []
m42uko has joined #asahi-dev
nyilas has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
c10l has quit [Ping timeout: 480 seconds]
aomizu has joined #asahi-dev
aomizu has quit []
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
<jannau>
clearing PERST_OFF, APPCLK_EN and toggling pwren-gpios resets the link speed but doesn't bring asmedia usb hci back to life
robinp has joined #asahi-dev
nyilas has quit [Remote host closed the connection]
aomizu has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
xaiki has joined #asahi-dev
karpouzi has quit [Quit: leaving]
xaiki has quit [Remote host closed the connection]
xaiki has joined #asahi-dev
robinp has joined #asahi-dev
<kettenis>
jannau: so the link is reported as up? can you access config space registers?
robinp has quit [Ping timeout: 480 seconds]
<jannau>
where/when? in u-boot or linux? PORT_LINKSTS_UP isn't set when linux sets the ports up
<kettenis>
linux
robinp has joined #asahi-dev
aomizu has quit [Max SendQ exceeded]
<jannau>
supposedly not, otherwise linux should see the device. the link status is just PORT_LINKSTS_UP and PORT_INT_LINK_UP irq
robinp has quit [Ping timeout: 480 seconds]
aomizu has joined #asahi-dev
robinp has joined #asahi-dev
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
kesslerd has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
aomizu has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
<jannau>
has anyone looked into what function-pcie_port_control does? it refers back to apcie and has for each port an u8 (non-aligned).
<jannau>
I suspect it might have nothing to do with the pcie controller though as the thunderbolt pcie controllers all have distinct numbers
<sven>
there’s always a full pmgr reset as the last resort bht I’m fairly sure that does require tunables again
<sven>
*but
hightower2 has joined #asahi-dev
<jannau>
I tried that with ps_apcie_gp_sys and ps_apcie_gp and it seemed to have no effect. existing pcie devices still worked and the usb controller didn't come back up
<sven>
huh, for the usb4 controller it actually resets everything
<jannau>
probably just doesn't do anything if the power-controller has 'apple,always-on;'. I forgot to check that
<sven>
iirc the power domain has to be on for the reset to work
<jannau>
no, 'apple,always-on' is not checked in u-boot. the reset was in \u-boot's pcie_remove function
robinp has joined #asahi-dev
c10l has joined #asahi-dev
aomizu has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
<kettenis>
i wonder if we need to disable the LTSSM somehow in u-boot before handover
robinp has quit [Ping timeout: 480 seconds]
kesslerd has quit [Remote host closed the connection]
<jannau>
my testing in u-boot might have been a little flawed. I'm not convinced that apple_pcie_remove() is called at all
<jannau>
a 'BUG()' in there has no effect
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
roxfan has quit [Remote host closed the connection]
roxfan has joined #asahi-dev
jhan has joined #asahi-dev
jeffmiw has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
jhan has quit [Ping timeout: 480 seconds]
kesslerd has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
<kettenis>
jannau: try adding .flags = DM_FLAG_OS_PREPARE to the U_BOOT_DRIVER struct
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
opticron has quit [Ping timeout: 480 seconds]
<jannau>
kettenis: thanks, now it's at least clearly broken.
<jannau>
let's see if anything I tried previously works
<jannau>
looks like might be enough to do the same thing m1n1 does
robinp has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
robinp has joined #asahi-dev
nyilas has joined #asahi-dev
jhan has joined #asahi-dev
robinp has quit [Ping timeout: 480 seconds]
jhan has quit [Ping timeout: 480 seconds]
piroko has joined #asahi-dev
opticron has joined #asahi-dev
___nick___ has joined #asahi-dev
louisadamian has joined #asahi-dev
<louisadamian>
Is there a base config that people can use for building Linux? It looks like there is supposed to be a link to one in the wiki but it's not working.
___nick___ has quit []
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
louisadamian has quit [Remote host closed the connection]
<jannau>
those has all asahi specific options and a ton of options one would expect from a distro kernel. for development you want to disable tons of options for faster builds and depending on your workflow switch to builtin drivers instead of modules
<louisadamian>
jannau: ok thank you
louisadamian has quit [Remote host closed the connection]
louisadamian has joined #asahi-dev
snowcra5h has joined #asahi-dev
jhan has joined #asahi-dev
vivithecanine has quit [Quit: WeeChat 3.7.1]
louisadamian has quit [Remote host closed the connection]
elvishjerricco has quit [Ping timeout: 480 seconds]
jhan has quit [Ping timeout: 480 seconds]
elvishjerricco has joined #asahi-dev
weitcis_ has quit [Ping timeout: 480 seconds]
elvishjerricco has quit [Ping timeout: 480 seconds]
chadmed has quit [Read error: Connection reset by peer]