#asahi · 2021-08-14 08:24
svenlike, it's actually possible to understand how this works just from the specification#asahi · 2021-08-14 08:23
svenhuh, i just started reading the nvme spec and it seems surprisingly sane so far#asahi · 2021-08-13 21:23
svenprint everything possible as ascii, but the rest as escaped bytes#asahi · 2021-08-13 21:22
svenit's a weird python default#asahi · 2021-08-13 21:20
svenchr(49) = "1", so maybe the 1 next to OIPG?#asahi · 2021-08-13 21:16
sven(just the keyboard node)#asahi · 2021-08-13 21:16
svencan you post the ADT for that somewhere? i only have one from my mini#asahi · 2021-08-13 21:14
svenfor which device is that?#asahi · 2021-08-13 21:04
sventrue#asahi · 2021-08-13 21:01
sven:D#asahi · 2021-08-13 20:59
svenit's either two numbers or some flag i guess#asahi · 2021-08-13 20:59
svenbut less odd :)#asahi · 2021-08-13 20:58
svenj_ey: 0x6000001#asahi · 2021-08-13 18:33
svenah yes, the "very fast planned obsolescence" where they deliver updates for 5+ year old devices #asahi · 2021-08-13 16:31
svenhttps://github.com/AsahiLinux/linux/tree/dart/4kpgsize if anyone wants some data corruption using a 4k pagesize kernel. (on a more serious note, it probably works but i still need to triple-check the changes in that one WIP commit and test if this still works with 16k pages)#asahi · 2021-08-11 15:55
svenno idea where it came from, but it works for me#asahi · 2021-08-11 15:55
svenalyssa: https://f.svpe.de/ef85f68951ed6a14ae83221c6d52dc3561c18132241e3b2e4f66f8672872fbb5_.config so that's my u-boot config#asahi · 2021-08-11 15:44
sveni'm happy with uart though ;)#asahi · 2021-08-11 15:43
svenit's a start :D#asahi · 2021-08-11 15:43
svenframebuffers are overrated.#asahi · 2021-08-11 15:39
sveni don't even know if it has a framebuffer#asahi · 2021-08-11 15:38
svendunno how to go from here. i've never debugged u-boot. i just treated it as a black box that i needed to hack a little bit to get pcie up and running#asahi · 2021-08-11 15:37
svenhrm... now if you had a hardware uart you could check what u-boot complains about#asahi · 2021-08-11 15:35
svenjust remove bootenv.append("baudrate=%d" % tty_dev.baudrate) i guess#asahi · 2021-08-11 15:35
sveni've only ever tested that with a hardware UART. it patches u-boot in memory to setup the correct baudrate for that#asahi · 2021-08-11 15:34
svenah.. so, uh, that might just be my u-boot hack#asahi · 2021-08-11 15:30
svenso that dtb patch just changes "map these devices to SID 1" to "map these devcies to SID 0" which then works out#asahi · 2021-08-11 15:30
svenand any device that is not configure to a specific sid gets tagged with zero by default#asahi · 2021-08-11 15:29
sventhat pci code in linux probably need some support to take care of that. there's another pci driver that also needs that but only during init time#asahi · 2021-08-11 15:29
svenso the issue with that iommu-map is that apple's pcie controller allows you to essentially configure a pcie rid to sid map in some register#asahi · 2021-08-11 15:27
svenyou must be mistaken! all my code is immensely beautiful and never contains any hacks whatsoever :-P#asahi · 2021-08-11 15:25
svenu-boot#asahi · 2021-08-11 15:24
svenit's... not great. but now that DART is on its way to mainline we should be able to make this nicer#asahi · 2021-08-11 15:24
svenand then i use python3 proxyclient/tools/linux.py -u ../u-boot/u-boot-nodtb.bin -t /dev/cu.debug-console --bootargs="earlycon rw root=/dev/sda1 rootwait rootfstype=ext4" Image.gz ../u-boot/u-boot.dtb#asahi · 2021-08-11 15:23
sven+ <0x300 &pcie0_dart_2 0 1>;#asahi · 2021-08-11 15:23
sven+ <0x200 &pcie0_dart_1 0 1>,#asahi · 2021-08-11 15:23
sven+ iommu-map = <0x100 &pcie0_dart_0 0 1>,#asahi · 2021-08-11 15:23
sven- <0x300 &pcie0_dart_2 1 1>;#asahi · 2021-08-11 15:23
sven- <0x200 &pcie0_dart_1 1 1>,#asahi · 2021-08-11 15:23
sven- iommu-map = <0x100 &pcie0_dart_0 1 1>,#asahi · 2021-08-11 15:23
svenyeah#asahi · 2021-08-11 15:23
svenyou may have to adjust the iommu-maps, let me check#asahi · 2021-08-11 15:22
sventhe dt from u-boot should give you pcie then#asahi · 2021-08-11 15:22
svenalyssa: https://f.svpe.de/66488f63476f52f57d48cdc44d06c4aec86c62050ca00792bcba92c8f724d55c_0001-WIP.patch and https://f.svpe.de/88f8159ac9ff9972a17484e43d8bcdf984929fce54daae7d7b148e3afeb0a11f_0002-pcie-hacks.patch#asahi · 2021-08-11 10:58
svenhm... still very strange. please let me know if this happens again, could still be very subtle bug in the DART driver#asahi · 2021-08-11 06:20
svensure, i'm also working (read: waiting for something to finish and chatting in the meantime ;))#asahi · 2021-08-11 06:18
svenjust to make 100% sure the bug is already present there#asahi · 2021-08-11 06:17
svenyes#asahi · 2021-08-11 06:16
svenjust no additional commits#asahi · 2021-08-11 06:14
svenbut it would still be great if you could try with just the iommu patches