#
✕ nick:sven
#asahi · 2021-07-03 10:34
sventhis will all become a little bit easier once the DART driver has been merged upsream (https://lore.kernel.org/linux-iommu/20210627143405.77298-1-sven@svenpeter.dev/T/#m2d7976f4a0f4b0a80a94e85824495ec5289e90b8)
#asahi · 2021-07-03 10:33
sventhere's also https://github.com/svenpeter42/linux/tree/pcie/hack (need to push that to asahi as well) which will give you pcie if you go through u-boot
#asahi · 2021-07-03 10:32
sventhe dart/dev branch should give you usb-c. i've only been using it in host mode though because i have a serial cable
#asahi · 2021-07-03 10:32
svenyeah, docks won't work. they'll need thunderbolt
#asahi · 2021-06-29 05:57
svenclang-format version 11.0.1 works for me
#asahi · 2021-06-29 05:57
sveni don't think we have any style for comments yet
#asahi · 2021-06-25 08:38
sveni just love how anything usb just gets more and more cursed with each revision :/
#asahi · 2021-06-24 19:37
svenor maybe real time kit, but that would be boring ;)
#asahi · 2021-06-24 19:34
svenpretty sure that RTK is their (realtime?) OS used for various co-processors
#asahi · 2021-06-18 12:01
sventhe cable i have works with my old dell laptop and my company thinkpad. it just doesn't work with the m1 :/
#asahi · 2021-06-18 11:50
sven(it also feels like i'm in the wrong universe: since when do external screens work just fine on linux but have issues on macOS? :D)
#asahi · 2021-06-18 11:49
svenbut this should just work
#asahi · 2021-06-18 11:49
sveni could maybe try a usb-c -> hdmi adapter though
#asahi · 2021-06-18 11:48
svenar: nope, the same cable works just fine on my linux laptop
#asahi · 2021-06-18 11:42
svenit's just rather unstable :/
#asahi · 2021-06-18 11:42
svenoh, it recognizes the screen just fine. even the 4k resolution
#asahi · 2021-06-18 11:41
svenit goes to black for a brief moment every few seconds
#asahi · 2021-06-18 11:40
svenurgh. i can't wait for linux support on this m1. i just connected a 4k external screen and it just doesn't work correctly :/
#asahi · 2021-06-13 20:12
svenstill need to send a patch to fix that
#asahi · 2021-06-13 20:12
svenyeah, and then it always write 65 bytes :D
#asahi · 2021-06-13 20:03
sveni think.
#asahi · 2021-06-13 20:03
svener wait. yeah, i'm confused.
#asahi · 2021-06-13 20:00
svensee e.g. https://github.com/torvalds/linux/blob/master/drivers/usb/typec/tipd/core.c#L115 and https://github.com/torvalds/linux/blob/master/drivers/usb/typec/tipd/core.c#L137
#asahi · 2021-06-13 19:59
svenuh, maybe i'm confused but isn't that how it's supposed to work?
#asahi · 2021-06-13 19:41
sventhat's fine though. the host asks for N bytes and the device just replies that it can actually send up to N+M bytes
#asahi · 2021-06-13 17:41
svenyeah, they might've used that as a base and added all their custom stuff on top
#asahi · 2021-06-13 17:27
svenohh... nice find!
#asahi · 2021-06-13 17:21
svenok. so apple added more interrupts it seems
#asahi · 2021-06-13 17:19
svenso the first byte of the actual reply is 0x0b?
#asahi · 2021-06-13 17:19
svenoh, wait. you parse the length byte?
#asahi · 2021-06-13 17:16
svenso it claims a length of 11 but then only sends 9 bytes of data?
#asahi · 2021-06-13 17:15
sveni'm confused by that line
#asahi · 2021-06-13 17:15
svenI2C[63]: R[0x14].10 0x0b 0x00 0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00
#asahi · 2021-06-13 16:59
sventhey might've redefined the meaning of some of the irq bits :/
#asahi · 2021-06-13 16:59
svenok. would be interesting to see the whole communication with that chip i think
#asahi · 2021-06-13 16:46
svenhave you mmiotraced those IntEvent registers while mac os was running?
#asahi · 2021-06-13 16:45
svenjannau: you played with the usb pd chip a little bit, didn't you? i rebased my old i2c patches (https://github.com/AsahiLinux/linux/commits/i2c/dev) and hacked the interrupt but the bits i see in IntEvent are strange
#asahi · 2021-06-13 16:03
svennow i just have to wait until that chime annoys me enough to connect a keyboard/mouse/screen to the mac mini again and fix that :>
#asahi · 2021-06-13 16:02
svenoh.. that sounds useful.
#asahi · 2021-06-13 15:32
svenjust sometimes with the annoying startup sound and sometimes without
#asahi · 2021-06-13 15:32
svenmine also always boots m1n1
#asahi · 2021-06-10 15:02
sven(and there might be multiple groups)
#asahi · 2021-06-10 15:01
svenif that file contains identity the iommu is in bypass mode
#asahi · 2021-06-10 15:01
svenyou want to look for /sys/kernel/iommu_groups/0/type
#asahi · 2021-06-10 14:29
sveni think arnd mentioned it might be a good idea to find a general way to set this for all broadcom (or even all wifi) devices
#asahi · 2021-06-10 14:29
svenyou can just set the pci bridge to external-facing, but that's ugly
#asahi · 2021-06-10 14:27
svenall we need to figure out is a sane way to set that untrusted thing for the wifi chip :)
#asahi · 2021-06-10 14:24
sven*disallow darts
#asahi · 2021-06-10 14:24
svenfwiw, there's already nice infrastructure in linux to allow darts in bypass mode. if pci->untrusted (or something like that) is set it won't allow any iommu in bypass mode unless you force it to
#asahi · 2021-06-10 10:12
svenand yeah, it's quite invasive changes on top of the platform split :/

plus ›