2023-09-07
00:02ourdumbfuture has joined #asahi-dev
00:13completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:33ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:36ourdumbfuture has joined #asahi-dev
00:57veloek has quit [Remote host closed the connection]
00:57veloek has joined #asahi-dev
01:13jeisom_ has quit [Ping timeout: 480 seconds]
01:45ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:53ourdumbfuture has joined #asahi-dev
02:00gabuscus has quit []
02:14sawyer_ has joined #asahi-dev
02:16sawyer has quit [Ping timeout: 480 seconds]
02:16sawyer_ is now known as sawyer
02:25ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:36gabuscus has joined #asahi-dev
02:36tobhe_ has joined #asahi-dev
02:37crabbedhaloablut has joined #asahi-dev
02:40tobhe has quit [Ping timeout: 480 seconds]
03:22tristan2_ has joined #asahi-dev
03:24tristan2 has quit [Ping timeout: 480 seconds]
03:41chadmed has quit [Remote host closed the connection]
03:42chadmed has joined #asahi-dev
03:55chadmed has quit [Quit: Konversation terminated!]
03:56chadmed has joined #asahi-dev
06:28completenoob has joined #asahi-dev
08:02completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:08completenoob has joined #asahi-dev
08:25CoolStar has joined #asahi-dev
08:30CoolStar_ has quit [Ping timeout: 480 seconds]
08:54leitao has joined #asahi-dev
09:06leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:12leitao has joined #asahi-dev
09:27completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:28completenoob has joined #asahi-dev
09:38eiln has joined #asahi-dev
10:05Cyrinux9474 has quit []
10:07Cyrinux9474 has joined #asahi-dev
10:18completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:23completenoob has joined #asahi-dev
10:30xanderle has quit [Ping timeout: 480 seconds]
10:56leitao has quit [Quit: Textual IRC Client: www.textualapp.com]
11:07marcaneiln: left some comments on the m1n1 PR, but I'm tempted to hack on this a bit myself if you don't mind
11:21completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:40completenoob has joined #asahi-dev
12:14marcaneiln: what's up with apple_isp_resv_region? that stuff is already handled in common code, no? it actually fails for me because of_iommu already took care of it and the mappings end up duplicated...
12:15ourdumbfuture has joined #asahi-dev
12:16marcanor was this broken in the asahi branch still? (I rebased on asahi-wip, please always use that as a base; asahi is more so random packagers don't package random dev kernels, but I keep forgetting to update asahi...)
12:16ourdumbfuture has quit []
12:17completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:19ourdumbfuture has joined #asahi-dev
12:28completenoob has joined #asahi-dev
12:31cylm has joined #asahi-dev
12:32jeisom_ has joined #asahi-dev
12:36ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:42completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:46ourdumbfuture has joined #asahi-dev
12:54completenoob has joined #asahi-dev
13:11marcaneiln: I have this idea that we just carve out the heap in m1n1 and drop it in as a reserved region and let the linux side be oblivious to it
13:16completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:26eilnmarcan: I tried and failed to do both the mapping and the heap in m1n1 some time ago. it really should be a locked dart, except it's not, so the mapping didn't persist I think
13:27marcanI'm saying we just alloc the heap in m1n1 and treat it like another region, so it just works
13:42tobhe_ is now known as tobhe
13:44ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:44completenoob has joined #asahi-dev
13:47Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
13:48Gaelan has joined #asahi-dev
13:51fossdd has joined #asahi-dev
13:52Gaelan has quit []
13:53Gaelan has joined #asahi-dev
13:55ourdumbfuture has joined #asahi-dev
14:10fossdd has quit [Remote host closed the connection]
14:10fossdd has joined #asahi-dev
14:33blazra has quit [Quit: Ping timeout (120 seconds)]
14:34blazra has joined #asahi-dev
14:42ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:45Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
14:46Gaelan has joined #asahi-dev
14:54marcanI'm starting to doubt whether it actually makes sense to alloc in m1n1, since you have a pile of per-hw hardcoded values in the kernel anyway
14:56cylm has quit [Ping timeout: 480 seconds]
14:59eilnmarcan: following ANE I think "revision" means board type. it makes sense at that point in probe too. it's not in adt but there might be a register.
15:00eilnthe hard-coded values are per-sensor, which are unrelated to the board type (e.g. m1 pro & m2 air)
15:01ourdumbfuture has joined #asahi-dev
15:03eilnoh that. sigh, they have a firmware for each fucking device I dont know why they couldn't have took care of that shit in there. t8103 is probably all the same, but it might not be
15:33seb91nihel has joined #asahi-dev
15:37seb4nihel has quit [Ping timeout: 480 seconds]
15:44cylm has joined #asahi-dev
15:47marcaneiln: I need to get some sleep, but I pushed a bunch of stuff to m1n1 & linux under the isp/heap-alloc branch on both
15:47marcanthat moves the heap alloc to m1n1 which removes the slightly dodgy thing of allocating it as a surface. the driver still needs to parse the heap base+size to compute the region top, but that's not that bad.
15:48marcanI *think* the logic in isp.c for the heap sizes is correct for all the combinations we care about. I think. Might've guesstimated based on nearby versions :p
15:50marcanbtw, why the drm_mm/manual iova management? I'm not sure if the DRM folks will want non-drm drivers using that infra, but I'd normally expect the regular kernel iommu/iova allocators to do all that for you?
15:54_jannau__is there a need to map specific things at specific iova? or is it needed due to dart mess? i.e. mapping subsets but only consistantly over multiple darts?
15:55marcanthis is like the only coproc that has a statically allocated heap not carved out in iBoot
15:59marcanbtw, does anyone have a t6020 *laptop*? I think that's the only ISP SoC variant I can't personally test (because I have the mini...)
16:02marcant8103 -> pallas, t600x -> astraeus, t8112 -> triton, t602x -> helios (yes another set of codenames)
16:02_jannau__have there been any surprise differences between Pro and MAx variants so far? I can't think of anything
16:06cylm has quit [Ping timeout: 480 seconds]
16:08ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:09ourdumbfuture has joined #asahi-dev
16:10cylm has joined #asahi-dev
16:49jn has joined #asahi-dev
16:52jnn has quit [Ping timeout: 480 seconds]
17:07ourdumbfuture has quit [Quit: Textual IRC Client: www.textualapp.com]
17:14cylm has quit [Ping timeout: 480 seconds]
17:33eilnalso I can finally boot the ANE firmware with my cursed ISP knowledge. not sure what to do with this
17:34eilnthe drm mm allocator is because iova.c can't allocate bottom up. there was a patch some time ago but it wasn't reviewed. some stuff about zero iovas
17:34eilnas for the ANE, DMA to/from the upper iovas (I think it was piodma_size <= iova <= vm_size) is noticeably slower, at least 10x, and their kext actually does tricks to avoid using this range. it seems loading/unloading an entire transformers model is cheaper
17:34eilnwith the heap gone (thank you), the only iova arithmetic is in firmware boot stage 2, but that's all contained within the ipc surface so it shouldn't matter.
17:34eilnquickly inverting the iovas in m1n1 does not break it. frankly, it was pasted from the ane code, and also the familiar iovas make debugging a lot easier. I will check on the bottom-up allocator though
17:36lena6 has quit [Remote host closed the connection]
17:39ellyq has joined #asahi-dev
17:43jeisom_ has quit [Ping timeout: 480 seconds]
17:44Guest2042 has quit [Quit: Bridge terminating on SIGTERM]
17:44rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
17:47Jamie has joined #asahi-dev
17:48Jamie is now known as Guest2157
17:48rhysmdnz has joined #asahi-dev
18:04eilnthe power domains, the one required read the revision version register, not being in the dt, is such a nice touch
18:05Cyrinux9474 has quit []
18:07Cyrinux9474 has joined #asahi-dev
18:20ChaosPrincessRequired read = something is read-sensitive and won't boot w/o it?
18:53svenlike, does that dma go through some additional path or whatever because the device can’t handle that many bits in the dma address??
18:54VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
19:02ah-still getting the same "ISPASC: ASSERT: ./h10isp/common/misc/H13/CSystemConfiguratorConnectivityH13Jade.cpp, 472: 0" and then timeouts with ctrr_size=0xf00000
19:05ah-i was staring at the macos trace a bit (https://textbin.net/raw/dwnb1wyhud) and latest theory is that the boot_args data is somehow different. I can see the place where it writes the bootargs addr to the gpio, but the contents look different. e.g. I can't find args.unk_size = 0x1800000 or args.unk5 = 0x40; in the macos trace
19:07ah-i've got one fix for the mbox addr: https://github.com/ah-/kernel-asahi/commit/1f303f442dfe7fd74d1224389b2e91748422666f and a few for isp_ctrr_init to match the macos trace: https://github.com/ah-/m1n1/commit/03927f4f343c4b261d388fdcfd4a2503af272039
19:33mps_ has joined #asahi-dev
19:34mps has quit [Ping timeout: 480 seconds]
19:38SalimTer- has joined #asahi-dev
19:39mps has joined #asahi-dev
19:41mps_ has quit [Ping timeout: 480 seconds]
19:42SalimTerryLi has quit [Ping timeout: 480 seconds]
19:49XeR has quit [Read error: Connection reset by peer]
19:49XeR has joined #asahi-dev
20:12crabbedhaloablut has quit []
20:13lena6 has joined #asahi-dev
20:16tristan2_ has quit [Quit: maintainance]
20:37tristan2 has joined #asahi-dev
20:40tristan2 has quit []
20:40tristan2 has joined #asahi-dev
21:34chadmed has quit [Ping timeout: 480 seconds]
21:42completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:51Cyrinux9474 has quit []
21:53completenoob has joined #asahi-dev
22:00ourdumbfuture has joined #asahi-dev
22:09Cyrinux9474 has joined #asahi-dev
22:42jeisom_ has joined #asahi-dev
22:56ellyq has quit [Ping timeout: 480 seconds]
23:25ourdumbfuture has quit [Quit: Textual IRC Client: www.textualapp.com]
23:30ourdumbfuture has joined #asahi-dev
23:42completenoob has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:49ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:55ourdumbfuture has joined #asahi-dev