#asahi · 2021-05-31 19:35
jannausven: it complains here about the usleep() in apple_dart_hw_stream_command#asahi · 2021-05-31 19:12
jannauthe second one is 0x5B?#asahi · 2021-05-30 13:40
jannauwhat do you mean by available?#asahi · 2021-05-29 17:08
jannaucan you use Linux in qemu using mac os's hv.framework#asahi · 2021-05-29 17:07
jannauevery distro with with a rootfs already works#asahi · 2021-05-29 16:55
jannauthe wireless network adapter needs a little bit more work#asahi · 2021-05-29 16:53
jannaua usb network device might not be a bad idea for the laptop's. wired ethernet adapter in the mini should work once pcie works#asahi · 2021-05-29 16:48
jannauVaughn: sven is currently working on USB support for the USB-C ports. it works well enough to use an usb device as rootfs. usb networking works too#asahi · 2021-05-28 22:23
jannaumy fault. I had CONFIG_USB_DWC3_HOST set, still doesn't work tough#asahi · 2021-05-28 20:54
jannauthe device tree configures the dwc3 in host mode, changing dr_mode to "peripheral" seems to have no effect#asahi · 2021-05-28 20:45
jannaulinux has a cdc acm gadget, there is currently no support for using the m1 usb-c controller as device in linux except maybe in https://github.com/AsahiLinux/linux/tree/dart/dev#asahi · 2021-05-28 20:43
jannauit is a problem how m1n1 and linux interact with the m1 usb-c hardware #asahi · 2021-05-28 20:42
jannauinteraction with linux requires currently the serial. does the usb cdc gadget already work with the dart/dwc3 usb changes#asahi · 2021-05-28 20:39
jannauno, the second one is intended for use as virtual uart for the hypervisor#asahi · 2021-05-28 20:38
jannau3) I assume you mean neither. yes, there is no usb connection management in m1n1#asahi · 2021-05-28 20:37
jannau2) yes, we added a second cdc acm interface#asahi · 2021-05-28 20:36
jannau1) I guess it's safer to use the dtb from the kernel (arch/arm64/boot/dts/apple/t8103-j274.dtb) and not the one from m1n1#asahi · 2021-05-27 20:17
jannaubuilding m1n1 just takes 3 second. let's hope azure gets Ampere Altra nodes soon#asahi · 2021-05-27 20:14
jannaua little annoying that 90% of the build time is spent installing the cross compiler#asahi · 2021-05-27 20:12
jannauwould it make sense to make a CI build m1n1.macho available? https://github.com/AsahiLinux/m1n1/pull/64#asahi · 2021-05-27 17:35
jannaujust kick wifi off from the ADT#asahi · 2021-05-27 16:29
jannaupmp[17] overlaps with sgx#asahi · 2021-05-16 20:45
jannauyes#asahi · 2021-05-16 20:44
jannauno, just tracing the whole mmio space. the USB device was generating tons of reads at 0x50228c40c#asahi · 2021-05-16 14:17
jannauI guess tracing most of memory was not a good idea#asahi · 2021-05-16 14:16
jannauprocessing 1000 MMIO trace event takes 41 ms without printing. my linux notebook looks even slower but seems to have a infinite buffer#asahi · 2021-05-16 13:51
jannau"RuntimeWarning: overflow encountered in long_scalars base = 0xDEADBEEF * numpy.power(31337, len(data))"#asahi · 2021-05-16 13:51
jannausven: doesn't seem to make much of a difference here. I get following warning:#asahi · 2021-05-16 13:31
jannauit's my buffer handling#asahi · 2021-05-16 13:27
jannauprofile readfull 45056 calls took 88.323540 s#asahi · 2021-05-16 13:26
jannaureading from the serial and/or my naive buffer handling seems to be slow#asahi · 2021-05-16 12:56
jannauI already commented it out#asahi · 2021-05-16 12:56
jannausven: sure, although the checksum doesn't seem to cause the slowness I see#asahi · 2021-05-16 12:27
jannaulol, it looks like python is just too slow on the mac mini.if I buffer the serial data in python I get an constantly growing buffer and a python process using 100% CPU#asahi · 2021-05-16 11:32
jannaunot yet. the virtualized uart is currently output only#asahi · 2021-05-16 10:17
jannauproblem still there on mac os#asahi · 2021-05-16 10:12
jannaucable#asahi · 2021-05-16 10:12
jannaupossibly also a different usb-c cacle#asahi · 2021-05-16 10:12
jannauI'll move back to mac os to check if the client change fixed it#asahi · 2021-05-16 10:10
jannauusing a recent m1n1 (with usb support) as blessed kernel and using linux instead of mac os as client seems to have fixed#asahi · 2021-05-16 09:43
jannauit is at least not a problem of m1n1's USB dwc3 driver. I see the same problem over serial#asahi · 2021-05-16 09:24
jannauafter dumping the full event in uartproxy_send_event the broken data is different#asahi · 2021-05-16 09:23
jannaureply looks broken. two event headers: b'ff55aa0520000100ff55aa05200001000'...#asahi · 2021-05-16 08:31
jannau[0x000000081aa4f0f0] MMIO: W 0x23d2b001c (wdt, offset 0x1c) = 0x0#asahi · 2021-05-16 08:31
jannaubut the address lookup from the ADT seems to work:#asahi · 2021-05-16 08:30
jannau"Event checksum error: Expected 0x00000000, got 0xfabd736b"#asahi · 2021-05-16 08:30
jannauI must have missed something when redoing the MMIO trace setup from the stream. I get UartChecksumErrors after a while#asahi · 2021-05-15 10:35
jannaumy change rebased on main still works here#asahi · 2021-05-15 10:26
jannaui.e. without USB errors#asahi · 2021-05-15 10:25
jannaumarcan: running m1n1 as guest worked here without errors