#asahi-dev · 2023-09-02 20:28
ah-here's the adt: https://paste.centos.org/view/dd70d76e the addr comes from ^I^I(text_phys, text_iova, _, text_size, data_phys, data_iova, _, data_size) = struct.unpac ...: k('<QQQI4xQQQI4x', b[:64])#asahi-dev · 2023-09-02 20:28
ah-when bootiing macos? I can try in a minute#asahi-dev · 2023-09-02 20:27
jannaudo you see it in the output of `experiments/dart_dump.py dart-isp0`?#asahi-dev · 2023-09-02 20:25
jannau0x10000a58000 is low considering that the memory is mapped to 0x100_0000_0000. I would expect that there's memory-region with the same address, size in the adt fetched from the device#asahi-dev · 2023-09-02 20:22
jannauyes, for the iommu/iop 0x0 is ok#asahi-dev · 2023-09-02 20:22
ah-i was suspicious of the 0 too, but I think for the iommu it's ok?#asahi-dev · 2023-09-02 20:21
ah-everything i see in the trace starts with 2/3#asahi-dev · 2023-09-02 20:21
ah-0x10000a58000#asahi-dev · 2023-09-02 20:20
jannauah-: which address seems low to you? "iova: 0x0"?#asahi-dev · 2023-09-02 20:18
ah-the address seems low to me, do we maybe have to adjust it? similar to how we had to 2| the overall isp address in the dt?#asahi-dev · 2023-09-02 20:17
ah-this address comes from segment-ranges in the adt, and I double-checked that the adt hex string does decode to exactly that address#asahi-dev · 2023-09-02 20:15
ah-also I got a bit further with debugging my iommu map crash. so it fails on the asc-firmware map: [ 5.329788] apple-isp 384000000.isp: [apple_isp_resv_region] reserving: 0: phys: 0x10000a58000 size: 0x980000 iova: 0x0#asahi-dev · 2023-09-02 20:08
ChaosPrincesseiln: when macos initializes the camera, it does a series of writes that look somewhat like this: https://paste.bingner.com/paste/4tv55 (two similar sequences to pmgr range, and setting a bitmask for every sequence written.) i have noticed that your 1.5fps script does not do those writes. are they not required? or am i blind and those are actually there?#asahi-dev · 2023-09-02 14:28
marcanpushed kernel/mesa updates (to dev and prod, passed a basic smoke test)#asahi-dev · 2023-09-02 14:22
jannaua possible solution for nodes which exists only once could be an adt_path_offset that matches the prefix and returns the device if the match is unambigguous#asahi-dev · 2023-09-02 14:19
eilne.g. dapf.c#asahi-dev · 2023-09-02 14:18
jannauwhat do you mean by issue? yes, adt nodes have number suffixes on on t600x/t602x. yes, it is annoying but I don't think that patching the adt will be an improvement#asahi-dev · 2023-09-02 14:15
eilnah-: can you attach another reg trace too?#asahi-dev · 2023-09-02 14:13
ah-still looks the same, i'll run with the dbg print#asahi-dev · 2023-09-02 14:12
eilnis the m1 pro '/arm-io/node0' name an issue for any other hw? I'm thinkng of patching adt instead#asahi-dev · 2023-09-02 14:09
ah-ah now#asahi-dev · 2023-09-02 14:09
ah-hmm, don't see any new m1n1 commits#asahi-dev · 2023-09-02 14:06
eilnpushd#asahi-dev · 2023-09-02 14:05
eilnwait, can you add one more line to m1n1#asahi-dev · 2023-09-02 14:04
ah-and looks like the same "failed to map reserved region" with new m1n1. haven't managed to fully get the new kernel with extra logging on boot yet, i'll try that next#asahi-dev · 2023-09-02 14:03
ah-eiln: i had to change two more isp to isp0 on top of your branch: https://github.com/ah-/m1n1/commit/8f68d46d9ea0e06457ae375e5ce5dcca4ff20ede#asahi-dev · 2023-09-02 13:46
eilnah-: found a possible culprit in m1n1, can you try with the recent push#asahi-dev · 2023-09-02 13:46
jannausternez: in the case you read this, you will have to change the write to "0x39c000010 (lpdptx-phy0[1]" at the beginning from 0x0 to 0x1#asahi-dev · 2023-09-02 13:44
jannauand m2 pro mac mini has a picture on hdmi as well#asahi-dev · 2023-09-02 13:32
ah-yep let me try#asahi-dev · 2023-09-02 13:31
eilnah-: in the meantime can you run it again with the last linux commit?#asahi-dev · 2023-09-02 13:12
eilnno, that's the optional calibration files. this is an iommu error, give me a minute#asahi-dev · 2023-09-02 13:11
ah-oh do I need the firmware now? I think I saw something about firmware extraction and I'm probably missing that#asahi-dev · 2023-09-02 13:08
ah-it's probing now and failing with "apple-isp 384000000.isp: failed to map reserved region"#asahi-dev · 2023-09-02 13:07
ah-hah, progress! eiln: https://paste.centos.org/view/c6e5de0b#asahi-dev · 2023-09-02 12:43
eilnah-: sorry, can you try the updated dt?#asahi-dev · 2023-09-02 12:42
ah-that trace looks identical to the previous one though, apart from some timestamps/addresses changing#asahi-dev · 2023-09-02 12:40
ah-and the corresponding trace: https://paste.centos.org/view/99d40b99#asahi-dev · 2023-09-02 12:36
ah-picocom log: https://paste.centos.org/view/cde8c9cc#asahi-dev · 2023-09-02 12:33
eilnI see dapf & dart-isp is initialized. are you getting to the kernel? what do you get in the picocom console? #asahi-dev · 2023-09-02 12:29
ah-ok, with 5 that error is gone, getting this trace: https://textbin.net/raw/fbzuxnbvri#asahi-dev · 2023-09-02 12:19
eilnyeah, the stage 2 m1n1 output & later kernel dmesg should pop up on the second picocom console. use the tools/picocom script#asahi-dev · 2023-09-02 12:18
eilnit' 6 so index should be 5)#asahi-dev · 2023-09-02 12:18
ah-saw it in the picocom-sec.sh output I think#asahi-dev · 2023-09-02 12:17
ah-yep, i'll try with 5 now. i tried 6 because it looked like there were 6 entries in reg#asahi-dev · 2023-09-02 12:16
eilnah-: in https://github.com/ah-/m1n1/commit/5fa32d4ec71b95fb5f539ade42e5d19c066fc234 you copied 6 in place of 5 in src/dapf.c #asahi-dev · 2023-09-02 12:14
eilnah-: where do you get the dapf message? #asahi-dev · 2023-09-02 12:10
ah-ooh dapf: Error getting DAPF /arm-io/dart-isp0 base address.#asahi-dev · 2023-09-02 12:08
ah-I think I did enable it, this is the exact kernel i'm running: https://github.com/ah-/kernel-asahi/commits/cam1#asahi-dev · 2023-09-02 12:07
ah-and here's the full dt from m1n1 in case it's useful: https://paste.centos.org/view/49860e7a