ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
Soni has quit [Ping timeout: 480 seconds]
Hibyehello has joined #asahi
mspe has quit [Quit: WeeChat 2.8]
mspe has joined #asahi
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cylm has joined #asahi
cylm_ has quit [Ping timeout: 480 seconds]
Soni has joined #asahi
hertz has joined #asahi
hertz has quit []
hertz has joined #asahi
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
possiblemeatball has quit [Remote host closed the connection]
hertz has joined #asahi
possiblemeatball has joined #asahi
yamii has quit [Ping timeout: 480 seconds]
Brainium has quit [Ping timeout: 480 seconds]
hendry has quit [Ping timeout: 480 seconds]
greguu has quit [Ping timeout: 480 seconds]
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
yamii has joined #asahi
rayanamukami3 has quit [Remote host closed the connection]
rayanamukami3 has joined #asahi
kettenis has quit [Remote host closed the connection]
kettenis has joined #asahi
SSJ_GZ has joined #asahi
<marcan> I think that is a known race (cc sven)
<marcan> hertz: the firmware loading process changed and now relies on initramfs mounting a tmpfs on /lib/firmware/vendor and putting the firmware there. this goes for both wifi and trackpad (which also needs firmware)
<marcan> you should familiarize yourself with those scripts if you are rolling your own install
<marcan> SFR = System Firmware and Recovery
<hertz> Thanks, @marcan ! I will study them. You're talking about the scripts in asahi-scripts-20221220-1-any.pkg.tar.xz, right?
<marcan> yes, the mkinitcpio stuff in particular
<marcan> this is also documented on the wiki (don't have the link handy but it's in the sidebar, the Open OS Ecosystem one)
<hertz> What does SFR mean, though? Is it the recovery partition at the beginning of the disk?
<marcan> it means the entirety of firmware and recovery that is global and not per-OS
<hertz> Ok, cool. Yeah, I've read the open OS ecosystem doc and made notes on it. Just haven't looked at those scripts in a while.
<hertz> Ok, got it. Thank you for that!
<marcan> that includes the stuff in NOR Flash, the stuff in iSCPreboot, the System Recovery partition, and also things like random auxiliary firmwares on external devices with flash
<marcan> the number the installer prints comes from a plist in iSCPreboot
<hertz> Oh, I see. That makes sense now.
<marcan> for m1n1/linux we guess an equivalent macOS version from the iBoot1 version (which isn't always unique but it covers what we care about) since that's all we get
<marcan> FWIW, the trackpad behavior is that the device will show up with no firmware, but will fail if you try to open it and firmware is not available
<marcan> I did it that way so you don't end up stuck on late firmware loads (unlike wifi, which just goes dead and worse, the module can't handle rebinds properly right now, it breaks when you try to use it later)
<hertz> My SFR version is 22.something and my OS version (xnu kernel version) is 21.something. Is that normal? I have 13.1 installed on the recovery partition but run 12.6.2 as my macos.
<marcan> yes, that is normal
<hertz> Cool, thanks. It's a complicated boot process, but I've read though all the stuff on the wiki. Honestly, I understand Asahi's explanation better than the one in Apple Platform Security Guide :-)
<marcan> yeah, apple's stuff is... kind of missing a lot of important details
<marcan> took a while to make sense of it :)
<marcan> (with some help from apple folks even)
<hertz> Hey, one other question. In the wiki it talks about setting one of the SMC keys (gioX where X is some char I forget) to turn on/off the wifi. How are you setting those keys? Just using the AppleSMC.kext in macos, or is there a linux way?
<hertz> I'll say! (missing important details)
<marcan> the SMC GPIO is exposed as a standard GPIO controller in Linux and that GPIO is configured in the device tree as a power GPIO for PCIe
<hertz> That's awesome that they helped you. They're generally pretty secretive.
<marcan> you don't need to do anything other than have the relevant drivers
<marcan> Apple as a company are pretty secretive. Some Apple employees don't mind explaining already released software, that's just them being nice
<hertz> Oh interesting. So I can set that gpio under /sys somewhere?
<marcan> none of this is supposed to be secret, it's just woefully underdocumented
<marcan> yes, you can use the gpiochip chardev interface or the legacy sysfs stuff
<hertz> Yeah, that's my impression - not intended to be secret, but there's just very little information findable in good.
<bluetail8> marcan about the race condition you mentioned, what does cc sven mean in that topic?
<marcan> though I don't recommend messing with SMC GPIOs too much since those are coming off of the PMU and you *could* break something maybe
<hertz> Oh, ok. gpiochip chardev is a good idea.
<marcan> bluetail8: it means carbon copy sven
<hertz> Yeah, I understand the risks. I've already disassembled the machine and probed its test points and whatnot. If it dies, it dies... life will go on.
<hertz> I wish I could get schematics and boardview for an M2 Air, but I can't find them online.
<bluetail8> marcan I do not understand. Am I supposed to write a email, put you on the recipients list, but set sven on carbon copy (cc) ?
<marcan> yeah, I only have the widely leaked ones (j293/j313/j314s)
<marcan> bluetail8: no, you're supposed to wait for sven to comment here :p
<bluetail8> thanks :D
<hertz> Yes, I've seen the m1 mbpro ones, but nothing for any M2 that I am aware of.
<marcan> yup
<hertz> And the boards are nothing alike.
<marcan> the actual designs do share a lot though
<marcan> electrically
<marcan> PMU GPIOs are pretty similar IIRC and some of the schematics have references to how other variants would be laid out
<hertz> Yeah, but the placement of test points and stuff like that -- that's really what I'm interested in. And that does seem to vary from what I can tell.
<marcan> yeah, that would vary a lot
<marcan> also if you want to mess with SMC you might find the m1n1 tooling more useful
<marcan> which runs over USB
<hertz> I hope I can contribute to the project. Right now I am still getting my feet wet.
<marcan> tools/smccli.py and such
<marcan> it can poll SMC keys so you can watch things like voltages/currents in real-ish time
<hertz> Oh ok, I'll take a look.
<hertz> Nice!
<hertz> That would be great.
<hertz> Is the SMC integrated into the PMU chip on these A/S machines?
<marcan> you'll have to either install the m1n1 stub only (in expert mode) or do the m1n1 proxy backdoor dance on an asahi install (pretty sure that's on the wiki somewhere too, tl;dr csrutil disable for the asahi install then nvram boot-args-v
<marcan> it's part of the SoC
<marcan> the PMU talks to it over SPMI
<marcan> SMC just proxies that
<marcan> you can also talk to the PMU directly through another SPMI instance but I don't know what the commands for GPIOs are at that layer
<hertz> See I wish I could find the probe points for interfaces like that SPMI but without schematics and boardview I'm blind. Maybe I'll invest in an M1 just so I have a machine that matches the schematics I have.
<hertz> Well, I'll start with the m1n1 stuff. Had not seen tools/smccli.py but it sounds like what I'm interested in.
<marcan> also https://hub.marcan.st/t/smc-key-info.txt might help decipher that
<hertz> Oh nice!! This is A LOT of smc keys. This is the best thing I've seen.
<marcan> caveat emptor some of those might be wrong
<marcan> it's my living doc on this stuff
<hertz> How did you work all these out? Purely though software or also with hardware probing/
<hertz> ?
<marcan> oh, I just realized smc_watcher is not pushed
<marcan> let me push that one
<marcan> software, schematics, stuff from the diags images, etc
<marcan> lots of guesswork
<marcan> as I said lots might be wrong
<marcan> but it's a start on making sense of it all
<hertz> I'll see if I can contribute anything as I get deeper into this stuff.
<marcan> https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/experiments/smc_watcher.py and that (which I just pushed) lets you monitor a subset of keys for changes, you can pass it a list of keys or key patterns (shell glob style)
<marcan> it's how I worked out most of the battery stuff, starting at the output while charging/discharging/messing with things
<marcan> on watcher you can ^C it and get the shell to make changes, then ^D to continue
<marcan> *staring
<hertz> These look like a great scripts.
<hertz> Do I do an m1n1-only install and then run them from that?
<marcan> you do a m1n1-only install and run them from another machine connected via USB
<hertz> Got it. "proxyclient" - I didn't see that in the url initially
<marcan> also see the actual drivers we have so far for more fleshed-out logic, e.g. https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/power/supply/macsmc_power.c
<hertz> Yeah, I haven't tried the USB debug stuff yet. But it looks very interesting.
<bluetail8> after lina created the gpu driver in rust, I thought every driver is going to be written in Rust now :D
possiblemeatball has quit [Quit: Leaving]
greguu has joined #asahi
nicolas17 has quit [Ping timeout: 480 seconds]
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dementor4 has joined #asahi
SSJ_GZ has quit [Read error: No route to host]
SSJ_GZ has joined #asahi
mps has quit [Ping timeout: 480 seconds]
Dementor has quit [Ping timeout: 480 seconds]
Dementor4 is now known as Dementor
mps has joined #asahi
cylm has quit [Ping timeout: 480 seconds]
jacksonchen666 has quit [Ping timeout: 480 seconds]
jacksonchen666 has joined #asahi
<sven> hm, looks like I need to spend some time trying to reproduce that issue now that multiple people ran into it
hertz has joined #asahi
<corion> Anyone else have issues with wifi disconnecting in gnome?
<corion> Maybe I'm running multiple network managers..
<bluetail8> sven is your response from the race condition of usb storage being not found unless you plug them in after a succesful boot?
<bluetail8> (I use the USB type C ports since USB Type A seems less well performing)
<sven> yes
<bluetail8> thx for clarifying
yumasi has joined #asahi
eroc1990 has quit [Remote host closed the connection]
eroc1990 has joined #asahi
yumasi_ has joined #asahi
yumasi has quit [Read error: Connection reset by peer]
Dementor has quit [Read error: Connection reset by peer]
Dementor has joined #asahi
___nick___ has joined #asahi
yumasi_ has quit [Remote host closed the connection]
yumasi has joined #asahi
___nick___ has quit []
___nick___ has joined #asahi
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi
SmileyKeith has quit [Ping timeout: 480 seconds]
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi
psykose has quit [Ping timeout: 480 seconds]
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi
yumasi has quit [Ping timeout: 480 seconds]
ximet has quit [Quit: The Lounge - https://thelounge.chat]
ximet has joined #asahi
bcrumb has joined #asahi
yumasi has joined #asahi
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi
yumasi has quit [Remote host closed the connection]
nuup has quit [Quit: WeeChat 3.0]
yumasi has joined #asahi
Zopolis4 has quit [Quit: Connection closed for inactivity]
bcrumb has quit [Quit: WeeChat 3.7.1]
possiblemeatball has joined #asahi
yumasi has quit [Ping timeout: 480 seconds]
psykose has joined #asahi
psykose_ has joined #asahi
psykose_ has quit [Remote host closed the connection]
psykose_ has joined #asahi
psykose has quit [Ping timeout: 480 seconds]
tiagom has joined #asahi
tiagom has quit []
<corion> I did in fact run multiple network managers. I removed the conflict and everything is working fine (re: wifi).
mamba has quit [Quit: leaving]
Nnubes256 has joined #asahi
bluetail8 has quit [Ping timeout: 480 seconds]
yumasi has joined #asahi
roxfan2 has quit [Remote host closed the connection]
roxfan has joined #asahi
<tpw_rules> anybody seen mtp occasionally failing to probe? https://gist.github.com/psanford/918bba69d22923a947c81dcee47c2e73 someone asked about this on nixos but i can't imagine it's specific to there
<tpw_rules> more specifically it says that rtkit failed to wake up that coprocessor
<tpw_rules> (or i guess that linux failed to wake up rtkit in that coprocessor)
cylm has joined #asahi
caef^ has quit [Remote host closed the connection]
<corion> marcan: are the funding goal percentages at pateron.com/marcan up to date? 20% seems a bit low, since it says "4k/month" is the initial goal. With 983 patreons, even if people only gave the smallest tier, you should be fairly close to 4k/month, or what am I missing? :)
<corion> patreon.com*
<j`ey> corion: says 51% for me
<corion> Oh? I see 20% on the first goal, and 4% on the second.
<tpw_rules> it says 42% for me
<corion> That's weird.
<corion> Or maybe I'm missing something.
<tpw_rules> i am not clued into the patreon habit but afaik there is nothing preventing a large fraction of patreons manually selecting down to $1/mo. there is nothing mandating the minimum tier
<tpw_rules> especially since nothing offers any reward
bluetail8 has joined #asahi
<corion> That makes sense, but surely the numbers should be the same for all of us, visiting the same url?
<tpw_rules> that part i cannot explain
<sven> iirc there was some bug with the currencies
<sven> if you select eu vs usd the percentage changed
<corion> ahh
<corion> In that case, I hope 51% is the right number.
yumasi has quit [Remote host closed the connection]
<tpw_rules> it says 100% on the first goal to me
<corion> Oh? So you have 42% on the second goal?
<tpw_rules> yes
<corion> That's a lot better than 4%.
<corion> Good!
Brainium has joined #asahi
wCPO624365 has quit [Remote host closed the connection]
wCPO624365 has joined #asahi
rvalue- has joined #asahi
rvalue has quit [Ping timeout: 480 seconds]
psykose_ has quit [Remote host closed the connection]
psykose has joined #asahi
nicolas17 has joined #asahi
___nick___ has quit [Ping timeout: 480 seconds]
Treibholz has quit [Quit: WeeChat 3.7.1]
unicordion has joined #asahi
possiblemeatball has quit [Quit: Leaving]
yumasi has joined #asahi
yumasi has quit [Ping timeout: 480 seconds]
Brainium_ has joined #asahi
Nnubes256 has quit [Quit: WeeChat 3.7.1]
Brainium_ has quit []
Brainium has quit [Ping timeout: 480 seconds]
Zopolis4 has joined #asahi
SSJ_GZ has quit [Ping timeout: 480 seconds]
rayanamukami31 has joined #asahi
rayanamukami3 has quit [Read error: Connection reset by peer]
rayanamukami31 is now known as rayanamukami3
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi
yumasi has joined #asahi
yumasi has quit [Ping timeout: 480 seconds]
jacksonchen666 has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi
j1mryan has joined #asahi
j1mryan1 has joined #asahi
SmileyKeith has joined #asahi
j1mryan has quit [Ping timeout: 480 seconds]
j1mryan1 is now known as j1mryan