#
…

2023-02-06

00:32hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:34hertz has joined #asahi-dev
02:04seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:26hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:41seeeath has joined #asahi-dev
04:02seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:32Keyaedisa has quit [Remote host closed the connection]
05:49seeeath has joined #asahi-dev
06:26seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:12rkjnsn_sven: In case you're curious, I tried plugging my OWC Thunderbolt hub into my 2015 MBP using an Apple Thunderbolt 3-to-2 adapter.
07:12rkjnsn_Under macOS Monterey, it's seemingly not recognized at all. I see the Thunderbolt plug event in the logs, but it doesn't show up in the system report even as an unsupported device.
07:13rkjnsn_(It does work plugged into a 2018 Mac mini running macOS Ventura, so this may be something Apple decided is explicitly not supported, and I expect it should work under macOS with the M1's just fine.)
07:13rkjnsn_Under Linux on the same machine, however, it _does_ get recognized, and boltctl indeed identifies it as “generation: USB4”.
07:13rkjnsn_On one downstream port I have my OWC Envoy express holding a 5-port sata M.2 card. On the second, I have two Thunderbolt 3 docks daisy-chained together, and on the third I have a Thunderbolt 2 dock connected through a second 3-to-2 adapter with a monitor connected to it and a Thunderbolt 1 ethernet+USB adapter chained after it.
07:13rkjnsn_Everything shows up and works fine, which actually surprised me since the Wikipedia page for Thunderbolt suggests that hubs can only support one downstream chain when connected to a pre-Titan-Ridge host.
07:58Keyaedisa has joined #asahi-dev
07:59Keyaedisa has quit [Remote host closed the connection]
08:02sveninteresting
08:08Keyaedisa has joined #asahi-dev
08:13jeffmiw has quit [Ping timeout: 480 seconds]
08:23Keyaedisa has quit [Remote host closed the connection]
08:24chadmedpovik: is there anything that would reliably stress test that patch other than the usual starting/stopping streams rapidly (which seemed to trigger the issue albeit unreliably)
08:43kettenis_marcan: if you have some time to look at the low-level cpu core initialization (chickens, spin up) that would be great
08:43kettenis_then I can make a head start with u-boot support (including the asmedia usb)
08:43marcankettenis_: for M2 pro/max?
08:44marcando they use asmedia on the macmini now?
08:44marcanI'm going to spend today on audio, but maybe later this week I can take a look
08:44marcanyou have the m2pro mini then?
08:45jannaumarcan: asmedia on both m2 and m2 pro
08:45kettenis_yes, I got the m2pro mini with 10GbE to maximise hardware diversity
08:45marcanok, same as me then
08:45marcanI'll use that one for bringup first
08:46kettenis_looks like the offset of the register to start the secondary cores moved again
08:47marcanshould be somewhere in the pmgr regs in the DT I think
08:47marcanor maybe just hardcoded
08:48marcanand I assume the pcie fuses need reversing again
08:48marcan(and atc and everything else that uses fuses)
08:48kettenis_I looked at it for a bit, but not very hard as i have been ill for the last 5 days
08:48marcanah, take it easy :)
08:48marcanwe're not in a rush
08:49jannaumarcan: re magic mouse: macos puts the bt keys in nvram. we need to come up with a way to let bluez import them
08:54chadmedhuh looks like no new dart variant
08:55sventhat's kinda what i expected
08:55sventhat t8112 dart or however it's called was a pretty big upgrade
08:55marcanjannau: just in plain text?
08:55marcanyeah I wasn't expecting a new dart
08:58jannaumarcan: yes
08:59jannauat least in nvram-proxy-data in the ADT but iirc the nvram content was identical
09:12mkurz has joined #asahi-dev
09:18n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
09:19n1c has joined #asahi-dev
09:25n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
09:27n1c has joined #asahi-dev
09:29n1c has quit []
09:31n1c has joined #asahi-dev
09:33povikchadmed: not that i know of, even rapid restarting didn't trigger it for me
09:33povikbut i saw the issue a couple of times
09:34chadmedi have an audible bell on my terminal and if i spam it too much it seems it can trigger the admac thing
09:34chadmedlikewise rapidly opening new streams in vlc
09:35chadmedits very sporadic though. sometimes i can go days without hitting it then other days i get it a few times an hour
09:36jluthra_ has quit [Remote host closed the connection]
09:36jluthra_ has joined #asahi-dev
09:36leitao has joined #asahi-dev
09:37cylm has quit [Ping timeout: 480 seconds]
09:45n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
09:46n1c has joined #asahi-dev
09:46n1c has quit []
09:49n1c has joined #asahi-dev
09:50ChaosPrincessjannau: we now have real nvram read-write, at least on m1/m1promax machines
09:52hexafox has joined #asahi-dev
09:53bisko has joined #asahi-dev
11:19yrlf has joined #asahi-dev
11:34zalyx has quit [Quit: later alligator]
11:34zalyx has joined #asahi-dev
11:35zalyx has quit []
11:37zalyx has joined #asahi-dev
11:41tino has joined #asahi-dev
11:44joshtau has joined #asahi-dev
11:48cupermir has quit [Ping timeout: 480 seconds]
12:03MajorBiscuit has joined #asahi-dev
12:17minecrell has quit [Read error: Connection timed out]
12:19minecrell has joined #asahi-dev
12:23cylm has joined #asahi-dev
12:41steven has quit [Quit: ZNC 1.8.2 - https://znc.in]
12:42hexafox has quit [Ping timeout: 480 seconds]
12:43steven has joined #asahi-dev
12:54chadmed has quit [Remote host closed the connection]
13:07mkurz has quit [Remote host closed the connection]
13:07mkurz has joined #asahi-dev
13:11svenlol, fixed the first plug event by applying the fuse values before nhi is brought up
13:11svenso now I only have to fix usb2/3 again…
13:22povikmarcan: please commit the notebook from the stream, i will see if i can write the exponentials below :p
13:25chadmed has joined #asahi-dev
13:25marcanpovik: the notebook is a mess, but this is the update step
13:25marcan tvc_tgt = tmag + p * rt_vc
13:25marcan tvc = tvc_tgt * alpha_vc + tvc * (1 - alpha_vc)
13:25marcan tmag_tgt = t0 + p * rt_mag
13:25marcan tmag = tmag_tgt * alpha_mag + tmag * (1 - alpha_mag)
13:26marcanfor catchup we take p=0 and the tmag catchup is just obviously an exponential, I want to know the tvc one.
13:26povikit's up to you but i think it would be best to save it for posterity
13:26marcanI can commit it in a bit, dinner first :)
13:27povikmarcan: bon apetite!
13:27povikor however it's spelled...
13:27marcanappetit :)
13:28marcan(the inputs are the time constants, not the raw alpha, I just do alpha_vc = step / (tc_vc + step))
13:50joshtau has quit [Quit: Connection closed for inactivity]
13:52rowang_077 has joined #asahi-dev
13:54povikhm, maybe the update step isn't exactly right since if t_mag=t_ambient and p=0, t_mag never raises even if t_vc is initially high
13:54povikthe tc_vc relaxation should be raising t_mag a bit
13:55poviknot sure how large the introduced error is though
13:57marcanpovik: yes, it's a simplification, but I wasn't sure how/if to fix it. I guess it would be proportional to the ratio of thermal resistance or so?
13:57povikyeah, that would be my guess too
13:58marcanI'm not sure if it matters much though, because it's symmetric (it also starts rising before t_vc properly rises)
13:59marcanif the model the constants are calibrated for is the dumb model I used, then it'd be more correct to leave it as is
14:00marcanactually not thermal resistance, ratio of the time constants
14:00marcansince that's related to thermal mass
14:01marcanOTOH those ratios are like 2:60 for the tweeters and even higher for the woofers
14:01marcanso maybe tmag increasing by less than 1/30 of the tvc delta is something we can just ignore
14:11seeeath has joined #asahi-dev
14:13povikokay, got it
14:13povikdef catchup(T_vc, tc_vc, T_mag, tc_mag, t): # All temperatures relative to ambient eta = 1 + tc_vc/tc_mag A = np.exp(-t/tc_vc) * (T_vc - eta*T_mag) B = np.exp(-t/tc_mag) * T_mag return (A + B*eta, B)
14:13povikhuh, that didn't work
14:14povikdef catchup(T_vc, tc_vc, T_mag, tc_mag, t): # All temperatures relative to ambient
14:14povikhm, still doesn't do newlines
14:14povikdef catchup(T_vc, tc_vc, T_mag, tc_mag, t):
14:14povik # All temperatures relative to ambient
14:14povik eta = 1 + tc_vc/tc_mag
14:14povik A = np.exp(-t/tc_vc) * (T_vc - eta*T_mag)
14:14povik B = np.exp(-t/tc_mag) * T_mag
14:14povik return (A + B*eta, B)
14:14marcanawesome :)
14:15poviki hope i made my calculus professor proud :p
14:16seeeath has quit []
14:17marcanpovik: what's the current plan for syncing device usage between the tx/rx sides? I saw that speaker ready flag thing
14:17povikyeah, there's one thing i haven't pointed out
14:17povikand to my surprise you haven't ran into it
14:17povikthe tx path needs to be up for the sense rx path to work
14:17povikif you open the pcm device without it, it's dead, there's no samples
14:18povikso that's an artifact of the way it's handled with the separate frontends
14:18povikbut even if this weren't the case
14:19povikwe still wouldn't want the safety daemon to keep the sense pcm open unnecessarily
14:19poviksince that would constrain the rates on the playback pcm
14:19marcanI think we're always going to have races if we don't solve that in the kernel
14:19marcanso I think we need to make the capture PCM rate effectively able to change arbitrarily
14:20marcanotherwise you'd fail if you try to change rates on the TX path too fast
14:21povikyeah, i was wondering if the current solution isn't good enough already
14:21povikbut if sound servers indeed do reopen pcms to change rates, then that race is an issue
14:23povikmaybe we can relax the rate symmetry condition, but then the safety daemon needs to know the rate changed
14:23povikmaybe we can just close the sense pcm from the kernel side, if the rate no longer matches?
14:24marcanor just communicate it via a control?
14:24marcanassuming it doesn't change like several times per second, it doesn't really matter if the safety daemon doesn't sync perfectly
14:24seeeath has joined #asahi-dev
14:27seeeath_ has joined #asahi-dev
14:32seeeath has quit [Ping timeout: 480 seconds]
15:18bcrumb has joined #asahi-dev
15:55bcrumb has quit [Quit: WeeChat 3.8]
16:24svenfixed usb2/3 again :)
16:25svenso now I just need to wait for my tbt3 dock and that usb4 hub and hope those work as well
16:25svenand figure out why dcpext doesn’t like the DP tunnel
16:52MajorBiscuit has quit [Ping timeout: 480 seconds]
17:25bcrumb has joined #asahi-dev
17:48bcrumb has quit [Ping timeout: 480 seconds]
18:13hertz has joined #asahi-dev
18:23rowang_077 has quit [Remote host closed the connection]
18:24axboe_ has joined #asahi-dev
18:26jeffmiw has joined #asahi-dev
18:27axboe has quit [Ping timeout: 480 seconds]
18:29tino is now known as cupermir
19:20lesiuk has joined #asahi-dev
19:23Leo3418 has joined #asahi-dev
19:23Leo3418 has quit []
19:23Leo3418 has joined #asahi-dev
19:26Leo3418 has quit []
19:26bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:26Leo3418 has joined #asahi-dev
19:33bcrumb has joined #asahi-dev
19:34bcrumb has quit []
19:34bcrumb has joined #asahi-dev
19:35leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:37bcrumb has quit []
19:37bcrumb has joined #asahi-dev
19:39bcrumb has quit []
20:07Leo3418 has quit [Quit: Applying updates]
20:07Leo3418 has joined #asahi-dev
20:09leitao has joined #asahi-dev
20:11Leo3418 has quit []
20:11Leo3418 has joined #asahi-dev
20:23Leo3418 has quit [Quit: Applying updates]
20:24Leo3418 has joined #asahi-dev
20:24Leo3418 has quit []
20:24Leo3418 has joined #asahi-dev
20:26leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:30Keyaedisa has joined #asahi-dev
20:45Leo3418 has quit [Quit: Applying updates]
20:45Leo3418 has joined #asahi-dev
20:54Keyaedisa has quit [Remote host closed the connection]
21:27DarkShadow44 has quit [Quit: ZNC - https://znc.in]
21:27DarkShadow44 has joined #asahi-dev
21:37lesiuk has quit [Quit: Connection closed for inactivity]
21:47grange_c6 has joined #asahi-dev
21:47os3 has joined #asahi-dev
21:47TheLink9 has joined #asahi-dev
21:47ncopa2 has joined #asahi-dev
21:48dk__ has joined #asahi-dev
21:48jole_ has joined #asahi-dev
21:48psykose_ has joined #asahi-dev
21:48null_ has joined #asahi-dev
21:48johey_ has joined #asahi-dev
21:48pjakobsson_ has joined #asahi-dev
21:49m5zs7k_ has joined #asahi-dev
21:49Retr0id7 has joined #asahi-dev
21:49minecrell1 has joined #asahi-dev
21:49pbsds12 has joined #asahi-dev
21:50lawrence6 has joined #asahi-dev
21:50Mary6 has joined #asahi-dev
21:50Dragoon has joined #asahi-dev
21:50milek7_ has joined #asahi-dev
21:50ayke_ has joined #asahi-dev
21:50lonjil2 has joined #asahi-dev
21:50aleasto- has joined #asahi-dev
21:50Leftas7 has joined #asahi-dev
21:50jnn has joined #asahi-dev
21:50Dragoon is now known as Guest3870
21:51pg12 has joined #asahi-dev
21:51Esmil_ has joined #asahi-dev
21:51yrlf has quit [charon.oftc.net helix.oftc.net]
21:51kit_ty_kate1 has quit [charon.oftc.net helix.oftc.net]
21:51zkrx has quit [charon.oftc.net helix.oftc.net]
21:51kettenis_ has quit [charon.oftc.net helix.oftc.net]
21:51pg12_ has quit [charon.oftc.net helix.oftc.net]
21:51m5zs7k has quit [charon.oftc.net helix.oftc.net]
21:51minecrell has quit [charon.oftc.net helix.oftc.net]
21:51flying_sausages has quit [charon.oftc.net helix.oftc.net]
21:51cynthia has joined #asahi-dev
21:51pbsds1 has quit [charon.oftc.net helix.oftc.net]
21:51ah- has quit [charon.oftc.net helix.oftc.net]
21:51psykose has quit [charon.oftc.net helix.oftc.net]
21:51lawrence has quit [charon.oftc.net helix.oftc.net]
21:51Mary has quit [charon.oftc.net helix.oftc.net]
21:51lonjil has quit [charon.oftc.net helix.oftc.net]
21:51pjakobsson has quit [charon.oftc.net helix.oftc.net]
21:51johey has quit [charon.oftc.net helix.oftc.net]
21:51os has quit [charon.oftc.net helix.oftc.net]
21:51DragoonAethis has quit [charon.oftc.net helix.oftc.net]
21:51ayke has quit [charon.oftc.net helix.oftc.net]
21:51leftas has quit [charon.oftc.net helix.oftc.net]
21:51nico_32 has quit [charon.oftc.net helix.oftc.net]
21:51sven has quit [charon.oftc.net helix.oftc.net]
21:51jn has quit [charon.oftc.net helix.oftc.net]
21:51ncopa has quit [charon.oftc.net helix.oftc.net]
21:51blazra has quit [charon.oftc.net helix.oftc.net]
21:51TheLink has quit [charon.oftc.net helix.oftc.net]
21:51dk_ has quit [charon.oftc.net helix.oftc.net]
21:51aleasto has quit [charon.oftc.net helix.oftc.net]
21:51Retr0id has quit [charon.oftc.net helix.oftc.net]
21:51grange_c has quit [charon.oftc.net helix.oftc.net]
21:51blasty has quit [charon.oftc.net helix.oftc.net]
21:51gtk2 has quit [charon.oftc.net helix.oftc.net]
21:51null has quit [charon.oftc.net helix.oftc.net]
21:51Esmil has quit [charon.oftc.net helix.oftc.net]
21:51cynthia has quit [charon.oftc.net helix.oftc.net]
21:51jole has quit [charon.oftc.net helix.oftc.net]
21:51milek7 has quit [charon.oftc.net helix.oftc.net]
21:51Retr0id7 is now known as Retr0id
21:51TheLink9 is now known as TheLink
21:51lawrence6 is now known as lawrence
21:51grange_c6 is now known as grange_c
21:51kettenis has joined #asahi-dev
21:52dk__ is now known as dk_
21:52sven has joined #asahi-dev
21:53zkrx has joined #asahi-dev
21:57flying_sausages has joined #asahi-dev
21:58blasty has joined #asahi-dev
21:58nico_32 has joined #asahi-dev
22:00kit_ty_kate1 has joined #asahi-dev
22:00ah- has joined #asahi-dev
22:00gtk2 has joined #asahi-dev
22:02blazra has joined #asahi-dev
22:02yrlf has joined #asahi-dev
22:03hexafox has joined #asahi-dev
22:31hexafox has quit [Ping timeout: 480 seconds]
22:36psykose_ is now known as psykose
22:54yrlf4 has joined #asahi-dev
22:57Keyaedisa has joined #asahi-dev
22:58blazra has quit [charon.oftc.net helix.oftc.net]
22:58yrlf has quit [charon.oftc.net helix.oftc.net]
23:06blazra has joined #asahi-dev
23:14Keyaedisa has quit [Ping timeout: 480 seconds]
23:19Keyaedisa has joined #asahi-dev
23:21minecrell1 has quit []
23:21seeeath_ has quit [Ping timeout: 480 seconds]
23:22minecrell has joined #asahi-dev
23:32Keyaedisa has quit [Ping timeout: 480 seconds]
23:46Keyaedisa has joined #asahi-dev
…