#
✕ nick:eiln
#asahi-dev · 2024-02-23 14:43
eilngreenbeard: I doubt an xkb maintainer is on here. you should contact marcan. he's more on matrix nowadays, check website for matrix join link
#asahi-dev · 2024-01-24 15:42
eilnactually I don't think it'll work with iio. I don't control rate control
#asahi-dev · 2024-01-24 15:18
eilnerm but I have to generate the iio_chan_spec struct inside the report handler fn. hm this is a catch 22
#asahi-dev · 2024-01-24 15:10
eilnkeep aop in soc/apple/ & describe a generic "light sensor" node in the device tree?
#asahi-dev · 2024-01-24 15:10
eilnbut I'm not sure of the best way to expose this to an iio node
#asahi-dev · 2024-01-24 15:10
eilnhm so I now have a proof of concept als kernel driver
#asahi-dev · 2024-01-22 18:09
eilnthe dcp tracer calls are ifdefd out but I don't think I broke anything else (pls lmk)
#asahi-dev · 2024-01-22 18:09
eilnit gets aop booting and all its endpoints up. I have to double-check the roundtrip buffers but dcp doesn't even use those. all major changes are done I think
#asahi-dev · 2024-01-22 18:09
eilnjanneg: fruits of today's labor https://github.com/eiln/linux/tree/aop-afk
#asahi-dev · 2024-01-22 11:11
eilnthe air's midnight finish is very sexy. I am eyeing that one
#asahi-dev · 2024-01-22 11:11
eilnthe 14" pro is heavier than 15" air (I guess it's in the name but..)
#asahi-dev · 2024-01-22 11:11
eilnthe pros are a lot heavier than I thought
#asahi-dev · 2024-01-22 11:10
eilnI went to an apple store today
#asahi-dev · 2024-01-22 09:19
eilnalso spuapp is something amps
#asahi-dev · 2024-01-22 09:17
eiln"unk26" is probably lid angle sensor which is m2 and up I think
#asahi-dev · 2024-01-22 09:17
eilnfor m1 only the endpoints audio, voicetrigger, wakehint, and als are actually used
#asahi-dev · 2024-01-22 09:17
eilnstuff. also power managment + report rate control for all of them
#asahi-dev · 2024-01-22 09:17
eilnnicolas17: not all devices have all of them but: accel, gyro, compass, barometer, temperature/humidity, low/high power mic + leap (low energy audo processor?) pdm signal processor (low power mic is only for voicetrigger I think), ambient light + color sensor, lid angle sensor, wakehint (aggregation data I think), I've also seen strings about bluetooth which is presumably find my
#asahi-dev · 2024-01-22 09:16
eilnj`ey: yes, try it out
#asahi-dev · 2024-01-21 22:49
eilnmaybe m2 air + m3 mini but I'm not sure when I'll have the mini
#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: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 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: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 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 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 05:03
eilnchadmed: these are aop bootargs: https://pastebin.com/zn3EW3yP?
#asahi-dev · 2024-01-19 05:02
eilninteresting
#asahi-dev · 2024-01-19 04:56
eilnchadmed: anything interesting? https://pastebin.com/V6Lhw0gG
#asahi-dev · 2024-01-17 16:23
eiln(same as in same api)
#asahi-dev · 2024-01-17 16:22
eilnyeah so it now works the same way as dcp
#asahi-dev · 2024-01-17 16:19
eilnthis time the syslog endpoints are all initialized too
#asahi-dev · 2024-01-17 16:19
eilnj`ey: the version 2 days ago hacked around hw registers to boot it ("boot" being CPU state RUN=1, nothing else), which I realized was not right at all
#asahi-dev · 2024-01-17 16:16
eilnsleep time for me.. zz
#asahi-dev · 2024-01-17 16:15
eilnwe're not even at the aop part yet (stacktraces say AppleA7IOP). added support for splitting endpoint bitmap init into top/bottom half (LAST=0, BASE=1, MORE=1) to even boot it
#asahi-dev · 2024-01-17 16:15
eilnstarting to understand mailbox now
#asahi-dev · 2024-01-17 16:15
eiln[mgmt] IOP power state is now 0x20
#asahi-dev · 2024-01-17 16:15
eiln< 00:0x70000000000020

plus ›