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
hdbngr has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
hightower2 has quit [Ping timeout: 480 seconds]
zumi_ has joined #asahi-dev
pb17 has joined #asahi-dev
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
cylm has joined #asahi-dev
beastd|2 has joined #asahi-dev
beastd has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #asahi-dev
hexdump02 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
tobhe_ has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
tobhe has quit [Ping timeout: 480 seconds]
Pokemod97736 has joined #asahi-dev
skipwich has quit [Remote host closed the connection]
skipwich has joined #asahi-dev
nora has joined #asahi-dev
nora_ has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
eluks has quit [Remote host closed the connection]
eluks has joined #asahi-dev
ipatch has quit [Ping timeout: 480 seconds]
zumi_ has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
hdbngr has joined #asahi-dev
pb17 has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
mripard has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
ravikant_ has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
hdbngr has joined #asahi-dev
JTL has quit [Remote host closed the connection]
JTL has joined #asahi-dev
snklp has joined #asahi-dev
rivendell has joined #asahi-dev
rivendell has quit [Ping timeout: 480 seconds]
rivendell has joined #asahi-dev
hightower3 has joined #asahi-dev
hightower2 has quit [Ping timeout: 480 seconds]
catred has joined #asahi-dev
bgb_ has joined #asahi-dev
bgb has quit [Remote host closed the connection]
ravikant_ has quit [Ping timeout: 480 seconds]
snklp has quit [Ping timeout: 480 seconds]
snklp has joined #asahi-dev
VinDuv has quit [Ping timeout: 480 seconds]
rusty_dave has joined #asahi-dev
bgb_ has quit [Remote host closed the connection]
bgb has joined #asahi-dev
rivendell has quit [Read error: Connection reset by peer]
rivendell has joined #asahi-dev
ravikant_ has joined #asahi-dev
rivendell has quit []
rivendell has joined #asahi-dev
ravikant_ has quit [Remote host closed the connection]
ravikant_ has joined #asahi-dev
mattia013 has joined #asahi-dev
mripard has quit [Quit: WeeChat 4.7.0]
Gnappo85 has joined #asahi-dev
Gnappo85 has quit []
zumi_ has joined #asahi-dev
Gnappo85 has joined #asahi-dev
Gnappo85 has quit []
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
mattia013 has quit [Remote host closed the connection]
mattia013 has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
snklp1 has joined #asahi-dev
snklp has quit [Read error: Connection reset by peer]
snklp1 is now known as snklp
snklp has quit [Ping timeout: 480 seconds]
malfunction54 has quit [Quit: Leaving]
tobhe_ is now known as tobhe
john-cabaj has joined #asahi-dev
<sven> so pipehandler as part of dwc3 glue makes everything worse, it'll stay inside atcphy
<sven> i've also apparently managed to break gadget mode somehow again :/
<sven> either when converting to the glue driver or when cleaning that one up
ravikant_ has quit []
VinDuv has joined #asahi-dev
<sven> can anyone run trace_atc.py while connecting the target to something that makes it switch to device mode? my setup seems to first negotiate host and then do the switch to device mode and i'd like to see something that directly goes to device mode
<chaos_princess> whats your approach?
<chaos_princess> also, does it have to be a t8013, or a t6000 is also fine?
<sven> anything is fine
<sven> i have a somewhat weird setup here. c-to-c cable to another (x86) computer running linux and that seems to first negotiate host and then switch to device. I think my a-to-c cable that I used before broke because it doesn't negotiate anything anymore
<sven> even under macos
<sven> before that the approach was macbook air -> c-to-a adapter -> a-to-c cable -> mac mini
<chaos_princess> yea, i should have an a-to-c somewhere and a x86 pc
<sven> atcphy is the same for t8103 and t6000 and all the other supported SoCs. i think apple hides any differences inside the tunables anyway
<sven> the only reason they have a different ADT compatible is that they hardcode the fuse offsets inside the kext iirc
<chaos_princess> ok, i might be doing sth wrong, do i need a specific port? And does the cable need to be usb-3 compatible?
<sven> no, both ports short work :/
<sven> usb 2 only is fine as well
<sven> 3 would be better because i want to see the pipehandler setup as well, but 2 should be fine
<chaos_princess> "both" - so, i have 3, and one didn't work :P. captured, give me a sec
<sven> weird :D
<sven> anything attached to atcphy should work
<chaos_princess> connect - https://pastebin.com/Hhp9s401 disconnect - https://pastebin.com/JTcsunmF
<j`ey> https://lore.kernel.org/all/20250901111241.233875-1-tzimmermann@suse.de/ I can't remember the vblank stuff with dcp, so not sure if this timer is actually useful I just vaguely rememeber there was something about it
<sven> chaos_princess: thanks!
<jannau> j`ey: the problem doesn't apply to dcp as dcp limits fb flips, i.e. we have vblank hw, it's just inconvenient to use. if we used the timer we have deal with syncing it to dcp's swaps
<j`ey> jannau: ok!
hdbngr has quit [Ping timeout: 480 seconds]
ipatch has joined #asahi-dev
cylm has joined #asahi-dev
hdbngr has joined #asahi-dev
maettu102 has quit [Quit: The Lounge - https://thelounge.chat]
cylm_ has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
<sven> https://git.kernel.org/pub/scm/linux/kernel/git/sven/linux.git/log/?h=wip/atcphy gadget mode possibly broken, but otherwise rather happy with this now
<sven> need to wait for a new a->c cable to arrive before i can look into fixing gadget mode again
cylm has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
cylm_ has quit [Ping timeout: 480 seconds]
zumi_ has joined #asahi-dev
pb17 has joined #asahi-dev
zumi has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
hdbngr has quit [Ping timeout: 480 seconds]
<sven> oh, lol, i think i may have fixed it. can't test it here though
hdbngr has joined #asahi-dev
hdbngr has quit [Ping timeout: 480 seconds]
<sven> hah, i can test gadget mode through my tbt dock. seems to work now
<jannau> I almost reported that the atc fuses m1n1 PR or dwc3/atcphy do not work on m2 until I remembered that your branch has only t8103 DT changes
<sven> :D
<sven> it usually works with wrong fuses as well, you just sometimes lose superspeed and. and tbt is very allergic is they are wrong
<sven> *if
cylm has quit [Ping timeout: 480 seconds]
<jannau> atcphy refuses to probe without apple,tunable-fuses though
<jannau> works on the m2 mini but still (again?) 5 seconds delay until superspeed devices are detected
ipatch_ has joined #asahi-dev
ipatch has quit [Read error: Connection reset by peer]
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
bgb has quit [Remote host closed the connection]
bgb has joined #asahi-dev
<sven> ugh… that doesn’t happen on my m1 :/
hdbngr has joined #asahi-dev
<sven> there’s a second or two delay until the device appears here I think
<sven> :/
<sven> timed out waiting for ACIOPHY_TOP_PHY_STAT_LN0_UNK0 that’s also not great
<sven> I don’t see that here
yuka has quit [Remote host closed the connection]
<jannau> I don't think I see that with the asahi tree
yuka has joined #asahi-dev
<sven> can you try moving the phy_set_mode calls to after dwc3_host_init?
<sven> that makes no sense to me but it’s a difference between Asahi tree and that branch
<jannau> on shutdown uas errors drom the usb ssd
<sven> I hate this thing :(
dani has joined #asahi-dev
dani has quit []
dani has joined #asahi-dev
dani is now known as aizuchi
<jannau> still "timed out waiting for ACIOPHY_TOP_PHY_STAT_LN0_UNK0" but the delay between "hub 3-0:1.0: 1 port detected" and "new SuperSpeed Plus Gen 2x1 USB device" os now only 4.75s
<sven> hrm, something else is broken then
<jannau> this was 5d4191594cf6
<jannau> same behavior with 90e2c56eccad though
john-cabaj has quit [Remote host closed the connection]
john-cabaj has joined #asahi-dev
maettu102 has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
<jannau> m1 max behaves in the same way as m2
<sven> hmmm… maybe because I‘m using a usb3/dp connected to my usb 3 hdd here
<sven> I’m traveling for $work for the rest of the week but I’ll compare macOS vs. my branch on the weekend to see what’s going on
<jannau> yes, no delay or timeout on ACIOPHY_TOP_PHY_STAT_LN0_UNK0 when using an usb3/dp switch
<sven> ok, weird but at least that explains the difference
<jannau> approved the m1n1 PR as the weirdness is unlikely to be found there
<jannau> didn't you want to use usb3/dp mode by for usb3 only anyway as that's what macos does?
<sven> ohh… yup
<sven> and I never understood _why_. maybe we do now
<jannau> the timeout on ACIOPHY_TOP_PHY_STAT_LN0_UNK0 doesn't change to ACIOPHY_TOP_PHY_STAT_LN1_UNK0 based on the plug orientation
<sven> can reproduce it here as well when directly connecting the device without the usb3/dp inbetween
<sven> +hub
john-cabaj has quit [Ping timeout: 480 seconds]
hdbngr has quit [Ping timeout: 480 seconds]
imnotpoz has joined #asahi-dev
<jannau> sven: https://github.com/jannau/linux/commits/wip/atcphy-20250902/ has t600x and t8112 devicetree changes on top of your branch
<jannau> and now actually passing dtbs_check
<sven> Ack
<sven> thanks
aizuchi has quit [Remote host closed the connection]