#
✕ nick:kettenis
#asahi · 2021-07-26 14:06
kettenisat this point, yes
#asahi · 2021-07-26 14:05
kettenisthat's how it attaches on OpenBSD
#asahi · 2021-07-26 14:05
kettenisnvme0: APPLE SSD AP0256Q, firmware 2.120.4, serial 0ba010fae425241b
#asahi · 2021-07-26 14:05
kettenisnvme0 at aplns0: NVMe 1.1
#asahi · 2021-07-26 14:04
kettenisaplns0 at simplebus0
#asahi · 2021-07-26 14:04
kettenisalthough I still need to clean this up a bit in U-Boot
#asahi · 2021-07-26 14:04
kettenisI've already got this working in OpenBSD and U-Boot
#asahi · 2021-07-26 14:02
kettenisso arnds platform device shim driver would activate the mailbox
#asahi · 2021-07-26 14:01
kettenisyup
#asahi · 2021-07-26 14:01
kettenismboxes = <&ans_mbox 32>;
#asahi · 2021-07-26 14:01
kettenisso if we model the ASCs as mailbox devices, referencing the ANS is simple:
#asahi · 2021-07-26 13:59
kettenisnvme binding is fairly straightforward
#asahi · 2021-07-26 13:58
kettenisfake pci bus is retarded
#asahi · 2021-07-26 13:56
ketteniswe'll need to come up with dt bindings for these things at some point
#asahi · 2021-07-26 13:54
kettenissome mechanism is needed to program the SART
#asahi · 2021-07-26 13:12
kettenisme ;)
#asahi · 2021-07-26 08:58
kettenisu-boot does reserve the memory
#asahi · 2021-07-26 08:57
kettenisso one tricky thing about IOPs is that after bringing them up you either have to shut them down again or make sure the memory you've given them is reserved
#asahi · 2021-07-26 08:34
kettenismaz: I know the feeling; every time I want to send a patch I need to lookup the magic git send-email incantation
#asahi · 2021-07-25 21:21
kettenisI would expect apple to provide a decent amount of power through the type-C ports
#asahi · 2021-07-25 21:00
kettenisso maybe I should try to move u-boot over to your dart bindings then
#asahi · 2021-07-25 20:59
kettenisat some point we'll need to coordinate changes to the actual device tree
#asahi · 2021-07-25 20:59
kettenislooks like the pinctrl binding has made it into linus' tree
#asahi · 2021-07-25 20:53
kettenissomeone threw me a riscv curveball so that has distracted me a bit
#asahi · 2021-07-25 20:52
kettenismaybe I should do a respin to fix the unneeded include issue that was spotted in v4
#asahi · 2021-07-25 20:51
kettenisstill waiting for maz to bless the MSI stuff
#asahi · 2021-07-25 20:46
kettenisso I suspect the code we have that deals with the weird way apple does the command queues isn't quite right yet
#asahi · 2021-07-25 20:45
kettenisbut they disappear if I don't issue multiple commands in parallel
#asahi · 2021-07-25 20:45
kettenisdon't know unfortunately
#asahi · 2021-07-25 20:44
kettenisI also have a workaround for the hangs I was seeing, so I can actually run off the NVMe and do a full build of the OS now
#asahi · 2021-07-25 20:43
kettenisso after processing a few more mailbox messages in u-boot I don't see any further messages when using NVMe in OpenBSD
#asahi · 2021-07-25 20:41
kettenisnothing from my point of view ;)
#asahi · 2021-07-25 20:40
kettenisor is this just for playing around with this
#asahi · 2021-07-25 20:40
kettenisyou want to move that into m1n1?
#asahi · 2021-07-25 20:39
kettenisu-boot adds entries for syslog/crashlog pages of the ASC
#asahi · 2021-07-25 20:39
kettenissven, the SART is already partly setup
#asahi · 2021-07-22 18:17
kettenisso the node in /reserved-memory basically just needs am appropriate compatible string and a reg property
#asahi · 2021-07-22 18:09
kettenisthat stuff doesn't really interest me as it makes tinkering impossible
#asahi · 2021-07-22 18:09
kettenisbut maybe i'm mistaken
#asahi · 2021-07-22 18:09
kettenisi thought some of the u-boot approaches for secure boot did sign the initrd
#asahi · 2021-07-22 18:07
kettenisdoesn't redhat do full secure boot, at least on x86?
#asahi · 2021-07-22 18:00
kettenisdoubt Apple will give permission to distribute it
#asahi · 2021-07-22 17:54
kettenisI suspect that modifying initrd isn't going to play nice with distros that sign the initrd
#asahi · 2021-07-22 17:52
kettenisbut it already is in memory
#asahi · 2021-07-22 17:52
kettenisto load firmware into memory...
#asahi · 2021-07-22 17:51
kettenisthe initrd approach isn't going to work on non-linux OSes...
#asahi · 2021-07-22 17:51
kettenisInstead of putting the SEPFW in the initrd, can't we just pass its address and size along in the device tree somehow?
#asahi · 2021-07-13 10:01
kettenisso I need to tweak the state machine a bit
#asahi · 2021-07-13 09:59
kettenisfound out yesterday that u-boot leaves the IOPs in a state where there are still pending messages
#asahi · 2021-07-13 09:44
kettenisthe SMC coprocessor is running when u-boot starts, the NVMe one isn't and needs a kick through the 0x0044 register

plus ›