#
…

2023-09-02

00:06sawyer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:12sawyer has joined #asahi-dev
00:17utsweetyfish has quit [Remote host closed the connection]
00:17utsweetyfish has joined #asahi-dev
00:42sawyer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:53sawyer has joined #asahi-dev
01:05sawyer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:12ah-hmm, if I add this isp_dart section to my dtb any kernel stops booting: https://gist.github.com/ah-/3dc3f8f1724ed2583eb362dd5c3d68e6
01:14ah-not sure why, the address looks similar to what's in the m1n1 trace. i can't see the interrupt anywhere in the trace though
01:16eilnah-: the dart address is wrong. it was supposed to be a 0x3 I think.
01:16eilnlooking at it now
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:30ah-ha! yes you're right, I missed that the 0x2/0x3 in reg also contains the address
01:30ah-boots now, but getting "deferred probe pending" for the power controllers
01:30eilnah-: are you running these under proxy? I did push a patched dt rn
01:32ah-atm just by switching m1n1.bins, got proxy running too but more comfortable this way. my usb cable is a bit short
01:35eilnah-: got it. you will also need to chainload/update m1n1 with my branch, which should be right there :D
01:47ah-getting FDT: 'sio' not found, 'sio' node not found, ADT: '/arm-io/isp' node not found, '/arm-io/isp' not found and then failed to prepare FDT
01:48eilnah-: ah, forgot the alias. brb
01:48eilnsio is a diff hw
01:50eilnah-: pushed. the initial iommu stuff is different, and you might get translation faults / stuck dart error handler. looking into that
01:52ah-what branch/repo?
01:53eilnthe dt in linux
01:53jeisom has joined #asahi-dev
01:54eilnah-: whoops, actually pushed this time
02:00gabuscus has quit []
02:02hightower3 has joined #asahi-dev
02:05ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:08ah-hmm no luck. getting late so i'll try more tomorrow, but looks like in the adt it's isp0 not just isp
02:09hightower4 has quit [Ping timeout: 480 seconds]
02:10eilnah-: yeah, that makes sense. ill fix that.
02:12jeisom has quit [Ping timeout: 480 seconds]
02:14ourdumbfuture has joined #asahi-dev
02:20eiln has quit [Quit: WeeChat 4.0.3]
02:20eiln has joined #asahi-dev
02:26ah-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
02:27ah-more tomorrow
02:32gabuscus has joined #asahi-dev
02:38sawyer has joined #asahi-dev
02:40eilnsigh, I found it.
02:41eilnisp's power domain hierarchy: 0x00 -> 0x10 -> 0x08 -> 0x28 -> 0x20 -> 0x30 -> 0x18 -> 0x38 -> 0x40
02:46sawyer has quit [Ping timeout: 480 seconds]
02:46ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:05utsweetyfish has quit [Remote host closed the connection]
03:06utsweetyfish has joined #asahi-dev
03:27c10l1 has joined #asahi-dev
03:27c10l has quit [Read error: Connection reset by peer]
03:31utsweetyfish has quit [Remote host closed the connection]
03:31utsweetyfish has joined #asahi-dev
03:40chadmedhmm 15" air speaker routing is wrong
03:40chadmedall channels go to one of the left woofers
03:40chadmednone of the kcontrols are disabled either so i assume we're just not handling the device properly in macaudio
03:58dimilar has joined #asahi-dev
04:01chadmednvm it was just kde's volume knobs still being broken. we do need to do kcontrol fixup in macaudio though
04:01sefidel has quit [Remote host closed the connection]
04:02sefidel has joined #asahi-dev
04:18dimilar has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1.50)]
04:21sternez has joined #asahi-dev
04:21sternez has quit [Remote host closed the connection]
04:21sternez has joined #asahi-dev
05:08sternezjannau: I woule like to make my m2 ultra's hdmi work. I noticed you've achieved big progress on m2 pro mini and studio. I can do some tests on my m2 ultra studio.
05:14sternezjannau: your pull request in AsahiLinux/m1n1 mentioned that: "M2 Ultra Mac Studio and Mac Pro hopefully work after replacing dcp0/disp0 with dcpext0/dispext0.". I found that is not enough, on M2 ultra, there are no '/arm-io/lpdptx-phy0' and '/arm-io/dp2hdmi-gpio0'. but I found they are '/arm-io/lpdptx-phy1' and '/arm-io/dp2hdmi-gpio1'. after the modification, I still can not make it work.
05:18elvishjerricco has quit [Read error: Connection reset by peer]
05:19elvishjerricco has joined #asahi-dev
05:34utsweetyfish has quit [Remote host closed the connection]
05:34utsweetyfish has joined #asahi-dev
05:43sternez has quit [Remote host closed the connection]
05:43sternez has joined #asahi-dev
05:47jannausternez: indeed, they use die1 on the m2 ultra mac studio, sigh. you need to use dcpext4/dispext4
06:24sternez has quit [Remote host closed the connection]
06:28utsweetyfish has quit [Remote host closed the connection]
06:28utsweetyfish has joined #asahi-dev
07:21stipa has joined #asahi-dev
07:22jacksonchen666 has joined #asahi-dev
07:43utsweetyfish has quit [Remote host closed the connection]
07:43utsweetyfish has joined #asahi-dev
07:46crabbedhaloablut has joined #asahi-dev
08:10WindowPa- has joined #asahi-dev
08:15WindowPain has quit [Ping timeout: 480 seconds]
08:27duhanebel has quit [Quit: Textual IRC Client: www.textualapp.com]
08:29knedlik has joined #asahi-dev
08:44yaboishady has quit []
08:45yaboishady has joined #asahi-dev
08:55yaboishady8 has joined #asahi-dev
08:55yaboishady has quit [Read error: Connection reset by peer]
08:55yaboishady8 is now known as yaboishady
08:58yaboishady has quit []
09:16utsweetyfish has quit [Remote host closed the connection]
09:16utsweetyfish has joined #asahi-dev
09:36loki_val has joined #asahi-dev
09:36crabbedhaloablut has quit [Read error: Connection reset by peer]
10:10jacksonchen666 has quit [Remote host closed the connection]
10:15jacksonchen666 has joined #asahi-dev
10:50jacksonchen666 has quit [Remote host closed the connection]
10:55jacksonchen666 has joined #asahi-dev
11:01tanty has quit [Quit: Ciao!]
11:07midou has quit [Ping timeout: 480 seconds]
11:10tanty has joined #asahi-dev
11:11Luigi has joined #asahi-dev
11:18midou has joined #asahi-dev
11:20akemin_dayo has joined #asahi-dev
11:22knedlikSo now that I have the development kernel, and everything seems working, are there any other things where I can help out (maybe with programming) other than the yaks?
11:22knedlikI'm generally interested in working towards the direction of helping with the GPU stuff
11:22tanty has quit [Quit: Ciao!]
11:29roxfan has joined #asahi-dev
11:29knedlik has quit [Quit: knedlik]
11:31tanty has joined #asahi-dev
11:37Luigi has quit [Quit: Leaving]
11:55ah-eiln: i'm testing now with your latest pmgr reordering in the dtb and this m1n1: https://github.com/ah-/m1n1/commits/isp-dapf
11:56ah-chainloading m1n1 and linux booting with your tracer gets me this log: https://textbin.net/raw/mq3gbc3knr
12:05eilnah-: 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)
12:07ah-and here's the full dt from m1n1 in case it's useful: https://paste.centos.org/view/49860e7a
12:08ah-I think I did enable it, this is the exact kernel i'm running: https://github.com/ah-/kernel-asahi/commits/cam1
12:10ah-ooh dapf: Error getting DAPF /arm-io/dart-isp0 base address.
12:11jeisom has joined #asahi-dev
12:14eilnah-: where do you get the dapf message?
12:16ourdumbfuture has joined #asahi-dev
12:17ah-yep, i'll try with 5 now. i tried 6 because it looked like there were 6 entries in reg
12:18ah-saw it in the picocom-sec.sh output I think
12:18eilnit' 6 so index should be 5)
12:19eilnyeah, the stage 2 m1n1 output & later kernel dmesg should pop up on the second picocom console. use the tools/picocom script
12:25lynndotpy has quit [Quit: bye bye]
12:25lynndotpy has joined #asahi-dev
12:29ah-ok, with 5 that error is gone, getting this trace: https://textbin.net/raw/fbzuxnbvri
12:33eilnI see dapf & dart-isp is initialized. are you getting to the kernel? what do you get in the picocom console?
12:42ah-that trace looks identical to the previous one though, apart from some timestamps/addresses changing
12:43eilnah-: sorry, can you try the updated dt?
12:56ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:59ourdumbfuture has joined #asahi-dev
13:08ah-it's probing now and failing with "apple-isp 384000000.isp: failed to map reserved region"
13:11ah-oh do I need the firmware now? I think I saw something about firmware extraction and I'm probably missing that
13:12eilnno, that's the optional calibration files. this is an iommu error, give me a minute
13:27utsweetyfish has quit [Remote host closed the connection]
13:27utsweetyfish has joined #asahi-dev
13:31eilnah-: in the meantime can you run it again with the last linux commit?
13:32ah-yep let me try
13:44jannauand m2 pro mac mini has a picture on hdmi as well
13:46jannausternez: 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
13:46eilnah-: found a possible culprit in m1n1, can you try with the recent push
14:03ah-eiln: i had to change two more isp to isp0 on top of your branch: https://github.com/ah-/m1n1/commit/8f68d46d9ea0e06457ae375e5ce5dcca4ff20ede
14:04ah-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
14:05eilnwait, can you add one more line to m1n1
14:09ah-hmm, don't see any new m1n1 commits
14:09ah-ah now
14:11ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:12eilnis the m1 pro '/arm-io/node0' name an issue for any other hw? I'm thinkng of patching adt instead
14:13ah-still looks the same, i'll run with the dbg print
14:15eilnah-: can you attach another reg trace too?
14:16ourdumbfuture has joined #asahi-dev
14:18jannauwhat 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
14:19eilne.g. dapf.c
14:22jannaua 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
14:25cylm has joined #asahi-dev
14:27ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:28marcanpushed kernel/mesa updates (to dev and prod, passed a basic smoke test)
14:35ourdumbfuture has joined #asahi-dev
14:44eiln has quit [Quit: WeeChat 4.0.4]
14:46ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:52ourdumbfuture has joined #asahi-dev
15:07chadmed has quit [Read error: Connection reset by peer]
15:08chadmed has joined #asahi-dev
15:46cylm_ has joined #asahi-dev
15:55utsweetyfish has quit [Remote host closed the connection]
15:55cylm_ has quit [Quit: WeeChat 4.0.0]
15:56utsweetyfish has joined #asahi-dev
15:56chadmed has quit [Read error: Connection reset by peer]
15:57chadmed has joined #asahi-dev
16:17ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:25ourdumbfuture has joined #asahi-dev
16:27roxfan has quit [Ping timeout: 480 seconds]
16:44roxfan has joined #asahi-dev
17:16nyx_o has quit [Ping timeout: 480 seconds]
17:25nyx_o has joined #asahi-dev
17:26jacksonchen666 has quit [Remote host closed the connection]
17:40jeisom has quit [Ping timeout: 480 seconds]
17:40nyx_o has quit [Ping timeout: 480 seconds]
17:50utsweetyfish has quit [Remote host closed the connection]
17:50utsweetyfish has joined #asahi-dev
18:04leah2 has quit [Ping timeout: 480 seconds]
18:08ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:13chadmed has quit [Ping timeout: 480 seconds]
18:15jacksonchen666 has joined #asahi-dev
18:16sawyer has joined #asahi-dev
18:18ourdumbfuture has joined #asahi-dev
18:34leah2 has joined #asahi-dev
18:38chadmed has joined #asahi-dev
18:56ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:57dabaum|2er0 has joined #asahi-dev
19:20sawyer has quit [Quit: Textual IRC Client: www.textualapp.com]
19:52jeisom has joined #asahi-dev
19:55ourdumbfuture has joined #asahi-dev
20:08ChaosPrincesseiln: 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?
20:15ah-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
20:17ah-this address comes from segment-ranges in the adt, and I double-checked that the adt hex string does decode to exactly that address
20:18ah-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?
20:20jacksonchen666 has quit [Ping timeout: 480 seconds]
20:20jannauah-: which address seems low to you? "iova: 0x0"?
20:21ah-0x10000a58000
20:21ah-everything i see in the trace starts with 2/3
20:22ah-i was suspicious of the 0 too, but I think for the iommu it's ok?
20:22jannauyes, for the iommu/iop 0x0 is ok
20:25jannau0x10000a58000 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
20:27jannaudo you see it in the output of `experiments/dart_dump.py dart-isp0`?
20:28ah-when bootiing macos? I can try in a minute
20:28ah-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])
20:28ah-of isp0 segment-ranges
20:29jannauno, when m1n1 is running in proxy mode
20:34jacksonchen666 has joined #asahi-dev
20:34chadmed has quit [Quit: Konversation terminated!]
20:34chadmed has joined #asahi-dev
20:35ah-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
20:41ah-there's read of a similar looking addr in the macos trace: [cpu0] [0xfffffe0013733aac] MMIO: R.8 0x385050000 (isp0[0], offset 0x1050000) = 0x102010000a58001
21:01jannauso the actual mapped memory in dart-isp is from the top of the memory
21:17utsweetyfish has quit [Remote host closed the connection]
21:17utsweetyfish has joined #asahi-dev
21:46cylm_ has joined #asahi-dev
21:52cylm has quit [Ping timeout: 480 seconds]
22:14ah-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
22:18ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:26ah-haha! dart_dump works if I first run p.pmgr_adt_clocks_enable(f'/arm-io/dart-isp0')
22:26ourdumbfuture has joined #asahi-dev
22:29ah-though it has a suspicious number of 0s in there: https://paste.centos.org/view/f41a47fb
23:00ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:05loki_val has quit []
23:09ourdumbfuture has joined #asahi-dev
23:14darkapex has quit [Remote host closed the connection]
23:15darkapex has joined #asahi-dev
23:30chadmed has quit [Ping timeout: 480 seconds]
23:34ah-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
23:37ellyq has joined #asahi-dev
23:45utsweetyfish has quit [Remote host closed the connection]
23:45utsweetyfish has joined #asahi-dev
23:57utsweetyfish has quit [Remote host closed the connection]
23:57utsweetyfish has joined #asahi-dev
…