#
…

2023-02-09

00:29amarioguy has quit [Ping timeout: 480 seconds]
01:17off^ has joined #asahi-dev
02:03cylm has quit [Ping timeout: 480 seconds]
02:23foxtrot has quit [Remote host closed the connection]
02:23vup has quit [Remote host closed the connection]
02:24___nick___ has joined #asahi-dev
02:25___nick___ has quit []
02:26vup has joined #asahi-dev
02:26___nick___ has joined #asahi-dev
02:28foxtrot has joined #asahi-dev
02:52zef_ has joined #asahi-dev
02:59zef has quit [Ping timeout: 480 seconds]
03:19bluetail8 has quit [Read error: Connection reset by peer]
03:19bluetail8 has joined #asahi-dev
04:13bluetail8 has quit []
04:13bluetail has joined #asahi-dev
04:16annie444 has joined #asahi-dev
04:51annie444 has quit [Ping timeout: 480 seconds]
04:58Dementor has joined #asahi-dev
05:06annie444 has joined #asahi-dev
05:12lesiuk has joined #asahi-dev
05:14annie444 has quit [Ping timeout: 480 seconds]
05:15annie444 has joined #asahi-dev
05:34annie444 has quit [Ping timeout: 480 seconds]
05:43annie444 has joined #asahi-dev
06:02annie444 has quit [Ping timeout: 480 seconds]
06:13___nick___ has quit []
06:13annie444 has joined #asahi-dev
06:14___nick___ has joined #asahi-dev
06:22annie444 has quit [Ping timeout: 480 seconds]
06:28annie444 has joined #asahi-dev
07:03annie444 has quit [Ping timeout: 480 seconds]
07:10bluetail has quit [Quit: The Lounge - https://thelounge.chat]
07:16bluetail has joined #asahi-dev
07:17Tramtrist has quit [Ping timeout: 480 seconds]
07:20Tramtrist has joined #asahi-dev
07:22lesiuk has quit [Quit: Connection closed for inactivity]
07:44annie444 has joined #asahi-dev
07:53annie444 has quit [Ping timeout: 480 seconds]
07:59annie444 has joined #asahi-dev
08:00pbsds12 has quit []
08:00pbsds has joined #asahi-dev
08:03bluetail has quit [Quit: The Lounge - https://thelounge.chat]
08:03pbsds has quit []
08:04pbsds has joined #asahi-dev
08:05pbsds has quit []
08:05pbsds has joined #asahi-dev
08:06pbsds has quit []
08:06pbsds has joined #asahi-dev
08:15annie444 has quit [Ping timeout: 480 seconds]
08:35MajorBiscuit has joined #asahi-dev
08:39bluetail has joined #asahi-dev
08:43svenapple-dart 501a80000.iommu: translation fault: status:0x8f0f0010 stream:15 code:0x10 (READ FAULT) at 0x100100
08:43svenlooks like it only ever tries to read from that mystery address
08:45annie444 has joined #asahi-dev
08:50Major_Biscuit has joined #asahi-dev
08:52MajorBiscuit has quit [Ping timeout: 480 seconds]
08:54annie444 has quit [Ping timeout: 480 seconds]
08:57annie444 has joined #asahi-dev
09:05annie444 has quit [Ping timeout: 480 seconds]
09:05jannauany idea what vm-reserve is used for in dart-apciec? sounds to me like it's unexpected that the device accesses [0x4000 - 0x8000_0000]
09:22svenno idea
09:22svenbut I can test later what happens if I force the iommu domain aperture to that range
09:23annie444 has joined #asahi-dev
09:31annie444 has quit [Ping timeout: 480 seconds]
09:37jluthra has quit [Remote host closed the connection]
09:38jluthra has joined #asahi-dev
09:38leitao has joined #asahi-dev
09:39leitao has quit []
09:45leitao has joined #asahi-dev
09:45annie444 has joined #asahi-dev
10:02annie444 has quit [Ping timeout: 480 seconds]
10:18annie444 has joined #asahi-dev
10:27annie444 has quit [Ping timeout: 480 seconds]
10:43annie444 has joined #asahi-dev
10:44leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:50leitao has joined #asahi-dev
10:51leitao has quit []
10:54annie444 has quit [Ping timeout: 480 seconds]
11:10leitao has joined #asahi-dev
11:11svenjannau: just did a quick test, pciec seems to work fine for iovas inside and outside that region
11:13svenlooks like on the M1 one dart has [0x4000, 0x8000_0000] and the other [0x8000_0000 - 0xffff_c000]
11:21jannauoh, missed that. share the two ports resources? t6001 has only [0x4000, 0x8000_0000]
11:24leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:24leitao has joined #asahi-dev
11:24leitao has quit [Remote host closed the connection]
11:26sventhey should be completely separate
11:26svenbut I can only test one at a time because the hypervisor needs the other port ofc
11:27leitao has joined #asahi-dev
11:29leitao has quit []
11:31leitao has joined #asahi-dev
11:34jannaujust wondering why they would split 32-bit iova like that
11:34svenyeah, it's strange
11:39jluthra has quit [Quit: WeeChat 1.9.1]
11:40akspecs_ is now known as akspecs
11:42leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:43darkapex has joined #asahi-dev
11:44leitao has joined #asahi-dev
11:45akspecs has quit [Remote host closed the connection]
11:45akspecs has joined #asahi-dev
11:47annie444 has joined #asahi-dev
11:47leitao has quit []
11:49bisko has joined #asahi-dev
11:49leitao has joined #asahi-dev
11:52leitao has quit []
12:01annie444 has quit [Ping timeout: 480 seconds]
12:11povikthis doesn't look right
12:11povikshould that assert be there?
12:11annie444 has joined #asahi-dev
12:17jannaupovik: I'd say it should be at least assert 'rptr <= rb->bufsz'. I don't think I saw wraparound though yet
12:17povikyeah, <= makes sense
12:23annie444 has quit [Ping timeout: 480 seconds]
12:38annie444 has joined #asahi-dev
12:46marcanpovik, jannau: 10k IRQ/s is either an IRQ for each byte of SPI, or a bug
12:49marcanand SPI has a FIFO depth of 16 so that's a bug
12:49marcanit should be on the order of 256 / 16 * update rate (let's say 100Hz) = ~1.6k IRQ/s
12:51leitao has joined #asahi-dev
12:52marcanjeffmiw: 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.
12:52marcan(unless you're lina and you use Rust and it takes care of that for you)
12:55annie444 has quit [Ping timeout: 480 seconds]
13:01jannaumarcan: that's total system irqs as reported by `vmstat 1` not just the touchpad alone
13:02marcanjannau: everything else has no excuse to have more than ~1 IRQ per update on top of that, SPI is really the worst case bit
13:02marcanso I maintain there's a bug :)
13:05jannauthere are 60 display updates with multiple mailbox messages for dcp on touchpad input
13:05marcan60 display updates per *second*, no?
13:06marcanbeing generous and saying 10 mailbox messages, that's no more than 600 on top
13:06marcanthere's also the fact that mailbox is stupid, of course
13:06marcanmaybe I should finally fix that next week
13:06marcane.g. all the TX IRQs are completely unnecessary and burning power for zero reason
13:07marcanbut still, even with all that silliness, there's no way you add up to 10k without something being broken
13:15jannau~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?
13:15j`eyIPIs it looks like?
13:16marcanyeah that's not right
13:16jannauprobably not the best idea to use the threaded irqs _and_ the async SPI interface in spi_hid
13:18marcanjannau: 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
13:19marcanthe only thing that should see the IRQ bloat is the SPI host driver itself, since it has to IRQ every 8 bytes (current threshold)
13:19marcanif that is triggering IPIs we need to fix that
13:23kettenisin other news, I just booted OpenBSD on the m2 pro m1n1
13:27jannautrackpad update rate seems to be 150Hz
13:46annie444 has joined #asahi-dev
13:48marcankettenis: nice! :D
13:52cylm has joined #asahi-dev
13:57annie444 has quit [Remote host closed the connection]
13:57annie444 has joined #asahi-dev
13:58kettenisthis is with a fairly bare-bones device tree that only enables the dwc3 controllers
14:05annie444 has quit [Ping timeout: 480 seconds]
14:07annie444 has joined #asahi-dev
14:17Puto has quit [Read error: Connection reset by peer]
14:17Puto has joined #asahi-dev
14:19robhermarcan, 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.
14:20annie444 has quit [Ping timeout: 480 seconds]
14:33annie444 has joined #asahi-dev
14:44annie444 has quit [Ping timeout: 480 seconds]
14:45annie444 has joined #asahi-dev
14:53seeeath has joined #asahi-dev
14:56annie444 has quit [Ping timeout: 480 seconds]
14:56leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:58annie444 has joined #asahi-dev
15:02leitao has joined #asahi-dev
15:13nate8 has joined #asahi-dev
15:18annie444 has quit [Ping timeout: 480 seconds]
15:35annie444 has joined #asahi-dev
15:35annie444 has quit []
15:41alyx has joined #asahi-dev
15:54alyx has quit [Remote host closed the connection]
15:57leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:00leitao has joined #asahi-dev
16:05bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:09leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:13leitao has joined #asahi-dev
16:25leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:26seeeath_ has joined #asahi-dev
16:27leitao has joined #asahi-dev
16:30leitao has quit []
16:31seeeath has quit [Ping timeout: 480 seconds]
16:36leitao has joined #asahi-dev
16:51seeeath_ has quit [Read error: Connection reset by peer]
16:52seeeath has joined #asahi-dev
17:02tino has quit [Remote host closed the connection]
17:05eiln has joined #asahi-dev
17:06tino has joined #asahi-dev
17:11tino1 has joined #asahi-dev
17:17tino has quit [Ping timeout: 480 seconds]
17:34annie444 has joined #asahi-dev
17:36eiln has quit [Remote host closed the connection]
17:48zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:49zzywysm has joined #asahi-dev
17:59leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:00leitao has joined #asahi-dev
18:18Dementor has quit [Ping timeout: 480 seconds]
18:27eiln has joined #asahi-dev
18:35leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:36leitao has joined #asahi-dev
18:40MajorBiscuit has joined #asahi-dev
18:41Major_Biscuit has quit [Ping timeout: 480 seconds]
18:44seeeath has quit [Max SendQ exceeded]
18:44seeeath has joined #asahi-dev
18:47jeffmiwmarcan: 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 ...
18:49jeffmiwJust 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 :)
18:51MajorBiscuit has quit [Ping timeout: 482 seconds]
19:00leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:15t has joined #asahi-dev
19:16t@marcan are there any linux driver yaks that only require 1 m1 macbook?
19:29tmicrophones, hdmi out, webcam?
19:29tusb-a?
19:31j`eyusb-a works, hdmi out is already covered by sven
19:31j`eynot sure about microphones, but webcam has had some work, but still work to do there
19:33svenwebcam is a pretty big yak ;)
19:33j`eymicrophones, I think there's at least a m1n1 experiment?
19:35t@sven is it something i could work 10-15hrs/week on in 4 months? is there some branch with progress so far
19:35svenI dunno
19:36svenwebcam requires quite a bit of reverse engineering I think
19:37j`eythere's ./proxyclient/hv/trace_isp.py
19:40twho is kellermanrivero can i ask him some questions
19:40t*them
19:59t has quit [Remote host closed the connection]
20:25arndlina: 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")
20:26arndthe 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
20:28arndwhat is the purpose of the memcpy() to a local structure, can this just access the original data instead?
20:34ah-t: he's on here occasionally as millenialhacker
20:50seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:51seeeath has joined #asahi-dev
20:51gladiac has joined #asahi-dev
21:15___nick___ has quit []
21:40bluetail has quit [Ping timeout: 480 seconds]
21:43eilni recall the isp firmware was extremely large
22:08svenluckily so far we almost never had to actually reverse engineer any firmware
22:24seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:25seeeath has joined #asahi-dev
22:28chadmed has quit [Remote host closed the connection]
22:30chadmed has joined #asahi-dev
22:35nepeat_ has quit [Ping timeout: 480 seconds]
22:35hightower2 has joined #asahi-dev
23:12zalyx has quit [Quit: later alligator]
23:15zalyx has joined #asahi-dev
23:32compassion has quit [Quit: lounge quit]
23:39linaarnd: I think I did that to avoid alignment issues, but at least on arm64 that shouldn't matter... I can replace it with a pointer if you want
…