#asahi-dev · 2022-11-21 15:09
marcanlooks like a memset in alloc_io_pgtable_ops?#asahi-dev · 2022-11-21 15:09
marcan_jannau_: ^#asahi-dev · 2022-11-21 15:09
marcanany idea what's up with that?#asahi-dev · 2022-11-21 15:09
marcanI'm getting an oops in platform_dma_configure on m2, possibly in the dcp driver iommu path#asahi-dev · 2022-11-21 14:52
marcanyeah#asahi-dev · 2022-11-21 14:52
marcanok, will go into the next rev if there is one before release, otherwise shrug#asahi-dev · 2022-11-21 14:51
marcanany reason to respin? should be harmless right?#asahi-dev · 2022-11-21 14:51
marcansven: ack, dropped#asahi-dev · 2022-11-21 14:47
marcanasahi-6.1-rc6-1 tagged and pushed#asahi-dev · 2022-11-21 14:26
marcanplan is to write post & release tomorrow#asahi-dev · 2022-11-21 14:12
marcansven: will do#asahi-dev · 2022-11-21 14:12
marcan_jannau_: cherry-picked on the respective branches, going to rebase on rc6 now and run a build and make some OS builds#asahi-dev · 2022-11-21 00:46
marcanhttps://social.treehouse.systems/@aj6xk@mastodon.radio/109378739903273548#asahi-dev · 2022-11-20 06:49
marcanI'll make a separate branch that tracks the commit at which asahi-dev gets synced to asahi#asahi-dev · 2022-11-20 06:48
marcantpw_rules: that's the plan#asahi-dev · 2022-11-20 04:02
marcanpushed installer v0.5 to prod#asahi-dev · 2022-11-20 03:38
marcanI think I'm going to push the new installer (just the installer) ahead of the actual image updates. I'm tired of people running into the same old diskutil failures and posting everything except the actual useful info on github :p#asahi-dev · 2022-11-17 16:37
marcanit's on asahi-dev#asahi-dev · 2022-11-17 16:37
marcanyes, I just fixed that#asahi-dev · 2022-11-17 15:18
marcanbut then again, once I do switch (when lina gets OBS running properly...) the machines are quiet enough I don't need to suspend it#asahi-dev · 2022-11-17 15:17
marcan*cough* my streaming setup *cough*#asahi-dev · 2022-11-17 15:17
marcanor anything actually running like USB sound cards or capture cards#asahi-dev · 2022-11-17 15:17
marcanwell, it's not great if you have USB mass storage devices#asahi-dev · 2022-11-17 15:15
marcanI'm going to do another merge/tag/build with the dcp suspend fixes#asahi-dev · 2022-11-17 15:14
marcansven: I think I give up on this for now#asahi-dev · 2022-11-17 14:51
marcansven: so from what I see tracing the xHCI registers, it puts the port into suspend state properly, but then on the way out it just refuses to come out of suspend and it eventually resets it#asahi-dev · 2022-11-17 14:36
marcanbut for that we need to make the hypervisor survive suspend/resume cycles which ugh#asahi-dev · 2022-11-17 14:36
marcan(could be it just works around it with the moral equivalent of that hack I mentioned earlier)#asahi-dev · 2022-11-17 14:36
marcanI guess we need to figure out what macOS does#asahi-dev · 2022-11-17 14:36
marcanI mean the xHCI core does the standard xHCI sleep stuff including save state and such#asahi-dev · 2022-11-17 14:35
marcansven: it could be this is just broken in dwc3#asahi-dev · 2022-11-17 14:28
marcansven: nothing#asahi-dev · 2022-11-17 14:26
marcanah but atcphy doesn't even do rpm#asahi-dev · 2022-11-17 14:25
marcanlet me drop that too#asahi-dev · 2022-11-17 14:25
marcanmaybe it's the phy rpm#asahi-dev · 2022-11-17 14:21
marcanso there must be a way to do that with recovery, while maintaining port state#asahi-dev · 2022-11-17 14:21
marcanhowever, macOS *does* power down the dwc3 power domains on sleep. Haven't tested what they do for USBMS (the only real problem case where you can't afford to do blind reconnects)#asahi-dev · 2022-11-17 14:21
marcanif I keep the PDs up and comment out those dumb reset codepaths, yes#asahi-dev · 2022-11-17 14:20
marcanto dwc3 it just looks like a disconnect/connect#asahi-dev · 2022-11-17 14:20
marcanso that's probably a phy or tipd issue?#asahi-dev · 2022-11-17 14:20
marcansven: ok so there are several problems here. nuking those codepaths *and* keeping the power domains up avoids the dwc3 error, but the devices still disconnect.#asahi-dev · 2022-11-17 13:25
marcanso you *have* to keep dwc3 working to at least detect hub events#asahi-dev · 2022-11-17 13:25
marcanalso you can't identify reconnects via tipd since they could happen purely on the USB side (e.g. if you're using a type A adapter cable)#asahi-dev · 2022-11-17 13:24
marcan...#asahi-dev · 2022-11-17 13:24
marcan(because it can't know it's a different drive)#asahi-dev · 2022-11-17 13:24
marcanthere is a hack in the kernel to work around the current situation, but it has to be manually enabled and has lovely failure cases like "if you suspend, remove a USB drive, insert an identical one, and resume, and it doesn't have a serial number, your filesystem will explode"#asahi-dev · 2022-11-17 13:23
marcanit's supposed to continue to track connect/disconnect events during suspend so the kernel can know whether a device was removed to decide how to re-enumerate it#asahi-dev · 2022-11-17 13:23
marcanxHCI already has a defined protocol for going into suspend, and you can certainly put the parent device into low-power mode but definitely not do a full reset#asahi-dev · 2022-11-17 13:22
marcansven: I think that whole codepath is bullshit. you are not supposed to go off resetting host controllers during suspend.#asahi-dev · 2022-11-17 13:01
marcan*sigh*