#asahi · 2021-07-31 12:48
kettenis_but for some reason u-boot isn't happy about the "dma-ranges" proprty you added to the "soc" node#asahi · 2021-07-31 12:48
kettenis_so I now have a u-boot that uses the proposed DART DT bindings#asahi · 2021-07-31 12:46
kettenis_then it doesn't really matter what m1n1 does#asahi · 2021-07-31 12:46
kettenis_sven: using the bind function works so I'll just put the DART in bypass mode in u-boot#asahi · 2021-07-31 11:28
kettenis_ah, I think I could put the DART in bypass mode when the driver's bind function is called#asahi · 2021-07-31 11:18
kettenis_that's what the current code does, but it adds (for now) apple-specific code to the generic dwc3 host driver#asahi · 2021-07-31 11:04
kettenis_although I haven't figured out yet how to make the dart driver probe without another device driver explicitly referencing it#asahi · 2021-07-31 11:03
kettenis_I could set them into bypass mode in u-boot of course#asahi · 2021-07-31 11:01
kettenis_yup#asahi · 2021-07-31 11:00
kettenis_but things stopped working when I used m1n1 with u-boot as a payload#asahi · 2021-07-31 11:00
kettenis_I didn't notice because I was chainloading m1n1 from m1n1#asahi · 2021-07-31 10:58
kettenis_probably by design#asahi · 2021-07-31 10:58
kettenis_true#asahi · 2021-07-31 10:57
kettenis_it would be convenient for u-boot to have them in bypass mode, but for security reasons that may be undesirable#asahi · 2021-07-31 10:56
kettenis_so translations are enabled but the TTBRs don't have the valid bit set#asahi · 2021-07-31 10:55
kettenis_DART_TTBR: 0x0ad7f6bd#asahi · 2021-07-31 10:54
kettenis_DART_TCR: 0x00080080#asahi · 2021-07-31 10:51
kettenis_sven: did you see my message about the USB DARTs not being in bypass mode when m1n1 starts?#asahi · 2021-07-31 09:09
kettenis_I believe marcan's thinking about having a script run in the 1TR environment that just creates the APFS container/filesystem and populates it with bits downloaded from Apple's MacOS update server#asahi · 2021-07-31 08:46
kettenis_sven: there still needs to be a way to express that nvme depends on the remoteproc somehow#asahi · 2021-07-31 08:45
kettenis_sven: yeah, pretty sure this is a bug in the OpenBSD code#asahi · 2021-06-09 18:53
kettenis_sven: the code that resets the dwc3 dart into bypass mode isn't hooked up to the codepath that boots a kernel is it?#asahi · 2021-06-09 18:39
kettenis_bloom: what marcan says#asahi · 2021-06-08 09:24
kettenis_sven: so we'll need to work on the NVMe and IOP mailbox DT bindings as well...#asahi · 2021-05-28 07:10
kettenis_Emantor: wonder if that is because m1n1 isn't doing some of the PHY tuning at the moment#asahi · 2021-05-23 18:09
kettenis_the device tree is starting to become a mix of official bindings, bindings under review and the corellium bindings#asahi · 2021-05-23 18:08
kettenis_that has a cleaned up version of the code#asahi · 2021-05-23 18:08
kettenis_https://github.com/kettenis/u-boot/tree/apple-m1-m1n1-nvme#asahi · 2021-05-23 12:10
kettenis_once that's done I'll have a look at beating the u-boot nvme driver into submission#asahi · 2021-05-23 12:09
kettenis_two other OpenBSD developers have been working on the OpenBSD nvme driver for this thing#asahi · 2021-05-23 12:07
kettenis_(probably GRUB for Linux)#asahi · 2021-05-23 12:07
kettenis_I want u-boot to be able to access the NVMe such that it can load the EFI bootloader from it#asahi · 2021-05-23 12:04
kettenis_(I can build you a version that does that automatically if you want)#asahi · 2021-05-23 12:04
kettenis_to activate the nvme stuff you need to enter "nvme scan" at the u-boot prompt#asahi · 2021-05-23 12:03
kettenis_https://sibelius.home.xs4all.nl/m1/#asahi · 2021-05-23 12:01
kettenis_(I might have broken it with the NVMe support though)#asahi · 2021-05-23 12:01
kettenis_that was already working in u-boot to access the GPIO that turns on the WiFi chip#asahi · 2021-05-23 12:00
kettenis_the SMC side-core is already running but still needs the mailbox handshake to make it accept commands from the AP side#asahi · 2021-05-23 11:59
kettenis_it'll boot a standard OpenBSD snapshot install image from usb#asahi · 2021-05-23 11:58
kettenis_at least the bits that start the core and get the firmware ready#asahi · 2021-05-23 11:58
kettenis_marcan: I can give you a u-boot binary + device tree that you could chainload#asahi · 2021-05-23 11:56
kettenis_I think it is important to stress that we really, really want to express the clock hierarchy in the device tree instead of the driver#asahi · 2021-05-23 11:54
kettenis_right#asahi · 2021-05-23 11:54
kettenis_I have U-Boot booting the side-core that acts as the NVMe controller#asahi · 2021-05-23 11:53
kettenis_and the dart stuff? ;);)#asahi · 2021-05-23 11:52
kettenis_not, they deviated even more#asahi · 2021-05-23 11:51
kettenis_The first signs of life from the NVMe SSD in OpenBSD#asahi · 2021-05-23 11:51
kettenis_sd0: 239372MB, 4096 bytes/sector, 61279344 sectors#asahi · 2021-05-23 11:51
kettenis_sd0 at scsibus0 targ 1 lun 0: <NVMe, APPLE SSD AP0256, 2.10>#asahi · 2021-05-23 11:50
kettenis_scsibus0 at nvme0: 2 targets, initiator 0