#
…

2023-07-15

00:16m42uko has joined #asahi-dev
00:18m42uko_ has quit [Ping timeout: 480 seconds]
00:30roxfan has quit [Remote host closed the connection]
00:38Tramtristah i see.. ya thats very useful chadmed :)
00:41roxfan has joined #asahi-dev
00:44marcanTramtrist: I get applecare for machines I actually intend to use daily/travel with
00:44marcandesktops and machines that are just base model test devices, no
00:46marcaneiln: 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.
00:46marcanI'm not interested in reinventing the ISP stack and ending up with crappier results than macos
00:58nela has joined #asahi-dev
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:22amarioguy has quit [Remote host closed the connection]
01:30Z750 has quit [Quit: Ping timeout (120 seconds)]
01:31Z750 has joined #asahi-dev
01:58jnn has joined #asahi-dev
02:00gabuscus has quit []
02:01jn has quit [Ping timeout: 480 seconds]
02:03jeisom has quit [Ping timeout: 480 seconds]
02:24gabuscus has joined #asahi-dev
02:34mikelee has joined #asahi-dev
02:45crabbedhaloablut has quit [Ping timeout: 480 seconds]
02:53erso has quit [Ping timeout: 480 seconds]
03:01skipwich has quit [Quit: DISCONNECT]
03:01c10l5 has joined #asahi-dev
03:01erso has joined #asahi-dev
03:01skipwich has joined #asahi-dev
03:04_rudi has quit [Ping timeout: 480 seconds]
03:06apalos has quit [Quit: ZNC 1.7.2 - https://znc.in]
03:07apalos has joined #asahi-dev
03:08c10l has quit [Ping timeout: 480 seconds]
03:09chadmedmarcan: how do you feel about drawing a line under a custom bass enhancement plugin and just pulling in calf as a dependency?
03:09marcanI don't particularly mind, but also I don't particularly trust calf for anything
03:09marcantheir engineering is... not great
03:09marcane.g. their crossover/frequency-dependent processing is totally broken last I checked
03:10erso has quit [Ping timeout: 480 seconds]
03:10marcanif it were LSP or x42 I'd be less worried :p
03:10marcanalso I think there have been stability issues with calf
03:10chadmedyeah... thats what i was worried about too :P
03:10chadmedive been dogfooding the bass enhancer for the last week or so and it sounds pretty good
03:10marcantheir standard plugin just as is?
03:11chadmedyeah, just with some tweaked parameters
03:11chadmedno code changes though
03:12chadmedi managed to beat the final boss of loudness with no apparent damage to my machine too
03:14erso has joined #asahi-dev
03:19marcanmaybe we should just pull out their algorithm into a standalone thing then
03:19marcanthere's some rust lv2 thing that didn't look too hard to use
03:20mikelee has quit [Remote host closed the connection]
03:21chadmedyeah i had a play with it a while ago, i should revisit it
03:23erso has quit [Ping timeout: 480 seconds]
03:31erso has joined #asahi-dev
03:37mikelee has joined #asahi-dev
03:39erso has quit [Ping timeout: 480 seconds]
03:47mikelee has quit [Ping timeout: 480 seconds]
03:47erso has joined #asahi-dev
03:55dylanchapell has quit [Read error: Network is unreachable]
03:55erso has quit [Ping timeout: 480 seconds]
03:57mikelee has joined #asahi-dev
04:03erso has joined #asahi-dev
04:05mikelee has quit [Ping timeout: 480 seconds]
04:12erso has quit [Ping timeout: 480 seconds]
04:14mikelee has joined #asahi-dev
04:20erso has joined #asahi-dev
04:21dylanchapell has joined #asahi-dev
04:29erso has quit [Ping timeout: 480 seconds]
04:35mikelee has quit [Read error: Connection timed out]
04:37erso has joined #asahi-dev
04:51erso has quit [Ping timeout: 480 seconds]
05:00erso has joined #asahi-dev
05:03mikelee has joined #asahi-dev
05:09erso has quit [Ping timeout: 480 seconds]
05:15mikelee has quit [Ping timeout: 480 seconds]
05:16erso has joined #asahi-dev
05:16mikelee has joined #asahi-dev
05:25erso has quit [Ping timeout: 480 seconds]
05:28mikelee has quit [Ping timeout: 480 seconds]
05:33erso has joined #asahi-dev
05:41mikelee has joined #asahi-dev
05:42erso has quit [Ping timeout: 480 seconds]
05:49mikelee has quit [Ping timeout: 480 seconds]
05:50erso has joined #asahi-dev
05:53midou has quit [Remote host closed the connection]
05:55midou has joined #asahi-dev
05:59erso has quit [Ping timeout: 480 seconds]
06:00mikelee has joined #asahi-dev
06:06erso has joined #asahi-dev
06:09mikelee has quit [Ping timeout: 480 seconds]
06:09sid-linux has joined #asahi-dev
06:15erso has quit [Ping timeout: 480 seconds]
06:17mikelee has joined #asahi-dev
06:22erso has joined #asahi-dev
06:26mikelee has quit [Ping timeout: 480 seconds]
06:31erso has quit [Ping timeout: 480 seconds]
06:34mikelee has joined #asahi-dev
06:39erso has joined #asahi-dev
06:43mikelee has quit [Ping timeout: 480 seconds]
06:48erso has quit [Ping timeout: 480 seconds]
06:51crabbedhaloablut has joined #asahi-dev
06:52mikelee has joined #asahi-dev
06:56erso has joined #asahi-dev
07:01mikelee has quit [Ping timeout: 480 seconds]
07:05erso has quit [Ping timeout: 480 seconds]
07:07mikelee has joined #asahi-dev
07:14erso has joined #asahi-dev
07:15mikelee has quit [Ping timeout: 480 seconds]
07:22erso has quit [Ping timeout: 480 seconds]
07:30erso has joined #asahi-dev
07:35mikelee has joined #asahi-dev
07:39erso has quit [Ping timeout: 480 seconds]
07:46pbsds has quit [Quit: The Lounge - https://thelounge.chat]
07:47erso has joined #asahi-dev
07:50mikelee has quit [Ping timeout: 480 seconds]
07:51sid-linuxwhat exactly is the SEP firmware (SEPFW) ?
07:53j`eysep = sencure enclave processor
07:53j`eycurrently the only use is getting an rng inside m1n1 for kaslr
07:54sid-linuxj`ey: thank you for your prompt reply (as usual :-) )
07:56erso has quit [Ping timeout: 480 seconds]
08:04erso has joined #asahi-dev
08:13erso has quit [Ping timeout: 480 seconds]
08:20erso has joined #asahi-dev
08:29erso has quit [Ping timeout: 480 seconds]
08:30rootbeerdan has quit [Ping timeout: 480 seconds]
08:38erso has joined #asahi-dev
08:47erso has quit [Ping timeout: 480 seconds]
08:56erso has joined #asahi-dev
08:57nsklaus has joined #asahi-dev
09:01mikelee has joined #asahi-dev
09:05erso has quit [Ping timeout: 480 seconds]
09:09mikelee has quit [Ping timeout: 480 seconds]
09:13erso has joined #asahi-dev
09:13pbsds has joined #asahi-dev
09:18mikelee has joined #asahi-dev
09:21erso has quit [Ping timeout: 480 seconds]
09:29mikelee has quit [Ping timeout: 480 seconds]
09:29erso has joined #asahi-dev
09:38mikelee has joined #asahi-dev
09:46mikelee has quit [Ping timeout: 480 seconds]
09:56jeisom has joined #asahi-dev
10:05mikelee has joined #asahi-dev
10:14mikelee has quit [Ping timeout: 480 seconds]
10:56erso has quit [Ping timeout: 480 seconds]
11:05erso has joined #asahi-dev
11:13erso has quit [Ping timeout: 480 seconds]
11:15erso has joined #asahi-dev
11:16roxfan2 has joined #asahi-dev
11:22cylm has joined #asahi-dev
11:22roxfan has quit [Ping timeout: 480 seconds]
11:27mikelee has joined #asahi-dev
11:28jeisom has quit [Quit: Leaving]
11:28stipa has joined #asahi-dev
11:31jeisom has joined #asahi-dev
11:34jeisom has quit [Remote host closed the connection]
11:34jeisom has joined #asahi-dev
11:35mikelee has quit [Ping timeout: 480 seconds]
11:35jeisom has quit [Remote host closed the connection]
11:36jeisom has joined #asahi-dev
11:38nsklaus has quit [Quit: WeeChat 4.1.0-dev]
11:38nsklaus has joined #asahi-dev
11:44mikelee has joined #asahi-dev
11:48jeisom_ has joined #asahi-dev
11:48jeisom has quit [Read error: No route to host]
11:52mikelee has quit [Ping timeout: 480 seconds]
11:55mikelee has joined #asahi-dev
12:03mikelee has quit [Ping timeout: 480 seconds]
12:09jeisom_ has quit [Remote host closed the connection]
12:10jeisom has joined #asahi-dev
12:34svenyay, looks like usb is stable again
12:35svennow lets see about that weird bit that flips when xnu runs but didn’t with my old code
12:35svenalso, usb3 followed by a mode switch to usb3+DP doesn’t require a dwc3 reset anymore \o/
12:39jannaucompletely 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)
12:40sven😵‍💫
12:40sventhere are still some issues with pcie power management over tbt but I first want to get this new tipd/usb3 part ready
12:41svenand the whole pcie hotplug issues ofc
12:41jannauyeah! 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
12:42svenI think so. Iirc xnu used to do that additional reset but at some point they also stopped doing it
12:42svenor maybe I just misremember the first part :D
12:42svenbut essentially I can switch the atcphy mode without going through a full reset and everything still works
12:43jannauno worries about pcie/tbt, that was just a quick tests for new HW
12:43svenwhat I might end up doing is just always setting up usb3+DP anyway for the current hw
12:44svenI also think I know how dp tunneling works now so that’s next after usb3/tipd
12:54jannausplit 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
12:54mikelee has joined #asahi-dev
12:55jannausven: dcp is mostly still the same hardcoded hacks regarding phy and mux?
13:03wCPO has quit [Quit: The Lounge - https://thelounge.chat]
13:04wCPO has joined #asahi-dev
13:06svenyeah, but I have some vague plans how to improve that
13:06svenbut I first want to make sure dp tunneling works similar to DP altmode
13:07svenI think crossbar needs some work on t6000 for dual output though
13:07jannaudon't or talk to me first, I'm working on that to at least allow in principle dynamic switching
13:07midou has quit [Ping timeout: 480 seconds]
13:07svenbut that can come later
13:08svenwhat I definitely want to change is that oob hpd notification to include the current state
13:08sventhe 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
13:09svenI also have some vague ideas about how to model this in the DT that we should also discuss at some point
13:09jannaucurrent plan is to have "fake" (as in not backed by HW) displayport controllers which control the phy and mux
13:11svenbut I think DP tunneling and ideally also multi output should work first because there might still be some nasty surprises lurking
13:11jannaudcp connects via ports/graph to those dp controller but I'm unsure how dp-tunneling fits into that
13:12svenif 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
13:12jannauI hope we can shove into the dp controller as well altough the second dcp dp out will be a strange fit
13:14svenbut essentially for DP tunneling we’ll have a “dpin” phy that will also trigger the HPD notification
13:14zachole has joined #asahi-dev
13:15jannauthis tries to copy the drm/kms device model which is a terrible fit for DCP
13:16sven“this”?
13:16svenDpin is a real phy-like thing that needs some setup fwiw
13:16svenso we’ll very likely need a phy node for that
13:17jannau"this" == my draft device tree model and the sub drivers I'm writing
13:18sven dunno if my vague idea is any better there :/
13:18svenugh, I’m already running late. I’ll ping you later
13:35amarioguy has joined #asahi-dev
13:44mikelee has quit [Ping timeout: 480 seconds]
13:47jeisom has quit [Ping timeout: 480 seconds]
13:56mikelee has joined #asahi-dev
14:00midou has joined #asahi-dev
14:04mikelee has quit [Ping timeout: 480 seconds]
14:06mikelee has joined #asahi-dev
14:14mikelee has quit [Ping timeout: 480 seconds]
14:19nsklaus has quit [Quit: brb]
14:19nsklaus has joined #asahi-dev
14:21roxfan has joined #asahi-dev
14:23sid-linux has quit [Quit: User exited]
14:24roxfan2 has quit [Ping timeout: 480 seconds]
14:37mikelee has joined #asahi-dev
14:47mikelee has quit [Ping timeout: 480 seconds]
14:51mikelee has joined #asahi-dev
15:01mikelee has quit [Ping timeout: 480 seconds]
15:08mikelee has joined #asahi-dev
15:13nsklaus has quit [Quit: brb]
15:13nsklaus has joined #asahi-dev
15:14roxfan2 has joined #asahi-dev
15:18roxfan has quit [Ping timeout: 480 seconds]
15:30eiln has joined #asahi-dev
15:32mikelee has quit [Ping timeout: 480 seconds]
15:38mikelee has joined #asahi-dev
15:42roxfan has joined #asahi-dev
15:47roxfan2 has quit [Ping timeout: 480 seconds]
15:50sid-linux has joined #asahi-dev
15:51mikelee has quit [Ping timeout: 480 seconds]
15:52mikelee has joined #asahi-dev
15:52eilnmarcan: makes sense. and if i can figure out one "ioctl", the 400 others should be relatively straightforward
15:53eilni'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)
15:53eilnoh well, i've gotta figure out CISP_CMD_START first
15:57ChaosPrincesseiln: you should replace w_tun_c with this: https://paste.bingner.com/paste/c9ry8
16:03eilnChaosPrincess: i recall the ane dapf writes were slightly different so i played safe. this is much better, thank you
16:04ChaosPrincessyes, they are different, and normal m1n1 code does not work with them
16:06eilnaha, ty
16:14sid-linux has quit [Quit: User exited]
16:21mikelee has quit [Ping timeout: 480 seconds]
16:22eiln has quit [Ping timeout: 480 seconds]
16:41rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
16:41Guest5884 has quit [Quit: Bridge terminating on SIGTERM]
16:45Jamie has joined #asahi-dev
16:45rhysmdnz has joined #asahi-dev
16:45Jamie is now known as Guest6081
16:53ChaosPrincesseiln: so, that ipc.bin link expired, but does that look correct? https://paste.bingner.com/paste/nmgha
16:56mikelee has joined #asahi-dev
17:11mikelee has quit [Ping timeout: 480 seconds]
17:19adryzz has joined #asahi-dev
17:20Lena has joined #asahi-dev
17:22mikelee has joined #asahi-dev
17:27adryzz has quit [Ping timeout: 480 seconds]
17:29___nick___ has joined #asahi-dev
17:29___nick___ has quit []
17:32___nick___ has joined #asahi-dev
17:35mikelee has quit [Ping timeout: 480 seconds]
17:40jeisom has joined #asahi-dev
17:51sid-linux has joined #asahi-dev
17:54sid-linuxquestion regarding m1n1 adt. When the stage 1 m1n1 overwrites itself with the stage 2 m1n1, the chainloaded m1n1 still has access to the adt.
17:54sid-linuxHow is that possible -- how is the adt still available ?
17:55sid-linux (void *)(((u64)cur_boot_args.devtree) - cur_boot_args.virt_base + cur_boot_args.phys_base);
17:58sid-linuxaccording to my calculations ADT would be at something like 0x802_B30_000
17:59sid-linuxbut I would have thought that we treat the memory as "fresh" when m1n1 stage 2 restarts
18:01ChaosPrincessthe 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
18:02jannauas fresh as it is after iboot ran. the adt is in the bootargs and remains at it's location
18:03jannauother things like the SEP firmware is copied
18:09sid-linuxmax bootargs size is 16K. However devtree size is 0x5C00 or ~376K
18:09sid-linuxso while the pointer to the adt is in bootargs, it has to lie outside it
18:11sid-linuxif you look at chainload_image() in m1n1 src/chainload.c , there is a copying of SEPFW but no copying of the adt
18:12svenisn’t the memory layout something like (bootargs)(adt)(m1n1)(sepfw)?
18:12ChaosPrincessthat should explain it
18:12svenah, bootargs after m1n1
18:13sid-linuxwow -- very useful. thanks ChaosPrincess
18:19jeisom has quit [Ping timeout: 480 seconds]
18:22mikelee has joined #asahi-dev
18:27sid-linux(figured it out also. adt is never overwritten by m1n1 and it lies at a lower address to _base where m1n1 is loaded)
18:27sid-linux*never overwritten by m1n1 as part of the chainloading to the stage 2 m1n1
18:32roxfan2 has joined #asahi-dev
18:35roxfan2 has quit [Remote host closed the connection]
18:37roxfan has quit [Ping timeout: 480 seconds]
18:48roxfan has joined #asahi-dev
18:56roxfan has quit [Remote host closed the connection]
18:59mikelee has quit [Ping timeout: 480 seconds]
19:04adryzz has joined #asahi-dev
19:04Lena has quit [Read error: Connection reset by peer]
19:06roxfan has joined #asahi-dev
19:11rootbeerdan has joined #asahi-dev
19:16mikelee has joined #asahi-dev
19:27mikelee has quit [Ping timeout: 480 seconds]
19:27sid-linuxdoes 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?
19:29sid-linuxin other words who adds the SEF Firmware to the memory during stage 1?
19:30sid-linuxi guess it must be iboot because SEPFW appears in the ADT
19:31sid-linuxin `/chosen/memory-map`
19:33svenyeah, it’s iboot
19:37sid-linux has quit [Quit: User exited]
19:39ChaosPrincessThis might be helpful sid-linux
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:09mikelee has joined #asahi-dev
20:13rootbeerdan has quit [Quit: rootbeerdan]
20:14rootbeerdan has joined #asahi-dev
20:17mikelee has quit [Ping timeout: 480 seconds]
20:26mikelee has joined #asahi-dev
20:34mikelee has quit [Ping timeout: 480 seconds]
20:42mikelee has joined #asahi-dev
20:51mikelee has quit [Ping timeout: 480 seconds]
21:09mikelee has joined #asahi-dev
21:19mikelee has quit [Ping timeout: 480 seconds]
21:31mikelee has joined #asahi-dev
21:41mikelee has quit [Ping timeout: 480 seconds]
22:03crabbedhaloablut has quit []
22:06mikelee has joined #asahi-dev
22:14mikelee has quit [Ping timeout: 480 seconds]
22:40mikelee has joined #asahi-dev
22:49mikelee has quit [Ping timeout: 480 seconds]
22:57mikelee has joined #asahi-dev
23:07mikelee has quit [Ping timeout: 480 seconds]
23:15mikelee has joined #asahi-dev
23:19nsklaus has quit [Ping timeout: 480 seconds]
23:27maria has quit [Ping timeout: 480 seconds]
23:31mikelee has quit [Ping timeout: 480 seconds]
23:38mikelee has joined #asahi-dev
23:48mikelee has quit [Ping timeout: 480 seconds]
23:57mikelee has joined #asahi-dev
…