ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hertz has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Keyaedisa has quit [Remote host closed the connection]
seeeath has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rkjnsn_> 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.
<rkjnsn_> 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.
<rkjnsn_> (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.)
<rkjnsn_> Under Linux on the same machine, however, it _does_ get recognized, and boltctl indeed identifies it as “generation: USB4”.
<rkjnsn_> 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.
<rkjnsn_> 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.
Keyaedisa has joined #asahi-dev
Keyaedisa has quit [Remote host closed the connection]
<sven> interesting
Keyaedisa has joined #asahi-dev
jeffmiw has quit [Ping timeout: 480 seconds]
Keyaedisa has quit [Remote host closed the connection]
<chadmed> povik: 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)
<kettenis_> marcan: if you have some time to look at the low-level cpu core initialization (chickens, spin up) that would be great
<kettenis_> then I can make a head start with u-boot support (including the asmedia usb)
<marcan> kettenis_: for M2 pro/max?
<kettenis_> yup
<marcan> do they use asmedia on the macmini now?
<marcan> I'm going to spend today on audio, but maybe later this week I can take a look
<marcan> you have the m2pro mini then?
<jannau> marcan: asmedia on both m2 and m2 pro
<kettenis_> yes, I got the m2pro mini with 10GbE to maximise hardware diversity
<marcan> ok, same as me then
<marcan> I'll use that one for bringup first
<kettenis_> looks like the offset of the register to start the secondary cores moved again
<marcan> should be somewhere in the pmgr regs in the DT I think
<marcan> or maybe just hardcoded
<marcan> and I assume the pcie fuses need reversing again
<marcan> (and atc and everything else that uses fuses)
<kettenis_> I looked at it for a bit, but not very hard as i have been ill for the last 5 days
<marcan> ah, take it easy :)
<marcan> we're not in a rush
<jannau> marcan: re magic mouse: macos puts the bt keys in nvram. we need to come up with a way to let bluez import them
<chadmed> huh looks like no new dart variant
<sven> that's kinda what i expected
<sven> that t8112 dart or however it's called was a pretty big upgrade
<marcan> jannau: just in plain text?
<marcan> yeah I wasn't expecting a new dart
<jannau> marcan: yes
<jannau> at least in nvram-proxy-data in the ADT but iirc the nvram content was identical
mkurz has joined #asahi-dev
n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
n1c has joined #asahi-dev
n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
n1c has joined #asahi-dev
n1c has quit []
n1c has joined #asahi-dev
<povik> chadmed: not that i know of, even rapid restarting didn't trigger it for me
<povik> but i saw the issue a couple of times
<chadmed> i have an audible bell on my terminal and if i spam it too much it seems it can trigger the admac thing
<chadmed> likewise rapidly opening new streams in vlc
<chadmed> its very sporadic though. sometimes i can go days without hitting it then other days i get it a few times an hour
jluthra_ has quit [Remote host closed the connection]
jluthra_ has joined #asahi-dev
leitao has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
n1c has joined #asahi-dev
n1c has quit []
n1c has joined #asahi-dev
<ChaosPrincess> jannau: we now have real nvram read-write, at least on m1/m1promax machines
hexafox has joined #asahi-dev
bisko has joined #asahi-dev
yrlf has joined #asahi-dev
zalyx has quit [Quit: later alligator]
zalyx has joined #asahi-dev
zalyx has quit []
zalyx has joined #asahi-dev
tino has joined #asahi-dev
joshtau has joined #asahi-dev
cupermir has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
minecrell has quit [Read error: Connection timed out]
minecrell has joined #asahi-dev
cylm has joined #asahi-dev
steven has quit [Quit: ZNC 1.8.2 - https://znc.in]
hexafox has quit [Ping timeout: 480 seconds]
steven has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
mkurz has quit [Remote host closed the connection]
mkurz has joined #asahi-dev
<sven> lol, fixed the first plug event by applying the fuse values before nhi is brought up
<sven> so now I only have to fix usb2/3 again…
<povik> marcan: please commit the notebook from the stream, i will see if i can write the exponentials below :p
chadmed has joined #asahi-dev
<marcan> povik: the notebook is a mess, but this is the update step
<marcan> tvc_tgt = tmag + p * rt_vc
<marcan> tvc = tvc_tgt * alpha_vc + tvc * (1 - alpha_vc)
<marcan> tmag_tgt = t0 + p * rt_mag
<marcan> tmag = tmag_tgt * alpha_mag + tmag * (1 - alpha_mag)
<marcan> for catchup we take p=0 and the tmag catchup is just obviously an exponential, I want to know the tvc one.
<povik> it's up to you but i think it would be best to save it for posterity
<povik> right
<marcan> I can commit it in a bit, dinner first :)
<povik> marcan: bon apetite!
<povik> or however it's spelled...
<marcan> appetit :)
<marcan> (the inputs are the time constants, not the raw alpha, I just do alpha_vc = step / (tc_vc + step))
<povik> yeah
joshtau has quit [Quit: Connection closed for inactivity]
rowang_077 has joined #asahi-dev
<povik> hm, 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
<povik> the tc_vc relaxation should be raising t_mag a bit
<povik> not sure how large the introduced error is though
<marcan> povik: 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?
<povik> yeah, that would be my guess too
<marcan> I'm not sure if it matters much though, because it's symmetric (it also starts rising before t_vc properly rises)
<marcan> if the model the constants are calibrated for is the dumb model I used, then it'd be more correct to leave it as is
<marcan> actually not thermal resistance, ratio of the time constants
<marcan> since that's related to thermal mass
<marcan> OTOH those ratios are like 2:60 for the tweeters and even higher for the woofers
<marcan> so maybe tmag increasing by less than 1/30 of the tvc delta is something we can just ignore
seeeath has joined #asahi-dev
<povik> okay, got it
<povik> def 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)
<povik> huh, that didn't work
<povik> def catchup(T_vc, tc_vc, T_mag, tc_mag, t): # All temperatures relative to ambient
<povik> hm, still doesn't do newlines
<povik> def catchup(T_vc, tc_vc, T_mag, tc_mag, t):
<povik> # All temperatures relative to ambient
<povik> eta = 1 + tc_vc/tc_mag
<povik> A = np.exp(-t/tc_vc) * (T_vc - eta*T_mag)
<povik> B = np.exp(-t/tc_mag) * T_mag
<povik> return (A + B*eta, B)
<marcan> awesome :)
<povik> i hope i made my calculus professor proud :p
<marcan> :D
seeeath has quit []
<marcan> povik: what's the current plan for syncing device usage between the tx/rx sides? I saw that speaker ready flag thing
<povik> yeah, there's one thing i haven't pointed out
<povik> and to my surprise you haven't ran into it
<povik> the tx path needs to be up for the sense rx path to work
<povik> if you open the pcm device without it, it's dead, there's no samples
<marcan> ahh
<povik> so that's an artifact of the way it's handled with the separate frontends
<povik> but even if this weren't the case
<povik> we still wouldn't want the safety daemon to keep the sense pcm open unnecessarily
<povik> since that would constrain the rates on the playback pcm
<marcan> I think we're always going to have races if we don't solve that in the kernel
<marcan> so I think we need to make the capture PCM rate effectively able to change arbitrarily
<marcan> otherwise you'd fail if you try to change rates on the TX path too fast
<povik> yeah, i was wondering if the current solution isn't good enough already
<povik> but if sound servers indeed do reopen pcms to change rates, then that race is an issue
<povik> maybe we can relax the rate symmetry condition, but then the safety daemon needs to know the rate changed
<povik> maybe we can just close the sense pcm from the kernel side, if the rate no longer matches?
<marcan> or just communicate it via a control?
<marcan> assuming it doesn't change like several times per second, it doesn't really matter if the safety daemon doesn't sync perfectly
seeeath has joined #asahi-dev
seeeath_ has joined #asahi-dev
seeeath has quit [Ping timeout: 480 seconds]
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.8]
<sven> fixed usb2/3 again :)
<sven> so now I just need to wait for my tbt3 dock and that usb4 hub and hope those work as well
<sven> and figure out why dcpext doesn’t like the DP tunnel
MajorBiscuit has quit [Ping timeout: 480 seconds]
bcrumb has joined #asahi-dev
bcrumb has quit [Ping timeout: 480 seconds]
hertz has joined #asahi-dev
rowang_077 has quit [Remote host closed the connection]
axboe_ has joined #asahi-dev
jeffmiw has joined #asahi-dev
axboe has quit [Ping timeout: 480 seconds]
tino is now known as cupermir
lesiuk has joined #asahi-dev
Leo3418 has joined #asahi-dev
Leo3418 has quit []
Leo3418 has joined #asahi-dev
Leo3418 has quit []
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Leo3418 has joined #asahi-dev
bcrumb has joined #asahi-dev
bcrumb has quit []
bcrumb has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcrumb has quit []
bcrumb has joined #asahi-dev
bcrumb has quit []
Leo3418 has quit [Quit: Applying updates]
Leo3418 has joined #asahi-dev
leitao has joined #asahi-dev
Leo3418 has quit []
Leo3418 has joined #asahi-dev
Leo3418 has quit [Quit: Applying updates]
Leo3418 has joined #asahi-dev
Leo3418 has quit []
Leo3418 has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Keyaedisa has joined #asahi-dev
Leo3418 has quit [Quit: Applying updates]
Leo3418 has joined #asahi-dev
Keyaedisa has quit [Remote host closed the connection]
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi-dev
lesiuk has quit [Quit: Connection closed for inactivity]
grange_c6 has joined #asahi-dev
os3 has joined #asahi-dev
TheLink9 has joined #asahi-dev
ncopa2 has joined #asahi-dev
dk__ has joined #asahi-dev
jole_ has joined #asahi-dev
psykose_ has joined #asahi-dev
null_ has joined #asahi-dev
johey_ has joined #asahi-dev
pjakobsson_ has joined #asahi-dev
m5zs7k_ has joined #asahi-dev
Retr0id7 has joined #asahi-dev
minecrell1 has joined #asahi-dev
pbsds12 has joined #asahi-dev
lawrence6 has joined #asahi-dev
Mary6 has joined #asahi-dev
Dragoon has joined #asahi-dev
milek7_ has joined #asahi-dev
ayke_ has joined #asahi-dev
lonjil2 has joined #asahi-dev
aleasto- has joined #asahi-dev
Leftas7 has joined #asahi-dev
jnn has joined #asahi-dev
Dragoon is now known as Guest3870
pg12 has joined #asahi-dev
Esmil_ has joined #asahi-dev
yrlf has quit [charon.oftc.net helix.oftc.net]
kit_ty_kate1 has quit [charon.oftc.net helix.oftc.net]
zkrx has quit [charon.oftc.net helix.oftc.net]
kettenis_ has quit [charon.oftc.net helix.oftc.net]
pg12_ has quit [charon.oftc.net helix.oftc.net]
m5zs7k has quit [charon.oftc.net helix.oftc.net]
minecrell has quit [charon.oftc.net helix.oftc.net]
flying_sausages has quit [charon.oftc.net helix.oftc.net]
cynthia has joined #asahi-dev
pbsds1 has quit [charon.oftc.net helix.oftc.net]
ah- has quit [charon.oftc.net helix.oftc.net]
psykose has quit [charon.oftc.net helix.oftc.net]
lawrence has quit [charon.oftc.net helix.oftc.net]
Mary has quit [charon.oftc.net helix.oftc.net]
lonjil has quit [charon.oftc.net helix.oftc.net]
pjakobsson has quit [charon.oftc.net helix.oftc.net]
johey has quit [charon.oftc.net helix.oftc.net]
os has quit [charon.oftc.net helix.oftc.net]
DragoonAethis has quit [charon.oftc.net helix.oftc.net]
ayke has quit [charon.oftc.net helix.oftc.net]
leftas has quit [charon.oftc.net helix.oftc.net]
nico_32 has quit [charon.oftc.net helix.oftc.net]
sven has quit [charon.oftc.net helix.oftc.net]
jn has quit [charon.oftc.net helix.oftc.net]
ncopa has quit [charon.oftc.net helix.oftc.net]
blazra has quit [charon.oftc.net helix.oftc.net]
TheLink has quit [charon.oftc.net helix.oftc.net]
dk_ has quit [charon.oftc.net helix.oftc.net]
aleasto has quit [charon.oftc.net helix.oftc.net]
Retr0id has quit [charon.oftc.net helix.oftc.net]
grange_c has quit [charon.oftc.net helix.oftc.net]
blasty has quit [charon.oftc.net helix.oftc.net]
gtk2 has quit [charon.oftc.net helix.oftc.net]
null has quit [charon.oftc.net helix.oftc.net]
Esmil has quit [charon.oftc.net helix.oftc.net]
cynthia has quit [charon.oftc.net helix.oftc.net]
jole has quit [charon.oftc.net helix.oftc.net]
milek7 has quit [charon.oftc.net helix.oftc.net]
Retr0id7 is now known as Retr0id
TheLink9 is now known as TheLink
lawrence6 is now known as lawrence
grange_c6 is now known as grange_c
kettenis has joined #asahi-dev
dk__ is now known as dk_
sven has joined #asahi-dev
zkrx has joined #asahi-dev
flying_sausages has joined #asahi-dev
blasty has joined #asahi-dev
nico_32 has joined #asahi-dev
kit_ty_kate1 has joined #asahi-dev
ah- has joined #asahi-dev
gtk2 has joined #asahi-dev
blazra has joined #asahi-dev
yrlf has joined #asahi-dev
hexafox has joined #asahi-dev
hexafox has quit [Ping timeout: 480 seconds]
psykose_ is now known as psykose
yrlf4 has joined #asahi-dev
Keyaedisa has joined #asahi-dev
blazra has quit [charon.oftc.net helix.oftc.net]
yrlf has quit [charon.oftc.net helix.oftc.net]
blazra has joined #asahi-dev
Keyaedisa has quit [Ping timeout: 480 seconds]
Keyaedisa has joined #asahi-dev
minecrell1 has quit []
seeeath_ has quit [Ping timeout: 480 seconds]
minecrell has joined #asahi-dev
Keyaedisa has quit [Ping timeout: 480 seconds]
Keyaedisa has joined #asahi-dev