#
…

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:26chadmed_what users do beyond that is up to them
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:27chadmed_but i wouldnt call what i used "studio" equipment
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:29chadmed_but all the tuning beyond that initial crude work has been by ear
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:33chadmed_i just want a good sounding set of stereo speakers
06:33chadmed_whatever people want to put on top of that is their business
06:34cy8aerYep, that would be great for me as an end user.
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:35cy8aerSo then I am looking forward for a real good sound 🙂
06:35chadmed_soon(tm)
06:35chadmed_the safety daemon needs a fair bit of work
06:36cy8aeryes I know, I have been observing your work for some time now.
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:43marcancorrect, use the DCP tracing stuff
10:45* handlerugdusts off his old trusty Core i5 laptop
10:46kesslerdupont has joined #asahi-dev
10:53marcanfolding in the t602x stuff into the main branches now
10:55kesslerdupont has quit [Ping timeout: 480 seconds]
10:56marcanand next I'm going to try to fix the stupid genpd thing with on-at-boot domains
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
10:59handleruginteresting
10:59_jannau_not sure if that is the preferred swap time or just the current AP time
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:00j`eyand that corresponds to struct dcp_swap in drivers/gpu/drm/apple/iomfb.h, right _jannau_ ?
11:00marcanif the timestamps are 24MHz they should match the AIC timer / ARMv8 timer counter
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:01marcan_jannau_: are they in calendar time though?
11:02marcanalmost everything in these SoCs uses the AIC timer for basic timing, and DCP's timer would also be synced to that
11:02_jannau_I don't remember
11:02marcancalendar time is a bit different and I would expect it to be used only for more specific stuff
11:03handlerugcalendar time can't be RTC, right?
11:03handlerugwould be weird to use that
11:03marcanthere's probably some weird reason DCP cares about calendar time, but it's probably not for VRR timing related stuff
11:04marcancalendar time should be UNIX time
11:05_jannau_I can't remember what calender time was but afaik it was not seconds since epoch
11:05_jannau_s/afaik/iirc/
11:05marcanmight be nanoseconds or something
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:07marcanare those different from what was in the bringup branch?
11:07marcanah, on top, okay
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:09marcanlikely 4ec00000
11:09_jannau_only functional difference is D212 -> D208 update_backlight_factor_prop
11:10kesslerdupont has quit [Ping timeout: 480 seconds]
11:10_jannau_the ADT has a region with something like 0x24ec98000, size 0x120000
11:11marcanyeah but that doesn't make any sense, SRAM start is aligned
11:11kesslerdupont has joined #asahi-dev
11:12marcanDCP changes look good
11:13marcanI'm just going to guess it starts at c by analogy to t602x
11:15marcan_jannau_: you have a bad comment reindent, other than that pcie change looks good. I'll fix it,.
11:17_jannau_thanks, with that change and kettenis t6020 uboot branch we can enable pcie in uboot
11:18_jannau_asmedia xhci works in linux whether uboot has or misses its firmware
11:18marcanexcellent :)
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:20marcan(I also want to try to fix the asmedia firmware load, it's not reliable...)
11:20kesslerdupont has quit [Ping timeout: 480 seconds]
11:21marcanpushed with your changes
11:21marcanok, genpd next
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: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:30marcanthat's called a race condition
11:30marcanwe need *some* way to stop regular compositors from binding to it
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:30marcanthis might be a question for #dri-devel :)
11:30marcanwell, that right now is horribly broken in KDE
11:31marcanwhich is all the more reason to disable it by default
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:31marcanbut the default should be nothing touches the touch bar except our daemon
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:32marcanyeah, but that's still a problem for secondary displays
11:32marcanhandlerug: 12.3 on M1 and 12.4 on M2 and 13.3 on M2 Pro/Max
11:32marcanthe wiki explains how to do a specific version intall
11:32handlerugI have M1 Max so it's 12.3 for me. thanks!
11:33_jannau_tracing / m1n1 dcp testing is not ready / in place for 13.3
11:34ChaosPrincessalso, our daemon kinda does not exist yet
11:34marcanI know, but it will have to for this to be shippable by default
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:34_jannau_I haven't even updated my horrible 13.2 support to 13.3 yet
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:36marcan_jannau_: is it *only* intended for VR displays though?
11:36marcanI would not expect any VR solution to bind to a random unknown screen, so that may be perfectly fine
11:36marcan(VR requires precise knowledge of the target)
11:36_jannau_we've signed up Knedlik for writing the daemon
11:40_jannau_kwin started to ignore non_desktop displays 2 years ago
11:43kesslerdupont has joined #asahi-dev
11:58kesslerdupont has quit [Quit: leaving]
12:01kesslerd1pont has joined #asahi-dev
12:08marcanthat sounds good to me
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:19chadmedi think marcan forked it when he was working on it
12:20chadmeditll probably end up under AsahiLinux at some point
12:20chadmedlikewise the dsp stuff when its shippable
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
12:23chadmedi added a bunch of bindings that got merged but theres been no release since
12:24chadmedignore the todo list in the readme too, it wasnt updated after the last bunch of work
12:24chadmedim sure youll figure it out tho
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:36marcanthat would go very badly if the console remains active
13:36marcan(and you have serial)
13:37marcanthat's a UART driver bug, it needs special handling for this
13:38_jannau_yes, resume failed outside of HV
13:41marcan_jannau_: was that with no_console_suspend?
13:42marcanok, then it was almost certainly this
13:42marcanI'll fix it
13:56marcan... lol, I don't even know if I can fix it
13:58marcanas far as I can tell the genpd core just unconditionally powers domains off in the suspend path? what?
13:58marcanand there's no way for devices to stop that?
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:13psykoseclassic new bindgen
15:18marcanKnedlik: just drop that flag from whatever Makefile it's in
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:24j`eyKnedlik: rust/Makefile
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:25KnedlikAh, I'll try it in a sec, thanks a lot
15:26KnedlikIf I use the PKGBUILD, it should automatically install that stuff, right?
15:27_jannau_no, you have to manually install it with `sudo pacman -U $file`
15:28KnedlikAh, the file I assume will be somewhere in the build dir?
15:39marcanuntested but that should work
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:18marcanChaosPrincess: found the bug
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:31_jannau_I saw. I wonder what happends if we set GENPD_FLAG_ALWAYS_ON from suspend()
16:31marcanI was about to do that lol
16:32_jannau_I was thinking of serial
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:32marcanbut in practice it will work
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:35marcanit's basically the feature we want, just by a different name
16:35KnedlikGuys if I ever decide to rebuild the kernel from scratch on my M1 macbook.... stop me
16:36KnedlikI'm building for what, an hour now?
16:36marcanum... that doesn't sound right
16:36ChaosPrincessdid you try to build distro kernel or sth
16:36KnedlikI just ran makepkg -s
16:37j`eyKnedlik: do you mean the actual build, or just getting everyting setup?
16:37_jannau_does makepkg default to '-j 1'?
16:37KnedlikI mean the actual build
16:37marcanKnedlik: bet you didn't set your MAKEFLAGS properly
16:37marcanMAKEFLAGS="-j8" in /etc/makepkg.conf
16:37marcanyou're building single-core
16:37KnedlikShould I stop and try building with more cores?
16:38Knedlik-j2 it seems is the default
16:38marcanok, still :p
16:38KnedlikOk, trying with 8
16:38_jannau_the distro package is not ideal since it does almost 2 kernel builds
16:39___nick___ has joined #asahi-dev
16:39marcan_jannau_: I'll try the wakeup trick
16:40KnedlikActual build started now at 16:40 UTC, so let's see how long it takes
16:41KnedlikUhhh I forgot to restart the terminal, could that be a problem?
16:43marcanrestart the terminal?
16:43marcanwhy would you need to do that?
16:44KnedlikIdk, for the change in the file to take effect? Or is it not taken as an environment variable?
16:46KnedlikSeems faster after a terminal restart tbh
16:47marcanno, it is loaded when you run `makepkg`
16:48korreckj328 has quit [Quit: Leaving.]
17:07marcanjannau, ChaosPrincess: the DCP/uart sleep issues (and genpd issues) should *hopefully* all be fixed now.
17:08marcanand I should get some sleep
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:40KnedlikOkay so after like an hour, I'm building the fs/ folder
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:01jnupstream API changes? (just curious about the ruining)
18:07KnedlikUnfortunately, this was human error
18:08KnedlikSomeone completely destroyed my studio's discord server
18:12marcanKnedlik: are you sure you set the MAKEFLAGS properly? did you uncomment the line?
18:12marcansorry about the discord :(
18:12KnedlikAre you telling me there was a comment I didn't see?
18:13KnedlikOh my god I'm blind as a blank cartridge
18:27* handlerughas been downloading the 12.3 pkg for 9 hours already :P
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:29handlerugarchive.org :P
18:29___nick___ has quit [Ping timeout: 480 seconds]
18:30ChaosPrincesssec, i might help you out
18:32handlerugtoo late probably https://a.uguu.se/ZWBfNHqY.png but thanks for the consideration
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:15jannaudo you need anything from the mode except that need to report it to userspace?
19:15ChaosPrincessI would like the userspace to know width/height/fps
19:16jannausimply fill the mode manually with the values that timing generator reports for CVT-RBv2
19:16thelounge60 has quit [Ping timeout: 480 seconds]
19:17ChaosPrincessIsnt that what already happens when i pass reduced=true?
19:20jannauno, it should be equivalent to the CVT-RB values but don't ask me why it isn't
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:24jannauI'd expect that 640x480 is the minimal resolution this was tested against
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
…