2023-01-15
00:52flying_sausages has quit []
01:00flying_sausages has joined #asahi-dev
01:03Droop has quit []
01:04Droop has joined #asahi-dev
01:34faruk has quit [Quit: Textual IRC Client: www.textualapp.com]
01:47systwi has joined #asahi-dev
02:11ah- has joined #asahi-dev
02:21regalramp has quit [Remote host closed the connection]
02:41regalramp has joined #asahi-dev
03:00cylm has quit [Ping timeout: 480 seconds]
03:04mini0n has quit [Quit: Leaving]
03:12pthariensflame has joined #asahi-dev
03:23Stary has quit [Ping timeout: 480 seconds]
03:29chadmed_ has quit [Remote host closed the connection]
03:37Stary has joined #asahi-dev
04:00pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
04:11Stary has quit [Ping timeout: 480 seconds]
04:54Stary has joined #asahi-dev
05:34leah2 has quit [Ping timeout: 480 seconds]
06:27regalramp has quit [Ping timeout: 480 seconds]
06:52SSJ_GZ has joined #asahi-dev
07:39chadmedthe touchpad seems to generate a heck of a lot of interrupts, the kernel wakes up multiple cores to deal with them
07:42chadmedik some of that is going to be redrawing the screen but it still seems very high, and the irq thread reports over 4% cpu utilisation
07:43hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:18tim has joined #asahi-dev
08:18tim has quit [Remote host closed the connection]
09:19leah2 has joined #asahi-dev
09:52SSJ_GZ has quit [Ping timeout: 480 seconds]
10:02kit_ty_kate has quit [Quit: WeeChat 3.6]
10:18bps2 has joined #asahi-dev
10:44jluthra has quit [Remote host closed the connection]
10:44jluthra has joined #asahi-dev
11:04bps2 has quit [Ping timeout: 480 seconds]
11:06bcrumb has joined #asahi-dev
11:06bcrumb has quit []
11:16jeffmiw has joined #asahi-dev
11:22marcanIIRC the codecs use the audio clock as their internal clock when active, so the audio clock being screwed up would explain the i2c bus getting jammed
11:27jeffmiw has quit [Quit: Konversation terminated!]
11:32marcanI'm going to add a bit more logging to i2c after the unjam fix, in case it's useful to debug. That should at least log jams (and other error conditions) before the start of the next transaction, even if unjam succeeded.
11:59marcanpovik, chadmed: listening to the distortion, this sounds exactly like terribad resampling/aliasing
12:02hertz has joined #asahi-dev
12:14chadmedmps reported that switching the muxes and then switching them back fixed it, but i cant repro that
12:16jannauI don't see "PLL failed to lock" but PLL_LOCK_STATUS reads back 0x30 instead of 0x10 witj trace_codecs.py
12:16mkurz has quit [Quit: Leaving]
12:18jannauI can't repro "fixing" the issue by switching headphone playback mux either, obvious difference is that we're using pipewire while mps uses plain alsa
12:22marcantook a capture, I see every Nth sample ish getting replaced by zero, where N is circa 8 (might be more than one sample, hard to tell in analog)
12:35bps2 has joined #asahi-dev
13:15marcanpovik: I don't think configuring the PLL in hw setup, then just turning it on on unmute is legit
13:24marcanjannau, chadmed, povik: fix in bits/070-audio and asahi-6.2-rc3-4, doing an arch build now
13:25marcanI'm guessing something about the sequence of operations changed in 6.2 and that's what broke it
13:26mpsto explain what I found: starting playing sound and then change headphone playback mux to secondary and back to primary fixes distortion
13:27mpsand sometimes even have to repeat it when pause sound and then play again, same mpv instance
13:28bcrumb has joined #asahi-dev
13:31marcancs42l42 doesn't have the same bug, but I can imagine some codepaths where it would go wrong. I'm going to add a defensive patch.
13:38chadmed_ has joined #asahi-dev
13:45marcanas for what happened: the PLL was running unlocked/too fast, by a factor of 1/8 or 1/4 or thereabouts. there's probably an 8-sample elastic buffer between the input sample data (clocked by the input clock) and the core.
13:45marcansince the core was running too fast, the elastic buffer keeps underrunning and that creates 0-samples on the output
13:46marcansince this happens every 8 input samples, the overall playback rate is ~correct for f << 48kHz/8 = 6kHz -> 0-3kHz, which means audio is recognizably the right pitch
13:54povikmarcan: i would be very surprised if the timing of configuring the pll mattered as long as you don't enable it
13:55povikthere's a mux for clock selection after the pll, which i guess helped cover the bug until now
14:02jeffmiw has joined #asahi-dev
14:04jeffmiwit seems I played a bit too much with the devil: running out of space on my asahi partition, I resized it from parted and on the next reboot my mba m1 is not booting at all, not even in recovery mode :)
14:05bcrumb has quit [Quit: WeeChat 3.7.1]
14:07marcanjeffmiw: how did you make space for resizing the partition in the first place? parted doesn't know how to resize APFS...
14:09bps2 has quit [Ping timeout: 480 seconds]
14:09jeffmiwwell I had one 10GB Asahi minimal partition just after my asahi desktop partition and then free space, so I deleted the 3 "10GB asahi minimal partitions" and then did a resizepartition
14:11SSJ_GZ has joined #asahi-dev
14:17jeffmiwwhen I did the partition change, I knew there were some risks but I was at worst expecting to get a "no disk found" kind of boot error icon ... so as you said it seems very very broken ...
14:18jeffmiwand my onther mac is an old mba 2012 on which the apple configurator from the store won't install...it complains because of the too old macos vesion... when murhpy is in :)
14:19cylm has joined #asahi-dev
14:20ChaosPrincesshttps://dosdude1.com/catalina/ - you can use that to install new enough macos to make apple configurator run
14:22jeffmiwhumm the apple app store said it needs macOS 12.4, I have Catalina on my MBA 2012 already (10.15.7)
14:24ChaosPrincesswelp, guess they updated it
14:27marcanpovik: the remaining errors I see for cs42l83 on startup are I2C NACKs (-6). just pushed a patch so it'll print xfsta, the bottom byte of which is the byte which caused the NACK.
14:27marcanI *think* the counting is such that start/repeat-start each count as 1 byte, separate from the address byte, but I'm not 100% sure
14:27marcanalso not sure if the NACKed byte counts for the increment or not, the datasheet is unclear
14:30bps2 has joined #asahi-dev
14:35derzahl has quit [Remote host closed the connection]
14:38Tramtrist has quit [Remote host closed the connection]
14:42Tramtrist has joined #asahi-dev
15:03amarioguy has joined #asahi-dev
15:06ChaosPrincessmaybe wait until 6.2 is shipped as a release and not rcs?
15:06ChaosPrincessalso, is there a way to decode the interrupt specs from ADT? as in level/edge, high/low ?
15:45svenin unrelated and entirely unsurprising news the usb curse seems to extend to thunderbolt as well
15:46sveni saw the pcie port come up once and show the ethernet adapter but can’t reproduce that anymore
15:55balor has quit [Quit: balor]
15:56balor has joined #asahi-dev
16:05bcrumb has joined #asahi-dev
16:15povikmarcan: the defensive cs42l42 patch isn't necessary since stream_use guards against reconfiguring with unmuted stream
16:18bcrumb has quit [Quit: WeeChat 3.7.1]
16:28mini0n has joined #asahi-dev
16:41faruk has joined #asahi-dev
17:02faruk has quit [Quit: Textual IRC Client: www.textualapp.com]
17:13hightower2 has joined #asahi-dev
17:24bluetail8 has joined #asahi-dev
17:29faruk has joined #asahi-dev
17:30landscape15 has joined #asahi-dev
17:31bluetail has quit [Ping timeout: 480 seconds]
17:31bluetail8 is now known as bluetail
17:41faruk has quit [Quit: Textual IRC Client: www.textualapp.com]
18:10landscape15 has quit [Quit: WeeChat 3.8]
18:21DarkShadow4444 has quit [Quit: ZNC - https://znc.in]
18:21hotbbqsauce has joined #asahi-dev
18:22hotbbqsauce has quit []
18:25DarkShadow4444 has joined #asahi-dev
18:26DarkShadow4444 has quit [Remote host closed the connection]
18:26DarkShadow4444 has joined #asahi-dev
18:33dg_ has joined #asahi-dev
18:34dg_ has quit []
18:57m1nion has joined #asahi-dev
19:03mini0n has quit [Ping timeout: 480 seconds]
19:04bps2 has quit [Ping timeout: 480 seconds]
19:28tim has joined #asahi-dev
19:29tim is now known as Guest1427
19:32zkrx has quit [Remote host closed the connection]
19:33zkrx has joined #asahi-dev
19:36dsharshakov has joined #asahi-dev
19:36dsharshakovWhat are the mic locations on newer MacBooks? I'm thinking of more processing algorithms (beamforming) for PipeWire and want to know what array shapes other than stereo are possible. I mean using several mics for noise reduction. Iirc T2 era ones has 3 mics located under the keyboard
19:37dsharshakovI am inclined to believe AOP has some workings for that and may produce already filtered data
19:38dsharshakovpovik: I've sorta lost track of works on internal mics. I remember you first showcased AOP-based capture from m1n1, but later started studying LEAP assembly to bypass AOP. Reading logs I couldn't find what was wrong with AOP (with it being the intended path macOS uses)
19:44___nick___ has joined #asahi-dev
19:46___nick___ has quit []
19:48___nick___ has joined #asahi-dev
19:51ChaosPrincessdsharshakov: they are about to the right of delete key
19:52dsharshakovChaosPrincess: alright, what shape they form? How many?
19:52ChaosPrincess3, roughly l shaped
19:53dsharshakovLikely what's necessary is just start the capture in such a mode we'll later use (be it AOP or LEAP or sth else) and moving a finger around
19:53kettenistests on the iMac and Mac Studio are welcome since I don't know how this interacts with the firmware-less controllers
19:55dsharshakovSo they form an L with a line parallel to the laptop edge? That seems like quite a nice setup to beamform. Can be used either as stereo with beam directed a bit left, thus passing through the user's likely location, or three together (better accuracy)
19:57dsharshakovdidn't it change in recent series?
20:12bcrumb has joined #asahi-dev
20:12bcrumb has quit []
20:15bcrumb has joined #asahi-dev
20:21dsharshakov has quit [Remote host closed the connection]
20:22bcrumb has quit [Quit: WeeChat 3.7.1]
20:27bcrumb has joined #asahi-dev
20:43bcrumb has quit [Quit: WeeChat 3.7.1]
20:47SSJ_GZ has quit []
20:50bluetail has quit [Quit: The Lounge - https://thelounge.chat]
20:53bluetail has joined #asahi-dev
21:06bluetail has quit [Quit: The Lounge - https://thelounge.chat]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:09bluetail has joined #asahi-dev
21:16balor has quit [Quit: balor]
21:16balor has joined #asahi-dev
21:20krbtgt has joined #asahi-dev
21:31Guest1427 has quit [Quit: Guest1427]
21:31zshroot has joined #asahi-dev
21:31zshroot has left #asahi-dev [#asahi-dev]
21:38bps2 has joined #asahi-dev
21:49sikkiladho has joined #asahi-dev
21:54Dementor has quit [Remote host closed the connection]
21:55Dementor has joined #asahi-dev
22:00bps2 has quit [Ping timeout: 480 seconds]
22:01ChaosPrincesssuper early draft of the touchbar digitizer driver https://github.com/AsahiLinux/linux/pull/102
22:01jeffmiw has quit [Remote host closed the connection]
22:01ChaosPrincessnot remotely ready for merge, but i wouldn't mind if someone would give a look and check if i am not doing something extra dumb
22:48jannauChaosPrincess: the touch data looks like it uses the same format as the touchpad, see struct tp_finger in drivers/hid/hid-magicmouse.c
22:49ChaosPrincessit does not
22:50ChaosPrincessactually, yea, looks simiar-ish
22:51ChaosPrincesswell, we can check crcs i guess
22:51ChaosPrincessbut i mapped out the rest w/o looking at that structure
22:51ChaosPrincessidk if rel_x and rel_y are relevant, since its a touchscreen
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:20irth has joined #asahi-dev
23:44m1nion has quit []
23:59sikkiladho has quit []