#
#asahi-dev · 2025-10-27 15:34
chaos_princessrtkit.c
#asahi-dev · 2025-10-27 15:33
jnnis there a document somewhat that summarizes the current knowledge about RTKit and its protocols?
#asahi-dev · 2025-10-26 22:07
iretqyup, stupid copy paste mistake :P fortunately i found this out quick enough and now i'm working on hooking it up to the rest of the uefi firmware
#asahi-dev · 2025-10-26 22:06
nicolas17iretq: so you had both sq and cq on the same piece of memory? :D
#asahi-dev · 2025-10-26 20:42
iretqwow, i found out what the issue was - i was passing the address of the sq ring buffer when creating the io cq... really dumb :) it turns out i was right that it was going to be the dumbest mistake and i'll be stuck on it for the longest time, but now i've got nvme read working 🎉
#asahi-dev · 2025-10-26 19:45
iretqany pointers
#asahi-dev · 2025-10-26 19:45
iretqnamespace, but when i try to submit an io command the controller seems to hang? and when i submit another io or admin command i get an rtkit panic "assert failed: [7446]:duplicate tag error for tag 0", i'm not sure what to look at next because i've been doing pretty much what m1n1 does for nvme and it seems to work there :^) i'd really appreciate
#asahi-dev · 2025-10-26 19:45
iretqhi, i'm the person working with amarioguy on getting nvme to work for the mu uefi firmware, i read the chat logs from earlier today and it indeed seems that after getting rtkit up it's smooth sailing but i'm having a weird issue that i'm not sure how to solve: i can submit admin commands just fine, as in create io cq and sq, identify controller and
#asahi-dev · 2025-10-26 15:28
sventhe spec is also pleasant to read unlike any other spec I’ve come into contact with
#asahi-dev · 2025-10-26 15:28
svenonce you have rtkit and mailbox you can do that in maybe 500 lines or code
#asahi-dev · 2025-10-26 15:27
svennvme is at least quite simple
#asahi-dev · 2025-10-26 15:27
svenah
#asahi-dev · 2025-10-26 14:29
amarioguysorry we're* writing, keep forgetting it's not just me anymore, it's been solo for so long
#asahi-dev · 2025-10-26 14:28
amarioguykinda need internal storage to work for windows to be anywhere remotely usable :P
#asahi-dev · 2025-10-26 14:28
amarioguyfor the efi implementation i'm writing
#asahi-dev · 2025-10-26 14:20
svenfor what?
#asahi-dev · 2025-10-26 14:12
amarioguym1n1 is probably doing a ton of heavy lifting here tbf
#asahi-dev · 2025-10-26 14:11
amarioguygood news is nvme is looking to be easier than expected, a third person is helping out on that regard lol
#asahi-dev · 2025-10-26 14:11
amarioguyah good to know, definitely feel like regardless my co-dev and i got quite a bit of debugging ahead of us if we want xhci working...
#asahi-dev · 2025-10-26 14:02
sventhe de-bouncing isn't strictly required but prevents silly things like bringing up and then tearing down dwc3 for like 4 times in <1s
#asahi-dev · 2025-10-26 14:02
amarioguyah fun
#asahi-dev · 2025-10-26 14:02
sventl;dr: do everything from the same thread and de-bounce any change tipd requests by 500ms
#asahi-dev · 2025-10-26 14:01
amarioguynice
#asahi-dev · 2025-10-26 14:01
svenwith the glue driver and tipd code it's surprisingly stable
#asahi-dev · 2025-10-26 14:01
amarioguyshudders at the thought of disconnect/reconnect events
#asahi-dev · 2025-10-26 14:00
amarioguyyay
#asahi-dev · 2025-10-26 13:52
svenhttps://lore.kernel.org/asahi/20251026-b4-atcphy-v1-0-f81b1225f9c6@kernel.org/
#asahi-dev · 2025-10-26 13:23
svenguess i'll grab some food and submit it then
#asahi-dev · 2025-10-26 13:22
svenseems to work
#asahi-dev · 2025-10-26 13:22
svenduh, yup
#asahi-dev · 2025-10-26 13:11
jannauyes, it should. introduce a blatent error to see if it complains
#asahi-dev · 2025-10-26 13:07
svenjust trying to make sure I don't mess that up again
#asahi-dev · 2025-10-26 13:07
svenmake dt_binding_check dtbs_check DT_SCHEMA_FILES=apple,atcphy.yaml should be enough to make sure the bindings doesn't have obvious mistakes, shouldn't it?
#asahi-dev · 2025-10-26 13:05
sventhanks!
#asahi-dev · 2025-10-26 13:02
jannauReviewed-by: janne
#asahi-dev · 2025-10-26 13:01
jannauthe `sizeof(u32)` is a little annoying but I don't see a nice alternative and we can't change it anyway since it's DT based
#asahi-dev · 2025-10-26 12:57
sven+ } values[] __counted_by(sz);
#asahi-dev · 2025-10-26 12:57
sven- } values[];
#asahi-dev · 2025-10-26 12:57
svenack
#asahi-dev · 2025-10-26 12:54
jannauI was looking at that
#asahi-dev · 2025-10-26 12:54
svenah nice, i'll add that to the tunables
#asahi-dev · 2025-10-26 12:53
jannauso other way around
#asahi-dev · 2025-10-26 12:53
jannauthere is. `__counted_by()` on the flexible array
#asahi-dev · 2025-10-26 12:53
svenno idea, don't think i ever saw that
#asahi-dev · 2025-10-26 12:52
jannauisn't there a a thing to annotate a struct member that it contains the length of the flexible array member?
#asahi-dev · 2025-10-26 12:46
svenhttps://git.kernel.org/pub/scm/linux/kernel/git/sven/linux.git/log/?h=b4/atcphy probably gonna send that out this evening
#asahi-dev · 2025-10-26 06:41
svenah nice
#asahi-dev · 2025-10-25 21:26
jannausven: btw the atc retimer might not be annoying at all. they are already present on m2* devices
#asahi-dev · 2025-10-25 21:17
terrhopefully :D
#asahi-dev · 2025-10-25 21:17
terrinteresting, okay. thanks for the tips, this should be enough to get me started

plus ›