2021-12-13
00:21slicey has joined #asahi-dev
03:07PhilippvK has joined #asahi-dev
03:12phiologe has quit [Ping timeout: 480 seconds]
04:01marcan< alyssa> Needed to backport changes from pci.c to apple-ans.c b84ba30b6c7a ("block: remove the gendisk argument to blk_execute_rq") <- that one's already in the asahi branch
04:07marcan< jannau> linux has 3 distinct drivers for the touchpad events. applespi (used by corellium), kettenis found bcm5974 (input device), hid-magicmouse is convenient since it is already hid <= ha
04:15marcan< jannau> unrelentingtech: hid-magicmouse works out of the box with my WIP SPI HID transport driver
04:37marcando you have this in a branch somewhere? I definitely want to start testing it soon, if it looks good it can go into asahi
05:22leah has quit [Quit: WeeChat 3.3]
05:40leah has joined #asahi-dev
06:00Jamie[m]1,it actually has one, but weirdly it's about an amp with a completely different model number
06:55marcanJamie[m]1: a common pattern seems to be Google "magically" knowing which public part number Apple secret part numbers are related to
06:55marcanI suspect the Algorithm™ is learning from internal engineer google searches or something :-)
07:02the_lanetly_052___ has joined #asahi-dev
07:10thunfisch has quit [Ping timeout: 480 seconds]
07:17Jamie[m]1What do we know about the MCA audio peripherals? I see the speaker experiment in m1n1 never interacts with them (only the mca-switch), which suprised me
07:34thunfisch has joined #asahi-dev
07:42marcanin particular mca_switch0_base + 0x4xxx is mca1, which is connected to the speaker on the Mac Mini
08:31svenlol, apple. for some reason they send some undocumented nvme command a few times (0xd8 on the admin queue) when they initialize their controller. except that these commands don't use the NVMMU but SART now
08:47jannaumarcan: not yet, it's still more PoC than proper driver. I'll bring it in testable state tonight
09:20povikJamie[m]1: MCA is mostly figured out, see sound/soc/apple/mca.c in asahi-sound as jannau linked
09:21as400 has joined #asahi-dev
09:23povikthe MCA clusters are one after other in MMIO address space, and there's no use pretending they aren't
09:23povikespecially given that you have to interact with multiple clusters even if setting one audio path
09:24povikjack codec will probably be an iteration of the one on t8000 macs, likely the same driver can be used
09:25slicey has quit [Quit: zzz]
09:25povikspeaker amp is different, i don't know if linux has a driver for the analogue part i found
09:30jannauj`ey: currently ~800 lines, still with some stub only omplementations and some debugging code which can be removed
09:35povikJamie[m]1: also i looked to make sure tas5731 isn't also a good match for sn012776, but it isn't
09:38Jamie[m]1the M1 boot process sure is neat, but they certainly haven't optimised for the performance of picking a non-default option lol
09:47yuyichao has quit [Ping timeout: 480 seconds]
09:56as400 has quit [Quit: Page closed]
09:57aleasto has joined #asahi-dev
10:07svenoh fun. 0xd8 is some kind of debug command tunnel because ofc the normal mailbox interface wasn't enough for that
10:09svenlooks like it's also possibly to enable error injection and do all kinds of fancy (and some scary) things with that one
10:12aleasto has quit [Quit: Konversation terminated!]
10:15aleasto has joined #asahi-dev
10:47marcanthat should all be done in userspace, of course; not sure if all the ALSA/PA profile thing can handle EQ/convolution filters, but if it can't, well, maybe it's time to start that conversation
11:38_jannau_we could check if the boot chime was disabled and play the m1n1 chime only if it is. to be extra evil, we make it almost the same as the iboot chime
11:39yuyichao has joined #asahi-dev
11:54landscape15[m]marcan: I like the idea of a m1n1 boot chime, but as jannau says only if the Mac boot chime isn’t played.
12:00arnd_ has quit []
12:01arnd has joined #asahi-dev
12:07bps has joined #asahi-dev
12:13al3xtjames has quit [Quit: Ping timeout (120 seconds)]
12:13al3xtjames has joined #asahi-dev
12:20Gaspare has joined #asahi-dev
12:54Gaspare has quit [Quit: Gaspare]
12:56riker77 has quit [Quit: Quitting IRC - gone for good...]
13:09riker77 has joined #asahi-dev
13:20Gaspare has joined #asahi-dev
13:40landscape15[m]marcan: well, I like it. You can recreate the chime in the minor chord instead
13:44* mazsuggests making it a configuration option (I want the opening chord sequence to Zoot Allures)
13:45as400 has joined #asahi-dev
13:45as400 has quit []
14:45nabaiste^ has quit [Remote host closed the connection]
15:40svenmacOS tells ANS what time it is and then uses two commands to get the NAND ID and something they seem to call NAND geometry. probably all things we can ignore for linux
15:42svennow it also makes sense why that debug command uses SART instead of the NVMMU though. the buffers are written to directly by the ANS firmware
15:45svenand here's a simple nvme tracer if anyone wants to play with it https://github.com/AsahiLinux/m1n1/pull/133
16:41kenzie has quit [Quit: The Lounge - https://thelounge.chat]
16:41kenzie has joined #asahi-dev
16:55kenzie has quit [Quit: The Lounge - https://thelounge.chat]
16:56kenzie has joined #asahi-dev
17:00bps has quit [Ping timeout: 480 seconds]
17:07Gaspare has quit [Ping timeout: 480 seconds]
17:25Gaspare has joined #asahi-dev
17:31the_lanetly_052___ has quit [Ping timeout: 480 seconds]
17:58bps has joined #asahi-dev
18:11Gaspare has quit [Read error: Connection reset by peer]
19:17aleasto has quit [Ping timeout: 480 seconds]
19:18aleasto has joined #asahi-dev
19:32aleasto has quit [Ping timeout: 480 seconds]
19:33aleasto has joined #asahi-dev
19:50aleasto has quit [Ping timeout: 480 seconds]
19:50aleasto has joined #asahi-dev
19:54Dcow_ has joined #asahi-dev
20:07aleasto has quit [Ping timeout: 480 seconds]
20:07aleasto has joined #asahi-dev
20:15unrelentingtechtiny, 21 bytes for 1 finger
20:18unrelentingtechyeah, I've just logged some packets from my 2015 mbp too
20:19unrelentingtechthey do have the first 8 bytes in common, at least
20:20unrelentingtechthe 9th byte is always 0x31 on the magic and 0x75 on the internal, maybe that means compact vs big format for the following finger data
20:25aleasto has quit [Ping timeout: 480 seconds]
20:27unrelentingtechbcm5974 uses the 48th byte (on current models) as the beginning of big finger data. so the fixed size whatever before that does also contain finger data in the compact format it seems. I'm gonna play with some parser things..
20:28Dcow_ has quit [Quit: Textual IRC Client: www.textualapp.com]
21:15slicey has joined #asahi-dev
22:48LorenzKofler[m] has joined #asahi-dev
23:46yuyichao has quit [Ping timeout: 480 seconds]