#
#asahi-dev · 2024-01-11 17:16
sventhe rest is just half-knowledge and there are better people to ask :)
#asahi-dev · 2024-01-11 17:16
svenand that’s also where most of what I actually know about brcmfmac stops
#asahi-dev · 2024-01-11 17:14
sventhe Bluetooth hardware works pretty much like this
#asahi-dev · 2024-01-11 17:14
svenfrom what little I’ve seen of bcrmfmac it also does something similar to this
#asahi-dev · 2024-01-11 17:13
svenso essentially you have one (or more) ringbuffers where one sides writes messages and increments the write pointer (which usually triggers an irq for the other side) and the other side reads messages and increments the read pointer
#asahi-dev · 2024-01-11 16:59
nicolas17(since iouring was inspired by I/O hardware)
#asahi-dev · 2024-01-11 16:59
nicolas17sven: yeah but see, I know *less* than that :P I never wrote any kind of kernel driver, I'm *assuming* the way "message rings" work for this kind of hardware communication is conceptually similar to iouring?
#asahi-dev · 2024-01-11 06:34
svenprobably better to talk to dberlin though, he seems to actually understand what’s going on in there
#asahi-dev · 2024-01-11 06:33
svenfrom what I know it’s essentially a bunch of message rings used to exchange information
#asahi-dev · 2024-01-11 02:31
nicolas17sven: any idea where to even start looking at how brcmfmac works? if I look at a m1n1 trace I probably won't understand anything, I need like, some overview of what the hardware "protocol" is like...
#asahi-dev · 2024-01-11 02:29
nicolas17can't stop thinking about awdl >.>
#asahi-dev · 2024-01-09 15:23
leiopresumably first poweroff is from gnome lock screen blank followed by dpms off
#asahi-dev · 2024-01-09 15:22
leiojanneg: here's a more controlled log from just now: https://dpaste.com/9YPCBVS67 (the last cycle then light up the monitor, not the previous ones)
#asahi-dev · 2024-01-07 21:09
hexdump0815eiln: i guess you ment https://files.svenpeter.dev/c677aa8b4d557e7b99fd8c59903cf840bac3d68969ac415bb2ff53e40c77000a_xnu-bootargs.txt ?
#asahi-dev · 2024-01-07 02:09
eilndoes anyone have that one textfile with a list of macos bootargs? need more aop verbosity but my copy is long lost in a pile of trace dumps
#asahi-dev · 2024-01-06 22:43
nicolas17and I just realized Firmware/Mac/13.x on theapplewiki is broken (versions out of order)
#asahi-dev · 2024-01-06 22:25
nicolas17janneg: M3s were released with 13.5 preinstalled, and there were subsequent 13.6.2 and 13.6.3 updates
#asahi-dev · 2024-01-06 17:10
mazjanneg: perfect thank you very much. I think I can safely wait for M4! :D
#asahi-dev · 2024-01-06 17:06
jannegmaz: yes, reload
#asahi-dev · 2024-01-06 16:56
mazjanneg: awesome thanks. So far very close to M2. Anything in MMFR2/ISAR2?
#asahi-dev · 2024-01-06 16:36
jannegmaz: https://gist.github.com/jannau/079ce2d5a35fedcdaad7bd9e71bac9c9
#asahi-dev · 2024-01-06 14:13
mazjanneg: when you get a chance, could you dump the M3 CPU idregs somewhere?
#asahi-dev · 2024-01-06 12:09
janneginteresting, macos 13.6.3 is installable on M3
#asahi-dev · 2024-01-06 11:54
jannegwhy apple? "parent_addr = 0x0000000210000000" from t8122 (m3) main MMIO range
#asahi-dev · 2024-01-06 11:53
jannegkettenis: fixup commits in a PR are the best way to ensure it's not forgotten
#asahi-dev · 2024-01-06 10:50
kettenisI can send you a mail instead. Or maybe you want to add these includes yourself as fixups?
#asahi-dev · 2024-01-06 10:24
jannegkettenis: pull request would work but still depends on marcan to merge it. I might end up including it in my work tree to avoid conflicts
#asahi-dev · 2024-01-06 10:05
svenworks for me but it's probably best to ask janneg, he's been taking care of dptxep.c (and dcp) lately
#asahi-dev · 2024-01-06 10:05
kettenisshould I create a pull request against bits/200-dcp for that?
#asahi-dev · 2024-01-06 10:04
svenwe should just add those headers directly
#asahi-dev · 2024-01-06 10:03
kettenissimilar story for afk.c and iomfb.c although there I end up getting it through some other route on OpenBSD
#asahi-dev · 2024-01-06 10:03
kettenis(this is causing me some minor grief in the OpenBSD port)
#asahi-dev · 2024-01-06 10:02
svenyeah
#asahi-dev · 2024-01-06 10:02
svengood catch, I keep forgetting some of those headers that get included by accident
#asahi-dev · 2024-01-06 10:02
kettenisshould it include that file directly?
#asahi-dev · 2024-01-06 10:02
sven:D
#asahi-dev · 2024-01-06 10:02
kettenisjanneg, sven: dptxep.c uses stuff from <linux/bitfields.h> and ends up including that header through some convoluted route in <asm/sysreg.h>
#asahi-dev · 2024-01-04 23:22
j`eyyup!
#asahi-dev · 2024-01-04 23:18
roxfan2j`ey: seems for FCVTN the rounding mode is controlled by FPCR.RMode
#asahi-dev · 2024-01-04 19:16
svenbut I’ll take a closer look
#asahi-dev · 2024-01-04 19:16
svenapple uses a custom firmware update mechanism I think
#asahi-dev · 2024-01-04 18:57
j`eysven: perhaps interesting https://lore.kernel.org/all/20231207-tps6598x_update-v2-0-f3cfcde6d890@wolfvision.net/
#asahi-dev · 2024-01-04 15:31
leiome neither, but maybe my plan worked and I got someone to look at implementing it - it looks like impact might be bigger than some small mutter thing
#asahi-dev · 2024-01-04 14:57
j`eyGP regs are the best! :D
#asahi-dev · 2024-01-04 14:56
mazah, right. as you can tell, FP isn't really my thing! :D
#asahi-dev · 2024-01-04 14:56
j`ey(since in this case it's actually a scalar thats needed, not simd)
#asahi-dev · 2024-01-04 14:55
j`eyit looks like that x86 instruction is round-to-nearest, which seems to be supported before FEAT_AFP too for FCVT (scalar) but that's just for skimming through the arm arm
#asahi-dev · 2024-01-04 14:48
mazif memory serves well, the rounding modes are different between x86 and ARMv8, unless the implementation has FEAT_AFP (and SW picks the correct mode).
#asahi-dev · 2024-01-04 14:43
leiothe question was for https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/util/half_float.c?ref_type=heads#L38-56 https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/util/half_float.h?ref_type=heads#L57-102 - or rather the copy of it in mutter originally
#asahi-dev · 2024-01-04 14:31
j`eyoh!

plus ›