#
#asahi-dev · 2026-07-08 17:27
nickchani am typing this from a macbook pro 2021 14 inch with m1 pro
#asahi-dev · 2026-07-08 17:27
iusearchbtwchaos_princess A crate was declared but cannot be found. Erroneous code example: extern crate foo; // error: can't find crate You need to link your code to the relevant crate in order to be able to use it (through Cargo or the -L option of rustc, for example). Common causes * The crate is not present at all. If using Cargo, add it to [dependencies] in Cargo.toml. * The crate is present, but under a different name. If using Cargo, look for p
#asahi-dev · 2026-07-08 17:26
chaos_princessgreat piece of software
#asahi-dev · 2026-07-08 17:26
chaos_princessiusearchbtw: i really like rustc, it is great at telling you what exactly went wrong, and how to fix it
#asahi-dev · 2026-07-08 17:26
iusearchbtwnickchan who in the kaboom community has a m1
#asahi-dev · 2026-07-08 17:25
nickchanno operating system image support these machines
#asahi-dev · 2026-07-08 17:25
iusearchbtwchaos_princess error[E0463]: can't find crate for `core` | = note: the `aarch64-unknown-none-softfloat` target may not be installed = help: consider downloading the target with `rustup target add aarch64-unknown-none-softfloat` = help: consider building the standard library from source with `cargo build -Zbuild-std` For more information about this error, try `rustc --explain E0463`. error: could not compile `bitflags` (lib) due to 1 previo
#asahi-dev · 2026-07-08 17:25
iusearchbtwchaos_princess i want to test it on j613
#asahi-dev · 2026-07-08 17:24
chaos_princessjust run test.sh
#asahi-dev · 2026-07-08 17:23
iusearchbtwjannau should know how to and its 14.8.3 not 16.8.3 because macos 16 did not exist its only 13 14 15 and 26
#asahi-dev · 2026-07-08 17:22
nickchan16.8.3
#asahi-dev · 2026-07-08 17:22
iusearchbtwsven how do we compile https://github.com/jannau/asahi-installer/tree/m3-macos-16.8.3-ota-install from source
#asahi-dev · 2026-07-08 17:22
svenI truly do not care about making anything more complicated right now to save 2MiB or so
#asahi-dev · 2026-07-08 17:21
svenstill not gonna change anything for now
#asahi-dev · 2026-07-08 17:21
sven🤷‍♂️
#asahi-dev · 2026-07-08 17:20
nickchanand for CPU_SUSPEND either state is kept like with retention deep wfi so kernel stack and all, or lose state then it's like CPU_ON
#asahi-dev · 2026-07-08 17:20
nickchanfor CPU_OFF the secondary stack would not even be used
#asahi-dev · 2026-07-08 17:19
nickchanfor CPU_ON the secondary is outside the kernel with mmu off so from that core's perspective the stack is perfectly accessible
#asahi-dev · 2026-07-08 17:19
nickchanput it as reserved memory no map; then
#asahi-dev · 2026-07-08 17:18
nickchani don't understand why the secondary stack must be accessible in the EFI PSCI context
#asahi-dev · 2026-07-08 16:20
nickchanon a11 the pcore and ecore is in same cluster (?) and there's a ACC_EBLK_OVRD that is should be but never set in m1n1
#asahi-dev · 2026-07-08 16:19
nickchana11 has been working by luck this whole time :)
#asahi-dev · 2026-07-08 16:19
nickchanhonestly though cpu sleep is magic
#asahi-dev · 2026-07-08 15:54
nickchanand if deep_sleep is false there then the code does not touch acc_ovrd
#asahi-dev · 2026-07-08 15:53
nickchan"going into deep sleep" in smp_stop_cpu() of m1n1 does sound like powering down the cluster
#asahi-dev · 2026-07-08 15:52
chaos_princessthat is not what we are talking about
#asahi-dev · 2026-07-08 15:51
nickchancpu_sleep(0) in m1n1
#asahi-dev · 2026-07-08 15:51
sventhen tell me how I can power off a cpu without acc_ovrd
#asahi-dev · 2026-07-08 15:50
nickchanI suppose it could be a problem when shutting down the last core in a cluster
#asahi-dev · 2026-07-08 15:49
nickchanright but wouldn't those be for shutting down the cluster
#asahi-dev · 2026-07-08 15:47
chaos_princessthe relevant bits are in ACC_OVRD
#asahi-dev · 2026-07-08 15:47
nickchanCPU_OVRD/CYC_OVRD should be per core
#asahi-dev · 2026-07-08 15:41
sventhat makes shutting individual CPUs off a bit annoying
#asahi-dev · 2026-07-08 15:40
svenlooks like xnu doesn’t lie and the ovrd register are indeed per cluster
#asahi-dev · 2026-07-08 14:40
nickchanand reduce that main el3 stack to 16k since its main use is for the exception code which is the same code used by the secondaries that had 16K stack already in experiments like find_regs
#asahi-dev · 2026-07-08 14:36
nickchancould probably get rid of dummy_stack entirely as well, it should never be used and in practice it also doesn't work because it's not 16 byte aligned
#asahi-dev · 2026-07-08 14:30
nickchanon the main branch
#asahi-dev · 2026-07-08 14:29
nickchanthese two stacks accounts for 75% of the difference between the .macho and the .bin which is caused by whether .bss is included
#asahi-dev · 2026-07-08 14:28
nickchan though moving the main EL3 stack would require an appropriate reservation in FDT on the devices that need it
#asahi-dev · 2026-07-08 14:27
svenwhich is still fine for now imho
#asahi-dev · 2026-07-08 14:27
svenright now my raw binary is about 3 MiB with that branch
#asahi-dev · 2026-07-08 14:27
svenyeah, i first want to get the psci-via-efi or whatever thing ready and then we can always optimize before the next m1n1 release
#asahi-dev · 2026-07-08 14:22
nickchanthe boot-args makes it easy to do in asm
#asahi-dev · 2026-07-08 14:21
nickchanone optimization im thinking is moving the main stack to just after top_of_kdata and using a seperate variable to tell the allocator about this fact
#asahi-dev · 2026-07-08 14:20
nickchannp it wouldn't cause immediate problems so i can make it less messed up later
#asahi-dev · 2026-07-08 14:06
svenmaybe we figure this out later
#asahi-dev · 2026-07-08 14:06
nickchanonly for the secondary though since this would leak memory if another m1n1 is chainloaded after secondary has been started
#asahi-dev · 2026-07-08 14:02
nickchanand then the secondary stack size can still be 16K i think
#asahi-dev · 2026-07-08 14:01
nickchansince the memory needs to be reserved anyway
#asahi-dev · 2026-07-08 13:59
NickChan[m]maybe top_of_memory_alloc() can be used?

plus ›