#asahi-dev · 2024-08-10 20:45
svenpci isn’t *that* broken, iirc 8/16bit wide access has always worked there#asahi-dev · 2024-08-09 14:48
sventhough i don't remember if it was usb3 that broke that#asahi-dev · 2024-08-09 14:48
svenusb 2 also seems to work with devices plugged in at boot already#asahi-dev · 2024-08-09 14:47
sveni just started over and copy/pasted stuff :D#asahi-dev · 2024-08-09 14:46
svennext step is took hook usb 3 back up. hopefully without that annoying synchronization this time#asahi-dev · 2024-08-09 14:45
svenjannau: that's my current tree https://github.com/AsahiLinux/linux/tree/20240806-atcphy-rewrite#asahi-dev · 2024-08-09 14:39
svenhttps://paste.debian.net/1325943/ that's what i have so far#asahi-dev · 2024-08-09 14:33
svenlooks like usb 2 works again with this rewrite. let's see about usb3 now#asahi-dev · 2024-08-09 14:04
svensweet, linux has supported stuff like guard(mutex)(&atcphy->lock); with linux/cleanup.h for a while now which removes quite a bit of if (ret) goto fail_whatever; boilerplate#asahi-dev · 2024-08-07 05:58
svenlol#asahi-dev · 2024-08-07 05:57
svenfor extra credit use a hair dryer to really heat it up :>#asahi-dev · 2024-08-07 05:53
svenI would be surprised if there’s no thermal watchdog running somewhere which will just power off the machine if it gets too hot#asahi-dev · 2024-08-06 15:43
svenif it was only phy bindings I wouldn’t mind, but we’re still at the bikeshedding for basic stuff like platform_device so I think I’ll just stick to C#asahi-dev · 2024-08-06 15:41
svenbut it’s very minimal so far unfortunately #asahi-dev · 2024-08-06 15:41
svenright, I thought there was more upstream already #asahi-dev · 2024-08-06 15:27
svenmight be useful as a template for phy/ bindings though #asahi-dev · 2024-08-06 15:27
sventhere’s a net/phy or something like that #asahi-dev · 2024-08-06 15:27
svennope, not the same thing #asahi-dev · 2024-08-06 15:26
sventhanks! I have to rewrite half of atcphy anyway and wanted to see how much additional work just doing it in rust would be #asahi-dev · 2024-08-06 14:52
svenhrm, so i take it there is almost no rust support stuff (like, say, platform device bindings) upstream so far?#asahi-dev · 2024-07-14 11:34
svenhrm, the GL2 init happens before that and i'd expect that to already fail if this SPTM thing was running#asahi-dev · 2024-07-14 08:53
sveneither way, we can’t really run Linux under SPTM so there better be a way to skip all that ;)#asahi-dev · 2024-07-14 08:42
svenI would expect that there’s some way to skip that in permissive security but would still be interesting to check that #asahi-dev · 2024-07-14 08:38
svenwhat’s SPTM?#asahi-dev · 2024-06-12 11:08
svenfdt_get_alias#asahi-dev · 2024-06-05 20:14
sveni looked through the tipd changes and didn't see anything suspicious fwiw#asahi-dev · 2024-06-04 20:48
sven(unless we completely crash the firmware ofc)#asahi-dev · 2024-06-04 20:47
svenbut as long as we leave the secondary event registers alone we shouldn’t break anything #asahi-dev · 2024-06-04 20:47
sven*tipd#asahi-dev · 2024-06-04 20:47
svenI can take a look at tips changes tomorrow if there’s anything suspicious otherwise #asahi-dev · 2024-06-04 20:46
svenwe don’t mess with its irqs anymore do we?#asahi-dev · 2024-06-04 20:46
svenSMC has a secondary i2c bus to that chip #asahi-dev · 2024-06-04 20:45
svenhuh no#asahi-dev · 2024-06-02 13:48
sventhat apparently sleeps up to 20ms #asahi-dev · 2024-06-02 13:47
svenpretty sure the timeout was much larger than 10ms in the polling code because it used msleep(1) fwiw#asahi-dev · 2024-06-02 13:46
sventhanks #asahi-dev · 2024-06-02 13:46
sven2022 🙃#asahi-dev · 2024-06-02 11:23
svendo you remember if it's the improved pasemi_smb_clear and the error handling that actually fixed the tipd issues instead of an increased timeout?#asahi-dev · 2024-06-02 11:22
svenmarcan: so i'm looking at upstreaming misc stuff and came across https://github.com/AsahiLinux/linux/commit/34edaaa716ba55c9265dc55c8c006d7a0190c8a4 which mentions that "the driver uses a 10ms timeout" but afaict it already had a 100ms timeout before since https://github.com/AsahiLinux/linux/commit/e826192cc26bd69746bbf22e6bdf72b87cb3d97b#asahi-dev · 2024-05-27 19:37
sventhat looks very nice!#asahi-dev · 2024-05-16 07:32
svenyeah, i really need to find the motivation to just rewrite that thing :/#asahi-dev · 2024-05-15 20:10
sventhe Bluetooth fixes have been merged rather quickly :)#asahi-dev · 2024-05-15 18:17
svenkinda makes sense since that whole pipehandler sequence is wrong iirc #asahi-dev · 2024-05-14 19:40
svenstill on train back from the office but will do that later #asahi-dev · 2024-05-14 19:36
svenlooks like I’m running out of excuses to procrastinate finishing that atcphy almost-rewrite #asahi-dev · 2024-05-14 07:22
svenI’m just annoyed that check was merged while my patches I sent a long time ago were ignored :/#asahi-dev · 2024-05-14 07:21
svenI know #asahi-dev · 2024-05-14 05:42
svenso i guess I can try again or we change the devicetree which we probably still can since nothing related to atcphy is upstream