#asahi · 2024-11-29 21:19
reverser(Just accessing a bunch of addresses that have to share the space with my target memory address and cause the target address to be evicted from the cache) #asahi · 2024-11-29 21:18
reverserAnd even when I am trying to flush or use the data cache management instructions (DC CIVAC), I do not see any changes in cache timings. However, I do see a change in timings when "flushing" the memory address by using an eviction set. #asahi · 2024-11-29 21:17
reverserAnd Calandracas_: Not sure.#asahi · 2024-11-29 21:17
reverserI am using a PMU to time how long it takes to access a specific memory address. If the access is below a threshold, the data is stored in the cache. #asahi · 2024-11-29 21:15
reverserI am able to evict data via eviction sets, but that approach is a bit slow. I am trying to speed things up by forcing a flush (as clflush does on Intel)#asahi · 2024-11-29 21:14
reverserI am looking at L1 and L2#asahi · 2024-11-29 21:12
reverserHi, it's me again. How would I flush the data cache from an Apple M1 under Asahi linux? I am trying to empty my data cache as part of a hardware reverse engineering effort. However, when using the DC CIVAC instruction or the flush_cache_mm() kernel function: both do not seem to have any effect on the content of my data cache? Anything I am overseeing? #asahi · 2024-11-01 15:01
reverserHey, it's me again. Last time I asked how to compile the asahi-linux kernel for the fedora remix without gpu drivers. How would I compile the drivers if I wanted GPU support ?#asahi · 2024-10-29 10:19
reverserThx#asahi · 2024-10-29 10:18
reverserThis is the repo you are referring to, right? https://gitlab.com/fedora-asahi/kernel-asahi#asahi · 2024-10-29 10:14
reverserFor now, not. I am using Asahi Fedora Remix, with the server install on a Mac Mini M1.#asahi · 2024-10-29 10:12
reverserWell, not really. This is why I am trying to familiarize myself. I need it for a project. #asahi · 2024-10-29 10:09
reverserHey, I am trying to build asahi linux kernel on my machine? Is there a set of resources someone could point me to, where I can see what is required to build Asahi linux?#asahi · 2024-10-29 09:44
reverserHey. A quick question: I want to make some small modifications to the Asahi Linux kernel on my local install. I am now looking for instruction on how to build the kernel? #asahi · 2024-10-28 15:30
reverserLinux kernel to set Bit 30 of the system register SYS_APL_PMCR0_EL1 when doing a custom system call, as this bit should enable user-mode access to the registers ( "User-mode access to registers enable" as per AsahiLinux Wiki Page HW:ARM System Registers). Where can I figure out how I can customize the linux kernel for my asahi linux installation?#asahi · 2024-10-28 15:30
reverserHey, it's me again. Thanks for the tip with perf and performance counters, but for my specific usecase, using the perf system seems a bit too inaccurate. (I am trying to measure latencies of single instructions). So I am thinking of looking into how I could enable reading performance counter directly from user-space (at least for measuring cycles). Therefore, I am looking into how I can modify the Asahi #asahi · 2024-10-24 14:19
reverserI would be interested if other performance counts (such as L1D cache misses and such) would be available as well.#asahi · 2024-10-24 14:18
reverserHi. So, I have looked a bit the perf_event_open syscall and the underlying events. For Apple M1 (and M2), where do I find the raw event types for the Firestorm and Icestorm PMUs? Also, can we really only access cycle count and number of instructions via Asahi Linux so far?#asahi · 2024-10-24 09:59
reverserThx#asahi · 2024-10-24 09:56
reverserIt's the manpage for perf_event_open(2), right?#asahi · 2024-10-24 09:52
reverserCould you maybe point me to the Man pages for the perf api?#asahi · 2024-10-24 09:37
reverserand specifically mark the block of instructions that I want to measure.#asahi · 2024-10-24 09:37
reverserCan I also use perf utlizies programmatically? For example, to measure the amount of cycles it took to execute a sequence of instructions?#asahi · 2024-10-24 08:34
reverserHi. It's me again. I just want to ask, if this is the right channel to ask for how to interact with Apple M1/M2 performance counters?#asahi · 2024-10-20 11:48
reverserOk, then I will quickly check something and maybe get back later. Thanks for the quick answer.#asahi · 2024-10-20 11:44
reverserHi. I am quite new to Asahi Linux, and need to write some kernel modules for a project. Could someone point me to the correct resources or quickly explain to me, how Asahi Linux differs from the "normal" Linux Kernel Module development process?