#
…

2022-03-18

01:20yuyichao has quit [Ping timeout: 480 seconds]
01:28PaterTemporalis has quit [Ping timeout: 480 seconds]
01:32abrasive has joined #asahi-dev
01:47chadmed has quit [Quit: Konversation terminated!]
02:16tpw_ruleshttps://github.com/AsahiLinux/linux/blob/c1fcb91bbcc8fd1b1f874e45f55cbba682351f3c/drivers/nvme/host/apple.c#L1568 should this be guarded by something? i get a kernel warning on poweroff from there if i've booted with nvme_apple.flush_interval=0 .
02:16tpw_rulesi see here that flush_dwork thing is only inited if that's nonzero, and presumably it's bad to flush it if it's never been inited: https://github.com/AsahiLinux/linux/blob/c1fcb91bbcc8fd1b1f874e45f55cbba682351f3c/drivers/nvme/host/apple.c#L1536
02:20tpw_rulesplease observe my leet screen capture skills of that warning: https://i.imgur.com/Jt96Ytq.jpg
02:26yuyichao has joined #asahi-dev
02:30burner67665[m] has joined #asahi-dev
02:35KirkByers[m] has joined #asahi-dev
03:29PhilippvK has joined #asahi-dev
03:32phiologe has quit [Ping timeout: 480 seconds]
03:41kov has quit [Quit: Coyote finally caught me]
04:37fortelling[m] has joined #asahi-dev
05:10chadmed has joined #asahi-dev
05:32jakebot has joined #asahi-dev
05:46chadmed has quit [Quit: Page closed]
06:07gladiac has quit [Quit: k thx bye]
06:07gladiac has joined #asahi-dev
06:08gladiac has quit []
06:08gladiac has joined #asahi-dev
06:09gladiac has quit []
06:10gladiac has joined #asahi-dev
06:27opticron has quit [Remote host closed the connection]
06:38opticron has joined #asahi-dev
06:41the_lanetly_052 has joined #asahi-dev
06:42chadmed has joined #asahi-dev
07:19chadmed has quit [Remote host closed the connection]
07:25the_lanetly_052 has quit [Remote host closed the connection]
07:25the_lanetly_052 has joined #asahi-dev
07:34the_lanetly_052 has quit [Ping timeout: 480 seconds]
07:59joske has joined #asahi-dev
08:06joske_ has joined #asahi-dev
08:06joske_ has quit []
09:09leonardeyer[m] has joined #asahi-dev
09:13phiologe has joined #asahi-dev
09:16PhilippvK has quit [Ping timeout: 480 seconds]
09:30PhilippvK has joined #asahi-dev
09:32MajorBiscuit has joined #asahi-dev
09:33phiologe has quit [Ping timeout: 480 seconds]
09:40chadmed has joined #asahi-dev
09:42irth has joined #asahi-dev
09:43PhilippvK has quit [Ping timeout: 480 seconds]
09:53chadmed has quit [Remote host closed the connection]
10:27joske has quit [Quit: Leaving]
10:29joske has joined #asahi-dev
10:50bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:53kov has joined #asahi-dev
10:53chadmed has joined #asahi-dev
10:55chadmedpovik, marcan: is audio deliberately nonfunctioning on the latest asahi kernel? i can see the sound card in the dt via sysfs but loading the modules does not bring it up
10:55povikyes, if you mean speakers on j316
10:55chadmedyeah i just managed to get back into my machine after nuking it with apple configurator so im on the new kernel etc
10:56chadmeddo i need to patch out one of the drivers to circumvent this
10:56povik^^ here's your gate you need to pass through
10:56chadmedoh beautiful thanks :)
10:56povikremove the disabled line
10:57chadmedand then i assume we just build a new second stage m1n1 with the new dt?
10:57povikthat's the theory
10:57povik(haven't used self-chainloading m1n1 myself)
10:58chadmedi exploded my 1TR at some point doing silly stuff so i needed to start fresh and it was a good opportunity to test the new installer
10:58povikmarcan did some speaker amp poking and he may have fixed the subwoofer issue
10:58povikso report how that goes
11:02chadmedwhere it drops out all the time?
11:03joskechadmed: when you remove the status=disabled, and rebuild second stage boot.bin, audio via speakers working (air - j313)
11:04joskealso don't forget to rerun make dtbs in kernel (as you're changing a dtsi)
11:04joskebefore rebuilding the boot.bin
11:04chadmedyeah ik that part, just been out of the loop for a couple of days and needed to reorient myself with the new tooling and changes
11:05mps_also works on j293 (mb pro) when this line removed
11:05chadmedi wish i had all these devices to do more sound testing :(
11:05chadmedsoon perhaps
11:08PaterTemporalis has joined #asahi-dev
11:10chadmed has quit [Remote host closed the connection]
11:12chadmed has joined #asahi-dev
11:12chadmedwow that was surprisingly painless
11:13joske has quit [Ping timeout: 480 seconds]
11:20chadmedbtw the asahi-audio repo actually, err.. works now...
11:20chadmedsorry about that
11:44megalokafes_ has joined #asahi-dev
11:48marcanchadmed: you can just copy and patch the update-m1n1 script to read the DTBs from somewhere else (I'll add commandline options some day...)
11:49chadmedoh sick thats even easier
12:06kameks has joined #asahi-dev
12:53Sobek[m] has joined #asahi-dev
12:59tpw_rulesmarcan: can you look at that kernel warning i posted earlier?
13:03PhilippvK has joined #asahi-dev
13:05Sobek[m] has left #asahi-dev [#asahi-dev]
13:14PhilippvK has quit [Ping timeout: 480 seconds]
13:16phiologe has joined #asahi-dev
13:38yuyichao has quit [Ping timeout: 480 seconds]
13:42chadmed has quit [Remote host closed the connection]
13:43phiologe has quit [Ping timeout: 480 seconds]
14:00yuyichao has joined #asahi-dev
14:31bisko has joined #asahi-dev
14:33tweets_so_fresh_ has quit [Quit: Connection closed for inactivity]
14:45kameks has quit [Ping timeout: 480 seconds]
14:51bisko has quit [Ping timeout: 480 seconds]
15:02bisko has joined #asahi-dev
15:10bisko has quit [Ping timeout: 480 seconds]
15:11the_lanetly_052 has joined #asahi-dev
15:50LuEvers[m] has joined #asahi-dev
15:51tpw_rulessven: can you double check that kernel warning i posted earlier? with the nvme and nvme_apple.flush_interval=0
15:52svenuh, sure, i must've missed that
15:53svenah, yes, that's part of axboe's flush workaround. it probably also needs to support multiple namespaces
15:56bisko has joined #asahi-dev
16:00axboeit does, iirc I made that explicit
16:01tpw_rulesaxboe: can you scroll back a bit? i think there is a deinitialization bug
16:01svenyeah, i think there's even a WARN_ON in there if multiple namespaces are present
16:01axboetpw_rules: it's using an older one, I did fix the always-init
16:02tpw_rulesso the asahi branch is just not up to date? ok
16:02tpw_rulesis the fixed branch public?
16:02axboetpw_rules: that INIT_DELAYED_WORK() in apple_nvme_probe() should be outside of the if (flush_interval) {} section
16:03axboeeither that, or make the flush conditional, but seems cleaner to just always init it
16:03tpw_rulesok, that's what i thought. thanks for confirming
16:03axboebtw, feel free to email about issues like that, depending on what I'm working on, I may not drop in here for days. in fact it has been days, just got lucky ;)
16:04axboebeen working on non-m1 things on the m1, still works as daily just fine
16:04bisko has quit [Ping timeout: 480 seconds]
16:13marcansven: ohhh the sep *ROM* has a getrandom command? no need to boot SEPOS?
16:13marcanthat's cute
16:14sventhat was the thing I vaguely remembered this morning
16:15svenand that ROM is already running and waiting for commands anyway. no need to even set a "start plz" bit
16:52MajorBiscuit has quit [Ping timeout: 480 seconds]
17:17bisko has joined #asahi-dev
17:31bisko has quit [Ping timeout: 480 seconds]
17:46roxfan2 has joined #asahi-dev
17:52roxfan has quit [Ping timeout: 480 seconds]
18:08winter has joined #asahi-dev
18:32linuxgemini9 has joined #asahi-dev
18:34nepeat has quit [Read error: Connection reset by peer]
18:35nepeat has joined #asahi-dev
18:35m6wiq has joined #asahi-dev
18:37linuxgemini has quit [Ping timeout: 480 seconds]
18:42bisko has joined #asahi-dev
18:59bisko has quit [Ping timeout: 480 seconds]
19:01bisko has joined #asahi-dev
19:09bisko has quit [Ping timeout: 480 seconds]
19:39mps_ is now known as mps
19:57bisko has joined #asahi-dev
20:04marcananyone want to proofread the release announcement? https://gist.github.com/marcan/1c565ceec13e4ec7eb2f786ccea8ce3c
20:05bisko has quit [Ping timeout: 480 seconds]
20:06mpsI'm reading but my english is not enough to comment
20:08j`eymarcan: "then boot by holding down the power button", maybe add 'until you see the loading startup options text', seems to trip people up quite a bit
20:10marcansven: tested the RNG magic, works fine, will update and stuff it in the release image
20:10marcanI also added ourselves some meta packages we can use to backdoor new packages into people's machines ;) (for stuff like mesa alternatives etc once stuff is ready, audio too)
20:12tpw_rulesmarcan: i read it, it all sounds good to me. it would be nice to have a shoutout, but i understand if you don't :)
20:14tpw_rulesone last change is this: https://github.com/AsahiLinux/asahi-installer/pull/27 i got confused by it too
20:15marcanI agree, you're not the only one to run into that. But let me reword that a bit.
20:15tpw_rules(that's not my PR to be clear)
20:16winterwonder why they submitted the pr from a different account
20:16winterthan the commit author
20:16winterguess it was a mistake
20:19kettenismarcan: instead of pointing folks at the OpenBSD 7.0 release it is probably best to say that "OpenBSD/arm64 snapshots can be installed after setting up a UEFI environment"?
20:20marcankettenis: I was wondering about that, thanks
20:21kettenisOpenBSD 7.0 will not actually work and if it would it could "brick" the machine by killing the Apple partitions
20:22kettenisif you want a link, maybe link to https://www.openbsd.org/arm64.html
20:23kettenisprobably time for me to update that page
20:23heli0s[m]In the "Known broken applications section of the announcement it says "Hopefully this release will be help motivate upstream...". The "be" is extra.
20:24marcankettenis: > We would also love to hear from non-Linux OS distributors. OpenBSD snapshots can already be installed after setting up an UEFI boot environment, see [here](https://www.openbsd.org/arm64.html) for more information!
20:24marcanhow's that?
20:24marcanheli0s[m]: good catch, fixed
20:24heli0s[m]Also, and this is ridiculously nit-picky, WiFi is spelled both as Wi-Fi and WiFi.
20:25kettenismarcan: sounds fine; thanks
20:25marcanha, fixed :)
20:25marcantpw_rules: tbh I just want to test things out myself before starting to list more distros but I'm kind of overwhelmed with stuff right now :(
20:25marcanbut if you have a project page or something I can link it
20:25gsieben[m] has joined #asahi-dev
20:25marcansame with Glanzmann/debian
20:26marcanmaybe it should be a wiki page instead so people can add themselves?
20:27gsieben[m]It looks good, but out of my own personal interest, could you mention how upstreaming efforts are going? The last progress update had a nice table showing what was upstream and what was the forked branch.
20:29winterkettenis: when a non-snapshot that has AS support releases, will the compat list on https://openbsd.org/arm64.html be updated?
20:29marcanwe've kind of put that on the back burner in order to get this release out... going to get back on it after this
20:29marcanwhich is why I want to get it out :)
20:30milek7is there currently any need to update stub to 12.3?
20:30bisko has joined #asahi-dev
20:31ketteniswinter: I'm actually doing that now
20:31jannaufor mbp 13" owners it should be mentioned that the function keys are mapped to Fn + '1' - '0', '-', '='. maybe after the missing touchbar support
20:32jannauthat's not really discoverable
20:32jannauother option would be FAQ entry
20:35gsieben[m]Maybe not for the announcement but for the new Trivia page, but you could mention Alyssa's discovery of the ancient JPEG decoder block.
20:36amarioguy has joined #asahi-dev
20:37jannauMac Studio could be added to "coming soon"
20:37svendon’t jinx it ;)
20:39bisko has quit [Ping timeout: 480 seconds]
20:40marcanjannau: added
20:40amarioguy has quit [Remote host closed the connection]
20:42amarioguy has joined #asahi-dev
20:43amarioguy has quit [Remote host closed the connection]
20:43kettenisonce the Asahi announcement is out, I'll probably send out an OpenBSD announcement as well
20:46gsieben[m]"Can I dual-boot macOS and Linux!" should be "Can I dual-boot macOS and Linux?"
20:47gsieben[m]Nitpicky though. ;)
20:47bisko has joined #asahi-dev
20:47tpw_rulesmarcan: that's very valid. the github repo is https://github.com/tpwrules/nixos-m1 , the closest thing i have to a project page
20:48chengsun has quit [Quit: Quit]
20:49marcangsieben[m]: fixed :)
20:49chengsun has joined #asahi-dev
20:49marcantpw_rules: if you can put together a wiki page listing yourself I can link it
20:49kettenisbtw, our device trees incorrectly label the iMac as a 2020 model
20:49marcanlet me fix that
20:50kettenisjust noticed that when transcribing the names into the OpenBSD arm64.html page ;)
20:52heli0s[m]In the "Can I install other distros?" section there is "Some users are providing provided unofficial installation guides..." Maybe "provided" is extra there.
20:52kettenisit would be good if we can add that SEP RNG think to u-boot
20:52ketteniss/think/thing/
20:53kettenisthat would allow the Linux EFISTUB to randomize physical addresses
20:53tpw_ruleshm, maybe it would be good to update the wiki intro page from "we are just getting started"
20:54marcanplease have at it :)
20:54jannausigh, the commit message has 2021 and jxxx dtsi as well
20:54marcanjannau: fixed in asahi
20:55marcanbuilding new kernel package now
20:55marcanI also started tagging the asahi "releases"
20:55marcanat least the ones that get packaged
20:55bisko has quit [Ping timeout: 480 seconds]
20:57marcanargh, was already rebuilding :p
20:59tpw_rulesalso don't forget to update the u-boot releng branch
20:59marcanwhat happened there?
21:00tpw_ruleswith your device tree changes
21:00marcanoh, I use the kernel ones now
21:00marcanas of a change to update-m1n1
21:00marcanI'll let kettenis take care of that
21:00tpw_rulesah. i will have to look into that too then
21:00bisko has joined #asahi-dev
21:01marcanon arch it makes sense because there is only ever one kernel
21:01marcanit would make less sense on distros that can have multiple installed
21:01marcanso I'm not saying that's the way to go
21:01marcanbut for what I'm doing it makes my life easier
21:02tpw_rulesif you keep them synced with u-boot it makes mine easier too. i guess all this changes is the name string, right
21:02marcanI usually let kettenis take care of dts updates :)
21:02tpw_rulesfair enough
21:08bisko has quit [Ping timeout: 480 seconds]
21:09marcantpw_rules: link added
21:09marcanbuilding kernel again...
21:10gsieben[m]To deal with some of the gripers on Hacker News, perhaps "and have been making steady progress behind the scenes" could be replaced/supplemented with the 90%+ GLES2 compliance factoid or similar?
21:10gsieben[m]In the GPU section
21:10psykosebetter idea: simply ignore anything on hacker news
21:11mpspsykose: +1
21:15joske has joined #asahi-dev
21:16joskesven: wow your RNG works really well :-) https://paste.debian.net/1234860/
21:18LuigyLeon[m]tpw_rules nice!
21:25kettenishmm, so linux actually wants 128 bytes of random data now?
21:26svenI guess. I just stole whatever Linux itself used in some kexec path
21:31marcanok, new kernel is pushed to the repos
21:33bisko has joined #asahi-dev
21:37marcanI RTed that :)
21:37j`eyderp, thats probably how I saw it, my bad!
21:39kettenisbunch of slackers ;)
21:39marcangood thing we're releasing now, because the twitters are starting to have people saying "I installed asahi and.." :D
21:40marcangood thing we're not Apple with the stupid secrecy :p
21:40marcananyway, off to shower
21:41kita99 has joined #asahi-dev
21:41bisko has quit [Ping timeout: 480 seconds]
21:41j`eykettenis: why cant they just take most of your code?
21:44kettenis30 years of divergence?
21:44j`eyfair :)
21:48PaterTemporalis has quit [Ping timeout: 480 seconds]
21:57the_lanetly_052 has quit [Ping timeout: 480 seconds]
21:57bisko has joined #asahi-dev
21:58joske has quit [Quit: Leaving]
22:00joske has joined #asahi-dev
22:05bisko has quit [Ping timeout: 480 seconds]
22:22bisko has joined #asahi-dev
22:26joske has quit [Quit: Leaving]
22:31bisko has quit [Ping timeout: 480 seconds]
22:31axboemarcan: any reason why you're sticking with the 8+ day old linux-next?
22:31axboekeep waiting to update, but it's on that base still
22:31axboeplan is to fwd when 5.17 is released, to 5.17 + linux-next?
22:33marcanno particular plan tbh, other than I don't need regressions right now
22:34axboemakes sense
22:35kgarrington has joined #asahi-dev
22:35axboeI may just rebase your branches on current git + current linux-next for some localized testing
22:35* axboelooks at 13 branches to rebase, eek
22:35kgarringtonmarcan: in the release announcement, under requirements you say “macOS 12.3 or later, logged in as an admin user”. But don’t you have to be logged in as a very specific admin user, the machine owner?
22:40marcankgarrington: there can be multiple machine owners
22:41marcanI think admin users are by default
22:42kgarrington has quit [Remote host closed the connection]
22:44kgarrington has joined #asahi-dev
22:46kgarrington has quit [Remote host closed the connection]
22:47kgarrington has joined #asahi-dev
22:47m6wiq has quit []
22:47kgarrington has quit [Remote host closed the connection]
22:55marcanlol my firefox default thing didn't work properly in KDE
22:55marcanfigured out a fix...
23:16threerik[m] has joined #asahi-dev
…