#
✕ nick:nickchan
#asahi-dev · 2025-04-13 10:42
nickchansven: https://lore.kernel.org/asahi/20250220-caches-v1-0-2c7011097768@gmail.com/T
#asahi-dev · 2025-04-13 05:35
nickchanhad some success hacking iboot's data abort handler hopefully i could do it for xnu soon
#asahi-dev · 2025-04-12 05:44
nickchanusually the older the version the more hardcoding needed
#asahi-dev · 2025-04-12 05:43
nickchanspeaking of ios 7 it is still broken for other reasons in adt just fixing one by one
#asahi-dev · 2025-04-12 05:27
nickchangiven the complexity this incurs
#asahi-dev · 2025-04-12 05:27
nickchanshould split get iorvbar into its own functions too
#asahi-dev · 2025-04-12 05:23
nickchani guess the fallback then becomes cpu-impl-reg -> reg-private -> /arm-io/ranges
#asahi-dev · 2025-04-12 05:23
nickchanreg-private doesn't exist on ios 7 adt
#asahi-dev · 2025-04-12 05:23
nickchanoh how fun
#asahi-dev · 2025-04-12 05:21
nickchanshould probably use /cpus/cpu<n> reg-private as fallback...
#asahi-dev · 2025-04-12 05:21
nickchanturns out some of the socs breaks the cpu iorvbar pattern in /arm-io reg
#asahi-dev · 2025-04-08 04:25
nickchanshould still apply cleanly
#asahi-dev · 2025-04-08 04:25
nickchansven: just making sure that I do not need to resend the a7-a11,t2 cpu caches series
#asahi-dev · 2025-04-07 16:49
nickchanalternatively i can be like apple and name it after some ape
#asahi-dev · 2025-04-07 16:46
nickchanhmm
#asahi-dev · 2025-04-07 16:46
nickchan"linux-sandcastle" would cause confusion, "linux-fruit" is too boring
#asahi-dev · 2025-04-07 16:45
nickchanunfortunately, i am not good at imagination
#asahi-dev · 2025-04-07 16:44
nickchanneed a better name besides the obvious trademark issue
#asahi-dev · 2025-04-07 16:43
nickchan"linux-apple" is not appropriate at all
#asahi-dev · 2025-04-07 16:42
nickchansince i talked about legal stuff i probably should rename some of my linux repos... eventually
#asahi-dev · 2025-04-07 16:07
nickchanchaos_princess: yeah right then you are "supposed" to have read and understodd it :-)
#asahi-dev · 2025-04-07 16:04
nickchanchaos_princess: if you follow the authed link with an apple id you will find the license text
#asahi-dev · 2025-04-07 16:03
nickchanand all of this boils down a laywer's interpetation of adding perf event descriptions that are either a pharse or a sentence is "using" or "distributing"
#asahi-dev · 2025-04-07 16:01
nickchanin the license agreement it does say the pdf can be used to create a licensed product ... "a Licensee software package that is designed to run on or be interoperable with Apple products."
#asahi-dev · 2025-04-07 15:53
nickchanoh that link does exist https://developer.apple.com/download/apple-silicon-cpu-optimization-guide/ but of course there is a catch
#asahi-dev · 2025-04-07 15:52
nickchanI only say paste into google for reasons
#asahi-dev · 2025-04-07 15:51
nickchaninto google
#asahi-dev · 2025-04-07 15:51
nickchani mean "Apple Silicon CPU Optimization Guide" -apple.com
#asahi-dev · 2025-04-07 15:50
nickchanwith quotes
#asahi-dev · 2025-04-07 15:50
nickchanthough here is a hack: paste "Apple Silicon CPU Optimization Guide" into Google
#asahi-dev · 2025-04-07 15:49
nickchanand the pdf is /not/ available as a unauthenticated download from apple
#asahi-dev · 2025-04-07 15:48
nickchanchaos_princess: does not really work that way since the json is compiled into the perf bin...
#asahi-dev · 2025-04-07 15:46
nickchanright it's just https://github.com/cyyself/m1-pmu-gen
#asahi-dev · 2025-04-07 15:45
nickchanchaos_princess: that already exists
#asahi-dev · 2025-04-07 15:33
nickchanall short descriptions, less than 20 words, most less than 10 words
#asahi-dev · 2025-04-07 15:25
nickchanlike there's probably only one way (that fits with the kernel style) to write the description of RETIRE_UOP but the same cannot be said for like, FLUSH_RESTART_OTHER_NONSPEC
#asahi-dev · 2025-04-07 15:23
nickchanand there is probably more than one way to write the description for some of the events, that is, possibly involves creativity and therefore copyright
#asahi-dev · 2025-04-07 15:22
nickchandescrption for those events can be found in the apple silicon cpu optimization pdf but of course that's copyrighted
#asahi-dev · 2025-04-07 15:21
nickchancan definitely add the event names at least they are already in the kernel
#asahi-dev · 2025-04-07 15:21
nickchanthere is a bunch of tools/perf/pmu-events/arch/arm64/**/core-imp-def.json in Linux for different cores
#asahi-dev · 2025-04-07 15:20
nickchanso about pmu event descriptions
#asahi-dev · 2025-04-06 11:36
nickchanand x0 will end up being the return value so check that from the caller
#asahi-dev · 2025-04-06 11:36
nickchanand that function should write a magic value into x0, save x19-x30, wfi, restore x19-x30, then return
#asahi-dev · 2025-04-06 11:33
nickchanconfigure the timer register to fire an interrupt after a second then call a function that does deep wfi
#asahi-dev · 2025-04-06 11:32
nickchanand other cores are not working so everything needs to happen on the boot cpu
#asahi-dev · 2025-04-06 11:32
nickchanit keeps the cpu busy
#asahi-dev · 2025-04-06 11:32
nickchanBut that's the opposite of what one wants to do in a wfi experiments
#asahi-dev · 2025-04-06 11:28
nickchanas for polling the timer without causing interrupt that's what udelay() does already
#asahi-dev · 2025-04-06 11:27
nickchanmischa85: you need an interrupt to wake from wfi...
#asahi-dev · 2025-04-06 11:24
nickchanand the interrupt of that timer is delivered as a FIQ

plus ›