#asahi · 2021-09-25 20:10
svenyeah, i've replied to that patch#asahi · 2021-09-25 20:04
svenguess i can already reply right now then :D#asahi · 2021-09-25 20:04
svenah. that was actually painless to import#asahi · 2021-09-25 19:58
svenpresumably, whatever is running on T2 doesn't ignore them but panics if the tag is > 0x100#asahi · 2021-09-25 19:57
svenor if anyone else wants to reply: ANS2 is a arm64 coprocessor that emulates the NVMe MMIO and is likely used on the T2 as well. It uses the tag as index to an internal data structure and that index has only 8 bits. if you talk to ANS2 directly it'll just ignore the higher bits and only return the lower ones in the completion queue#asahi · 2021-09-25 19:55
sveni'll have to figure out how to get those message into my mail client. i do9n't think i've subscribed to linux-kernel or linux-nvme#asahi · 2021-09-25 19:54
sven:)#asahi · 2021-09-25 19:53
sven*just not do#asahi · 2021-09-25 19:53
svenyeah, i can reply tomorrow why that happens and that the only reasonable fix is to just not to the genctr stuff on these apple ssds#asahi · 2021-09-25 19:53
svenahh.. the T2 has ANS2 as well#asahi · 2021-09-25 13:59
svenalyssa: yeah, it's gonna be complicated and probably requires us to understand how the entire typec mode switching (i.e. usb3, thunderbolt, etc.) is going to work before we can add this in a sane way :(#asahi · 2021-09-25 13:47
svendunno yet if the typec_mux is part of ATC PHY or just calls phy_set_mode or maybe does something else completely#asahi · 2021-09-25 13:47
svenmy best guess is that the tipd chip will be able to detect you want to switch to DP-only for the usb-c port and tell the typec_mux to set everything up correctly#asahi · 2021-09-25 13:46
svenprobably#asahi · 2021-09-25 12:51
svennvme... right. i should try to get that in a shape that actually allows it to be reviewed as well#asahi · 2021-09-25 12:50
svenwe should just make m1n1 turn on everything until the pmgr stuff is upstream imho :D#asahi · 2021-09-25 11:01
sventhough i guess now that commit is no-op for the pci variant :D#asahi · 2021-09-25 10:58
sventrue#asahi · 2021-09-25 10:47
svenlet me drop that then#asahi · 2021-09-25 10:47
svenah, nice#asahi · 2021-09-25 10:46
svenoh, does the core do that automatically?#asahi · 2021-09-25 10:44
sven:)#asahi · 2021-09-25 10:43
svenuh. are you looking at an old version?#asahi · 2021-09-25 10:43
svenhuh, where?#asahi · 2021-09-25 10:40
svengood point. let me fix that#asahi · 2021-09-25 10:37
sven(there's also this entire algos/ subfolder which i first thought would be the right place. but that one appears to be abandoned and newer drivers which also require the pci/platform split do it similar to what i've done there)#asahi · 2021-09-25 10:36
svene.g. i2c-octeon-core.o#asahi · 2021-09-25 10:36
svenother drivers do that same thing fwiw#asahi · 2021-09-25 10:36
svenon the same cpu? :-P#asahi · 2021-09-25 10:35
svendo you have a CPU that is both PowerPC and ARM64?#asahi · 2021-09-25 10:23
svenhttps://github.com/AsahiLinux/linux/commits/i2c/v1 i'll probably submit that tomorrow after all the built bots have picked it up. happy about anyone who already wants to catch my dumb mistakes (typos, etc.) in there#asahi · 2021-09-25 09:39
svennot very useful, but interesting :D#asahi · 2021-09-25 09:39
svenyeah#asahi · 2021-09-25 09:38
svenpossibly even software running on the efficiency core#asahi · 2021-09-25 09:38
svenfwiw, i wouldn't be surprised at all if the JPEG hardware used to be faster/more efficient years ago but is easily beat by software running on the main core these days#asahi · 2021-09-25 09:33
sven:>#asahi · 2021-09-25 09:31
sveni guess it was useful on the first iphones #asahi · 2021-09-25 09:29
svenwould be fun to benchmark and see if software running on the M1 or the HW would be faster :D#asahi · 2021-09-24 18:10
svenyup :D#asahi · 2021-09-24 18:09
svenwhy is everything usb so damn cursed :-(#asahi · 2021-09-24 18:07
svensometimes the macbook air (running macOS) usb port is dead until i reboot#asahi · 2021-09-24 18:07
svenyup. and this works semi-reliably: connect both usb ports (maybe one is also enough), wait until the linux tells you that the serial gadget is attached and then unplug the cable. #asahi · 2021-09-24 16:58
svenokay. rebooting the macbook air fixed the port again *sigh*#asahi · 2021-09-24 16:57
sven:D#asahi · 2021-09-24 16:55
svenif even doing _that_ makes it unstable i feel like trying to be clever and getting away with partial resets or PHY only resets might just make it worse#asahi · 2021-09-24 16:55
svenalso makes me more inclined to just do the full xhci reset every time a cable is unplugged#asahi · 2021-09-24 16:54
svenalyssa: so i hear you're writing a jpeg driver now? :>#asahi · 2021-09-24 16:53
svenbut the machine running macOS shows the same behaviour now :/#asahi · 2021-09-24 16:53
svenlike, i expect this with my horrible linux hacks#asahi · 2021-09-24 16:52
svenand it looks like that got *both* m1 machines into a state where that port just refuses to work :D