#
✕ nick:davidrysk[m]
#asahi-re · 2021-01-31 03:38
davidrysk[m]amw: note that t8020 is for the DTK and t8101 is for the M1 Mac. Also you can use otool -xV if you have the Apple cctools
#asahi-re · 2021-01-29 21:37
davidrysk[m]but I'm not 100% sure
#asahi-re · 2021-01-29 21:37
davidrysk[m]roxfan: I think so
#asahi-re · 2021-01-29 19:32
davidrysk[m]kexts you can just get from /S/L/E
#asahi-re · 2021-01-29 19:31
davidrysk[m]also note that Apple has significantly increased the level of link-time optimization and inlining that they do on the Apple Silicon kernels. You will not find many symbols in them.
#asahi-re · 2021-01-29 19:31
davidrysk[m]marcan, amw: you don't need to extract the kernelcache, you can just go at /System/Library/Kernels/kernel.release.t8101
#asahi-re · 2021-01-27 20:45
davidrysk[m]mainly asking out of curiosity -- I expect that to be handled by iBoot et al
#asahi-re · 2021-01-27 20:45
davidrysk[m]never_released: do these Apple chips have/use loadable CPU microcode?
#asahi-re · 2021-01-27 18:37
davidrysk[m]or shadows it in some way? uh.
#asahi-re · 2021-01-27 18:37
davidrysk[m]okay, S3_4_C15_C10_6 on t8101 seems to be equiv to CNTVCT_EL0 on t8020
#asahi-re · 2021-01-27 18:29
davidrysk[m]I told the zfs people that they need to determine the minimal set of APIs they need and then file a support incident with apple asking for new APIs
#asahi-re · 2021-01-27 18:21
davidrysk[m]j`ey: it's causing problems for zfs because they use not officially exported symbols that were being accidentally exported before :P
#asahi-re · 2021-01-27 18:17
davidrysk[m]apple compiled the arm kernels with the maximum amount of inlining/LTO and the minimum amount of symbols :P
#asahi-re · 2021-01-27 18:17
davidrysk[m]hopefully t8101 xnu source / kdk will have more insights
#asahi-re · 2021-01-27 18:17
davidrysk[m]and there are a whole load of undocumented but utilized Apple specific registers that might just be used for virtualization, idk
#asahi-re · 2021-01-27 18:17
davidrysk[m]looks like A14/M1 has a ton of features that A12 doesn't e.g. DBGCLAIM
#asahi-re · 2021-01-27 16:43
davidrysk[m]I think this is related to smp init but I need to load xnu into a disasm that supports xrefs :P
#asahi-re · 2021-01-27 16:00
davidrysk[m]there's a fair amount of poking at HID registers that are not documented in the xnu we have
#asahi-re · 2021-01-27 16:00
davidrysk[m]or rather, disasm
#asahi-re · 2021-01-27 15:59
davidrysk[m]marcan: xnu
#asahi-re · 2021-01-25 19:03
davidrysk[m]but I doubt upstream would take an Apple-specific implementation like that
#asahi-re · 2021-01-25 19:03
davidrysk[m]Apple's PAC implementation has separate keys for kernel and user mode and is quite a bit more robust
#asahi-re · 2021-01-25 19:00
davidrysk[m]j`ey: SYS_ -- apple calls them ARM64_REG_blah
#asahi-re · 2021-01-25 19:00
davidrysk[m]which means the newer CPUs don't have HAS_MIGSTS
#asahi-re · 2021-01-25 18:59
davidrysk[m]they... reassigned it as a register used for PAC
#asahi-re · 2021-01-25 18:59
davidrysk[m]hah
#asahi-re · 2021-01-25 18:58
davidrysk[m]though it appears that Apple only uses the MIGSTS register when dumping error state
#asahi-re · 2021-01-25 18:58
davidrysk[m]I'm referring to MIGSTS and related registers
#asahi-re · 2021-01-25 18:51
davidrysk[m]and vice versa
#asahi-re · 2021-01-25 18:51
davidrysk[m]p-core to e-core
#asahi-re · 2021-01-25 18:44
davidrysk[m]heh they're only using that to dump error state anyway
#asahi-re · 2021-01-25 18:43
davidrysk[m]so there's no need to mess around with ARM64_REG_MIGSTS_EL1?
#asahi-re · 2021-01-25 18:38
davidrysk[m]yeah there's https://www.kernel.org/doc/html/latest/scheduler/sched-energy.html
#asahi-re · 2021-01-25 18:36
davidrysk[m](does linux support migration for regular ARM BIG.little and if so how?)
#asahi-re · 2021-01-25 18:36
davidrysk[m]I'd expect it to be useful if the scheduler decides that a process does not need to be on a p-core anymore
#asahi-re · 2021-01-25 18:36
davidrysk[m]marcan: are you sure that migration is unused on the m1?
#asahi-re · 2021-01-23 04:15
davidrysk[m]are there other instructions than those?
#asahi-re · 2021-01-23 04:14
davidrysk[m]but yeah more likely that the hardware does
#asahi-re · 2021-01-23 04:14
davidrysk[m]it's possible that the runtime populates them as needed
#asahi-re · 2021-01-23 03:07
davidrysk[m]I would not be surprised if they're used for that, e.g. threadgroup_position_in_grid.x always returns the appropriate value for the block in which you are currently executing in
#asahi-re · 2021-01-23 03:06
davidrysk[m]hthh_: those special registers seem similar to the grid/thread/block stuff that cuda and other gpu compute frameworks use
#asahi-re · 2021-01-22 16:47
davidrysk[m]Bluerise: I'm wondering if iBoot leaves the power control register in the enabled state
#asahi-re · 2021-01-22 15:07
davidrysk[m]yeah but fabric cache is closer to L3-level while RAM is RAM
#asahi-re · 2021-01-22 15:07
davidrysk[m]never_released: 16MB cache, interesting
#asahi-re · 2021-01-21 22:35
davidrysk[m](also, Apple has never told us how much shared memory is present inside the SoC)
#asahi-re · 2021-01-21 22:35
davidrysk[m]never_released: btw I am very curious as to how Apple's "fabric" works, especially considering this testing: https://lemire.me/blog/2021/01/06/memory-access-on-the-apple-m1-processor/
#asahi-re · 2021-01-21 13:41
davidrysk[m](Or the design that leads to this behavior)
#asahi-re · 2021-01-21 13:41
davidrysk[m]The big question: is this specific nGnRE breakage intentional?
#asahi-re · 2021-01-21 13:30
davidrysk[m]e.g. what registers are used to configure that
#asahi-re · 2021-01-21 13:26
davidrysk[m]Someone did say that they do “fabric config”

plus ›