2023-04-24
00:05chadmed_ has joined #asahi-dev
00:08kesslerdupont has quit [Ping timeout: 480 seconds]
00:17user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:21bluetail has quit [Quit: The Lounge - https://thelounge.chat]
00:21bluetail has joined #asahi-dev
00:26kesslerdupont has joined #asahi-dev
00:53user982492 has joined #asahi-dev
01:00kesslerdupont has quit [Ping timeout: 480 seconds]
01:07nsklaus has quit [Quit: ZZZzzz…]
01:14kesslerdupont has joined #asahi-dev
01:40bluetail has quit [Quit: The Lounge - https://thelounge.chat]
01:40bluetail has joined #asahi-dev
01:48user982492_ has joined #asahi-dev
01:54user982492 has quit [Ping timeout: 480 seconds]
02:00gabuscus has quit []
02:14gabuscus has joined #asahi-dev
02:17kesslerdupont has quit [Ping timeout: 480 seconds]
02:18user982492_ has quit [Quit: Textual IRC Client: www.textualapp.com]
02:18kesslerdupont has joined #asahi-dev
03:39kesslerdupont has quit [Ping timeout: 480 seconds]
03:41kesslerdupont has joined #asahi-dev
03:57kesslerdupont has quit [Ping timeout: 480 seconds]
04:05kesslerdupont has joined #asahi-dev
04:13kesslerdupont has quit [Ping timeout: 480 seconds]
04:23kesslerdupont has joined #asahi-dev
05:22cylm has joined #asahi-dev
06:14cy8aerchadmed_: Yes it is userspace of course. And yes filtering makes the sound better of course. I just run easy effects for my headphones with a multiband compressor and a limiter. But the sound will not get better if I would do another filtering/compressing stuff afterwards, it will just pump up.
06:17cy8aerchadmed_: What I meant was: How much should the sound be pre-enhanced. If it is done to hard the end user will have problems to do more adjusting on top of the adjusting done from the preset. Or am I wrong there?
06:19cy8aerAnd - of course - I would be happy if someone does the adjusting for me. If it sounds good I will then not play around with a filter anyways.
06:22cy8aerchadmed_: And you do your adjusting with the little help of sound studio equipment, right?
06:24chadmed_cy8aer: sure there are diminishing returns but thats not really what we're trying to do here. you can "layer" as much DSP as the hardware can handle, users can put whatever effects they want on top of what we do so long as it doesnt overload either the speakers themselves or the digital signal chain
06:26chadmed_and my philosophy on how much we should do on our end has been clear from day one - we do enough to turn our 6-way mess of microspeakers into a passably good stereo system
06:27chadmed_and no ive done it all by ear except for initially collecting some frequency response curves from the individual elements (each woofer and tweeter) as a visual guide
06:28chadmed_but the way REW works is you collect a frequency response curve and then apply theoretical filters to that as a visual aid
06:32cy8aerchadmed_: Ok, your intention is to just do the chassis correction (classical: which you would expect in a speaker in hardware when you buy them)
06:33chadmed_yeah pretty much. as ive always said im not one for fancy schmancy DSP transfer function spatial audio bullshit
06:34chadmed_if we wanted all that fancy crap i would have put more effort into figuring out what macos does beyond "oh its all just coreaudio AUs and obfuscated parameters into them"
06:37chadmed_but its the kind of work that is now beyond what i can currently do and what i have time to learn how to do
06:38chadmed_ has quit [Remote host closed the connection]
06:50kesslerdupont has quit [Ping timeout: 480 seconds]
06:58kesslerdupont has joined #asahi-dev
07:02bps has joined #asahi-dev
07:06kesslerdupont has quit [Ping timeout: 480 seconds]
07:16kesslerdupont has joined #asahi-dev
09:01nsklaus has joined #asahi-dev
09:16mkurz has joined #asahi-dev
09:50kesslerdupont has quit [Ping timeout: 480 seconds]
09:58kesslerdupont has joined #asahi-dev
10:33tobhe has joined #asahi-dev
10:38tobhe_ has quit [Ping timeout: 480 seconds]
10:38kesslerdupont has quit [Ping timeout: 480 seconds]
10:40handlerughm, say I want to look at making VRR work. I probably should look around with m1n1 in hypervisor mode and check the packets the macOS drivers send, right?
10:46kesslerdupont has joined #asahi-dev
10:55kesslerdupont has quit [Ping timeout: 480 seconds]
10:59_jannau_handlerug: there are 3 or 4 timestamp fields in IOMFBSwapRec. all timestamps are iirc in 24MHz resolution. not all timestamp files are always used. I think at boot only a single one is used
11:00kesslerdupont has joined #asahi-dev
11:00marcanjannau: how are you feeling about 13.3 DCP? once lina gets the GPU to parity I think it's time for a release for the new macbooks at least. I don't plan on pushing 13.3 for previous chips *yet*, we can leave that for a bit later.
11:01_jannau_DCP request APs calender_time at startup but I would expect problems under the HV, or maybe not since DCP might just too fast
11:01marcan(which is a bit annoying on Linux because that is abstracted out behind the clock subsystem... in a pinch you could read the timer register directly to get the current time in the right domain)
11:02marcanalmost everything in these SoCs uses the AIC timer for basic timing, and DCP's timer would also be synced to that
11:02marcancalendar time is a bit different and I would expect it to be used only for more specific stuff
11:03marcanthere's probably some weird reason DCP cares about calendar time, but it's probably not for VRR timing related stuff
11:07_jannau_marcan: did you see my PR, with the DCP changes there I feel somewhat confident about 13.3 DCP but I only tested on t8103/t6002
11:08marcanhttps://github.com/AsahiLinux/linux/pull/138/commits/8005d178ccc4b4c358d9a28ca4e1c14d66a4a440 is probably wrong, I increased the size but also lowered the base on t602x IIRC (to where I saw the firmware start)
11:10kesslerdupont has quit [Ping timeout: 480 seconds]
11:11kesslerdupont has joined #asahi-dev
11:15marcan_jannau_: you have a bad comment reindent, other than that pcie change looks good. I'll fix it,.
11:20marcanmight punt on enabling pcie on release packages until a bit later, but we'll put it into the next update at the latest
11:20kesslerdupont has quit [Ping timeout: 480 seconds]
11:25svenone more week until work finally calms down a bit again so that I can continue with the typec mess :)
11:27marcanChaosPrincess: so about adp, even though it's ostensibly the same hardware as some older iphones, I don't think we should pretend we know that for sure at this point. I'd use a more specific compatible like apple,t8103-dfr-display-pipe.
11:28marcanI also think we should consider how to let userspace tell it apart, because even if they're the same hardware the use case is *very* different
11:28marcanhow are we stopping xorg/kde/etc from treating it as a display (or even the primary display) right now?
11:28ChaosPrincesswe dont
11:29marcanok, so we need a way to do that, and one that can be disabled for iphones where it *is* the primary display
11:30ChaosPrincesswell, the idea is that the userspace daemon will grab it and somehow prevent it from being grabbed by kde
11:30ChaosPrincessalso, arguably, i want it to be able to be grabbed by kde, since you can drag a small panel there and use it for whatever
11:31marcanand then if KDE fixes the touch bar use case, they can do whatever they need to do to actively opt in
11:31marcanI don't expect for this to be reasonably useful with the current state of things on most compositors, and if people want to experiment they should opt in with some module arg or something
11:31_jannau_primary display should be solved by https://github.com/AsahiLinux/linux/pull/138/commits/5d41d320ff9e18c586af3b06e50fb034597c2dcb and userspace assumption that card0 is the primary display
11:32handlerugwhat macOS version do I need to use with m1n1 in macOS hypervisor mode? 12.3? or does it not matter
11:34ChaosPrincessalso, our daemon kinda does not exist yet
11:34marcanI mean I don't mind merging your driver, but I'm not going to enable it in release builds until we solve these issues :p
11:35ChaosPrincessrn its in a 'ready for someone to start writing a driver', not in 'shippable' state
11:35ChaosPrincessso thats fine
11:35marcan(if nobody else does I can probably cook up said daemon in an evening... but it sounds like the kind of thing lots of other people could have fun doing too)
11:36_jannau_kms has a property with the promising name "non-desktop" but that is intended for VR displays
11:36ChaosPrincess+ the whole part where this is my first time writing a drm driver, so expect code to not be great
11:36marcanI would not expect any VR solution to bind to a random unknown screen, so that may be perfectly fine
11:43kesslerdupont has joined #asahi-dev
11:58kesslerdupont has quit [Quit: leaving]
12:01kesslerd1pont has joined #asahi-dev
12:18kesslerd1pontchadmed: is there a git repo for the speaker safetyd? I see one on github under your name. I want to offer help and if there is anything I can do let me know.
12:22chadmedthe major thing that needs to happen is handling for whatever sample rate the main PCM is opened at
12:23chadmedand gracefully handling when the PCM is closed, iirc it currently just crashes out when the PCM is closed by whatever is sinking to it
12:23chadmedyou will likely need to extend that local fork of alsa-lib since the maintainer is a bit slow on the draw
13:07cylm_ has joined #asahi-dev
13:09cylm has quit [Ping timeout: 480 seconds]
13:35marcan[ 37.019637] apple-pmgr-pwrstate 28e580000.power-management:power-controller@240: PS uart0: pwrstate = 0x0: 0xf0
13:35marcan[ 37.030192] apple-pmgr-pwrstate 28e580000.power-management:power-controller@230: PS uart_p: pwrstate = 0x0: 0xf0
13:36marcanjannau: this might be why you were failing to resume... was that outside the HV by any chance?
13:58marcanas far as I can tell the genpd core just unconditionally powers domains off in the suspend path? what?
13:58MajorBiscuit has joined #asahi-dev
15:03Knedlik has joined #asahi-dev
15:05KnedlikI'm guessing no one noticed my last msg... I'm getting an "unexpected argument" of "--size_t-is-usize" when trying to build the pkgbuild with the touchbar PRs
15:06Knedlik has quit [Remote host closed the connection]
15:22Knedlik has joined #asahi-dev
15:23KnedlikDo you by any chance have an idea where the makefile could be? I believe you can do than on the terminal?
15:25_jannau_Knedlik: try to build the kernel first in a git checkout. if it builds there you can use your changes as additional patches in the PKGBUILD
15:39marcanKnedlik: https://github.com/AsahiLinux/PKGBUILDs/commit/9de1c21b5c8dc8da60d16deecc8e4365e01f899b
15:40knedlik_ has joined #asahi-dev
15:40Knedlik has quit [Remote host closed the connection]
15:40knedlik_ is now known as Knedlik
15:47MajorBiscuit has quit [Ping timeout: 480 seconds]
15:58cylm has joined #asahi-dev
16:00cylm_ has quit [Ping timeout: 480 seconds]
16:02abd has joined #asahi-dev
16:12abd has quit [Ping timeout: 480 seconds]
16:13marcanjannau: lol answer to the serial console thing from #armlinux: other platforms have one-off hacks for this in the genpd driver
16:14marcansorry, not dealing with that particular yak right now, someone else can pick up the fight of how to add a driver->genpd hook to disable genpd shutdown on suspend selectively :p
16:14kesslerd1pont has quit [Ping timeout: 480 seconds]
16:14marcanin the meantime, I guess just use the hypervisor to debug suspend stuff or just don't use no_console_suspend or if you actually have a serial console just make the PD always-on as a one-off hack
16:15abd has joined #asahi-dev
16:18abd has quit [Read error: Connection reset by peer]
16:20kesslerd1pont has joined #asahi-dev
16:31marcanjannau: lol, now the problem is suspend breaks DCP for the same reason (because we got rid of RPM and now genpd is still powering it down on suspend without the right things happening first)
16:32korreckj328 has joined #asahi-dev
16:32marcanthe problem logically is it's not a counter so if you have multiple devices doing that it will be a bit dodgy
16:33abd has joined #asahi-dev
16:34abd has quit [Remote host closed the connection]
16:35_jannau_I'll look at redoing the runtime-pm change. I hope it will be simpler if I ignore the component stuff and handle bind()/unbind() as p[robe()/release()
16:35marcan_jannau_: GENPD_FLAG_ACTIVE_WAKEUP and device->power.wakeup_path seems slightly less ugly
16:36ChaosPrincessdid you try to build distro kernel or sth
16:39___nick___ has joined #asahi-dev
16:44KnedlikIdk, for the change in the file to take effect? Or is it not taken as an environment variable?
16:48korreckj328 has quit [Quit: Leaving.]
17:07marcanjannau, ChaosPrincess: the DCP/uart sleep issues (and genpd issues) should *hopefully* all be fixed now.
17:16mkurz has quit [Read error: Connection reset by peer]
17:16mkurz has joined #asahi-dev
17:19MajorBiscuit has joined #asahi-dev
17:29MajorBiscuit has quit [Ping timeout: 480 seconds]
17:34___nick___ has quit []
17:36___nick___ has joined #asahi-dev
17:37___nick___ has quit []
17:39___nick___ has joined #asahi-dev
17:59KnedlikGuys I'm not sure how much I will or won't be able to work on the touchbar thing, as someone ruined a bit of my existing work and I'll have to work quite a bit to get it back to the original state. I hope you understand.
18:27ChaosPrincessso, since i got ignored in dri-devel, anyone knows what am i doing wrong with reporting the display mode? i am calling drm_cvt_mode(connector->dev, size >> 16, size & 0xFFFF, 60, true, false, false); and getting a 48-ish fps display mode instead of 60
18:28ChaosPrincesshandlerug: where you downloading it from
18:29___nick___ has quit [Ping timeout: 480 seconds]
18:30ChaosPrincesssec, i might help you out
18:45Knedlik has quit [Quit: Konversation terminated!]
18:56chipxxx has joined #asahi-dev
19:10jeremiahkorreck has joined #asahi-dev
19:14jannauChaosPrincess: I think the algorithm simply breaks down at 2008x60 altogether. it wasn't intended for such extreme aspect ratios
19:15jannauI'd simply copy the CVT-RBv2 mode from https://tomverbeure.github.io/video_timings_calculator
19:15ChaosPrincessI would like the userspace to know width/height/fps
19:16thelounge60 has quit [Ping timeout: 480 seconds]
19:17ChaosPrincessIsnt that what already happens when i pass reduced=true?
19:22kesslerd1pont has quit [Remote host closed the connection]
19:23jannauI suspect the problem is that simply doesn't expect that v sync, front/back porch can can be that large compred to the vertical resolution
19:25ChaosPrincessProbably
19:31kesslerdupont has joined #asahi-dev
19:39jeremiahkorreck is now known as korreckj328
19:48thelounge60 has joined #asahi-dev
19:59bluetail has quit [Quit: The Lounge - https://thelounge.chat]
20:00bluetail has joined #asahi-dev
20:05salimterryli has joined #asahi-dev
20:07SalimTer- has quit [Ping timeout: 480 seconds]
20:16stipa has joined #asahi-dev
20:21kesslerdupont has quit [Ping timeout: 480 seconds]
20:59bcrumb has joined #asahi-dev
21:04i509vcb has joined #asahi-dev
21:11cylm has quit [Ping timeout: 480 seconds]
21:37kesslerdupont has joined #asahi-dev
21:37bcrumb has quit [Quit: WeeChat 3.8]
21:44chipxxx has quit []
21:45kesslerdupont has quit [Ping timeout: 480 seconds]
21:46chipxxx has joined #asahi-dev
21:57abby has quit [Remote host closed the connection]
21:57abby_ has quit [Remote host closed the connection]
21:59chipxxx has quit []
21:59abby has joined #asahi-dev
22:03kesslerd1pont has joined #asahi-dev
22:28kesslerd1pont has quit [Ping timeout: 480 seconds]
22:32kesslerdupont has joined #asahi-dev
22:34nsklaus has quit [Quit: disappeared in a cloud of smoke]
22:37nsklaus has joined #asahi-dev
22:40korreckj_ has joined #asahi-dev
22:46kesslerdupont has quit [Ping timeout: 480 seconds]
22:57kesslerd1pont has joined #asahi-dev
23:08korreckj_ has quit []
23:11kesslerd1pont has quit [Ping timeout: 480 seconds]
23:19kesslerdupont has joined #asahi-dev
23:30kesslerdupont has quit [Ping timeout: 480 seconds]
23:35kesslerd1pont has joined #asahi-dev