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
hightower4 has quit [Ping timeout: 480 seconds]
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
hightower4 has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
hightower3 has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
hightower4 has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amarioguy has joined #asahi-dev
hightower4 has joined #asahi-dev
hightower3 has quit [Ping timeout: 480 seconds]
seeeath has joined #asahi-dev
seeeath has quit []
seeeath has joined #asahi-dev
seeeath has quit []
<marcan>
yeah, wake on keyboard is not implemented
<marcan>
IRQ behavior on s2idle is opt-in, right now we opt in all mailboxes under the assumption that mostly everything but SMC will be shut down anyway
<marcan>
but not SPI (and then the driver would need a codepath to trigger the wakeup anyway)
hertz has joined #asahi-dev
nyx_o has quit [Quit: WeeChat 3.5]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nyx_o has joined #asahi-dev
zzywysm has joined #asahi-dev
amw has quit [Ping timeout: 480 seconds]
c10l1 has joined #asahi-dev
c10l has quit [Ping timeout: 480 seconds]
leitao has joined #asahi-dev
tim has joined #asahi-dev
tim is now known as Guest1569
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
leitao has quit []
leitao has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faruk has joined #asahi-dev
faruk has quit []
leitao has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
eiln has joined #asahi-dev
eiln has quit [Remote host closed the connection]
eiln has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<povik>
haha, so the I2S ports are hooked up to GPIO after all
<povik>
i could have made such good use of this when i was figuring out MCA
<povik>
why didnt i try mon.add(gpio_base, xxx) and enable/disable the I2S clocks earlier?
<sven>
i feel like almost everything is somehow hooked up as GPIO as well :D
hightower3 has joined #asahi-dev
hightower4 has quit [Ping timeout: 480 seconds]
hightower3 has quit [Ping timeout: 480 seconds]
zalyx has quit [Read error: Connection reset by peer]
zalyx has joined #asahi-dev
leitao has joined #asahi-dev
chadmed_ has quit [Remote host closed the connection]
<sven>
lol, so thunderbolt hotplug seems to work pretty well. it just doesn't detect the adapter the first time for some reason
<sven>
pcie is still kinda broken though
<sven>
0001:00:00.0 PCI bridge: Apple Inc. Apple Silicon USB4/Thunderbolt PCI Express Root Port
<sven>
0001:03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57762 Gigabit Ethernet PCIe
<sven>
\o/
<sven>
DMA is obviously broken since there's no IOMMU
<sven>
and I need to read code to understand how the kernel handles hotplug management because right now this is only works with even more ugly hacks
eiln has joined #asahi-dev
chadmed_ has joined #asahi-dev
<maz>
sven: awesome!
<maz>
do you get the interrupt on the RP when plugging in the device? this should be what triggers the rescan.
<sven>
it's a bit more ugly. I need to wait for the Thunderbolt NHI to activate the PCIe link and only then clear some "tunnel reset" bit and then trigger the link-training and only then the "port up" interrupt appears
<maz>
two state machine intersecting. what's not to love? :-/
<sven>
it gets even better. the DART MMIO range only starts to work once PERST is disabled
___nick___ has joined #asahi-dev
<povik>
"product state space"
___nick___ has quit []
<sven>
and ofc this is all triggered by that lovely PD controller
<maz>
sven: "insert DART enable >here<"
___nick___ has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sven>
let me know if you finish that pcb. i'd be interested in a real serial adapter as well
<kettenis>
a bit neater than what bluerise rigged together for me
<maz>
what I like about it is that the pico is the serial adapter. and in theory, one adapter could deal with two FUSB302 (one per I2C bus), which is useful when you have multiple boxes.
<maz>
the expensive part here was the QFN adapter being delivered from Canada.
<maz>
the PCB would solve that problem.
nicolas17 has joined #asahi-dev
<nicolas17>
ChaosPrincess: speculation was product announcement 11am, betas 1pm
<sven>
which also seems to come up at least on the NHI side when I connected my old thunderbolt display via apple's 3->2 adapter
<sven>
so I guess we'll have to come up with some kind of NHI -> {pcie, dpin0-phy, dpin1-phy} notification system anyway
<sven>
on intel/amd controller this all happens without additional software notifications :(
eiln has joined #asahi-dev
<eiln>
holy shit
<eiln>
iovas are a function of access distance
<eiln>
i'm getting a 4x speedup with a capped iova limit
<eiln>
0.002398727 per batch for inception_v3
<nicolas17>
ANE?
<eiln>
yes
nate8 has joined #asahi-dev
<jannau>
I wonder whether the display out switching will work on the m2 laptops too. 2 external displays in clamshell mode could be interesting. I doubt apple will support that in macos
eiln has quit [Remote host closed the connection]
seeeath has joined #asahi-dev
<sven>
huh, that would be useful
nicolas17 has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
nate8 has quit [Quit: Leaving]
nate8 has joined #asahi-dev
<vivithecanine>
2 external in clamshell works fine on mbp m1 max
<vivithecanine>
3 works fine even
<vivithecanine>
I think the max does a total of 5 displays?
<sven>
for the pro/max chips, not for the base m1/m2 variant
<jannau>
this would be for the m2 mb air and and pro 13" which support only 1 external display officially
<marcan>
< sven> pretty sure the second thing is a lie :D
<marcan>
no that tracks
<sven>
yeah, nvm, i'm just an idiot
<marcan>
that intel chip should be what's in the dongle bridging to PCIe
<sven>
the config space was just completely messed up because I unplugged the adapter and that's why I assumed it was broken
<marcan>
heh
<sven>
this currently runs on essentially duct tape so i'll have to clean that up and then figure out how to get that DART up sanely
<marcan>
also, for the DART, vague idea I had was to play with runtime-pm somehow? like have the DART driver defer doing anything and start up in rpm sleep state, only to be woken up when the PCIe dependency needs it. or something something.
<marcan>
either that or maybe trigger on IOMMU domain attach? not sure if that would work
<sven>
yeah, i have some ideas.
<sven>
i'll see what happens if I just fake a clock controller for now just to see if that breaks already
<sven>
it might just work because it technically doesn't need the DART before the first device comes up
<marcan>
how would that work?
<marcan>
you mean have the DART depend on a clock supplied by PCIe?
<marcan>
can you bring that up independent of any thunderbolt/hotplug/etc stuff?
<sven>
yup
<sven>
turns out I can just leave the thunderbolt stuff up the entire time because it's much less broken than dwc3
<marcan>
oh lol
<marcan>
sure, as long as we can still sanely power sequence it to off for power saving
<marcan>
but that should work ish with the rpm stuff I think?
<marcan>
though I still need to figure out rpm for the DARTs properly
<jannau>
runtime pm might be annoying, the internal pcie devices are runtime pm enabled on probe_device
<sven>
I actually haven't figured out how to bring it down without resetting the entire soc yet :D
<marcan>
lol ok
<sven>
but it should be possible, just need to figure out the right atcphy/acio sequence there
<sven>
I think I know it but since this is all duct taped together I can't easily test it
<sven>
if you mess that one up though you either get SErrors on pcie/acio MMIO access or some internal watchdog just resets everything
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<povik>
the curves are roughly overlaid because TI chose the units in a ~3.7 ohm ratio (understandably)
cylm has joined #asahi-dev
kettenis has quit [Ping timeout: 480 seconds]
<marcan>
povik: nice! :D
<marcan>
kinda surprising it's that jagged though, unless the input wasn't a sine wave?
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
<sven>
okay, removing and plugging in again works when I manually set that tunnel reset but again inbetween as well
<sven>
*bit
faruk has joined #asahi-dev
<jannau>
any idea how to wake from s2idle in upstream v6.2-rc4 (without macsmc)? I tried enabling wakeup for usb devices and ttySAC0 but both don't appear to work
bcrumb has joined #asahi-dev
bcrumb_ has joined #asahi-dev
bcrumb_ has quit []
bcrumb_ has joined #asahi-dev
bcrumb has quit [Ping timeout: 480 seconds]
<povik>
marcan: this was a sine wave, played not too loud
<povik>
huh, datasheet says noise should be at -60 dB, which i would expect to look less jagged
<nicolas17>
FCC wireless testing documents also mentioned these new machines running macOS 22A8375 and 22A12320r (ie. macOS 13.0),
<nicolas17>
sometimes I need another reminder of how long hardware production cycles are :p
bluetail has joined #asahi-dev
<jannau>
did anyone already ran ventura 13.2 beta or earlier in the HV? panics here immediately with "trust cache module 0 has unsupported version 2 @trustcache.c:113" and some AppleImage4 errors before
karolherbst has quit [Remote host closed the connection]