#
#asahi-dev · 2023-04-13 09:22
kettenisbut I should be able to upload the cpio using the proxy shouldn't I?
#asahi-dev · 2023-04-13 09:21
kettenisI did something similar, but initailly just did the proxy install
#asahi-dev · 2023-04-13 09:20
chadmedworks though!
#asahi-dev · 2023-04-13 09:20
chadmedi shoehorned 13.2 support into the installer for the m2 pro mini a while ago but its horrid and uses a stale branch of m1n1
#asahi-dev · 2023-04-13 09:19
jannauthat will install a broken m1n1 +dtb + u-boot boot.bin but I assume you're able update it
#asahi-dev · 2023-04-13 09:17
jannautest.sh should work locally on macos
#asahi-dev · 2023-04-13 09:17
jannaukettenis: https://github.com/AsahiLinux/asahi-installer/pull/179
#asahi-dev · 2023-04-13 09:16
kettenisin any case I just pushed the M2 Pro/Max U-Boot support to the asahi branch
#asahi-dev · 2023-04-13 09:14
kettenisor is it easy to produce the firmware init ramdisk cpio by running one of the python scripts on macOS?
#asahi-dev · 2023-04-13 09:13
kettenishmm, I'm probably at the point where I want to do a "proper" uefi install on my m2 pro mini
#asahi-dev · 2023-04-13 08:03
mazjannau: if we don't get aggregation, it should be OK indeed.
#asahi-dev · 2023-04-13 07:56
jannaushouldn't that be still ok as long as perf doesn't aggregate counters from different PMUs? might be impossible to interpret the results but shouldn't be worse than not counting anything due to running on the wrong CPU
#asahi-dev · 2023-04-13 07:51
mazfor the Apple stuff, it's probably OK. but the ARM implementations are... insane.
#asahi-dev · 2023-04-13 07:50
mazjannau: can't see why not, given that this a pure userspace approach. I'm just worried that it will lead to "interesting" results on implementations that have events numbers that count vastly different things on different micro architectures...
#asahi-dev · 2023-04-13 07:30
jannaumaz: would it make sense to support something like https://lore.kernel.org/lkml/YE+avkajxbGJMOoM@krava/T/ ? that looks to me like more intuitive default behavior
#asahi-dev · 2023-04-13 07:21
jannauwith the pcie fix the bringup branch works on m1/m1 max/m2 with dcp firmware 12.3 and 13.2
#asahi-dev · 2023-04-13 07:20
jannaudid you see https://github.com/AsahiLinux/linux/pull/134 ? the ps_isp_sys change is maybe worth looking into further
#asahi-dev · 2023-04-13 07:17
jannaumarcan: np, changes are not complicated and I had them most of them since the m2 mac mini arrived
#asahi-dev · 2023-04-13 07:10
mazthe default is probably the PMU type that matches cores 0-3, which leads to nothing on core 4...
#asahi-dev · 2023-04-13 07:09
mazeric_engestrom: you need to select the *PMU* that matches the core you are using.
#asahi-dev · 2023-04-13 06:17
marcanjannau: Argh, I already had the installer changes locally, just didn't want to push to stop people from doing silly things..
#asahi-dev · 2023-04-12 17:59
eric_engestromthanks jannau :)
#asahi-dev · 2023-04-12 17:58
eric_engestromI have to go now, but I'll check tomorrow if that's enough for what I need
#asahi-dev · 2023-04-12 17:58
eric_engestromcore 4 gives me the same result as nothing, but core 0 allows me to have cycles & instructions counts!
#asahi-dev · 2023-04-12 17:57
jannauworks for me on m2 mbp 13"
#asahi-dev · 2023-04-12 17:56
jannau`taskset -c $CORE perf stat sleep 1` with 0 and 4 for $CORE
#asahi-dev · 2023-04-12 17:56
eric_engestrom"can you try that on both the performance and efficiency cores" how do I do that?
#asahi-dev · 2023-04-12 17:55
eric_engestromperf list: https://gist.github.com/1ace/84ea9f3ca41c66ae95142295d899a646
#asahi-dev · 2023-04-12 17:55
eric_engestromnot sure why I typed 0, -1 is what I tried :]
#asahi-dev · 2023-04-12 17:54
jannaueric_engestrom: try -1
#asahi-dev · 2023-04-12 17:54
eric_engestromI'm on an m2 air
#asahi-dev · 2023-04-12 17:54
eric_engestromthanks for `perf stat`, thats' much simpler than `perf record ... && perf report ...` :)
#asahi-dev · 2023-04-12 17:54
eric_engestromjannau: /proc/sys/kernel/perf_event_paranoid was 2, but setting it to 0 makes no difference
#asahi-dev · 2023-04-12 17:39
jannauon m2* it's apple_avalanche_pmu/cycles/ and apple_blizzard_pmu/cycles/
#asahi-dev · 2023-04-12 17:39
jannausee perf list about which cycle and instruction counters you have
#asahi-dev · 2023-04-12 17:38
jannauit should work on one or the other. I'm not sure how perf/ the kernel selects which counters are cycles/instructions but it mappes only to either one
#asahi-dev · 2023-04-12 17:36
jannaueric_engestrom: `perf stat sleep 1` is generally a nice way to test if perf works as expected. can you try that on both the performance and efficiency cores
#asahi-dev · 2023-04-12 17:31
jannauah, the compatible is missing a 'z'
#asahi-dev · 2023-04-12 17:27
jannausomehow the blizzard pmu went missing on m2 pro
#asahi-dev · 2023-04-12 17:22
jannau/proc/sys/kernel/perf_event_paranoid is set to allow user event sampling?
#asahi-dev · 2023-04-12 17:17
eric_engestromjannau: nope :/
#asahi-dev · 2023-04-12 17:16
jannaudoes perf record -e cpu-clock ... work?
#asahi-dev · 2023-04-12 17:14
jannauthat said, a plain `perf record sleep 1` produces samples for me on m1 max
#asahi-dev · 2023-04-12 17:14
jannauif I remembered. with hw counters you need to taskset either efficiency or performance cores
#asahi-dev · 2023-04-12 17:07
eric_engestromwas there a fix or workaround?
#asahi-dev · 2023-04-12 17:07
eric_engestromjannau: glad to know I'm not alone :]
#asahi-dev · 2023-04-12 17:06
jannaueric_engestrom: we have seen that before
#asahi-dev · 2023-04-12 17:06
jannaukettenis: t602x/bringup wifi/bt fixes are in https://github.com/AsahiLinux/linux/pull/134
#asahi-dev · 2023-04-12 17:00
eric_engestromhttps://gist.github.com/1ace/1b629092f0074b2f20318d60667436e6 as a reproducer
#asahi-dev · 2023-04-12 17:00
eric_engestrom> The perf.data data has no samples!

plus ›