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
m42uko has joined #asahi-dev
m42uko_ has quit [Ping timeout: 480 seconds]
roxfan has quit [Remote host closed the connection]
<Tramtrist> ah i see.. ya thats very useful chadmed :)
roxfan has joined #asahi-dev
<marcan> Tramtrist: I get applecare for machines I actually intend to use daily/travel with
<marcan> desktops and machines that are just base model test devices, no
<marcan> eiln: you don't want raw frames, phone/web cameras these days do a stupid amount of processing on raw sensor data. raw frames will *suck*. we need to take advantage of the blob.
<marcan> I'm not interested in reinventing the ISP stack and ending up with crappier results than macos
nela has joined #asahi-dev
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
Z750 has quit [Quit: Ping timeout (120 seconds)]
Z750 has joined #asahi-dev
jnn has joined #asahi-dev
gabuscus has quit []
jn has quit [Ping timeout: 480 seconds]
jeisom has quit [Ping timeout: 480 seconds]
gabuscus has joined #asahi-dev
mikelee has joined #asahi-dev
crabbedhaloablut has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
skipwich has quit [Quit: DISCONNECT]
c10l5 has joined #asahi-dev
erso has joined #asahi-dev
skipwich has joined #asahi-dev
_rudi has quit [Ping timeout: 480 seconds]
apalos has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos has joined #asahi-dev
c10l has quit [Ping timeout: 480 seconds]
<chadmed> marcan: how do you feel about drawing a line under a custom bass enhancement plugin and just pulling in calf as a dependency?
<marcan> I don't particularly mind, but also I don't particularly trust calf for anything
<marcan> their engineering is... not great
<marcan> e.g. their crossover/frequency-dependent processing is totally broken last I checked
erso has quit [Ping timeout: 480 seconds]
<marcan> if it were LSP or x42 I'd be less worried :p
<marcan> also I think there have been stability issues with calf
<chadmed> yeah... thats what i was worried about too :P
<chadmed> ive been dogfooding the bass enhancer for the last week or so and it sounds pretty good
<marcan> their standard plugin just as is?
<chadmed> yeah, just with some tweaked parameters
<chadmed> no code changes though
<chadmed> i managed to beat the final boss of loudness with no apparent damage to my machine too
erso has joined #asahi-dev
<marcan> nice :)
<marcan> maybe we should just pull out their algorithm into a standalone thing then
<marcan> there's some rust lv2 thing that didn't look too hard to use
mikelee has quit [Remote host closed the connection]
<chadmed> yeah i had a play with it a while ago, i should revisit it
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
dylanchapell has quit [Read error: Network is unreachable]
erso has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
erso has joined #asahi-dev
dylanchapell has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Read error: Connection timed out]
erso has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
midou has quit [Remote host closed the connection]
midou has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
sid-linux has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
crabbedhaloablut has joined #asahi-dev
mikelee has joined #asahi-dev
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
erso has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
<sid-linux> what exactly is the SEP firmware (SEPFW) ?
<j`ey> sep = sencure enclave processor
<j`ey> currently the only use is getting an rng inside m1n1 for kaslr
<sid-linux> j`ey: thank you for your prompt reply (as usual :-) )
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
rootbeerdan has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
nsklaus has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
pbsds has joined #asahi-dev
mikelee has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
jeisom has joined #asahi-dev
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
erso has quit [Ping timeout: 480 seconds]
erso has joined #asahi-dev
roxfan2 has joined #asahi-dev
cylm has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
jeisom has quit [Quit: Leaving]
stipa has joined #asahi-dev
jeisom has joined #asahi-dev
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
nsklaus has quit [Quit: WeeChat 4.1.0-dev]
nsklaus has joined #asahi-dev
mikelee has joined #asahi-dev
jeisom_ has joined #asahi-dev
jeisom has quit [Read error: No route to host]
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
jeisom_ has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
<sven> yay, looks like usb is stable again
<sven> now lets see about that weird bit that flips when xnu runs but didn’t with my old code
<sven> also, usb3 followed by a mode switch to usb3+DP doesn’t require a dwc3 reset anymore \o/
<jannau> completely unrelated: the intel 2.5 gb network chip which didn't work in my thunderbolt dock works as random PCIe card in a razor core x (thunderbolt 3 gpu case) (using the same code)
<sven> 😵‍💫
<sven> there are still some issues with pcie power management over tbt but I first want to get this new tipd/usb3 part ready
<sven> and the whole pcie hotplug issues ofc
<jannau> yeah! on the the unneeded reset. I guess it's on the HW a side effect of not supporting usb3.2 gen 2x2 or whatever the 2 lane mode is called today
<sven> I think so. Iirc xnu used to do that additional reset but at some point they also stopped doing it
<sven> or maybe I just misremember the first part :D
<sven> but essentially I can switch the atcphy mode without going through a full reset and everything still works
<jannau> no worries about pcie/tbt, that was just a quick tests for new HW
<sven> what I might end up doing is just always setting up usb3+DP anyway for the current hw
<sven> I also think I know how dp tunneling works now so that’s next after usb3/tipd
<jannau> split usb3 and DP seems to be sane default and is good up to 4k60 (8bpp, rgb 4:4:4, no compression) which should cover most displays and many dp-altmode usb-c displays will have an usb hub
mikelee has joined #asahi-dev
<jannau> sven: dcp is mostly still the same hardcoded hacks regarding phy and mux?
wCPO has quit [Quit: The Lounge - https://thelounge.chat]
wCPO has joined #asahi-dev
<sven> yeah, but I have some vague plans how to improve that
<sven> but I first want to make sure dp tunneling works similar to DP altmode
<sven> I think crossbar needs some work on t6000 for dual output though
<jannau> don't or talk to me first, I'm working on that to at least allow in principle dynamic switching
midou has quit [Ping timeout: 480 seconds]
<sven> but that can come later
<sven> sure
<sven> what I definitely want to change is that oob hpd notification to include the current state
<sven> the only reason the current one doesn’t have that because it was built for intel and the drm side can actually read the current state from somewhere
<sven> I also have some vague ideas about how to model this in the DT that we should also discuss at some point
<jannau> current plan is to have "fake" (as in not backed by HW) displayport controllers which control the phy and mux
<sven> but I think DP tunneling and ideally also multi output should work first because there might still be some nasty surprises lurking
<jannau> dcp connects via ports/graph to those dp controller but I'm unsure how dp-tunneling fits into that
<sven> if it works the way I expect it to I have some very vague idea, I’m about to head out but I can dump my thoughts later
<jannau> I hope we can shove into the dp controller as well altough the second dcp dp out will be a strange fit
<sven> but essentially for DP tunneling we’ll have a “dpin” phy that will also trigger the HPD notification
zachole has joined #asahi-dev
<jannau> this tries to copy the drm/kms device model which is a terrible fit for DCP
<sven> “this”?
<sven> Dpin is a real phy-like thing that needs some setup fwiw
<sven> so we’ll very likely need a phy node for that
<jannau> "this" == my draft device tree model and the sub drivers I'm writing
<sven> dunno if my vague idea is any better there :/
<sven> ugh, I’m already running late. I’ll ping you later
amarioguy has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
jeisom has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
midou has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
nsklaus has quit [Quit: brb]
nsklaus has joined #asahi-dev
roxfan has joined #asahi-dev
sid-linux has quit [Quit: User exited]
roxfan2 has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
nsklaus has quit [Quit: brb]
nsklaus has joined #asahi-dev
roxfan2 has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
eiln has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
roxfan has joined #asahi-dev
roxfan2 has quit [Ping timeout: 480 seconds]
sid-linux has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
<eiln> marcan: makes sense. and if i can figure out one "ioctl", the 400 others should be relatively straightforward
<eiln> i'm worried calls like CISP_CMD_CH_AE_BIAS_EXPOSURE_SET aren't one-time, static params though (unlike, say, CISP_CMD_CH_COLOR_CAL_DATA_SET)
<eiln> oh well, i've gotta figure out CISP_CMD_START first
<ChaosPrincess> eiln: you should replace w_tun_c with this: https://paste.bingner.com/paste/c9ry8
<eiln> ChaosPrincess: i recall the ane dapf writes were slightly different so i played safe. this is much better, thank you
<ChaosPrincess> yes, they are different, and normal m1n1 code does not work with them
<eiln> aha, ty
sid-linux has quit [Quit: User exited]
mikelee has quit [Ping timeout: 480 seconds]
eiln has quit [Ping timeout: 480 seconds]
rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
Guest5884 has quit [Quit: Bridge terminating on SIGTERM]
Jamie has joined #asahi-dev
rhysmdnz has joined #asahi-dev
Jamie is now known as Guest6081
<ChaosPrincess> eiln: so, that ipc.bin link expired, but does that look correct? https://paste.bingner.com/paste/nmgha
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
adryzz has joined #asahi-dev
Lena has joined #asahi-dev
mikelee has joined #asahi-dev
adryzz has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
jeisom has joined #asahi-dev
sid-linux has joined #asahi-dev
<sid-linux> question regarding m1n1 adt. When the stage 1 m1n1 overwrites itself with the stage 2 m1n1, the chainloaded m1n1 still has access to the adt.
<sid-linux> How is that possible -- how is the adt still available ?
<sid-linux> adt =
<sid-linux> (void *)(((u64)cur_boot_args.devtree) - cur_boot_args.virt_base + cur_boot_args.phys_base);
<sid-linux> according to my calculations ADT would be at something like 0x802_B30_000
<sid-linux> but I would have thought that we treat the memory as "fresh" when m1n1 stage 2 restarts
<ChaosPrincess> the memory is still there, stage 2 is loaded at such an address that it does not overwrite the adt or other things you need to preserve
<jannau> as fresh as it is after iboot ran. the adt is in the bootargs and remains at it's location
<jannau> other things like the SEP firmware is copied
<sid-linux> max bootargs size is 16K. However devtree size is 0x5C00 or ~376K
<sid-linux> so while the pointer to the adt is in bootargs, it has to lie outside it
<sid-linux> if you look at chainload_image() in m1n1 src/chainload.c , there is a copying of SEPFW but no copying of the adt
<sven> isn’t the memory layout something like (bootargs)(adt)(m1n1)(sepfw)?
<ChaosPrincess> that should explain it
<sven> ah, bootargs after m1n1
<sid-linux> wow -- very useful. thanks ChaosPrincess
jeisom has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
<sid-linux> (figured it out also. adt is never overwritten by m1n1 and it lies at a lower address to _base where m1n1 is loaded)
<sid-linux> *never overwritten by m1n1 as part of the chainloading to the stage 2 m1n1
roxfan2 has joined #asahi-dev
roxfan2 has quit [Remote host closed the connection]
roxfan has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi-dev
roxfan has quit [Remote host closed the connection]
mikelee has quit [Ping timeout: 480 seconds]
adryzz has joined #asahi-dev
Lena has quit [Read error: Connection reset by peer]
roxfan has joined #asahi-dev
rootbeerdan has joined #asahi-dev
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
<sid-linux> does iboot add SEP Firmware in stage 1 boot ? Or does Asahi Linux package the SEP firmware with m1n1 stage 1 during installation of Asahi Linux?
<sid-linux> in other words who adds the SEF Firmware to the memory during stage 1?
<sid-linux> i guess it must be iboot because SEPFW appears in the ADT
<sid-linux> in `/chosen/memory-map`
<sven> yeah, it’s iboot
sid-linux has quit [Quit: User exited]
<ChaosPrincess> This might be helpful sid-linux
___nick___ has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
rootbeerdan has quit [Quit: rootbeerdan]
rootbeerdan has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
crabbedhaloablut has quit []
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
maria has quit [Ping timeout: 480 seconds]
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev
mikelee has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi-dev