2025-11-29
00:01hdbngr has joined #asahi-dev
00:02zumi_ has joined #asahi-dev
00:08pb17 has quit [Ping timeout: 480 seconds]
00:08zumi has quit [Ping timeout: 480 seconds]
00:10hdbngr has quit [Ping timeout: 480 seconds]
00:12zumi_ is now known as zumi
00:15hdbngr has joined #asahi-dev
00:15glem8100548899408698861395 has quit [Ping timeout: 480 seconds]
00:16glem8100548899408698861395 has joined #asahi-dev
00:34glem8100548899408698861395 has quit [Ping timeout: 480 seconds]
00:43pb17 has joined #asahi-dev
00:53mixi has quit [Ping timeout: 480 seconds]
01:02hdbngr has quit [Ping timeout: 480 seconds]
01:03mixi has joined #asahi-dev
01:10hdbngr has joined #asahi-dev
01:19hdbngr has quit [Ping timeout: 480 seconds]
01:20glem8100548899408698861395 has joined #asahi-dev
01:28hdbngr has joined #asahi-dev
01:36hdbngr has quit [Ping timeout: 480 seconds]
01:44hdbngr has joined #asahi-dev
01:47chadmed has quit [Quit: Konversation terminated!]
01:47chadmed has joined #asahi-dev
01:59hdbngr has quit [Ping timeout: 480 seconds]
02:00ciara has quit [Remote host closed the connection]
02:04ciara has joined #asahi-dev
02:06hdbngr has joined #asahi-dev
02:15hdbngr has quit [Ping timeout: 480 seconds]
02:24hdbngr has joined #asahi-dev
02:32hdbngr has quit [Ping timeout: 480 seconds]
02:33krushnam12 has joined #asahi-dev
02:33krushnam12 has quit [Quit: Textual IRC Client: www.textualapp.com]
02:40hdbngr has joined #asahi-dev
02:49hdbngr has quit [Ping timeout: 480 seconds]
02:53hdbngr has joined #asahi-dev
03:02hdbngr has quit [Ping timeout: 480 seconds]
03:10hdbngr has joined #asahi-dev
03:18hdbngr has quit [Ping timeout: 480 seconds]
03:26hdbngr has joined #asahi-dev
03:35hdbngr has quit [Ping timeout: 480 seconds]
03:37opoku has joined #asahi-dev
03:41tobhe_ has joined #asahi-dev
03:44hdbngr has joined #asahi-dev
03:48tobhe has quit [Ping timeout: 480 seconds]
03:52hdbngr has quit [Ping timeout: 480 seconds]
04:00hdbngr has joined #asahi-dev
04:08hdbngr has quit [Ping timeout: 480 seconds]
04:15nora has joined #asahi-dev
04:16hdbngr has joined #asahi-dev
04:17nora_ has quit [Ping timeout: 480 seconds]
04:25hdbngr has quit [Ping timeout: 480 seconds]
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
04:33hdbngr has joined #asahi-dev
04:41hdbngr has quit [Ping timeout: 480 seconds]
04:46marvin24 has joined #asahi-dev
04:49hdbngr has joined #asahi-dev
04:58hdbngr has quit [Ping timeout: 480 seconds]
05:01hdbngr has joined #asahi-dev
05:09hdbngr has quit [Ping timeout: 480 seconds]
05:15BlueMatt_ has joined #asahi-dev
05:15BlueMatt has quit [Ping timeout: 480 seconds]
05:16hdbngr has joined #asahi-dev
05:25hdbngr has quit [Ping timeout: 480 seconds]
05:27chadmed has quit [Quit: Konversation terminated!]
05:27chadmed has joined #asahi-dev
05:33hdbngr has joined #asahi-dev
05:41hdbngr has quit [Ping timeout: 480 seconds]
05:49hdbngr has joined #asahi-dev
05:57hdbngr has quit [Ping timeout: 480 seconds]
06:00cow123 has quit [Ping timeout: 480 seconds]
06:03cow123 has joined #asahi-dev
06:05hdbngr has joined #asahi-dev
06:05zumi_ has joined #asahi-dev
06:09glem8100548899408698861395 has quit [Ping timeout: 480 seconds]
06:11zumi has quit [Ping timeout: 480 seconds]
06:15zumi_ is now known as zumi
06:20hdbngr has quit [Ping timeout: 480 seconds]
06:28hdbngr has joined #asahi-dev
06:42hdbngr has quit [Ping timeout: 480 seconds]
06:43hdbngr has joined #asahi-dev
06:51integralpilot has joined #asahi-dev
06:53hdbngr has quit [Ping timeout: 480 seconds]
06:53glem8100548899408698861395 has joined #asahi-dev
06:56integralpilotgot the right cable, and did the kext setup and now macdvmtool is working for me
06:57integralpilothowever, now when i try to run proxyclient/tools/run_guest.py to load XNU, i get KeyError: 'ATC-3_USB' during "Doing essential MMIO remaps..."
06:57integralpiloton the line 'dev = dev_by_name[name]
06:57integralpilotin map_essential.py
06:57integralpilotany idea what this is & how to fix? thanks so much!
06:58integralpilotcan provide more debugging info if needed
06:59integralpilot has quit [Quit: integralpilot]
07:01hdbngr has joined #asahi-dev
07:02integralpilot has joined #asahi-dev
07:10hdbngr has quit [Ping timeout: 480 seconds]
07:10integralpilotI think the problem is that I my mac only has 3 thunderbolt ports, not 4, so ATC-3_USB isn't defined in the device tree, only 0, 1 and 2
07:12pb17 has quit [Ping timeout: 480 seconds]
07:17hdbngr has joined #asahi-dev
07:19pb17 has joined #asahi-dev
07:20integralpiloti'm taking a look at the python code now to see what's causing it to assume the existance of atc3
07:21glem8100548899408698861395 has quit [Ping timeout: 480 seconds]
07:23integralpilotlooks like for each IODEV index it assumes a matching PMGR exists in the ADT
07:23integralpilotwhich raises the question - why there an IODEV index for a non-existent USB controller?
07:23integralpiloti'm trying to find out rn
07:26hdbngr has quit [Ping timeout: 480 seconds]
07:28jannauthere is/was kinda: the 4th controller is used to drive the hdmi port on m1/m2 pro/max macbooks. "ATC3_USB" exists on those machines
07:30jannaupossible that it is solved differently on m3 pro or that they removed unneeded parts from the adt
07:33integralpilotit seems that the python code thinks that the USB port host is talking to target over is controlled by ATC3_USB which can't be right
07:35hdbngr has joined #asahi-dev
07:35integralpilotokay just dumped my device tree
07:35integralpilotthere's no usb-drd3 (likely causing the issue) and no dart-usb3 (whereas 0, 1 and 2 have these)
07:36integralpilotbut atc-phy3, atc3-dpxbar, atc3-dpphy exist
07:38integralpilotatc3 definetly seems like the HDMI port. the python logic seems to try to register the contorller it thinks it is talking over, so need to figure out why it thinks this is the HDMI controller
07:39integralpilotcause no usb-drd3 = no ATC3_USB = the error. it shouldn't be trying to map the HDMI controller as the controller it's talking through
07:43jannauyou can't deduce "usb-drd3 = no ATC3_USB". don't expect logic or internal consistency from the ADT. It's not at the same level as linux devicetrees
07:43integralpilotoh, i guess that makes sense
07:43hdbngr has quit [Ping timeout: 480 seconds]
07:44integralpilotbut there's definetly no USB-related items in the device tree so i think it's safe to conclude it's the HDMI port
07:45integralpilotmight it be that the IODEV index is actually 3 but that isn't a 1:1 mapping to the PMGR index like the code assumes?
07:45integralpilotor is it most likely it's deciding the IODEV index wrong
07:51hdbngr has joined #asahi-dev
07:51integralpiloti'm plugged into what i think is the DFU port, leftmost port on the left side (which has 2 ports)
07:53jannauthe one next to the magsafe port? apple uses "left back" to describe it. yes, that should be the dfu port
07:53integralpilotyes, the one next to magsafe. weird it's coming up as index 3 then.
07:55integralpilotwait actually self.iodev must be reporting as 6 then
07:57integralpiloti'll check
07:58integralpilot has quit [Quit: integralpilot]
08:00weirdtreething has quit [Remote host closed the connection]
08:00integralpilot has joined #asahi-dev
08:00weirdtreething has joined #asahi-dev
08:03glem8100548899408698861395 has joined #asahi-dev
08:03hdbngr has quit [Ping timeout: 480 seconds]
08:04integralpilotjust checked
08:04integralpilotInitializing hypervisor over iodev 0
08:04jannauintegralpilot: I think it's caused by the missing spmi USB-PD support. uartproxy_run() probes down from IODEV_MAX. try starting with "iodev_id_t iodev = IODEV_USB0;"
08:05glem8100548899408698861395 has quit []
08:06integralpilotbefore doing anything with m1n1 i run sudo ./macvdmtool serial so i think that means i'm using the debug uart?
08:09integralpilotand i $M1N1DEVICE is /dev/cu.debug-console
08:10hdbngr has joined #asahi-dev
08:11jannauok, that's then using the uart. why does it try to disable ATC3_USB then? I think it should only do that for the port used as iodev, i.e. in your case none
08:15integralpilotyeah, that's what i'm confused about.
08:18hdbngr has quit [Ping timeout: 480 seconds]
08:21hdbngr has joined #asahi-dev
08:25integralpilotin uartproxy_run() i tried setting iodev_id_t iodev = IODEV_UART; but that had no effect and the same error happens
08:32integralpilotunsure if it's related but there's a log dart: dart /arm-io/dart-usb0 at 0x702f80000 is a t8110, repeated for usb0 through usb2. the device is a t6030 not a t8110 (base M3) like the log says
08:35hdbngr has quit [Remote host closed the connection]
08:35hdbngr has joined #asahi-dev
08:43integralpilotoh, interesting! thank you so much for helping me with everything and letting me know how things work, it's starting to make a lot more sense
08:43integralpiloti'm still looking into why it tries to disable ATC3_USB now, i think i've got a theory but i'm checking it now
08:59integralpilotoh my god
08:59integralpiloti just found out why
09:00integralpilotself.iodev is 0
09:00integralpilotcause it's the UART right
09:00integralpilotto calculate the ATC number to use, the python code does self.iodev - IODEV.USB0 (3)
09:00integralpilotresulting in -3
09:01integralpilotso it tries ATC-3_USB (with the -3 being inserted after ATC and before _USB)
09:01integralpilotwhich obviously doesn't exist
09:03integralpilotrun_guest.py was never programmed to have the communication be going over IODEV 0 / UART
09:04integralpilotsorry, m1n1/hv/__init__.py, rather, which run_guest.py causes to be run
09:06jannausorry for not spotting the '-'. I had the weird feeling something was off but did not notice that
09:07integralpilotsorry pressed enter too soon!
09:08integralpilotit's fine, i didn't notice it either!
09:08integralpilotthank you for all your help!
09:10integralpilotdid https://pastebin.com/v7AsfDSA and we progress to rainbow apple now, hanging it the same place
09:11integralpilothow can i get it to send early logs over the uart and see them?
09:15jannaumacos prints logs with '-v' in nvram bootargs but you need usb to see the output of the virtual uart emulated by the HV
09:19integralpilotit's hanging way before it can output anything to framebuffer i think but i'll try -v in bootargs
09:19integralpiloti was using virtual uart yesterday and it was hanging before it sent any logs there
09:20integralpilotwhich is why chaos_princess suggested i try physical uart now, but i'm unsure how to a) get it send early logs to physical uart, b) see those logs
09:25integralpilotas in with chainload.py rather than run_guest.py, i'll try it, thanks
09:39hdbngr has quit [Ping timeout: 480 seconds]
09:44hdbngr has joined #asahi-dev
09:53hdbngr has quit [Ping timeout: 480 seconds]
09:56hdbngr has joined #asahi-dev
10:05hdbngr has quit [Ping timeout: 480 seconds]
10:14hdbngr has joined #asahi-dev
10:18seb__ has joined #asahi-dev
10:21integralpilot has quit [Remote host closed the connection]
10:22hdbngr has quit [Ping timeout: 480 seconds]
10:31hdbngr has joined #asahi-dev
10:36riker77 has quit [Quit: Quitting IRC - gone for good...]
10:36ansg191_ has joined #asahi-dev
10:36ansg191 has quit [Read error: Connection reset by peer]
10:36ansg191_ is now known as ansg191
10:38pb17 has quit [Ping timeout: 480 seconds]
10:39pb17 has joined #asahi-dev
10:40hdbngr has quit [Ping timeout: 480 seconds]
10:40truita has quit [Remote host closed the connection]
10:41truita has joined #asahi-dev
10:45hdbngr has joined #asahi-dev
10:54hdbngr has quit [Ping timeout: 480 seconds]
10:56integralpilot has joined #asahi-dev
10:57integralpilotnope, trying chainload results in the normal apple logo appearing and a hang with no virtual serial output as well
10:57integralpilot has quit []
10:57integralpilot has joined #asahi-dev
11:02hdbngr has joined #asahi-dev
11:10integralpiloti've been doing some debugging under the hypervisor to see what's going wrong
11:11integralpilotat the point it hangs, the PC/ELR is pointing to memory that is just all 0s
11:11integralpilot(it being XNU after being loaded)
11:11hdbngr has quit [Ping timeout: 480 seconds]
11:12integralpilotit's not a NPD or anything, it's a higher half address i.e. fffffe001461a200 (though varies with KASLR i think)
11:14integralpilotit looks to me like the kernel did something bad, which casued a sync exception to be triggered (given the +0x200 offset) causing it to jump to a handler table or smth XNU hasn't set up yet, and then the UDF (0x0) causes it to have an exception and thus jump back there infinetly?
11:15integralpiloti'll check the code at LR, might give some clues
11:19hdbngr has joined #asahi-dev
11:20truita has quit [Remote host closed the connection]
11:21truita has joined #asahi-dev
11:22integralpilotLR points to some code within com.apple.kernel:fleh_dispatch64_common
11:22integralpilotit's around a SVE instruction so my gut feeling is that m1n1 isn't setting the SVE registers right
11:24integralpiloti thought all M-series chips didn't support SVE though??
11:27integralpilotwait actually i think it's SME, not SVE sorry, i might be getting my instructions mixed up
11:28hdbngr has quit [Ping timeout: 480 seconds]
11:28integralpilotthe instruction is sel z0.d, p8, z8.d, z21.d
11:29integralpilotand this is the kernel variant for an M3 chipset
11:31mazcould well be. I wouldn't be surprised if they had started with some embryonic SME hacking way before M4.
11:33integralpiloti think the "sel instruction" is actually in a data section after disassembling further sorry, so it might not be an instruction at all
11:35hdbngr has joined #asahi-dev
11:36integralpilotit was near the LR so i suspected it was involved, but looks like some form of lookup table that the code that causes the issue gets data from
11:37integralpilotcurrently looking into fleh_dispatch64_common more closely rn. fleh = first level exception handler, iirc?
11:44hdbngr has quit [Ping timeout: 480 seconds]
11:46hdbngr has joined #asahi-dev
11:55hdbngr has quit [Ping timeout: 480 seconds]
12:01hdbngr has joined #asahi-dev
12:04zumi_ has joined #asahi-dev
12:10integralpilothmmm after some further digging i'm a bit more confused
12:10zumi has quit [Ping timeout: 480 seconds]
12:13integralpilotSP_EL1 is a higher-half address that isn't mapped by the hypervisor to any physical address
12:14zumi_ is now known as zumi
12:17integralpilotalso does anyone know what ESR_EL1 = 0xfe000020, it's implementation-defined so means some kind of apple-specific exception
12:20hdbngr has quit [Ping timeout: 480 seconds]
12:28seb__ has quit [Ping timeout: 480 seconds]
12:29hdbngr has joined #asahi-dev
12:33riker77 has joined #asahi-dev
12:34integralpilot has quit [Quit: integralpilot]
12:38hdbngr has quit [Ping timeout: 480 seconds]
12:43riker77 has quit [Quit: Quitting IRC - gone for good...]
12:45hdbngr has joined #asahi-dev
12:48riker77 has joined #asahi-dev
12:54hdbngr has quit [Ping timeout: 480 seconds]
13:02hdbngr has joined #asahi-dev
13:18hdbngr has quit [Ping timeout: 480 seconds]
13:26hdbngr has joined #asahi-dev
13:27seb__ has joined #asahi-dev
13:29seb_ has joined #asahi-dev
13:30crabbedhaloablut has quit []
13:31crabbedhaloablut has joined #asahi-dev
13:33seb__ has quit [Remote host closed the connection]
13:36hdbngr has quit [Ping timeout: 480 seconds]
13:45hdbngr has joined #asahi-dev
13:46seb_ has quit [Quit: Konversation terminated!]
13:55hdbngr has quit [Ping timeout: 480 seconds]
14:04hdbngr has joined #asahi-dev
14:13hdbngr has quit [Ping timeout: 480 seconds]
14:21hdbngr has joined #asahi-dev
14:23seb_ has joined #asahi-dev
14:34hdbngr has quit [Ping timeout: 480 seconds]
14:39seb__ has joined #asahi-dev
14:41hdbngr has joined #asahi-dev
14:45seb_ has quit [Ping timeout: 480 seconds]
14:57hdbngr has quit [Ping timeout: 480 seconds]
14:58seb__ has quit [Ping timeout: 480 seconds]
14:58popey__ has joined #asahi-dev
14:59popey__ has quit []
15:05hdbngr has joined #asahi-dev
15:13hdbngr has quit [Ping timeout: 480 seconds]
15:22hdbngr has joined #asahi-dev
15:31hdbngr has quit [Ping timeout: 480 seconds]
15:39hdbngr has joined #asahi-dev
15:49popey__ has joined #asahi-dev
15:49popey__ has quit []
15:55hdbngr has quit [Ping timeout: 480 seconds]
15:58hdbngr has joined #asahi-dev
16:07hdbngr has quit [Ping timeout: 480 seconds]
16:14hdbngr has joined #asahi-dev
16:23hdbngr has quit [Ping timeout: 480 seconds]
16:31hdbngr has joined #asahi-dev
16:40hdbngr has quit [Ping timeout: 480 seconds]
16:40hdbngr has joined #asahi-dev
16:49hdbngr has quit [Ping timeout: 480 seconds]
16:50hdbngr has joined #asahi-dev
16:51hightower2 has joined #asahi-dev
16:56seb__ has joined #asahi-dev
16:59hdbngr has quit [Ping timeout: 480 seconds]
17:07hdbngr has joined #asahi-dev
17:15hdbngr has quit [Ping timeout: 480 seconds]
17:23hdbngr has joined #asahi-dev
17:28jannauwe're too late with moving agx init to m1n1. https://lore.kernel.org/rust-for-linux/20250905140047.3325945-1-lossin@kernel.org/ in 6.18 breaks in asahi in 2 different ways
17:29jannau1. a variable with the same name as a field is used twice, changing its type from u32 to &u32
17:30jannau1. one of the Globals structs is "packed" resulting in reference to potentially unaligned fields
17:31BlueMatt_ has quit []
17:32hdbngr has quit [Ping timeout: 480 seconds]
17:33cow123 has quit [Ping timeout: 480 seconds]
17:34BlueMatt has joined #asahi-dev
17:41hdbngr has joined #asahi-dev
17:46chaos_princess"too late" was unclear to me, you meant we should have merged it before 6.18?
17:50hdbngr has quit [Ping timeout: 480 seconds]
17:51hdbngr has joined #asahi-dev
17:51___nick___ has joined #asahi-dev
17:54jannautoo late to avoid these 2 issues. complex macros like try_init! are always a pain to debug
18:00hdbngr has quit [Ping timeout: 480 seconds]
18:02zumi_ has joined #asahi-dev
18:08zumi has quit [Ping timeout: 480 seconds]
18:09hdbngr has joined #asahi-dev
18:12zumi_ is now known as zumi
18:12cow123 has joined #asahi-dev
18:17hdbngr has quit [Ping timeout: 480 seconds]
18:21hdbngr has joined #asahi-dev
18:22truita has quit [Remote host closed the connection]
18:23truita has joined #asahi-dev
18:30hdbngr has quit [Ping timeout: 480 seconds]
18:36hdbngr has joined #asahi-dev
18:47seb__ has quit [Quit: Konversation terminated!]
19:07hdbngr has quit [Remote host closed the connection]
19:07hdbngr has joined #asahi-dev
19:43hdbngr has quit [Ping timeout: 480 seconds]
19:50hdbngr has joined #asahi-dev
20:00hdbngr has quit [Ping timeout: 480 seconds]
20:08hdbngr has joined #asahi-dev
20:17hdbngr has quit [Ping timeout: 480 seconds]
20:26hdbngr has joined #asahi-dev
20:33john-cabaj has joined #asahi-dev
20:37michaelrostom has joined #asahi-dev
20:39hdbngr has quit [Ping timeout: 480 seconds]
20:39michaelrostom_ has joined #asahi-dev
20:40michaelrostom__ has joined #asahi-dev
20:40michaelrostom has quit []
20:41michaelrostom__ has quit []
20:47hdbngr has joined #asahi-dev
20:47michaelrostom_ has quit [Ping timeout: 480 seconds]
20:49bgb_ has joined #asahi-dev
20:51michaelrostom__ has joined #asahi-dev
20:53bgb has quit [Remote host closed the connection]
20:53john-cabaj has quit [Ping timeout: 480 seconds]
20:56michaelrostom__ has quit []
20:57michaelrostom__ has joined #asahi-dev
20:57michaelrostom__ has quit []
21:01hdbngr has quit [Ping timeout: 480 seconds]
21:01WindowPain has quit [Remote host closed the connection]
21:02michaelrostom__ has joined #asahi-dev
21:03WindowPain has joined #asahi-dev
21:06michaelrostom has joined #asahi-dev
21:06michaelrostom__ has quit []
21:07hdbngr has joined #asahi-dev
21:10seb__ has joined #asahi-dev
21:16hdbngr has quit [Ping timeout: 480 seconds]
21:25hdbngr has joined #asahi-dev
21:30lion328 has quit [Remote host closed the connection]
21:33hdbngr has quit [Ping timeout: 480 seconds]
21:41hdbngr has joined #asahi-dev
21:50hdbngr has quit [Ping timeout: 480 seconds]
21:54hdbngr has joined #asahi-dev
22:03hdbngr has quit [Ping timeout: 480 seconds]
22:10seb__ has quit [Quit: Konversation terminated!]
22:11hdbngr has joined #asahi-dev
22:12lion328 has joined #asahi-dev
22:20hdbngr has quit [Ping timeout: 480 seconds]
22:25hdbngr has joined #asahi-dev
22:29derzahl has joined #asahi-dev
22:34___nick___ has quit []
22:36pb17 has quit [Ping timeout: 480 seconds]
22:40___nick___ has joined #asahi-dev
22:45hdbngr has quit [Ping timeout: 480 seconds]
22:54hdbngr has joined #asahi-dev
23:02pb17 has joined #asahi-dev
23:03hdbngr has quit [Ping timeout: 480 seconds]
23:05truita has quit [Ping timeout: 480 seconds]
23:11hdbngr has joined #asahi-dev
23:12___nick___ has quit []
23:12___nick___ has joined #asahi-dev
23:20hdbngr has quit [Ping timeout: 480 seconds]
23:27hdbngr has joined #asahi-dev
23:36hdbngr has quit [Ping timeout: 480 seconds]
23:44hdbngr has joined #asahi-dev
23:55hightower4 has joined #asahi-dev