#
#asahi-dev · 2024-01-21 22:48
eilnwas originally thinking 15" m2 air. if im going m2 pro, I'd rather take a baseline m3 for avd work, but m3 pro is completely out of the question rn
#asahi-dev · 2024-01-21 22:48
eilnok hold on I had not considered the price would nearly double with usuable ram and ssd
#asahi-dev · 2024-01-21 22:02
eilnI'll probably get a 16" m2/m3 by april ish
#asahi-dev · 2024-01-21 21:55
jannegon m1 devices
#asahi-dev · 2024-01-21 21:55
jannegI could see if I can get my hacky dp altmode branches to work
#asahi-dev · 2024-01-21 21:54
jannegfor now, there are more coming. for dp/hdmi audio and additional information
#asahi-dev · 2024-01-21 21:53
eilnbut the only real difference is the ringbuf calls which should be fine with some fn ptrs
#asahi-dev · 2024-01-21 21:53
eilnjanneg: it seems the meaningful afk endpoint is dptx which ive not got
#asahi-dev · 2024-01-21 21:20
svenouch. I very much did not enjoy writing that thing originally
#asahi-dev · 2024-01-21 21:16
j`eysven: seems like AOP does
#asahi-dev · 2024-01-21 21:15
svenwait, there’s something else that uses the mess that is afk?
#asahi-dev · 2024-01-21 21:13
jannegeiln: good luck. do you have a device on which you can test dcp's afk use?
#asahi-dev · 2024-01-21 21:06
leioI merely read the afk.h top comment as you got me curious on the actual meaning too, but looks like something on top of rtkit (using it)
#asahi-dev · 2024-01-21 21:06
j`eyit's a layer above that
#asahi-dev · 2024-01-21 21:05
nicolas17to talk to rtkit coprocessors?
#asahi-dev · 2024-01-21 21:03
leioApple Firmware Kit, if you were wondering
#asahi-dev · 2024-01-21 21:01
nicolas17away from keyboard .c?
#asahi-dev · 2024-01-21 20:59
eilnjanneg: I am going to try to generalize afk.c to take a struct device
#asahi-dev · 2024-01-21 15:29
eilnno that was a red herring
#asahi-dev · 2024-01-21 15:27
j`eyeiln: found an address?
#asahi-dev · 2024-01-21 15:24
eilngoogles 'lux calculation equation'
#asahi-dev · 2024-01-21 15:24
eilnhehehe I got something good
#asahi-dev · 2024-01-21 11:16
eilnchaos_princess: so it's model FireFish2/CT720, that we can probe via aop. do you might know where macos hardcodes *that* range? I tried tracing the entire mmio range but it times out
#asahi-dev · 2024-01-21 11:09
chaos_princesseiln: unfortunately the answer is "you don't", you need to figure out which specific als model is present via a separate aop subdevice, and then hardcode it.
#asahi-dev · 2024-01-21 10:14
eilnany ideas..?
#asahi-dev · 2024-01-21 10:13
eilnproblem is, we don't know the register range of als. there's no als node in adt. I realize this is stupid but I seriously cant find the als base register
#asahi-dev · 2024-01-21 10:13
eilneverything else on the aop side we can do, see https://github.com/AsahiLinux/m1n1/pull/381. you can also trace it, set ALSEndpoint VERBOSE=True
#asahi-dev · 2024-01-21 10:13
eilnthere's an als register being written to (stacktraces say the kext is AppleALSColorSensor) that turns on als. aop is hooked up to als s.t. aop automatically starts reporting als data when als is on. restated, als is not controlled by aop, rather its own register range (independent from aop) by some external kext
#asahi-dev · 2024-01-21 10:13
eilnhello/ack, load als calibration, (nothing), then aop suddenly starts reporting a stream of als data (e.g. lux, chromaticity, and etc)
#asahi-dev · 2024-01-21 10:12
eilnso als from the aop side looks like:
#asahi-dev · 2024-01-20 11:07
kettenisjanneg: I think apple_drv.c should call drm_fbdev_dma_setup() instead of drm_fbdev_generic_setup()
#asahi-dev · 2024-01-20 10:46
j`eyeiln: it is called always-on :P
#asahi-dev · 2024-01-20 10:45
eilnI don't even know what's what, aop does too many fing things. traces are a nightmare (it never shuts up either)
#asahi-dev · 2024-01-20 10:45
eilnchadmed: they are in MMIO space in aop-iop-nub, same as dcp. I believe iboot loads up the default bootargs, and we have to patch some of them live
#asahi-dev · 2024-01-19 14:03
nicolas17but most of those fourcc's look *so obscure*
#asahi-dev · 2024-01-19 14:02
nicolas17eiln: heh heh "CRAp"
#asahi-dev · 2024-01-19 05:10
chadmedthey look suspiciously like they are
#asahi-dev · 2024-01-19 05:10
chadmeddo we know where these args are in memory? might be worth trying to read them as if they are smc keys and see if they are the same key/value store format
#asahi-dev · 2024-01-19 05:04
chadmedwouldnt surprise me if theyre of the same fourcc format as the smc keys
#asahi-dev · 2024-01-19 05:03
eilnchadmed: these are aop bootargs: https://pastebin.com/zn3EW3yP?
#asahi-dev · 2024-01-19 05:02
eilninteresting
#asahi-dev · 2024-01-19 05:00
chadmedthe words around them suggest they are probably sensors or counters of some kind
#asahi-dev · 2024-01-19 05:00
chadmedeiln: some of the strings in those hexdumps seem to follow a similar convention to SMC sensor naming
#asahi-dev · 2024-01-19 04:56
eilnchadmed: anything interesting? https://pastebin.com/V6Lhw0gG
#asahi-dev · 2024-01-18 22:00
roxfanwhat's SDSB mentioned here? https://github.com/AsahiLinux/docs/wiki/HW%3AApple-Instructions
#asahi-dev · 2024-01-18 16:48
mazfunny how these things go full circle...
#asahi-dev · 2024-01-18 16:47
mazmeh. I had paged out that particular thread...
#asahi-dev · 2024-01-18 16:38
j`eyhttps://lore.kernel.org/lkml/20220502093832.32778-1-marcan@marcan.st/ here
#asahi-dev · 2024-01-18 16:35
kettenisIIRC we just dropped it since the smc stuff wasn't upstream anyway
#asahi-dev · 2024-01-18 16:35
ketteniswe did try to upstream the pwren-gpios thing and there was some pushback

plus ›