#asahi-dev · 2023-07-03 07:14
mazhahahah!#asahi-dev · 2023-07-03 07:12
mazsven: ah, good job! at least we will suffer from the same leftover bugs! :D#asahi-dev · 2023-07-02 19:55
mazsven: ah, I'm glad it was finally useful! I've since built better versions, but in any case you may want to update the FW to the latest, as there is definitely no shortage of bugs there either!#asahi-dev · 2023-06-26 13:49
mazs/TSMC/TSC/#asahi-dev · 2023-06-26 13:48
mazwith NV, HCR_EL2.TSMC should apply.#asahi-dev · 2023-05-27 20:42
mazanyway, if you get a chance to test this patch before I send it, that'd be most appreciated.#asahi-dev · 2023-05-27 20:42
mazbut you'll have to look at the arch doc to find out how this works - I stick with Debian because I know my way around it.#asahi-dev · 2023-05-27 20:40
mazif you already have *something* running, no need to touch m1n1 or grub.#asahi-dev · 2023-05-27 20:40
mazso whatever distro you're using, the same tooling should apply. the complexity of the apple stuff is that upstream isn't really usable for most people, and you need to grab the asahi tree instead.#asahi-dev · 2023-05-27 20:38
mazmatter*#asahi-dev · 2023-05-27 20:38
mazI 'dpkg -i' my own kernels, but that's a matyter of taste... ;-)#asahi-dev · 2023-05-27 20:37
mazit's exactly the same if you're used to build your own kernel on x86.#asahi-dev · 2023-05-27 20:36
maz(and on this note, I'm stepping away from the computer...)#asahi-dev · 2023-05-27 20:34
mazsid-linux: try this for size: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?h=hack/m2-pmu&id=fae88cf62064c372fd99cf044b09bb645cf4f699#asahi-dev · 2023-05-27 20:24
mazsid-linux: you're OK with that email ending up in the kernel tree, right?#asahi-dev · 2023-05-27 20:02
mazyes.#asahi-dev · 2023-05-27 20:01
mazsid-linux: if you send me an email, I can credit you for the report in the patch.#asahi-dev · 2023-05-27 20:00
mazI'll sleep on it and post a patch tomorrow or next week. at least I know know what's going on.#asahi-dev · 2023-05-27 19:59
mazI really don't want to add another event flag for this crap, this is getting silly.#asahi-dev · 2023-05-27 19:58
mazso the new format is 64 bits, with bit 63 as the overflow bit which triggers the interrupt.#asahi-dev · 2023-05-27 19:55
maz"[ perf record: Captured and wrote 3.477 MB perf.data (81501 samples) ]"#asahi-dev · 2023-05-27 19:49
mazby forcing the counters to 64 bits, I get interrupts. No idea whether that's the right value yet, but at least that's a good hint of what's going on.#asahi-dev · 2023-05-27 19:48
mazcounters*#asahi-dev · 2023-05-27 19:48
mazthe counter are wider than 48 bits this time.#asahi-dev · 2023-05-27 19:48
mazbingo.#asahi-dev · 2023-05-27 19:30
mazwell, I don't have much hope this is going to get magically fixed, unless someone reverse engineers what macos does.#asahi-dev · 2023-05-27 19:12
mazbut the driver was based on a description of the HW written by marcan. the assumption was that the HW was similar, but it obviously isn't...#asahi-dev · 2023-05-27 19:06
mazI know as much as you do. that's the beauty of undocumented HW.#asahi-dev · 2023-05-27 19:01
mazI guess they dropped the interrupt signalling this time around, and we don't support the exception mechanism.#asahi-dev · 2023-05-27 18:59
mazoh well.#asahi-dev · 2023-05-27 18:59
mazso the driver is broken on M2.#asahi-dev · 2023-05-27 18:59
mazah, no sample indeed. works fine on M1.#asahi-dev · 2023-05-27 18:57
mazhow did you gather that there was no interrupts?#asahi-dev · 2023-05-27 18:56
maz"cat /proc/interrupts" is your friend.#asahi-dev · 2023-05-27 18:56
mazM1 definitely generates interrupts.#asahi-dev · 2023-05-27 18:56
mazno interrupt though.#asahi-dev · 2023-05-27 18:55
mazM2 pro.#asahi-dev · 2023-05-27 18:55
maz"[ perf record: Woken up 31284 times to write data ]"#asahi-dev · 2023-05-27 18:45
mazwhat's the symptom?#asahi-dev · 2023-05-18 11:56
mazkensan: that, plus some other fixes. this is still a WIP.#asahi-dev · 2023-05-18 10:05
mazyup, works on the M2 MBA too.#asahi-dev · 2023-05-18 09:58
maz(but I have no idea if it works...)#asahi-dev · 2023-05-18 09:57
mazI was dreading the wifi branch, but it was surprisingly simple, as a number of patches have been merged.#asahi-dev · 2023-05-18 09:56
mazjannau: ah, awesome!#asahi-dev · 2023-05-18 09:48
mazOK, it wasn't too bad. I only skipped fpwm, gpu and tso, and the M2 mini is running 6.4-rc2 + NV.#asahi-dev · 2023-05-18 08:45
mazno worries. I'll try and pick the minimal set of branches I need for my stuff. Hopefully I'll get somewhere.#asahi-dev · 2023-05-18 08:40
mazmarcan: jannau: have you attempted a v6.4-rc merge?#asahi-dev · 2023-05-12 10:14
mazthe machine is still live and whatever I'm running keeps running.