#
…

2023-03-10

00:13nrmntq has quit [Quit: WeeChat 3.8]
00:17moby has quit [Ping timeout: 480 seconds]
00:17moby1 has quit [Ping timeout: 480 seconds]
00:23darkapex1 has joined #asahi
00:24darkapex has quit [Ping timeout: 480 seconds]
01:09Guest7138 has quit [Quit: G-line: User has been permanently banned from this network.]
01:09vx has joined #asahi
01:10vx is now known as Guest7219
02:15tobhe has joined #asahi
02:20tobhe_ has quit [Ping timeout: 480 seconds]
02:27fbisurveillancevan has joined #asahi
02:28Guest7219 has quit [Quit: G-line: User has been permanently banned from this network.]
02:29vx has joined #asahi
02:30fbisurveillancevan has quit [Remote host closed the connection]
02:30vx is now known as Guest7229
02:36zef has joined #asahi
02:43zef_ has quit [Ping timeout: 480 seconds]
02:52possiblemeatball has joined #asahi
03:08unicordion has joined #asahi
03:31shota has quit [Remote host closed the connection]
03:35moby has joined #asahi
03:43moby has quit [Ping timeout: 480 seconds]
03:44systwi_ has joined #asahi
03:48systwi has quit [Ping timeout: 480 seconds]
03:55brad_ has joined #asahi
03:59unicordion has quit [Ping timeout: 480 seconds]
04:03Zopolis4 has joined #asahi
04:42possiblemeatball has quit [Quit: Quit]
04:44brad_ has quit [Quit: Konversation terminated!]
04:45julio7359 has quit [Ping timeout: 480 seconds]
04:52marvin24 has joined #asahi
04:56marvin24_ has quit [Ping timeout: 480 seconds]
04:57unicordion has joined #asahi
05:08Graypup_ has quit [Quit: meow]
05:08Graypup_ has joined #asahi
05:17Graypup_ has quit [Quit: meow]
05:17Graypup_ has joined #asahi
05:18julio7359 has joined #asahi
05:29moby has joined #asahi
05:31rnowak has quit [Remote host closed the connection]
05:38moby has quit [Ping timeout: 480 seconds]
05:50Guest7229 has quit [Quit: G-line: User has been permanently banned from this network.]
05:53vx has joined #asahi
05:53vx is now known as Guest7247
06:04bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:08brad_ has joined #asahi
06:12unicordion has quit [Ping timeout: 480 seconds]
06:20mkurz has quit [Remote host closed the connection]
06:20mkurz has joined #asahi
06:21unicordion has joined #asahi
06:23julio7359 has quit [Ping timeout: 480 seconds]
06:24brad_ has quit [Ping timeout: 480 seconds]
06:50brad_ has joined #asahi
06:54unicordion has quit [Ping timeout: 480 seconds]
07:05unicordion has joined #asahi
07:06brad_ has quit [Ping timeout: 480 seconds]
07:08unicordion has quit []
07:17guillaume_g has joined #asahi
07:50thunfisch has joined #asahi
08:04nyuhu has quit [Ping timeout: 480 seconds]
08:10nyuhu has joined #asahi
08:15ptudor has quit [Ping timeout: 480 seconds]
08:20chadmedelvishjerricco: the speaker safety stuff relies on floating point math and interfacing with the sound card
08:21chadmedthe kernel cannot do the former and the latter is not quite as stable as one would think it to be
08:21chadmedso it _needs_ to be done in userspace
08:22ptudor has joined #asahi
08:47Lightsword_ is now known as Lightsword
08:47Lightsword is now known as Lightsword_
08:48Lightsword_ is now known as Lightsword
08:54ptudor has quit [Ping timeout: 480 seconds]
09:02ptudor has joined #asahi
09:04YigitOnline has joined #asahi
09:05chadmedoh my god i just used the mac mini's speaker for the first time (accidentally)
09:05chadmedseems i have some work to do this weekend...
09:07JTLI'm curious how failsafe a daemon can be, and if certain horrible conditikons (i.e kernel panics) can casue unpleasent "machinegun" style effects through speakers. Probably just remembering the horror of buggy onboard audio codecs on PCs.
09:10chadmedwell it works in tandem with the kernel. the daemon will kick the asoc driver periodically to tell the kernel that it's still alive
09:11chadmedif the driver doesnt hear from it, it will put the codecs into a safe mode that limits their output to half the max, which is safe enough to prevent any damage
09:11chadmedthis all happens transparent to the rest of userspace, and only the daemon knows about this via ioctls
09:12chadmedthe daemon exists so that we can use the entire dynamic range of the system without having to _rely_ on safe mode all the time
09:13chadmedit takes in voltage and current measurements made by the codec at the voice coil of each speaker, and then uses that to compute the temperature of each speaker
09:13JTLI know
09:13chadmedright so whats the concern
09:14JTLJust an idle curiosity of how much can go FUBAR while still having "unafe" output to the speakers
09:14chadmednot a lot
09:14j`ey_kernel panic during loud music?
09:14chadmedif the daemon dies then the codecs will go into safe mode
09:14chadmedif the daemon hasnt died than you can be guaranteed that the volume currently coming out of the speakers is safe for them
09:15chadmedso even if the kernel shits the bed while youre playing loud music and you get a looping sample it should never have gotten loud enough to cause damage to the machine
09:15YigitOnline has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:15chadmedthe watchdog should reboot the system before too long if the kernel dies anyway
09:16JTLmakes sense
09:16bluetailthe m1 mac mini has a fan right?
09:16chadmedi believe so yes
09:16bluetailwhat about just blasting the fan at 100% all the time? :D
09:17chadmedwell the desktop machines dont get loud enough to cause damage in any case because they dont have tweeters
09:17chadmedits really the tweeters we're most concerned about here
09:25nyilas has joined #asahi
09:30YigitOnline has joined #asahi
09:31nyilas has quit [Remote host closed the connection]
09:39nyilas has joined #asahi
10:05veeyee has joined #asahi
10:06veeyeeNew GitHub sponsor here, just wanted to say great work so far. Looking forward to seeing the project develop over time
10:22Zopolis4 has quit []
10:37MajorBiscuit has joined #asahi
10:44YigitOnline has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:01jess has joined #asahi
11:26YigitOnline has joined #asahi
11:29bisko has joined #asahi
11:41Moprius has joined #asahi
11:42Moprius has quit []
11:44YigitOnline has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:50bluetailI run asahi since its developers release
11:50bluetailno issues so far... been a stable nasbox with a 10 bay usb storage unit :D
11:50bluetaileven runs my 2.5gbps lan adapter via usb fine
11:51bluetailsome mass-storage devices make u-boot panic though, but thats under investigation and I really love how supportive the people are to solve the issues.
12:06YigitOnline has joined #asahi
12:06YigitOnline has quit []
12:07YigitOnline has joined #asahi
12:12donk has joined #asahi
12:36D-Spirits has joined #asahi
12:40YigitOnline has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:59Fischmiep has quit [Read error: Connection reset by peer]
12:59Fischmiep has joined #asahi
13:02Fischmiep has quit []
13:03Fischmiep has joined #asahi
13:06Fischmiep has quit [Read error: Connection reset by peer]
13:13possiblemeatball has joined #asahi
13:20donk has quit [Ping timeout: 480 seconds]
13:22Fischmiep has joined #asahi
13:39jonmason has joined #asahi
13:47Namidairo has quit [Quit: ZNC - https://znc.in]
13:48Namidairo has joined #asahi
13:53Fischmiep has quit []
13:57Fischmiep0 has joined #asahi
14:00YigitOnline has joined #asahi
14:01veeyee has quit [Quit: Leaving.]
14:01YigitOnline has quit []
14:04sefidel has quit [Remote host closed the connection]
14:05Fischmiep06 has joined #asahi
14:06sefidel has joined #asahi
14:08Fischmiep06 has quit []
14:08Fischmiep05 has joined #asahi
14:08Fischmiep0 has quit [Ping timeout: 480 seconds]
14:22jonmasonI see that the mac mini m2 dts was pushed to the kernel recently. I recently purchased one. Is there anything I can do to help get it working?
14:23MajorBiscuit has quit [Ping timeout: 480 seconds]
14:37Fischmiep05 has quit [Read error: Connection reset by peer]
14:37Fischmiep05 has joined #asahi
14:37YigitOnline has joined #asahi
14:38YigitOnline has quit []
14:47veeyee has joined #asahi
14:49jonmasonarnd: thanks
15:03MajorBiscuit has joined #asahi
15:12pranav has quit [Quit: Connection closed for inactivity]
15:13donk has joined #asahi
15:21Fischmiep05 has quit [Read error: Connection reset by peer]
15:23Fischmiep05 has joined #asahi
15:26delsol has joined #asahi
15:32Fischmiep05 has quit [Read error: Connection reset by peer]
15:32Fischmiep05 has joined #asahi
15:43Fischmiep05 has quit [Read error: Connection reset by peer]
15:43Fischmiep05 has joined #asahi
15:50unicordion has joined #asahi
15:51Fischmiep05 has quit [Read error: Connection reset by peer]
15:52Fischmiep05 has joined #asahi
16:00jamespmo_ has joined #asahi
16:01nyilas has quit [Remote host closed the connection]
16:06unicordion has quit [Quit: Konversation terminated!]
16:07jamespmorgan has quit [Ping timeout: 480 seconds]
16:12jannauarnd: the first point is moot
16:19ayke_chadmed: floating point doesn't work in the kernel? That makes sense. But what about softfloat or fixed point math?
16:19nyilas has joined #asahi
16:20ayke_Are these FP operations performance sensitive?
16:21ayke_I have some experience converting floating point math to fixed point math for chips without FPU, so that _shouldn't_ be a blocker.
16:25ayke_(meaning, I expect it can be implemented using fixed point math if needed)
16:25ayke_I don't know about "interfacing with the sound card", no idea how difficult it is.
16:27guillaume_g has quit []
16:28Fischmiep05 has quit []
16:33Fischmiep05 has joined #asahi
16:46Fischmiep05 has quit [Read error: Connection reset by peer]
16:47Fischmiep05 has joined #asahi
16:47gladiac has joined #asahi
16:58possiblemeatball has quit [Quit: Quit]
17:06veeyee has quit [Quit: Leaving.]
17:07zalyx has quit [Ping timeout: 480 seconds]
17:09YigitOnline has joined #asahi
17:10delsol has quit [Remote host closed the connection]
17:10MajorBiscuit has quit [Quit: WeeChat 3.6]
17:12VinDuv has quit [Ping timeout: 480 seconds]
17:17julio7359 has joined #asahi
17:19jnfloating point can be used in the linux kernel, but it's a bit of a hassle
17:19VinDuv has joined #asahi
17:19jnfor example, WireGuard uses the same infrastructure (for SIMD cryptography)
17:23gladiac has quit [Quit: k thx bye]
17:43julio7359 has quit [Remote host closed the connection]
17:45julio7359 has joined #asahi
17:56veeyee has joined #asahi
17:58delsol has joined #asahi
18:04delsol has quit [Remote host closed the connection]
18:05veeyee has quit [Ping timeout: 480 seconds]
18:14veeyee has joined #asahi
18:24delsol has joined #asahi
18:31veeyee has quit [Ping timeout: 480 seconds]
18:41veeyee has joined #asahi
18:49veeyee has quit [Ping timeout: 482 seconds]
18:55veeyee has joined #asahi
18:58veeyee has quit []
19:17nachtvlinder has joined #asahi
19:18nachtvlinder is now known as vlindernet
19:18Zopolis4 has joined #asahi
19:21vlindernet is now known as nachtvlinder
19:28nachtvlinder is now known as vlinder
19:29vlinder is now known as nachtvlinder
19:31WindowPain has joined #asahi
19:33nachtvlinder has quit [Quit: Konversation terminated!]
19:33veeyee has joined #asahi
19:36WindowPa- has quit [Ping timeout: 480 seconds]
19:40bcrumb has joined #asahi
19:43bcrumb has quit []
19:59veeyee has quit [Quit: Leaving.]
20:19moby1 has joined #asahi
20:21moby has joined #asahi
20:38possiblemeatball has joined #asahi
20:38Misthios has quit [Quit: Misthios]
20:39Misthios has joined #asahi
20:46moby1 has quit [Ping timeout: 480 seconds]
20:46moby has quit [Ping timeout: 480 seconds]
20:48Metroid is now known as Metroid[m]
20:49Metroid[m] is now known as Metroid
20:54Metroid is now known as Guest7308
20:56Guest7308 is now known as Metroid
20:57moby has joined #asahi
20:57moby1 has joined #asahi
20:58Metroid is now known as Guest7309
20:58Guest7309 has left #asahi [Leaving]
21:05moby has quit [Ping timeout: 480 seconds]
21:05moby1 has quit [Ping timeout: 480 seconds]
21:07pbsds has joined #asahi
21:11pbsds3 has quit [Ping timeout: 480 seconds]
21:11pbsds is now known as pbsds3
21:13moby has joined #asahi
21:13moby1 has joined #asahi
21:21moby1 has quit [Ping timeout: 480 seconds]
21:21moby has quit [Ping timeout: 480 seconds]
21:29moby has joined #asahi
21:29moby1 has joined #asahi
21:32jamespmorgan has joined #asahi
21:37jamespmo_ has quit [Ping timeout: 480 seconds]
21:45possiblemeatball has quit [Quit: Quit]
21:52YigitOnline has quit [Quit: Textual IRC Client: www.textualapp.com]
21:55Guest7247 has quit [Quit: G-line: User has been permanently banned from this network.]
21:56vx has joined #asahi
21:56vx is now known as Guest7317
22:01chadmedayke_: it's not that it's technically impossible outright, it's that its annoying to implement, way more work than its worth, and would result in a shitfight on the mailing lists
22:01chadmedwhy go through all that when we can just far more easily implement it in userspace
22:02chadmedof course, anyone whos not convinced that this is a safe architecture is more than welcome to not use the speakers :)
22:03donk has quit [Quit: Leaving]
22:19moby1 has quit [Ping timeout: 480 seconds]
22:19moby has quit [Ping timeout: 480 seconds]
22:27moby has joined #asahi
22:27moby1 has joined #asahi
22:30nyilas has quit [Remote host closed the connection]
22:35moby1 has quit [Ping timeout: 480 seconds]
22:35moby has quit [Ping timeout: 480 seconds]
22:35elvishjerriccochadmed what if the daemon never starts at all for some reason? Is it still guaranteed that you can't break the speakers?
22:36j`ey_then it'll be in failsafe mode
22:36jnwhenever the daemon isn't there, the kernel will set a safe volume
22:37jnwhich is quieter than desirable, but at least it's always safe
22:44moby has joined #asahi
22:44moby1 has joined #asahi
22:46avocicltb^ has joined #asahi
22:48Zopolis4 has quit []
22:52moby1 has quit [Ping timeout: 480 seconds]
22:52moby has quit [Ping timeout: 480 seconds]
22:58JTLif the kernel can shit itself (i.e panic) while sound is playing and not damage the speakers I'd call that a success.
22:59moby has joined #asahi
23:00moby1 has joined #asahi
23:00mpsso iiuc safe is not to start daemon at all and have always safe max volume?
23:08moby has quit [Ping timeout: 480 seconds]
23:08moby1 has quit [Ping timeout: 480 seconds]
23:16moby has joined #asahi
23:16moby1 has joined #asahi
23:18chadmedmps: not at the moment because the requisite kernel features havent been wired up just yet
23:19chadmedbut once speaker support is officially merged then yes, the kernel will start the codecs already in safe mode and only unlock them if the daemon hits the correct IOCTL
23:19mpschadmed: ofc, I don't talk about current status
23:20chadmedthe whole idea is that we will always explicitly fail safe so that folks dont have to tiptoe around the machine and have this stuff front of mind
23:20chadmedlike i said anyone whos not convinced is free to just not use the speakers but this isnt our first rodeo
23:21chadmedwhen speakers are released officially you can be satisfied that you will have no possible way to blow them up from userspace under any circumstances
23:22mpsas someone who fried speakers once on chromebook I'm cautious
23:22zalyx has joined #asahi
23:22delsol has quit [Quit: Leaving...]
23:23chadmedyou havent lived until youve fried a dynacord cobra line array :D
23:23mpseh, don't have such things to try ;-)
23:24moby has quit [Ping timeout: 480 seconds]
23:24moby1 has quit [Ping timeout: 480 seconds]
23:24chadmedi miss having such things to play with
23:25chadmedi guess unreasonably expensive laptops are a decent stand-in
23:27zalyx has quit [Quit: later alligator]
23:28mpsmy son was DJ earlier and we have some such things in garage but I didn't used them
23:29zalyx has joined #asahi
23:33elvishjerriccochadmed I assume that one could write their own daemon that is specifically designed to abuse that IOCTL to destroy the speakers, right?
23:34moby has joined #asahi
23:34moby1 has joined #asahi
23:42moby has quit [Ping timeout: 480 seconds]
23:42moby1 has quit [Ping timeout: 480 seconds]
23:42chadmedelvishjerricco: well yeah but like... cmon
23:43chadmedwe cant control for every "what if a squad of deadly cyborg hyperninjas breaks into your house and desolders the current sensing shunt" hypothetical
23:45chadmedthe risk assessment here is that if someone has sufficient access to your system to stop a daemon owned by root and replace it with their own bad code from under your node you have far bigger things to worry about than your speakers
23:46MajorBiscuit has joined #asahi
23:46chadmedthe other part of this equation is that the DSP we apply via pipewire is by itself enough to prevent *catastrophic* failure of the speakers. i have been dogfooding my work for over a year at this point and ive done some incredibly evil things to this laptop
23:46chadmedstill works like the day i got it
23:46elvishjerriccochadmed I'm just saying userspace can in fact break your hardware. Even for malicious software, that's unusual
23:47chadmedyeah i get that and like i said this isnt our first experience with this sort of scenario
23:48chadmedits just going to be so exceedingly rare and impossible to control for that theres no point even trying to engineer around it lest we end up never releasing anything because its not absolutely 100% totally invincible to all freak impossible edge cases
23:49chadmed99% is good enough for basically everyone, and if youre in the 1% of edge cases where this system falls down then youve got worse things happening on your machine than failing speakers
23:50chadmedits basically the worst kind of scope creep
23:52moby has joined #asahi
23:52moby1 has joined #asahi
23:59MajorBiscuit has quit [Quit: WeeChat 3.6]
…