#
#asahi-dev · 2023-01-17 13:48
sven0001:01:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
#asahi-dev · 2023-01-17 13:48
sven0001:00:00.0 PCI bridge: Apple Inc. Apple Silicon USB4/Thunderbolt PCI Express Root Port
#asahi-dev · 2023-01-17 13:15
jannauit is on the thunderbolt to firewire adapter
#asahi-dev · 2023-01-17 13:15
svenhttps://paste.debian.net/hidden/2c372cad/ looks like i might've messed up something when describing the bus in the dt, let me double check that
#asahi-dev · 2023-01-17 13:14
jannausven DSL2210 seems to be a thunderbolt 1 device controller so that is might already be on the ethernet adapter
#asahi-dev · 2023-01-17 12:53
svenwait.. or maybe that's the 3->2 adapter showing up
#asahi-dev · 2023-01-17 12:41
svenoh... wait... pcie has tunables as well, doesn't it?
#asahi-dev · 2023-01-17 12:41
svenpretty sure the second thing is a lie :D
#asahi-dev · 2023-01-17 12:41
sven0001:01:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
#asahi-dev · 2023-01-17 12:41
sven0001:00:00.0 PCI bridge: Apple Inc. Apple Silicon USB4/Thunderbolt PCI Express Root Port
#asahi-dev · 2023-01-17 12:40
svenpcie is still kinda broken though
#asahi-dev · 2023-01-17 12:40
svenlol, so thunderbolt hotplug seems to work pretty well. it just doesn't detect the adapter the first time for some reason
#asahi-dev · 2023-01-17 12:05
sveni feel like almost everything is somehow hooked up as GPIO as well :D
#asahi-dev · 2023-01-17 12:05
povikwhy didnt i try mon.add(gpio_base, xxx) and enable/disable the I2S clocks earlier?
#asahi-dev · 2023-01-17 12:05
poviki could have made such good use of this when i was figuring out MCA
#asahi-dev · 2023-01-17 12:04
povikhaha, so the I2S ports are hooked up to GPIO after all
#asahi-dev · 2023-01-17 03:30
marcanbut not SPI (and then the driver would need a codepath to trigger the wakeup anyway)
#asahi-dev · 2023-01-17 03:29
marcanIRQ 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
#asahi-dev · 2023-01-17 03:28
marcanyeah, wake on keyboard is not implemented
#asahi-dev · 2023-01-16 20:53
chadmed_its the kb that doesnt work on my machine
#asahi-dev · 2023-01-16 20:53
chadmed_marcan: mb, wake on lid does work
#asahi-dev · 2023-01-16 16:48
sven*some
#asahi-dev · 2023-01-16 16:48
svenokay, with sone ugly hacks it also shows up on the pcie bus now. now I’ll just have to see how to work around the „dart MMIO only comes up after the pcie port is up“ and add support for that tbt dart MMIO layout
#asahi-dev · 2023-01-16 15:58
povikright
#asahi-dev · 2023-01-16 15:58
marcanSMC doesn't know the difference
#asahi-dev · 2023-01-16 15:58
marcanif the HID events work while the thing is running there's no reason they'd stop working during s2idle
#asahi-dev · 2023-01-16 15:57
marcanremember this isn't real idle
#asahi-dev · 2023-01-16 15:57
marcanthese are standard SMC events
#asahi-dev · 2023-01-16 15:57
marcannot really
#asahi-dev · 2023-01-16 15:57
povikis it possible this depends on some setting from macos?
#asahi-dev · 2023-01-16 15:57
marcanno idea :p
#asahi-dev · 2023-01-16 15:57
povikhm, how can it not work for chadmed though
#asahi-dev · 2023-01-16 15:57
marcanI think there is some general wakeup source control we could implement, not sure if there is a mechanism to outright pick specific HID events though
#asahi-dev · 2023-01-16 15:56
marcancorrect
#asahi-dev · 2023-01-16 15:56
kettenisbut probably my cheapest option to get a thunderbolt 3 device
#asahi-dev · 2023-01-16 15:56
povikmarcan: so you can't not wake at the moment?
#asahi-dev · 2023-01-16 15:56
svenheh, fair
#asahi-dev · 2023-01-16 15:56
kettenisnot my definition of cheap ;)
#asahi-dev · 2023-01-16 15:56
svenkettenis: the apple one is pretty cheap these days (50 eur or so) fwiw
#asahi-dev · 2023-01-16 15:55
marcanit just considers the power button and lid open as unconditional resume events
#asahi-dev · 2023-01-16 15:55
marcanpovik: it's hardcoded in the SMC driver :p
#asahi-dev · 2023-01-16 15:55
sventhis smells like some "enable pcie tunnel" poke is missing somewhere
#asahi-dev · 2023-01-16 15:55
mazmeh
#asahi-dev · 2023-01-16 15:55
svennope. I've also never seen a port up event for the tbt root port so far
#asahi-dev · 2023-01-16 15:54
mazdoes writing to "/sys/bus/pci/rescan" trigger anything?
#asahi-dev · 2023-01-16 15:53
kettenismaybe I should get one since I have an old thunderbolt 2 ethernet dongle lying around
#asahi-dev · 2023-01-16 15:53
svenyes
#asahi-dev · 2023-01-16 15:53
kettenissven, this is using your 2-3 converter?
#asahi-dev · 2023-01-16 15:52
svenprobably another magic bit that needs to be set somewhere
#asahi-dev · 2023-01-16 15:52
svenyeah, i have code for the hotplug that "works" for the bt/wifi thing but doesn't for thunderbolt for some reason

plus ›