#
✕ nick:sven
#asahi · 2021-08-21 21:20
svenhm.. that should work
#asahi · 2021-08-21 21:20
svenand baudrate etc. shouldn't matter there
#asahi · 2021-08-21 21:20
svendid you open the secondary usb interface?
#asahi · 2021-08-20 19:50
svenam i allowed to object to sharing it? :D
#asahi · 2021-08-20 19:09
svensounds good :-)
#asahi · 2021-08-20 19:08
svenspeaking of whatever nobody else wants to do... how are those clocks coming along? :P
#asahi · 2021-08-20 18:44
svenhe's the only one working full time on it, so especially very time-intensive tasks can realistically only be done by him
#asahi · 2021-08-20 09:50
svenah yes, because linux runs totally fine on every x86 machine you can find
#asahi · 2021-08-20 08:55
svenand then apple also ignores part of the arm specifications and does their own thing (like the FIQs or that stuck VHE bit)
#asahi · 2021-08-19 13:50
svenand there's also dart/4kpgsize which makes dart work on 4k kernels, but i still need to convince myself about one commit in there. seems to work though
#asahi · 2021-08-19 13:49
sventhere's i2c/dev which i abandoned for some reason and which didn't do anything very useful except for enumerating that usb pd chip because the gpio interrupt support was missing
#asahi · 2021-08-19 13:46
svenmarcan: uh, i think the most interesting one is probably nvme/new. that's still heavily WIP though, but i hope to get at least the mailbox part into a sane state this evening
#asahi · 2021-08-18 15:52
svenhehe, sure :)
#asahi · 2021-08-18 15:51
sveni'm not sure i added even a single comment
#asahi · 2021-08-18 15:51
svenno :D
#asahi · 2021-08-18 15:50
sven<sven> uh, yeah, that main .c file is essentially pci.c with lots of stuff removed like the maintainers suggested. it's not done yet
#asahi · 2021-08-18 15:14
svenyeah, and because marcan suggested that rtkit library and i wanted to see how that would work out
#asahi · 2021-08-18 15:13
svenalyssa: that line is actually correct though
#asahi · 2021-08-18 15:13
svenand that compat shim is because i splitted the rtkit stuff from the mailbox. i used that initially during testing to make sure e.g. smc still works
#asahi · 2021-08-18 15:12
svenalyssa: uh, yeah, that main .c file is essentially pci.c with lots of stuff removed like the maintainers suggested. it's not done yet
#asahi · 2021-08-18 14:31
sventurns out that i just forgot to hook up the common nvme shutdown code to the platform driver
#asahi · 2021-08-18 14:30
svenhttps://github.com/asahilinux/linux/tree/nvme/new still pretty rough and i'm not yet happy with the rtkit stuff, but this at least fixes the "uncleanShutdown" issue
#asahi · 2021-08-18 06:07
svenalyssa: xnu calls it like that in strings
#asahi · 2021-08-17 20:14
sven*reserved
#asahi · 2021-08-17 20:14
sveni'd claim that what we call NVMMU actually isn't an IOMMU-like block, but it's handled inside PPL which is usually reserve for stuff like iommus
#asahi · 2021-08-17 20:13
sveni'm still confuse about the io queue dma buffer :/
#asahi · 2021-08-17 20:11
svennothing on the ANS mailbox, but i should also trace the SMC mailbox.
#asahi · 2021-08-17 20:03
sven*:/
#asahi · 2021-08-17 20:03
svenand weird, the shutdown process looks like a normal nvme shutdown process. so why doesn't it complain about an uncleanReboot only when macOS does it? :.
#asahi · 2021-08-17 19:37
svenbut then the nvmmu entry is deleted but ANS can still access the io queue dma buffer just fine. so where exactly is it still whitelisted?!
#asahi · 2021-08-17 19:36
svenuh... i just realized something weird about the nvme iommu. so the normal io queue is created using an admin io queue command with the dma specified in one of the fields. that dma address is whitelisted using the nvmmu. so far so good
#asahi · 2021-08-17 09:40
svenit'll certainly map the size rounded up to the next PAGE_SIZE, but accessing anything past 0x1000 is probably undefined then :)
#asahi · 2021-08-17 09:40
svenyou can just map a single page
#asahi · 2021-08-17 09:39
svenwhat probably happens internally is that the address decoding/muxing logic uses the upper $whatever bits and some of the lower address lines either just aren't connected or are ignored by the gpio/pinctrl hw block
#asahi · 2021-08-17 09:34
svenyeah
#asahi · 2021-08-17 09:33
sventhere's also one DART that has a size of 0x20000 or so but is really just the same 16k repeated over and over
#asahi · 2021-08-17 09:33
sventhat's pretty common in the ADT fwiw
#asahi · 2021-08-16 10:23
svenyeah, as i said: doing something weird
#asahi · 2021-08-16 10:20
svenand it sounds like you're doing something weird
#asahi · 2021-08-16 10:20
svenuhh... no
#asahi · 2021-08-16 10:19
svenpipcet[m]: what do you mean by that?
#asahi · 2021-08-16 10:19
svenerm.. that wouldn't help you there
#asahi · 2021-08-16 10:18
svenyeah, i'm pretty sure you could even run linux with the various patches for M1 support on the T2 with some minor changes
#asahi · 2021-08-16 10:16
svenwhat used to be the T2 is literally the M1 now
#asahi · 2021-08-16 10:15
sventhe T2 also has an SEP afaik
#asahi · 2021-08-16 10:15
sventhe T2 became the main SoC
#asahi · 2021-08-16 10:15
svenuh, no
#asahi · 2021-08-16 10:09
svenmight be more accurate to say that the intel chip got removed and the T2 chip was improved :D
#asahi · 2021-08-16 10:08
svenhttps://github.com/libimobiledevice/idevicerestore
#asahi · 2021-08-16 10:07
sventhere's at least a PR that got merged so i assume it works :-)

plus ›