2022-03-12
00:55chadmed has quit [Quit: Konversation terminated!]
01:08chadmed has joined #asahi-dev
01:21chadmed has quit [Remote host closed the connection]
01:23chadmed has joined #asahi-dev
01:24hizonxx has joined #asahi-dev
01:26hizonxx has quit []
01:48yuyichao has joined #asahi-dev
02:04riker77_ has joined #asahi-dev
02:09riker77 has quit [Ping timeout: 480 seconds]
02:09riker77_ is now known as riker77
02:11dsrt^ has joined #asahi-dev
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-dev
02:52chadmedturns out pipewire actually ignores asound.conf and opens a direct port to the hardware by default, unless you specify in its own configuration that it should use an already defined ALSA PCM as its default sink
02:53chadmedproblem with this is that it does not work with ALSA PCMs that route through LADSPA plugins, pipewire expects you to create a virtual pipewire sink to do that (again in its own config), link that to a "coupled" sink (a source-sink passthrough in pipewire) and then feed that directly to hardware
02:56chadmedand the problem with THAT is that pipewire opening direct ports to this driver somehow breaks pipewire-pulse, which is what has caused mpv and VLC to explode. the failure mode is similar to if you disable resampling in vanilla pulseaudio so im thinking pipewire is not telling pipewire-pulse to do it or something
02:59chadmedthe other shit thing is that REW or Java relies on some stuff llvmpipe cant do and so its GUI breaks on launch, which makes it basically impossible to get well-calibrated response curves for the drivers. doesnt matter anyway, since plugging in my interface to use the calibration mic makes the internal speakers unusable :)
03:02riker77_ has joined #asahi-dev
03:06riker77 has quit [Ping timeout: 480 seconds]
03:06riker77_ is now known as riker77
03:23PhilippvK has joined #asahi-dev
03:26phiologe has quit [Ping timeout: 480 seconds]
03:27PaterTemporalis has quit [Ping timeout: 480 seconds]
03:50kov has quit [Quit: Coyote finally caught me]
05:17nepeat has quit [Remote host closed the connection]
05:17nepeat has joined #asahi-dev
05:18bpye has quit [Quit: Ping timeout (120 seconds)]
05:18linuxgemini has quit [Quit: Ping timeout (120 seconds)]
05:18kode54 has quit [Quit: Ping timeout (120 seconds)]
05:18KDDLB has quit [Quit: Ping timeout (120 seconds)]
05:19kode54 has joined #asahi-dev
05:19bpye has joined #asahi-dev
05:19nkaretnikov has quit [Read error: Connection reset by peer]
05:19linuxgemini has joined #asahi-dev
05:19robher has quit [Remote host closed the connection]
05:19marcankettenis: I'm working on extracting out the DTs so we can package those separately, ideally automatically from the asahi branch
05:19WindowPain has quit [Remote host closed the connection]
05:20skipwich has quit [Quit: DISCONNECT]
05:20tardyp has quit [Read error: Connection reset by peer]
05:20KDDLB has joined #asahi-dev
05:20skipwich has joined #asahi-dev
05:20tardyp has joined #asahi-dev
05:20nkaretnikov has joined #asahi-dev
05:20erincandescent has quit [Quit: No Ping reply in 180 seconds.]
05:20robher has joined #asahi-dev
05:20WindowPain has joined #asahi-dev
05:21erincandescent has joined #asahi-dev
05:22marcanchadmed: hey, I once REWed through a JACK to network to ffmpeg bridge to get an impulse response of my smartphone, there's always a way :D
05:24KDDLB has quit []
05:24WindowPain has quit []
05:25KDDLB has joined #asahi-dev
05:25WindowPain has joined #asahi-dev
05:41chadmedive got everything routing through JACK (pipewire and pulse are both happy to act as clients to it) so it doesnt fall apart when i plug my interface in, so i can now either use REW remotely by waypipe-ing Xwayland to my main machine or get a 24/96 WAV of a log sweep and just play that via aplay to each driver and use the calibration mic through another machine with known parameters
05:45marcanchadmed: and yeah, my standard setup these days is JACK behind everything for my main interface, though I hope to move to pure pipewire in the future
05:45marcanJACK itself has a lot of problems pipewire fixes, but pipewire also has a lot more complexity... :-)
05:59Jamie[m]1is it worthwhile/annoying to fix typos in drivers? apple-admac.c says "dmaegine" in a comment
06:01chadmedi think it is, but not if its the only thing youre committing (unless theres a whole mess of em)
06:14marcanchadmed: also, you should add this song to your test list: https://open.spotify.com/track/5J6ddKggpE3BUbd9d9cFES?si=5e7b9ae1059e426b
06:15marcanchadmed: ideally at +∞ gain (it's supposed to be a 1bit song before the lossy compression :D)
06:16marcanI might actually be willing to sacrifice one of my (AppleCare'd) laptops to that once we're reasonably confident it's *mostly* safe for normal audio...
06:20darkapex1 is now known as darkapex
06:37dsrt^ has quit [Remote host closed the connection]
07:07chadmedhuh ok so the crossovers and EQ i set by ear are pretty much exactly where they need to be :D
07:15marcanI really want to know wtf macOS is doing now then, if only to figure out why it sounds worse :p
07:18chadmedsounds to me like theyre expanding the mids. one thing it does better though is the tightness of the bass response. its pretty dead under linux regardless of what i do with the EQ, which makes me think theyve got some funky phasing going on to overcome standing waves set up in the chassis
07:24gladiac has joined #asahi-dev
08:10tanty has quit [Remote host closed the connection]
08:11tanty has joined #asahi-dev
08:19tanty has quit []
08:23tanty has joined #asahi-dev
08:30chadmedhttps://drive.google.com/file/d/122M6wB8eRCw6A1FM85i8edd9AyCNCxTQ/view?usp=sharing <- 24/96 WAV impulses for each driver
08:44marcanfrom macOS I guess the interesting bit is going to be the group delay in the lows, though we ought to be able to work out a good solution for that with just those impulses, right?
08:45chadmedim hoping so. i want to see what happens when i apply them to the drivers as is using brutefir or something similar
08:46marcanI imagine you might want to smooth out the response in the mid-highs, since otherwise you're going to end up over-correcting for a very specific position
08:47marcan(and also it's not a head model measurement, so will be slightly off from a normal listening position in that sense)
08:47bluetail[m]how is that behaving individually on each m1 machine?
08:47bluetail[m]mac mini m1 vs m1 laptop might have different acoustical properties
08:48chadmedim just using the j314s as a proof of concept and to establish a process going forward for new machines
08:49chadmedthat said i dont really have the money or time to do this for each and every new machine that comes out, as much as id love to :P
08:49bluetail[m]Do you think apple does this real-time, following a harman curve?
08:50bluetail[m]you make it sound so obvious (laughs)
08:51chadmedof course you could apply an EQ curve to a file or something, but if the output of your filters is going to speakers, you can only really do it as the samples arrive
08:59marcanchadmed: your setup is probably better than mine, but I can run this on all the machines once we have a process and cross-check against your results for j314s
09:00marcanI've been meaning to acoustically treat this room properly anyway... might be a good excuse to finally do it soon
09:07amarioguy has joined #asahi-dev
09:08bluetail[m]Been putting a lot of cash into my room treatment and its still not good since its a old building and its a busy street. But it's so much quieter. Even simple things help. Such as https://www.thomannmusic.com/t.akustik_pet_ceiling_absorber_180_bk.htm
09:08bluetail[m]And it is easy to install. I have it in white.
09:08bluetail[m]4 screws into the ceiling, then pull on the 4 wires to lift it. Done.
09:09bluetail[m]its lightweight, and if it comes off, you aren't dead. I have other absorbers that would certainly kill me if they drop down at night
09:27marcanI don't have any problems with external noise in either direction, I just want some wall treatment to reduce reflections
09:30ChaosPrincess has joined #asahi-dev
09:39jannauoh, dcp already blanks the mac book pro display, that was not working for the HDMI display on the mini
09:42jannaumarcan: do you have a todo list for the release? if you're not working on it I can adapt the ESP uuid matching to passing the uuid in chosen
09:43marcanalso it would be useful to have two scripts: one that boots the ESP as specified in the DT, and one that explicitly does *not* and instead prioritizes USB devices
09:44marcanI'm looking into the DT filtering; seems to work fine, with the state branch a re-filter only takes a minute including all the pulls/merges/mangling involved
09:44marcanso I'm going to try to turn it into a GH action so we have fresh DTs updated when asahi gets pushed
09:44jannaumy hack did both, it tried first to find the specifed partition and if that was not found it falled back to any bootable partition
09:45marcanyeah, that works fine but it'd be nice to have one that explicitly goes for USB first, then NVMe
09:47jannauah, so something an user would invoke manually from u-boot's command line. there might be already a boot_usb in the distro boot scripts
09:51kettenisthe idea is that once you've installed on nvme you don't want it accidentally boot from usb just because someone plugged in a usb stick of some sorts
09:51PaterTemporalis has joined #asahi-dev
09:52marcanI'd say the default behavior should be specific ESP -> USB (ignore other ESPs in NVMe, always, to avoid confusion)
09:53chadmed has quit [Read error: Connection reset by peer]
09:53kettenismarcan: fixing the aic2 issue in the OpenBSD driver in a way that works with the old DT comes kinda natural, so don't worry about tweaking the DT
09:53chadmed has joined #asahi-dev
09:53marcanit'd be easy to do on linux too but I just want to rip off this bandaid for us :) (since I'm not promising anything yet)
10:31marcanon modern machines you don't normally expect USB to take over boot unless you explicitly set it as such
10:31kettenismarcan: so basically what I did is that for AIC2 I use bus_space_map(9) to map the event register (since it is now separate) and for AIC1 I use bus_space_subregion(9) to carve out the event register
10:31jannaunothing prevents you to place an ESP with a specified uuid on a usb drive, the installer doesn't support that at the mement
10:32kettenisadding code for AIC2 to carve out the event register with bus_space_subregion(9) isn't a huge burden, so that's what I went with
10:33marcankettenis: yeah, I just point two iomem pointers at different or same maps, and the error cleanup code unmaps the event one if they aren't equal
10:33mpsjannau: for me personally this is not preoblem, I can change and build m1n1 and u-boot but not sure for end users
10:34kettenisu-boot is really device-oriented; so distroboot iterates over devices trying to boot from them
10:36ketteniscurrently I don't enable persistent u-boot environment support, but when we do that the only really viable option is to store the u-boot environment in a file on "the" ESP
10:37marcanwe could enable persistent environment, and use that to allow users to override actual boot behavior from the ESP (where "the" has to be the /chosen-specified one)
10:38kettenisthen there are the EFI variables, which are enabled and if you set one using bottime services, it will put them in a file on the ESP
10:39kettenismaking that pick "the" ESP will require some actual code to recognize the /chosen-specified one
10:45kov has joined #asahi-dev
10:46kettenisthe code in u-boot that picks "the" ESP lives in lib/efi_loader/efi_disk.c:efi_disk_add_dev()
10:47kettenisbut changing that to pick the first but override it if we find the one designated by /chosen shouldn't be too hard
11:25marcanok, I set up the devicetree repo but I don't think updating from a GH action is going to work, you really need the repos to already be fetched to have it finish in a reasonable time
11:35amarioguy has quit [Remote host closed the connection]
11:42marcangit clone --depth=1 https://github.com/AsahiLinux/devicetrees to get a quick clone of the DT stuff, scripts/build.sh to build only the Apple devicetrees
11:43marcanright now that history does chain off to the entire kernel, but hopefully Ian will fix that at some point
11:55mpsheh, just noticed that kernel 5.17-rc7 don't have '# CONFIG_$OPTION is not set' but 'CONFIG_$OPTION=n' by default
12:06jannaumps: that is a change in linux-next and not 5.17-rc7 https://lore.kernel.org/lkml/20220226123755.85213-1-masahiroy@kernel.org/T/
12:08tmlindfor me macbook air m1 wlan stopped working with the rc7 kernel, got brcmf_pcie_init_ringbuffers: Allocating ring buffers failed
12:10chadmedok change of plans for the IRs -- im going to sample just L and R, with the crossovers applied and use those samples to build an IR. trying to apply 6 at once explodes ALSA and pegs a whole core
12:11chadmedi'll do that tomorrow though, now that i have a flow that works its quick and easy to do stuff
12:12chadmedapplying just two of the IRs makes a significant difference though, so we've made progress at least
12:31jannaunotchless dcp display that was simpler than expected. not correcting the physical dimensions so technically non-square pixels but the physical dimensions are not reported in wl_output
12:50tmlindseeing a m1n1 issue after update though with standalone kernel after updating from about a week ago
12:52tmlindlooks like kernel cmdline is no longer getting passed? don't have debug cable to connect to a pc
12:52tmlindcommit d76f3a66318f ("m1n1.hw.DART: coalesce continuos l2 ptes") works, have not bisected
13:39kettenisis there any reasoon you put scriptaddre and pxefile_addr_r near the top of the address space?
13:53jannaukettenis: not really, I looked at other board files and thought that way they are at least of the way
13:54marcanpovik: so when lw1 borks, the overcurrent IRQ flag is set and the SAR ADC measurements are invalid
13:55kettenismy idea is to make it use the lmb stuff that's also used to do the allocation when you actually load stuff
14:01kettenisjust need to pick some reasonable sizes for the generic load area (loadaddr) and the ramdisk area (ramdisk_addr_r)
14:05ketteniswe know we have at least the best part of 8G on these machines so as long as m1n1 doesn't carve it up in silly ways using 1G chunks for those should always fit
14:19povikalthough if it really was a case of garbled samples, then why does it happen even at low gain (if it does)
14:29jannaukettenis: thanks for taking care of this, maybe use a define for kernel_comp_addr_r / kernel_comp_size
14:45marcanpovik: I'm adding debug and yeah, it seems sometimes when it first powers up it goes into overcurrent mode and auto shuts down, but only on that one channel. will keep probing...
15:11smartmobili has joined #asahi-dev
15:12smartmobili has left #asahi-dev [#asahi-dev]
15:57nametable[m] has joined #asahi-dev
16:16___nick___ has joined #asahi-dev
16:17___nick___ has quit []
16:18___nick___ has joined #asahi-dev
17:24balrog has quit [Quit: Bye]
17:25balrog has joined #asahi-dev
17:32gabuscus has quit [Ping timeout: 480 seconds]
17:36GlanzmannAbout the u-boot discussion today, having a live system is really handy, but if someone screwes up the device tree, than you need to boot to u-boot. m1n1 probably never get keyboard support (or power button press detection supprt) in order to chainload from usb instead of nvme?
17:38svenI mean, you can always go to 1TR and go from there or just install a second “boot to usb stub”
17:40Glanzmannsven: And hopefully the device tree is stable enough now that you get basic hardware support (screen, keyboard, nvme, wifi) to fix things
17:41svenno guarantees about dt stability before the release except for stuff that’s been upstreamed
17:42mpsyes, for now go to 1TR and install m1n1+dtbs+u-boot which works in case of install messed u-boot in ESP
18:05balrog has quit [Quit: Bye]
18:12balrog has joined #asahi-dev
18:15marcanbecause I can fairly reliably repro the fail by looping unbind -> rebind -> fast speaker-test 4 times, and after making it always do ACTIVE before MUTE, it seems reliable
18:19marcanalso in today's "the kernel is a pile of race conditions and we should all switch to Rust some day", reading /sys/kernel/debug/regmap/*/registers while the regmap is being destroyed crashes the kernel
18:23ketteniswell, exposing arbitrary hardware registers through a pseudo-filesystem like that is just dumb
19:28nepeat has quit [Quit: ZNC 1.8.2 - https://znc.in]
19:29nepeat has joined #asahi-dev
19:29nepeat has quit [Remote host closed the connection]
19:30nepeat has joined #asahi-dev
19:35marcanpovik: oh yeah, thought: we should remove the fallback compatibles from the amps in the DT, as a gate for making sure whatever safety stuff we come up with is merged first and nothing comes up on kernels without it
19:58GlanzmannMaybe I should add a script that lets you modify the live system and write it back to the initrd on the usb stick.
21:05gladiac has quit [Quit: k thx bye]
21:08___nick___ has quit [Ping timeout: 480 seconds]
22:12snnw[m] has joined #asahi-dev
22:25shenki has quit [Remote host closed the connection]
23:01ChaosPrincess has quit [Remote host closed the connection]
23:28axboe has quit [Remote host closed the connection]
23:29axboe has joined #asahi-dev