#
✕ nick:eiln
#asahi-dev · 2023-09-07 13:26
eilnmarcan: 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
#asahi-dev · 2023-09-07 13:18
eilnalso left some comments in the draft pr
#asahi-dev · 2023-09-07 13:17
eilnmarcan: woohoo! device?
#asahi-dev · 2023-09-07 11:13
eilnmarcan: yeah, that part's really shaky and it's pretty relevant rn.
#asahi-dev · 2023-09-07 10:11
eilnah-: can you try setting ctrr_size=0xf00000 under dt_set_isp_fwdata() in m1n1 src/kboot.c
#asahi-dev · 2023-09-07 10:11
eilnI just remembered the firmware is per-device. god.
#asahi-dev · 2023-09-07 10:11
eilnah-: sorry for the late reply, $dayjob
#asahi-dev · 2023-09-02 14:19
eilne.g. dapf.c
#asahi-dev · 2023-09-02 14:15
eilnah-: can you attach another reg trace too?
#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:06
eilnpushd
#asahi-dev · 2023-09-02 14:05
eilnwait, can you add one more line to m1n1
#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: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 12:43
eilnah-: sorry, can you try the updated dt?
#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: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: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:05
eilnah-: looks like the device wasn't even probed. did you uncomment the compatible under apple_isp_of_match in isp-drv.c? also you should use the second console (with the kernel msgs) if you haven't (see https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-%28For-Developers%29#establishing-the-usb-connection)
#asahi-dev · 2023-09-02 02:41
eilnisp's power domain hierarchy: 0x00 -> 0x10 -> 0x08 -> 0x28 -> 0x20 -> 0x30 -> 0x18 -> 0x38 -> 0x40
#asahi-dev · 2023-09-02 02:40
eilnsigh, I found it.
#asahi-dev · 2023-09-02 02:10
eilnah-: yeah, that makes sense. ill fix that.
#asahi-dev · 2023-09-02 01:54
eilnah-: whoops, actually pushed this time
#asahi-dev · 2023-09-02 01:53
eilnthe dt in linux
#asahi-dev · 2023-09-02 01:50
eilnah-: pushed. the initial iommu stuff is different, and you might get translation faults / stuck dart error handler. looking into that
#asahi-dev · 2023-09-02 01:48
eilnsio is a diff hw
#asahi-dev · 2023-09-02 01:48
eilnah-: ah, forgot the alias. brb
#asahi-dev · 2023-09-02 01:37
eilnyes
#asahi-dev · 2023-09-02 01:35
eilnah-: got it. you will also need to chainload/update m1n1 with my branch, which should be right there :D
#asahi-dev · 2023-09-02 01:30
eilnah-: are you running these under proxy? I did push a patched dt rn
#asahi-dev · 2023-09-02 01:16
eilnlooking at it now
#asahi-dev · 2023-09-02 01:16
eilnah-: the dart address is wrong. it was supposed to be a 0x3 I think.
#asahi-dev · 2023-09-01 19:09
eilnthankfully it won't do much without an iommu
#asahi-dev · 2023-09-01 19:06
eilnmaybe I shouldn't have pushed the last one? it was more of a "jot down my notes from dumps"
#asahi-dev · 2023-09-01 18:47
eilnah-: the hypervisor setup (needed to trace macos) is a bit tricky, sadly. you'll need a new macos install, an icloud account to get the kdks, install m1n1 yourself in recovery, etc. if you're familiar with kernel stuff you could test with a simple tethered boot setup (enable expert mode in installer).
#asahi-dev · 2023-09-01 18:37
eilnit's the m1n1 addr | 2 right?
#asahi-dev · 2023-09-01 18:36
eilnah-: yeah, the only way to know is through a trace. the dt isn't much use for this one, they dont even describe the power domains. it's all hardcoded throughout the kext
#asahi-dev · 2023-09-01 18:31
eilnif so do you mind running this trace https://pastebin.com/2m6E0iju
#asahi-dev · 2023-09-01 18:31
eilnah-: awesome. I'm assuming you have a m1n1 setup from the dts?
#asahi-dev · 2023-09-01 14:54
eilnm2 air & m1 pro pro have the identical camera, lmao
#asahi-dev · 2023-09-01 14:50
eilnsawyer: got it, thank you! that's the 1080p model I was looking for
#asahi-dev · 2023-09-01 14:33
eilnsawyer: yes
#asahi-dev · 2023-09-01 14:32
eilnlog show --last 1d --info --debug | grep -iF camera
#asahi-dev · 2023-09-01 14:32
eilnopen/close the photobooth app, then run this command
#asahi-dev · 2023-09-01 14:32
eilnsawyer: do you mind running booting into macos
#asahi-dev · 2023-09-01 13:17
eilnKadomatsu is nice
#asahi-dev · 2023-09-01 13:17
eilnwhy have I just seen the asahi-audio repo

plus ›