marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
scubasteve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
scubasteve has joined #asahi
TheJollyRoger has joined #asahi
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 260 seconds]
riker77_ is now known as riker77
zopieux has quit [Ping timeout: 248 seconds]
zopieux has joined #asahi
niv has quit [Ping timeout: 276 seconds]
DarkShadow44 has quit [Ping timeout: 276 seconds]
niv has joined #asahi
DarkShadow44 has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<marcan> lazarosser[m]: RYF means nothing, the FSF is happy to RYF certify stuff with giant proprietary blobs you can't see
<marcan> it absolutely does not mean "everything is open source"
<marcan> it means "you can't see the blobs so we can pretend they don't exist"
<marcan> it's useless and hurts freedom because a device with visible blobs is more free than a device with hidden blobs
odmir has quit [Ping timeout: 260 seconds]
<marcan> but RYF causes vendors to try to hide blobs
grange_c2 has joined #asahi
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
tomtastic has quit [*.net *.split]
grange_c has quit [*.net *.split]
roxfan has quit [*.net *.split]
kido has quit [*.net *.split]
ch3sh1r3c4t has quit [*.net *.split]
grange_c2 is now known as grange_c
rbenua has quit [*.net *.split]
rbenua has joined #asahi
roxfan has joined #asahi
ch3sh1r3c4t has joined #asahi
tomtastic has joined #asahi
kido has joined #asahi
marshmallow has quit [Ping timeout: 265 seconds]
marshmallow has joined #asahi
raster has quit [Quit: Gettin' stinky!]
phiologe has quit [Ping timeout: 276 seconds]
PhilippvK has joined #asahi
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 276 seconds]
matt6 has joined #asahi
marvin24_ has quit [Ping timeout: 245 seconds]
marvin24 has joined #asahi
Namidairo has quit [Ping timeout: 252 seconds]
Namidairo has joined #asahi
scubasteve has quit [Ping timeout: 240 seconds]
scubasteve has joined #asahi
bgianf has quit [Ping timeout: 240 seconds]
ephe_meral1 has joined #asahi
jeffmiw has joined #asahi
VinDuv has joined #asahi
jeffmiw has quit [Ping timeout: 268 seconds]
Bublik has joined #asahi
VinDuv has quit [Quit: Leaving.]
Bublik_ has quit [Ping timeout: 240 seconds]
<sven> guarded execution stuff: brief docs at https://github.com/AsahiLinux/docs/wiki/HW:-SPRR-and-GXF, code at https://github.com/AsahiLinux/m1n1/pull/53 and me trying this whole blogging thing at https://blog.svenpeter.dev/posts/m1_sprr_gxf/
bgianf has joined #asahi
aquijoule_ has quit [Remote host closed the connection]
aquijoule_ has joined #asahi
scooby2 has quit [Ping timeout: 250 seconds]
choozy has joined #asahi
scooby2 has joined #asahi
fstokesman[m] has quit [Quit: Idle for 30+ days]
<Emantor> sven: nice writeup, thanks :)
raster has joined #asahi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nmg has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
choozy has joined #asahi
bgianf has quit [Remote host closed the connection]
klaus has quit [Ping timeout: 268 seconds]
pcm720[m] has joined #asahi
klaus has joined #asahi
CDFH_ has quit [Quit: That's it, I quit]
CDFH has joined #asahi
jeffmiw has joined #asahi
jeffmiw has quit [Ping timeout: 240 seconds]
mechpilotace has joined #asahi
maknho__ has joined #asahi
vimal has joined #asahi
maknho_ has quit [Ping timeout: 260 seconds]
<marshmallow> sven: very nice writeup!
<marshmallow> so basically Secure Enclave replaces EL3 TrustZone in M1?
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
vimal has quit [Ping timeout: 260 seconds]
<sven> marshmallow: thanks! Secure Enclave is an entirely separate processor
scubasteve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<sven> apple never used trust zone for that afaik
scubasteve has joined #asahi
scubasteve has quit [Client Quit]
scubasteve has joined #asahi
vimal has joined #asahi
scubasteve has quit [Client Quit]
scubasteve has joined #asahi
scubasteve has quit [Client Quit]
_rjeffman is now known as rjeffman
scubasteve has joined #asahi
scubasteve has quit [Client Quit]
scubasteve has joined #asahi
scubasteve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
scubasteve has joined #asahi
zkrx has quit [Ping timeout: 252 seconds]
scubasteve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
scubasteve has joined #asahi
zkrx has joined #asahi
modrobert has quit [Read error: Connection reset by peer]
modrobert has joined #asahi
vimal has quit [Ping timeout: 260 seconds]
vimal has joined #asahi
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<pipcet[m]> okay, so I've had to patch a single insn in the kernel and mess with the device tree a bit, but I can get a usable macos desktop chain-loaded through m1n1 now. Can't wait for the hypervisor!
<pipcet[m]> single-core, but still
<pipcet[m]> and this time I'm on the right architecture, too!
odmir has quit [Ping timeout: 260 seconds]
<delroth> can you document the changes you needed to do? I suspect this might save marcan a few minutes/hours when he tries doing this (since iirc his last uick attempt didn't end up with a usable desktop)
<delroth> +q
<pipcet[m]> currently trying to whittle down my various changes to what's actually necessary, will open a PR then :-)
<pipcet[m]> load average at 52, it's not a happy system on a single efficiency core
omoiti00 has joined #asahi
omoiti has joined #asahi
omoiti has quit [Client Quit]
omoiti00 has quit [Client Quit]
odmir has joined #asahi
odmir has quit [Ping timeout: 265 seconds]
odmir has joined #asahi
Bublik_ has joined #asahi
Bublik has quit [Ping timeout: 240 seconds]
<marcan> pipcet[m]: why since core?
<marcan> there is no reason to be stuck in single core mode outside the HV
<marcan> *single
<marcan> I'm turning off the other cores for the HV because it is not SMP-safe right now (it will be, eventually; I need to write some spinlocks and make sure peripheral emulation and iodev stuff is serialized)
<marcan> (and also virtualize the cpustart stuff)
<pipcet[m]> had to do that to get it to boot, and also I'm still planning to steal CPU cores from macos.
<marcan> then that's another issue that needs to be fixed
<pipcet[m]> I can't debug further unless someone tells me the magic trick to get macos kernel debug output without uart access :-)
<marcan> framebuffer?
<pipcet[m]> of course if the hypervisor is done before then that would be much, much bett.r
<pipcet[m]> framebuffer would be ideal, yes.
<pipcet[m]> any way to tell macos to put anything but a progress bar there? -noprogress still works, the other options that used to control kernel output don't.
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<marcan> -v enables framebuffer debug output
<marcan> works fine here, in fact I get framebuffer *first* and it only switches to serial later
<pipcet[m]> just "-v"? No debug= or anything?
<pipcet[m]> you're not using macho sections for m1n1, are you?
<pipcet[m]> just segments?
<pipcet[m]> because I think what might be happening is that macos assumes it can use a physical address to write to the secondary CPUs' rvbar register, and that needs to be aligned to, I think, 64 KB
Bublik has joined #asahi
<marcan> chainload.py loads in-place
<marcan> that means macos ends up exactly where it would've ended up if loaded by iBoot2
<marcan> which is required for RVBAR on CPU0, which is locked by iBoot2 (I'm not sure if this actually matters on M1 or not; I think it did for earlier designs without PC-preserving wfi but it may still matter for some kind of deeper sleep modes)
Bublik_ has quit [Ping timeout: 260 seconds]
<marcan> (that is not to say the mach-o loader code isn't buggy in some way, but I'd expect things to break worse if it were; feel free to dig deeper though)
<davidrysk[m]> pipcet: yes just -v in the bootargs
<davidrysk[m]> (security needs to allow custom bootargs, ofc)
VinDuv has joined #asahi
sven_ has joined #asahi
ephe_meral1 has quit [Ping timeout: 260 seconds]
sven has quit [Ping timeout: 240 seconds]
sven_ is now known as sven
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<pipcet[m]> marcan: I'm pretty sure iBoot2 looks at the alignment property of the macho sections it loads.
<pipcet[m]> at least it did for my linux images; they were aligned to 128KB or something, not to 2MB as I'd requested.
<pipcet[m]> I can pass bootargs, they have an effect (in the case of "-noprogress"), but if I pass "-v" instead of "-noprogress", nothing happens.
<pipcet[m]> maybe "-v" counts as a custom bootarg and "-noprogress" doesn't, somehow.
tbodt_ has joined #asahi
maknho___ has joined #asahi
maknho__ has quit [Ping timeout: 240 seconds]
tbodt_ has quit [Ping timeout: 268 seconds]
marcan has quit [Ping timeout: 240 seconds]
marcan has joined #asahi
TheJollyRoger has quit [Remote host closed the connection]
TheJollyRoger has joined #asahi
ivanmedoedov[m] has joined #asahi
zkrx has quit [Ping timeout: 265 seconds]
jeffmiw has joined #asahi
zkrx has joined #asahi
jeffmiw has quit [Ping timeout: 252 seconds]
choozy has joined #asahi
jeffmiw has joined #asahi
Bublik has quit [Ping timeout: 240 seconds]
Bublik has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
frode_0xa has joined #asahi
frode_0xa has quit [Quit: leaving]
JustinWhite[m] has joined #asahi
VinDuv has quit [Quit: Leaving.]
odmir has joined #asahi
jeffmiw has quit [Ping timeout: 268 seconds]
<JustinWhite[m]> Hello everyone! Excited to learn and follow along. I'm a web and software developer from Illinois, excited at the rapid progress of the project and honored to be a part of the community.
<JustinWhite[m]> Happy to help in any way I can, but just excited to be here and mingle!
odmir has quit [Ping timeout: 260 seconds]
jeffmiw has joined #asahi
odmir has joined #asahi
sven has quit [Remote host closed the connection]
sven has joined #asahi
marcan has quit [Ping timeout: 260 seconds]
jeffmiw has quit [Ping timeout: 268 seconds]
marcan has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
synthmeat has quit [Ping timeout: 252 seconds]
synthmeat has joined #asahi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
raster has quit [Quit: Gettin' stinky!]