ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
PaterTemporalis has quit [Ping timeout: 480 seconds]
abrasive has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
<tpw_rules> https://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 .
<tpw_rules> i 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
<tpw_rules> please observe my leet screen capture skills of that warning: https://i.imgur.com/Jt96Ytq.jpg
<LuigyLeon[m]> 1337
yuyichao has joined #asahi-dev
burner67665[m] has joined #asahi-dev
KirkByers[m] has joined #asahi-dev
PhilippvK has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
fortelling[m] has joined #asahi-dev
chadmed has joined #asahi-dev
jakebot has joined #asahi-dev
chadmed has quit [Quit: Page closed]
gladiac has quit [Quit: k thx bye]
gladiac has joined #asahi-dev
gladiac has quit []
gladiac has joined #asahi-dev
gladiac has quit []
gladiac has joined #asahi-dev
opticron has quit [Remote host closed the connection]
opticron has joined #asahi-dev
the_lanetly_052 has joined #asahi-dev
chadmed has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
the_lanetly_052 has quit [Remote host closed the connection]
the_lanetly_052 has joined #asahi-dev
the_lanetly_052 has quit [Ping timeout: 480 seconds]
joske has joined #asahi-dev
joske_ has joined #asahi-dev
joske_ has quit []
leonardeyer[m] has joined #asahi-dev
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
irth has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
chadmed has quit [Remote host closed the connection]
joske has quit [Quit: Leaving]
joske has joined #asahi-dev
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kov has joined #asahi-dev
chadmed has joined #asahi-dev
<chadmed> povik, 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
<povik> yes, if you mean speakers on j316
<chadmed> yeah i just managed to get back into my machine after nuking it with apple configurator so im on the new kernel etc
<chadmed> do i need to patch out one of the drivers to circumvent this
<povik> ^^ here's your gate you need to pass through
<chadmed> oh beautiful thanks :)
<povik> remove the disabled line
<chadmed> and then i assume we just build a new second stage m1n1 with the new dt?
<povik> that's the theory
<chadmed> beauty
<povik> (haven't used self-chainloading m1n1 myself)
<chadmed> i 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
<povik> marcan did some speaker amp poking and he may have fixed the subwoofer issue
<povik> so report how that goes
<chadmed> where it drops out all the time?
<povik> that
<chadmed> awesome
<joske> chadmed: when you remove the status=disabled, and rebuild second stage boot.bin, audio via speakers working (air - j313)
<joske> also don't forget to rerun make dtbs in kernel (as you're changing a dtsi)
<joske> before rebuilding the boot.bin
<chadmed> yeah 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
<mps_> also works on j293 (mb pro) when this line removed
<chadmed> i wish i had all these devices to do more sound testing :(
<chadmed> soon perhaps
PaterTemporalis has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi-dev
<chadmed> wow that was surprisingly painless
joske has quit [Ping timeout: 480 seconds]
<chadmed> btw the asahi-audio repo actually, err.. works now...
<chadmed> sorry about that
megalokafes_ has joined #asahi-dev
<marcan> chadmed: you can just copy and patch the update-m1n1 script to read the DTBs from somewhere else (I'll add commandline options some day...)
<chadmed> oh sick thats even easier
kameks has joined #asahi-dev
Sobek[m] has joined #asahi-dev
<tpw_rules> marcan: can you look at that kernel warning i posted earlier?
PhilippvK has joined #asahi-dev
Sobek[m] has left #asahi-dev [#asahi-dev]
PhilippvK has quit [Ping timeout: 480 seconds]
phiologe has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
chadmed has quit [Remote host closed the connection]
phiologe has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
bisko has joined #asahi-dev
tweets_so_fresh_ has quit [Quit: Connection closed for inactivity]
kameks has quit [Ping timeout: 480 seconds]
bisko has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
bisko has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi-dev
LuEvers[m] has joined #asahi-dev
<tpw_rules> sven: can you double check that kernel warning i posted earlier? with the nvme and nvme_apple.flush_interval=0
<sven> uh, sure, i must've missed that
<sven> ah, yes, that's part of axboe's flush workaround. it probably also needs to support multiple namespaces
bisko has joined #asahi-dev
<axboe> it does, iirc I made that explicit
<tpw_rules> axboe: can you scroll back a bit? i think there is a deinitialization bug
<sven> yeah, i think there's even a WARN_ON in there if multiple namespaces are present
<axboe> tpw_rules: it's using an older one, I did fix the always-init
<tpw_rules> so the asahi branch is just not up to date? ok
<tpw_rules> is the fixed branch public?
<axboe> tpw_rules: that INIT_DELAYED_WORK() in apple_nvme_probe() should be outside of the if (flush_interval) {} section
<axboe> either that, or make the flush conditional, but seems cleaner to just always init it
<tpw_rules> ok, that's what i thought. thanks for confirming
<axboe> btw, 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 ;)
<axboe> been working on non-m1 things on the m1, still works as daily just fine
bisko has quit [Ping timeout: 480 seconds]
<marcan> sven: ohhh the sep *ROM* has a getrandom command? no need to boot SEPOS?
<marcan> that's cute
<sven> yup!
<sven> that was the thing I vaguely remembered this morning
<marcan> nice
<sven> and that ROM is already running and waiting for commands anyway. no need to even set a "start plz" bit
<marcan> right
MajorBiscuit has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
bisko has quit [Ping timeout: 480 seconds]
roxfan2 has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
winter has joined #asahi-dev
linuxgemini9 has joined #asahi-dev
nepeat has quit [Read error: Connection reset by peer]
nepeat has joined #asahi-dev
m6wiq has joined #asahi-dev
linuxgemini has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
bisko has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
bisko has quit [Ping timeout: 480 seconds]
mps_ is now known as mps
bisko has joined #asahi-dev
<marcan> anyone want to proofread the release announcement? https://gist.github.com/marcan/1c565ceec13e4ec7eb2f786ccea8ce3c
bisko has quit [Ping timeout: 480 seconds]
<mps> I'm reading but my english is not enough to comment
<j`ey> marcan: "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
<marcan> done
<marcan> sven: tested the RNG magic, works fine, will update and stuff it in the release image
<marcan> I 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)
<tpw_rules> marcan: i read it, it all sounds good to me. it would be nice to have a shoutout, but i understand if you don't :)
<brentr123[m]> ☹️
<marcan> :p
<tpw_rules> one last change is this: https://github.com/AsahiLinux/asahi-installer/pull/27 i got confused by it too
<marcan> I agree, you're not the only one to run into that. But let me reword that a bit.
<tpw_rules> (that's not my PR to be clear)
<winter> wonder why they submitted the pr from a different account
<winter> than the commit author
<winter> guess it was a mistake
<kettenis> marcan: 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"?
<marcan> kettenis: I was wondering about that, thanks
<kettenis> OpenBSD 7.0 will not actually work and if it would it could "brick" the machine by killing the Apple partitions
<kettenis> if you want a link, maybe link to https://www.openbsd.org/arm64.html
<kettenis> probably time for me to update that page
<heli0s[m]> In the "Known broken applications section of the announcement it says "Hopefully this release will be help motivate upstream...". The "be" is extra.
<marcan> kettenis: > 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!
<marcan> how's that?
<marcan> heli0s[m]: good catch, fixed
<heli0s[m]> Also, and this is ridiculously nit-picky, WiFi is spelled both as Wi-Fi and WiFi.
<kettenis> marcan: sounds fine; thanks
<marcan> ha, fixed :)
<marcan> tpw_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 :(
<marcan> but if you have a project page or something I can link it
gsieben[m] has joined #asahi-dev
<marcan> same with Glanzmann/debian
<marcan> maybe it should be a wiki page instead so people can add themselves?
<gsieben[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.
<winter> kettenis: when a non-snapshot that has AS support releases, will the compat list on https://openbsd.org/arm64.html be updated?
<marcan> we've kind of put that on the back burner in order to get this release out... going to get back on it after this
<marcan> which is why I want to get it out :)
<milek7> is there currently any need to update stub to 12.3?
bisko has joined #asahi-dev
<kettenis> winter: I'm actually doing that now
<jannau> for mbp 13" owners it should be mentioned that the function keys are mapped to Fn + '1' - '0', '-', '='. maybe after the missing touchbar support
<jannau> that's not really discoverable
<jannau> other option would be FAQ entry
<gsieben[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.
amarioguy has joined #asahi-dev
<jannau> Mac Studio could be added to "coming soon"
<sven> don’t jinx it ;)
bisko has quit [Ping timeout: 480 seconds]
<marcan> jannau: added
amarioguy has quit [Remote host closed the connection]
amarioguy has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
<kettenis> once the Asahi announcement is out, I'll probably send out an OpenBSD announcement as well
<marcan> \o/
<gsieben[m]> "Can I dual-boot macOS and Linux!" should be "Can I dual-boot macOS and Linux?"
<gsieben[m]> Nitpicky though. ;)
bisko has joined #asahi-dev
<tpw_rules> marcan: that's very valid. the github repo is https://github.com/tpwrules/nixos-m1 , the closest thing i have to a project page
chengsun has quit [Quit: Quit]
<marcan> gsieben[m]: fixed :)
chengsun has joined #asahi-dev
<marcan> tpw_rules: if you can put together a wiki page listing yourself I can link it
<kettenis> btw, our device trees incorrectly label the iMac as a 2020 model
<marcan> hah
<marcan> let me fix that
<kettenis> just noticed that when transcribing the names into the OpenBSD arm64.html page ;)
<heli0s[m]> In the "Can I install other distros?" section there is "Some users are providing provided unofficial installation guides..." Maybe "provided" is extra there.
<kettenis> it would be good if we can add that SEP RNG think to u-boot
<kettenis> s/think/thing/
<kettenis> that would allow the Linux EFISTUB to randomize physical addresses
<tpw_rules> hm, maybe it would be good to update the wiki intro page from "we are just getting started"
<marcan> please have at it :)
<jannau> sigh, the commit message has 2021 and jxxx dtsi as well
<marcan> jannau: fixed in asahi
<marcan> building new kernel package now
<marcan> I also started tagging the asahi "releases"
<marcan> at least the ones that get packaged
bisko has quit [Ping timeout: 480 seconds]
<tpw_rules> marcan: if you are going through the effort of rebuilding the kernel can you please un-tab that line from the nvme driver: https://oftc.irclog.whitequark.org/asahi-dev/2022-03-18#30738498; https://github.com/AsahiLinux/linux/blob/c1fcb91bbcc8fd1b1f874e45f55cbba682351f3c/drivers/nvme/host/apple.c#L1536 :3
<marcan> argh, was already rebuilding :p
<marcan> fine
<tpw_rules> thank you
<tpw_rules> also don't forget to update the u-boot releng branch
<marcan> what happened there?
<tpw_rules> with your device tree changes
<marcan> oh, I use the kernel ones now
<marcan> as of a change to update-m1n1
<marcan> I'll let kettenis take care of that
<tpw_rules> ah. i will have to look into that too then
bisko has joined #asahi-dev
<marcan> on arch it makes sense because there is only ever one kernel
<marcan> it would make less sense on distros that can have multiple installed
<marcan> so I'm not saying that's the way to go
<marcan> but for what I'm doing it makes my life easier
<tpw_rules> if you keep them synced with u-boot it makes mine easier too. i guess all this changes is the name string, right
<marcan> yeah
<marcan> I usually let kettenis take care of dts updates :)
<tpw_rules> fair enough
<kettenis> done
<tpw_rules> marcan: ^
<marcan> thanks!
bisko has quit [Ping timeout: 480 seconds]
<marcan> tpw_rules: link added
<marcan> building kernel again...
<gsieben[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?
<gsieben[m]> In the GPU section
<psykose> better idea: simply ignore anything on hacker news
<mps> psykose: +1
joske has joined #asahi-dev
<joske> sven: wow your RNG works really well :-) https://paste.debian.net/1234860/
<joske> thx!
<sven> :-)
<LuigyLeon[m]> tpw_rules nice!
<kettenis> hmm, so linux actually wants 128 bytes of random data now?
<sven> I guess. I just stole whatever Linux itself used in some kexec path
<marcan> ok, new kernel is pushed to the repos
bisko has joined #asahi-dev
<marcan> I RTed that :)
<j`ey> derp, thats probably how I saw it, my bad!
<kettenis> bunch of slackers ;)
<marcan> good thing we're releasing now, because the twitters are starting to have people saying "I installed asahi and.." :D
<marcan> good thing we're not Apple with the stupid secrecy :p
<marcan> anyway, off to shower
kita99 has joined #asahi-dev
bisko has quit [Ping timeout: 480 seconds]
<j`ey> kettenis: why cant they just take most of your code?
<kettenis> 30 years of divergence?
<j`ey> fair :)
PaterTemporalis has quit [Ping timeout: 480 seconds]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
joske has quit [Quit: Leaving]
joske has joined #asahi-dev
bisko has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
joske has quit [Quit: Leaving]
bisko has quit [Ping timeout: 480 seconds]
<axboe> marcan: any reason why you're sticking with the 8+ day old linux-next?
<axboe> keep waiting to update, but it's on that base still
<axboe> plan is to fwd when 5.17 is released, to 5.17 + linux-next?
<marcan> no particular plan tbh, other than I don't need regressions right now
<axboe> makes sense
kgarrington has joined #asahi-dev
<axboe> I may just rebase your branches on current git + current linux-next for some localized testing
* axboe looks at 13 branches to rebase, eek
<kgarrington> marcan: 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?
<marcan> kgarrington: there can be multiple machine owners
<marcan> I think admin users are by default
<marcan> *all
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi-dev
kgarrington has quit [Remote host closed the connection]
kgarrington has joined #asahi-dev
m6wiq has quit []
kgarrington has quit [Remote host closed the connection]
<marcan> lol my firefox default thing didn't work properly in KDE
<marcan> figured out a fix...
threerik[m] has joined #asahi-dev