#
✕ nick:sven
#asahi · 2021-06-08 13:18
svenyeah, probably
#asahi · 2021-06-08 13:05
sven*relies
#asahi · 2021-06-08 13:05
sventhis still heavily lies on u-boot to bring this all up ;)
#asahi · 2021-06-08 13:04
svennvme isn't behind a dart fwiw
#asahi · 2021-06-08 12:09
svenonly if you do the pcie init dance that u-boot usually does
#asahi · 2021-06-08 10:25
sveni patched the kernel to printk those values after nvme_identify_ctrl and i think they're all zero
#asahi · 2021-06-08 10:15
sveni only have a very minimal ramdisk that comes without nvme. any other way to get that info?
#asahi · 2021-06-08 09:35
svenwouldn't be surprised if this just trashes some random memory for me then ;)
#asahi · 2021-06-08 09:32
svenah, so they'll trash random memory that uboot left setup then? fun
#asahi · 2021-06-08 09:28
sven*yeah
#asahi · 2021-06-08 09:28
svenbut other than that... hea.
#asahi · 2021-06-08 09:28
svenkettenis: so i've been ignoring the mailbox for now and just let uboot handle that
#asahi · 2021-06-08 08:27
sven(plus all the apple specific stuff ofc)
#asahi · 2021-06-08 08:27
sventhe pcie side is completely untested and the platform side needed two or three on line changes
#asahi · 2021-06-08 08:26
sveni just had half an hour while waiting for something to install on my actual work machine and figured i'd give it a try
#asahi · 2021-06-08 08:24
svenit almost worked though ;)
#asahi · 2021-06-08 08:24
svenhttps://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=nvme-platform "This is completely untested and probably does not work."
#asahi · 2021-06-08 08:22
sven(and, as usual, i'm just doing the plumbing. this is mostly based on arnd's nvme platform split)
#asahi · 2021-06-08 08:22
svenprobably
#asahi · 2021-06-08 08:21
svenstill a big fat hack though
#asahi · 2021-06-08 08:21
sven:-)
#asahi · 2021-06-08 08:21
sven[ 0.242694] nvme0n1: p1 p2 p3 p4 p5 p6
#asahi · 2021-06-07 18:52
svenif i wanted to just get something somehow working we would have a kernel+distro hacked together a few months ago already ;)
#asahi · 2021-06-07 18:52
sveni first want to get the DART driver and the clocks upstreamed though
#asahi · 2021-06-07 18:51
sveneventually, yeah
#asahi · 2021-06-07 18:50
svenso if you want to hack it just spawn a thread that polls and checks if it's connected and if not resets it once
#asahi · 2021-06-07 18:50
svenyou also only need to reset once
#asahi · 2021-06-07 18:49
svenyeah, no
#asahi · 2021-06-07 18:49
svenbut once we figure that out mode switching should just work as well
#asahi · 2021-06-07 18:49
svenoh, when you try to switch you'll run into the "using the same port twice isn't supported" issue :D
#asahi · 2021-06-07 18:48
sveni didn't try switching but the same phy init pokes i have work for either mode without an additional phy driver in linux
#asahi · 2021-06-07 18:44
sventurns out you don't actually need a different phy init sequence for gadget/host mode (at least for usb2)
#asahi · 2021-06-07 18:43
svenhost mode should just work as well there
#asahi · 2021-06-07 18:43
svensame if you start if from m1n1 with my pr *shrug*
#asahi · 2021-06-07 18:33
sventhat should be the usb dart
#asahi · 2021-06-07 18:33
svenread32(0x382f00000) = 0x8ee01020
#asahi · 2021-06-07 18:32
svendart_params[0] = 0x2ed01010 for the display dart here
#asahi · 2021-06-07 18:32
sveni don't understand that fomat
#asahi · 2021-06-07 18:32
svenuh
#asahi · 2021-06-07 18:31
svenit should be 0xe
#asahi · 2021-06-07 18:31
svenhuh, that's weird
#asahi · 2021-06-07 18:30
svenor am i missing something?
#asahi · 2021-06-07 18:30
svenit's doing 0x4000 > PAGE_SIZE
#asahi · 2021-06-07 18:29
svenshift?
#asahi · 2021-06-07 18:26
svenhrm, can't find my old code anymore
#asahi · 2021-06-07 18:23
sveniirc the region was encoded in the top 24 or so bits of the PTE and you had to clear bit 0 or 1 to enable it
#asahi · 2021-06-07 18:22
svenno, because i'm not 100% sure how it works
#asahi · 2021-06-07 15:51
svenhm, but i think we'll somehow need the wireless device in the dt anyway since it needs that special poweron sequence
#asahi · 2021-06-07 15:46
sventrue
#asahi · 2021-06-07 15:41
svenso if something is untrusted the dart driver will never see a IOMMU_DOMAIN_IDENTITY unless the user forces it

plus ›