#asahi-dev · 2023-12-26 12:33
kettenisthe dcp driver enters some of the buffers into both the disp0 and dcp DARTs with the same iova#asahi-dev · 2023-12-26 12:32
kettenisI also noticed something else that's weird with the apple,dma-range properties for some of the SoCs#asahi-dev · 2023-12-26 12:30
kettenisjanneg: that is exactly what I mean#asahi-dev · 2023-12-26 11:25
jannegkettenis: what do you mean? iova's out of the annotated dma-range? dma-range came later and nobody updated m1n1#asahi-dev · 2023-12-25 15:54
kettenisI think that is wrong#asahi-dev · 2023-12-25 15:52
kettenishmm, the iommu-addresses properties under /reserved-memory have truncated IOVA's#asahi-dev · 2023-12-24 15:14
kit_ty_katechadmed: if restarting both the pipewire and wireplumber services is enough, i'm not sure i can hear the difference from before with this branch and the default settings#asahi-dev · 2023-12-23 01:19
mariogriphumm it fails to boot now, i even tried to run kmutil configure-boot with the stock kernel, but still fails#asahi-dev · 2023-12-23 00:49
mariogripok so i cannot use /Library/KernelCollections as output dir, just used home and it worked fine#asahi-dev · 2023-12-23 00:46
mariogripjanneg: I get "NSPOSIXErrorDomain" operation not permitted when trying to run kmutil create#asahi-dev · 2023-12-22 07:12
jannegmariogrip: yes, see https://github.com/AsahiLinux/macvdmtool#note-about-macos-12 and adapt#asahi-dev · 2023-12-22 00:08
mariogripDo i need to turn off AppleSerialShim when im not planing to get anything from the macos kernel?#asahi-dev · 2023-12-22 00:02
mariogripthis is on an m3 pro so not supported by m1n1, but trying to get it working :D#asahi-dev · 2023-12-22 00:00
mariogripHow do i get super early uart before m1n1, i have 2 macs connected and using macvdmtool, but i cannot seem to get the tty to appear#asahi-dev · 2023-12-21 16:00
entourloopOK, thanks for your help. I'll try to get that output :)#asahi-dev · 2023-12-21 16:00
entourloopYes#asahi-dev · 2023-12-21 15:57
j`eyentourloop: and youve set the TARGET variable when building?#asahi-dev · 2023-12-21 15:57
svenyeah, if you chainload and can see serial over the SBU1/2 lines before that chainload you should be able to see them#asahi-dev · 2023-12-21 15:56
entourloop(And to read characters from debug_putc(), I mean)#asahi-dev · 2023-12-21 15:55
entourloopSo if I issue a VDM serial command (using macvdmtool instance) and then chainload m1n1 after the RELEASE m1n1, SBU 1/2 should be muxed to the UART channel, right? The question being: is it a matter of getting the right USB-C cable or do I need to prepare a breakout board + an Arduino to issue VDM commands?#asahi-dev · 2023-12-21 15:48
svenwhen the SBU lines aren't muxed to UART RX/TX those chars will just go to nowhere#asahi-dev · 2023-12-21 15:47
j`eymy guess is that it work(ed) with the fusb32/hardware serial?#asahi-dev · 2023-12-21 15:47
svensounds like whatever you use to mux out the serial lines isn't quite ready that early#asahi-dev · 2023-12-21 15:46
entourloopthe ADT and grabbing uart0's address, of course). Is there a specific way to display those characters?#asahi-dev · 2023-12-21 15:45
entourloopHi everyone, I hope this is the right channel. I have a question about debug_putc() in the code. When EARLY_UART_BASE is specified (which happens by declaring TARGET in config.h), it's supposed to emit characters through the UART channel. The thing is, those characters don't seem to ever appear on the USB-C serial channel, whereas printf() calls work fine using the same interface (after initializing #asahi-dev · 2023-12-21 15:45
ahdeb[m]Would love a blog post with 2023 recap and 2024 predictions if you dare! Is this the year we'll see complex rust drivers being mainlined?#asahi-dev · 2023-12-20 21:33
jannegthe interface is stable-ish but there is enough churn from release to release to be annoying#asahi-dev · 2023-12-20 21:31
Lyudeattractive to new contributors anyway (and start finally pushing things forward regarding actual rust code in the mainline kernel)#asahi-dev · 2023-12-20 21:31
Lyudewell feel free to let me and folks like airlied/danilo/karolherbst know. We're already planning on doing the main driver in rust, while it'd be nice to be able to keep our display driver we sort of agreed the effort to make bindings between that and the main rust driver would be more effort then we'd like - and plus we'd kind of like everything to be in rust to make it more#asahi-dev · 2023-12-20 21:30
jannegI want to rewrite it in Rust but I'm not sure if I ever find time for it#asahi-dev · 2023-12-20 21:29
Lyudeat least they're documented bags though!#asahi-dev · 2023-12-20 21:29
Lyudechaos_princess: yeah we just get bags of bytes :(#asahi-dev · 2023-12-20 21:29
j`eyhttps://github.com/AsahiLinux/linux/blob/asahi/drivers/gpu/drm/apple/iomfb_v13_3.h#L9 version+template#asahi-dev · 2023-12-20 21:28
chaos_princessi'd say dcp is a bit more stable-ish, since they have their cursed rpc protocol and some items are serialized dicts and not just bags of bytes.#asahi-dev · 2023-12-20 21:28
jannegLyude: it's mostly annoying to do in C. It uses #defines with multiple inclusion of template fiels#asahi-dev · 2023-12-20 21:27
j`eyLyude: DCP uses macros and 'templates' to support different versions#asahi-dev · 2023-12-20 21:26
Lyudekettenis: good to know :p, we're kind of in a similar situation with nova since we don't really have much of a stable ABI guarantee from nvidia at the moment with GSP#asahi-dev · 2023-12-20 21:25
jannegcyrinux: no, just the kernel#asahi-dev · 2023-12-20 21:24
kettenisthe ABI differences cause problems, regardless of whether the driver is written in C or rust ;)#asahi-dev · 2023-12-20 21:23
LyudeHave the ABI differences with apple's firmware caused any problems for the KMS driver seeing as it's written in C?#asahi-dev · 2023-12-20 21:22
j`eyI think there was talk a year or so ago of doing it in rust.. but the C/driver has grown a lot since then#asahi-dev · 2023-12-20 21:21
LyudeI guess that makes sense lol#asahi-dev · 2023-12-20 21:21
LyudeOh#asahi-dev · 2023-12-20 21:21
j`eyLyude: one for the touchbar#asahi-dev · 2023-12-20 21:21
Lyudethere's two of them?#asahi-dev · 2023-12-20 21:21
j`eybut it's still probably helpful.. maybe#asahi-dev · 2023-12-20 21:21
chaos_princessboth asahi kms drivers are in c#asahi-dev · 2023-12-20 21:20
Lyudeyeah I meant KMS :p#asahi-dev · 2023-12-20 21:20
j`eyjust realised#asahi-dev · 2023-12-20 21:20
j`eyyeah