#asahi-dev · 2023-10-12 21:47
ah-could this be down to the multiplane hack? looks like maybe just one component of the image is switched to portrait?#asahi-dev · 2023-10-12 21:46
ah-not particularly urgent, but I'm seeing some artefacts when switching cheese to a portrait resolution: https://pasteboard.co/8OxJVT6bGk0j.jpg landscape is perfectly ok: https://pasteboard.co/dcbT1wNW92pG.jpg#asahi-dev · 2023-09-07 19:07
ah-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#asahi-dev · 2023-09-07 19:05
ah-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#asahi-dev · 2023-09-07 19:02
ah-still getting the same "ISPASC: ASSERT: ./h10isp/common/misc/H13/CSystemConfiguratorConnectivityH13Jade.cpp, 472: 0" and then timeouts with ctrr_size=0xf00000#asahi-dev · 2023-09-07 19:02
ah-eiln: was kinda fun playing with m1n1 and debugging this all a bit#asahi-dev · 2023-09-06 00:58
ah-hmm, the bootargs look fishy, too many 0s in there#asahi-dev · 2023-09-06 00:12
ah-looks like it dies after an assert: [ 18.168618] apple-isp 384000000.isp: [ipc_tm_handle] ISPASC: ASSERT: ./h10isp/common/misc/H13/CSystemConfiguratorConnectivityH13Jade.cpp, 472: 0#asahi-dev · 2023-09-06 00:12
ah-ooh, it gets further than expected. with debug logging enabled in the driver it even gets firmware logs: https://gist.github.com/ah-/34d440894e30980f4b110d0e758b9e0f#asahi-dev · 2023-09-05 22:06
ah-it crashes soon after, but looks like t6000 can now somewhat init the isp and talk to it a bit#asahi-dev · 2023-09-05 22:05
ah-[ 4.838547] apple-isp 384000000.isp: [isp_firmware_boot_stage3] firmware booted!#asahi-dev · 2023-09-05 22:05
ah-haha! https://gist.github.com/ah-/25eb6fba1000322de8e1675226487162 \o/#asahi-dev · 2023-09-02 23:34
ah-hmm, if I manually enable those clocks I can iomap_at the fw addresses in a m1n1 shell. maybe it's just that the clocks aren't enabled in linux#asahi-dev · 2023-09-02 22:29
ah-though it has a suspicious number of 0s in there: https://paste.centos.org/view/f41a47fb#asahi-dev · 2023-09-02 22:26
ah-haha! dart_dump works if I first run p.pmgr_adt_clocks_enable(f'/arm-io/dart-isp0')#asahi-dev · 2023-09-02 22:14
ah-hmm, maybe the dart_dump.py dart-isp0 error means that the issue is not the address but the dart it goes through not being setup right yet#asahi-dev · 2023-09-02 20:41
ah-there's read of a similar looking addr in the macos trace: [cpu0] [0xfffffe0013733aac] MMIO: R.8 0x385050000 (isp0[0], offset 0x1050000) = 0x102010000a58001#asahi-dev · 2023-09-02 20:35
ah-overall dart-dump: https://paste.centos.org/view/df1315c9 I get an exception when trying to dump dart-isp0: https://paste.centos.org/view/d083e350#asahi-dev · 2023-09-02 20:28
ah-of isp0 segment-ranges#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: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: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 14:13
ah-still looks the same, i'll run with the dbg print#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: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:32
ah-yep let me try#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: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:29
ah-ok, with 5 that error is gone, getting this trace: https://textbin.net/raw/fbzuxnbvri#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: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#asahi-dev · 2023-09-02 11:56
ah-chainloading m1n1 and linux booting with your tracer gets me this log: https://textbin.net/raw/mq3gbc3knr#asahi-dev · 2023-09-02 11:55
ah-eiln: i'm testing now with your latest pmgr reordering in the dtb and this m1n1: https://github.com/ah-/m1n1/commits/isp-dapf#asahi-dev · 2023-09-02 02:27
ah-more tomorrow#asahi-dev · 2023-09-02 02:26
ah-ok with all /arm-io/isp replaced by /arm-io/isp0 it boots, but still "[ 15.260651] platform 292280000.power-management:power-controller@4010: deferred probe pending" in dmesg#asahi-dev · 2023-09-02 02:08
ah-hmm no luck. getting late so i'll try more tomorrow, but looks like in the adt it's isp0 not just isp