#asahi-dev · 2023-02-09 20:34
ah-t: he's on here occasionally as millenialhacker#asahi-dev · 2023-02-09 20:28
arndwhat is the purpose of the memcpy() to a local structure, can this just access the original data instead?#asahi-dev · 2023-02-09 20:26
arndthe 1024 byte limit is only on 32-bit architectures, so a 'depends on 64BIT' would avoid that for compile testing, but ideally it should not use that much stack#asahi-dev · 2023-02-09 20:25
arndlina: my randconfig build setup has a lot of randconfig warnings "drivers/soc/apple/rtkit-crashlog.c:127:6: error: stack frame size (1048) exceeds limit (1024) in 'apple_rtkit_crashlog_dump_regs' [-Werror,-Wframe-larger-than]" from commit 22991d8d5725 ("soc: apple: rtkit: Add register dump decoding to crashlog")#asahi-dev · 2023-02-09 19:40
twho is kellermanrivero can i ask him some questions#asahi-dev · 2023-02-09 19:37
j`eyand https://github.com/kellermanrivero/m1n1/tree/isp#asahi-dev · 2023-02-09 19:37
j`eythere's ./proxyclient/hv/trace_isp.py#asahi-dev · 2023-02-09 19:36
svenwebcam requires quite a bit of reverse engineering I think #asahi-dev · 2023-02-09 19:35
svenI dunno #asahi-dev · 2023-02-09 19:35
t@sven is it something i could work 10-15hrs/week on in 4 months? is there some branch with progress so far#asahi-dev · 2023-02-09 19:33
j`eymicrophones, I think there's at least a m1n1 experiment?#asahi-dev · 2023-02-09 19:33
svenwebcam is a pretty big yak ;)#asahi-dev · 2023-02-09 19:31
j`eynot sure about microphones, but webcam has had some work, but still work to do there#asahi-dev · 2023-02-09 19:31
j`eyusb-a works, hdmi out is already covered by sven#asahi-dev · 2023-02-09 19:29
tusb-a?#asahi-dev · 2023-02-09 19:29
tmicrophones, hdmi out, webcam?#asahi-dev · 2023-02-09 19:16
t@marcan are there any linux driver yaks that only require 1 m1 macbook?#asahi-dev · 2023-02-09 18:49
jeffmiwJust doing the call with NULL as from before each call with a node as from make the rmmod/insmod loop work 1K times ... It seems I need to dig further to understand what I'm doing related to this refcoount :)#asahi-dev · 2023-02-09 18:47
jeffmiwmarcan: it is in my hwmon smc driver, I'm using of_find_node_by_name one time with NULL as from and then with a node. If I do 2 times the one with a node, then on the second insmod it usually get stuck there. Not sure how to deal with the refcount ...#asahi-dev · 2023-02-09 14:19
robhermarcan, jeffmiw: Doubtful it is related to DT refcounting. refcounts should have no effect on static nodes which are *all* of them unless you are modifying the DT in the kernel.#asahi-dev · 2023-02-09 13:58
kettenisthis is with a fairly bare-bones device tree that only enables the dwc3 controllers#asahi-dev · 2023-02-09 13:48
marcankettenis: nice! :D#asahi-dev · 2023-02-09 13:27
jannautrackpad update rate seems to be 150Hz#asahi-dev · 2023-02-09 13:23
kettenisin other news, I just booted OpenBSD on the m2 pro m1n1#asahi-dev · 2023-02-09 13:19
marcanif that is triggering IPIs we need to fix that#asahi-dev · 2023-02-09 13:19
marcanthe only thing that should see the IRQ bloat is the SPI host driver itself, since it has to IRQ every 8 bytes (current threshold)#asahi-dev · 2023-02-09 13:18
marcanjannau: no, this can't be the SPI-HID interface using threading because it (if it's not broken) can't be causing more than single-digit IRQs per update give or take#asahi-dev · 2023-02-09 13:16
jannauprobably not the best idea to use the threaded irqs _and_ the async SPI interface in spi_hid#asahi-dev · 2023-02-09 13:16
marcanyeah that's not right#asahi-dev · 2023-02-09 13:15
j`eyIPIs it looks like?#asahi-dev · 2023-02-09 13:15
jannau~2k SPI irqs per second on continuous trackpad movement. the rest is something else. is "Function call interrupts" just system calls or context switches as well?#asahi-dev · 2023-02-09 13:07
marcanbut still, even with all that silliness, there's no way you add up to 10k without something being broken#asahi-dev · 2023-02-09 13:06
marcane.g. all the TX IRQs are completely unnecessary and burning power for zero reason#asahi-dev · 2023-02-09 13:06
marcanmaybe I should finally fix that next week#asahi-dev · 2023-02-09 13:06
marcanthere's also the fact that mailbox is stupid, of course#asahi-dev · 2023-02-09 13:06
marcanbeing generous and saying 10 mailbox messages, that's no more than 600 on top#asahi-dev · 2023-02-09 13:05
marcan60 display updates per *second*, no?#asahi-dev · 2023-02-09 13:05
jannauthere are 60 display updates with multiple mailbox messages for dcp on touchpad input#asahi-dev · 2023-02-09 13:02
marcanso I maintain there's a bug :)#asahi-dev · 2023-02-09 13:02
marcanjannau: everything else has no excuse to have more than ~1 IRQ per update on top of that, SPI is really the worst case bit#asahi-dev · 2023-02-09 13:01
jannaumarcan: that's total system irqs as reported by `vmstat 1` not just the touchpad alone#asahi-dev · 2023-02-09 12:52
marcan(unless you're lina and you use Rust and it takes care of that for you)#asahi-dev · 2023-02-09 12:52
marcanjeffmiw: which module? I'm not in the least surprised that there's bad OF refcounting somewhere, as far as I can tell ~everyone gets OF refcounting wrong, all the time. it's impossible to get right.#asahi-dev · 2023-02-09 12:49
marcanit should be on the order of 256 / 16 * update rate (let's say 100Hz) = ~1.6k IRQ/s#asahi-dev · 2023-02-09 12:49
marcanand SPI has a FIFO depth of 16 so that's a bug#asahi-dev · 2023-02-09 12:46
marcanpovik, jannau: 10k IRQ/s is either an IRQ for each byte of SPI, or a bug#asahi-dev · 2023-02-09 12:17
povikyeah, <= makes sense#asahi-dev · 2023-02-09 12:17
jannaupovik: I'd say it should be at least assert 'rptr <= rb->bufsz'. I don't think I saw wraparound though yet#asahi-dev · 2023-02-09 12:11
povikshould that assert be there?