2026-01-23
00:02hdbngr has quit [Ping timeout: 480 seconds]
00:09hdbngr has joined #asahi-dev
00:18hdbngr has quit [Ping timeout: 480 seconds]
00:24hdbngr has joined #asahi-dev
00:32hdbngr has quit [Ping timeout: 480 seconds]
00:40hdbngr has joined #asahi-dev
00:49hdbngr has quit [Ping timeout: 480 seconds]
00:55fl0_id__ has joined #asahi-dev
00:56mixi has quit [Ping timeout: 480 seconds]
00:57hdbngr has joined #asahi-dev
01:06hdbngr has quit [Ping timeout: 480 seconds]
01:07mixi has joined #asahi-dev
01:14hdbngr has joined #asahi-dev
01:23hdbngr has quit [Ping timeout: 480 seconds]
01:25hdbngr has joined #asahi-dev
01:33psykose has quit [Remote host closed the connection]
01:33hdbngr has quit [Ping timeout: 480 seconds]
01:37fl0_id__ has quit [Ping timeout: 480 seconds]
01:41hdbngr has joined #asahi-dev
01:49pb17 has quit [Ping timeout: 480 seconds]
01:49hdbngr has quit [Ping timeout: 480 seconds]
01:53pb17 has joined #asahi-dev
01:57hdbngr has joined #asahi-dev
02:06hdbngr has quit [Ping timeout: 480 seconds]
02:14hdbngr has joined #asahi-dev
02:22hdbngr has quit [Ping timeout: 480 seconds]
02:31hdbngr has joined #asahi-dev
02:39hdbngr has quit [Ping timeout: 480 seconds]
02:48hdbngr has joined #asahi-dev
02:57hdbngr has quit [Ping timeout: 480 seconds]
03:05hdbngr has joined #asahi-dev
03:08hexdump0815 has joined #asahi-dev
03:10hexdump02 has quit [Ping timeout: 480 seconds]
03:11tobhe has joined #asahi-dev
03:14hdbngr has quit [Ping timeout: 480 seconds]
03:18tobhe_ has quit [Ping timeout: 480 seconds]
03:22hdbngr has joined #asahi-dev
03:30prike26 has joined #asahi-dev
03:31hdbngr has quit [Ping timeout: 480 seconds]
03:35prike2 has quit [Ping timeout: 480 seconds]
03:35prike26 is now known as prike2
03:39hdbngr has joined #asahi-dev
03:48hdbngr has quit [Ping timeout: 480 seconds]
03:55hdbngr has joined #asahi-dev
04:01leah2 has quit [Ping timeout: 480 seconds]
04:03hdbngr has quit [Ping timeout: 480 seconds]
04:11marvin24 has quit [Ping timeout: 480 seconds]
04:13hdbngr has joined #asahi-dev
04:21hdbngr has quit [Ping timeout: 480 seconds]
04:29hdbngr has joined #asahi-dev
04:37hdbngr has quit [Ping timeout: 480 seconds]
04:46hdbngr has joined #asahi-dev
04:53nora_ has joined #asahi-dev
04:54leah2 has joined #asahi-dev
04:54hdbngr has quit [Ping timeout: 480 seconds]
04:54nora has quit [Ping timeout: 480 seconds]
05:02hdbngr has joined #asahi-dev
05:11hdbngr has quit [Ping timeout: 480 seconds]
05:19hdbngr has joined #asahi-dev
05:27hdbngr has quit [Ping timeout: 480 seconds]
05:34hdbngr has joined #asahi-dev
05:43hdbngr has quit [Ping timeout: 480 seconds]
05:50hdbngr has joined #asahi-dev
06:07hdbngr has quit [Ping timeout: 480 seconds]
06:20hdbngr has joined #asahi-dev
06:30hdbngr has quit [Ping timeout: 480 seconds]
06:36chadmed_ has quit [Quit: Konversation terminated!]
06:36chadmed_ has joined #asahi-dev
06:38hdbngr has joined #asahi-dev
06:39chadmed_ has quit []
06:39chadmed_ has joined #asahi-dev
06:46hdbngr has quit [Ping timeout: 480 seconds]
06:48jjbettcher has joined #asahi-dev
06:49hdbngr has joined #asahi-dev
06:54jjbettcher has quit [Quit: jjbettcher]
06:54jjbettcher has joined #asahi-dev
06:58hdbngr has quit [Ping timeout: 480 seconds]
07:04T4ForFun has joined #asahi-dev
07:06hdbngr has joined #asahi-dev
07:15hdbngr has quit [Ping timeout: 480 seconds]
07:18Yushi has quit [resistance.oftc.net singleton.oftc.net]
07:18ralim has quit [resistance.oftc.net singleton.oftc.net]
07:18k70 has quit [resistance.oftc.net singleton.oftc.net]
07:18rhysmdnz has quit [resistance.oftc.net singleton.oftc.net]
07:18Tramtrist has quit [resistance.oftc.net singleton.oftc.net]
07:18caszue has quit [resistance.oftc.net singleton.oftc.net]
07:18lethalbit has quit [resistance.oftc.net singleton.oftc.net]
07:18dougall has quit [resistance.oftc.net singleton.oftc.net]
07:18chadmed_ has quit [resistance.oftc.net singleton.oftc.net]
07:18midou has quit [resistance.oftc.net singleton.oftc.net]
07:18lacamar has quit [resistance.oftc.net singleton.oftc.net]
07:18WindowPain has quit [resistance.oftc.net singleton.oftc.net]
07:18Guest36031 has quit [resistance.oftc.net singleton.oftc.net]
07:18ohtwoone has quit [resistance.oftc.net singleton.oftc.net]
07:18Yushi has joined #asahi-dev
07:18chadmed_ has joined #asahi-dev
07:18midou has joined #asahi-dev
07:18k70 has joined #asahi-dev
07:18lacamar has joined #asahi-dev
07:18WindowPain has joined #asahi-dev
07:18ralim has joined #asahi-dev
07:18Guest36031 has joined #asahi-dev
07:18rhysmdnz has joined #asahi-dev
07:18ohtwoone has joined #asahi-dev
07:18caszue has joined #asahi-dev
07:18dougall has joined #asahi-dev
07:18Tramtrist has joined #asahi-dev
07:18lethalbit has joined #asahi-dev
07:19jjbettcher has quit [resistance.oftc.net reflection.oftc.net]
07:19troseman has quit [resistance.oftc.net reflection.oftc.net]
07:19foltz has quit [resistance.oftc.net reflection.oftc.net]
07:19blu0jay has quit [resistance.oftc.net reflection.oftc.net]
07:19andymandias has quit [resistance.oftc.net reflection.oftc.net]
07:19isinyaaa has quit [resistance.oftc.net reflection.oftc.net]
07:19swiftraccoon has quit [resistance.oftc.net reflection.oftc.net]
07:19runxiyu has quit [resistance.oftc.net reflection.oftc.net]
07:19jjbettcher has joined #asahi-dev
07:19troseman has joined #asahi-dev
07:19foltz has joined #asahi-dev
07:19blu0jay has joined #asahi-dev
07:19andymandias has joined #asahi-dev
07:19isinyaaa has joined #asahi-dev
07:19runxiyu has joined #asahi-dev
07:19swiftraccoon has joined #asahi-dev
07:20hdbngr has joined #asahi-dev
07:28hdbngr has quit [Ping timeout: 481 seconds]
07:33dougall has quit [Server closed connection]
07:33dougall has joined #asahi-dev
07:34cynthia has quit [Server closed connection]
07:35cynthia has joined #asahi-dev
07:36hdbngr has joined #asahi-dev
07:44hdbngr has quit [Ping timeout: 480 seconds]
07:47jjbettcher has quit [Quit: WeeChat 4.8.1]
07:51lethalbit has quit [Server closed connection]
07:51lethalbit has joined #asahi-dev
07:53hdbngr has joined #asahi-dev
07:57eletrotupi has quit [Server closed connection]
07:57eletrotupi has joined #asahi-dev
08:01hdbngr has quit [Ping timeout: 480 seconds]
08:02Fanfwe has quit [Server closed connection]
08:02Fanfwe has joined #asahi-dev
08:03caszue has quit [Server closed connection]
08:03caszue has joined #asahi-dev
08:05Tramtrist has quit [Server closed connection]
08:05Tramtrist has joined #asahi-dev
08:07kfajdsl has quit [Server closed connection]
08:07kfajdsl has joined #asahi-dev
08:09rhysmdnz has quit [Server closed connection]
08:09rhysmdnz has joined #asahi-dev
08:09hdbngr has joined #asahi-dev
08:10ralim has quit [Server closed connection]
08:10ralim has joined #asahi-dev
08:10gruetzkopf has quit [Server closed connection]
08:11gruetzkopf has joined #asahi-dev
08:13nervish has joined #asahi-dev
08:13nervish has quit [Remote host closed the connection]
08:18hdbngr has quit [Ping timeout: 480 seconds]
08:18msteffen has quit [Server closed connection]
08:18msteffen has joined #asahi-dev
08:20k70 has quit [Server closed connection]
08:20k70 has joined #asahi-dev
08:21hdbngr has joined #asahi-dev
08:21sjg has quit [Server closed connection]
08:21sjg has joined #asahi-dev
08:22tamar-away has quit [Server closed connection]
08:22tamar-away has joined #asahi-dev
08:23qyousef has quit [Server closed connection]
08:23qyousef has joined #asahi-dev
08:23jesse-s has quit [Server closed connection]
08:23jesse-s has joined #asahi-dev
08:24Yushi has quit [Server closed connection]
08:24Yushi has joined #asahi-dev
08:25pb17 has quit [Ping timeout: 480 seconds]
08:26T4ForFun has quit [Remote host closed the connection]
08:28pb17 has joined #asahi-dev
08:29hdbngr has quit [Ping timeout: 480 seconds]
08:31leio has quit [Server closed connection]
08:31leio has joined #asahi-dev
08:34CaptainIRS31 has quit [Server closed connection]
08:35CaptainIRS31 has joined #asahi-dev
08:38hdbngr has joined #asahi-dev
08:39linxz has quit [Server closed connection]
08:39linxz has joined #asahi-dev
08:40bigmac has quit [Server closed connection]
08:40bigmac has joined #asahi-dev
08:41jonmasters_ has quit [Server closed connection]
08:41jonmasters_ has joined #asahi-dev
08:45maz has quit [Server closed connection]
08:46maz has joined #asahi-dev
08:47hdbngr has quit [Ping timeout: 480 seconds]
08:51joshtaylor has quit [Server closed connection]
08:51joshtaylor has joined #asahi-dev
08:53midou has quit [Remote host closed the connection]
08:54hdbngr has joined #asahi-dev
08:56ravikant_ has joined #asahi-dev
08:57eric_engestrom has quit [Server closed connection]
08:57eric_engestrom has joined #asahi-dev
09:04nafod has quit [Server closed connection]
09:05nafod has joined #asahi-dev
09:07hdbngr has quit [Ping timeout: 480 seconds]
09:08fl0_id has quit [Server closed connection]
09:09fl0_id has joined #asahi-dev
09:12midou has joined #asahi-dev
09:13jix_ has quit [Server closed connection]
09:13jix has joined #asahi-dev
09:15hdbngr has joined #asahi-dev
09:16ajj37 has quit [Server closed connection]
09:16ajj37 has joined #asahi-dev
09:20mattia013 has quit [Remote host closed the connection]
09:22_alice__ has quit [Server closed connection]
09:22mattia013 has joined #asahi-dev
09:22_alice__ has joined #asahi-dev
09:25austriancoder has quit [Server closed connection]
09:25austriancoder has joined #asahi-dev
09:27steev has quit [Server closed connection]
09:27steev has joined #asahi-dev
09:30hdbngr has quit [Ping timeout: 480 seconds]
09:37emptynine has quit [Server closed connection]
09:37emptynine has joined #asahi-dev
09:37hdbngr has joined #asahi-dev
09:40tpw_rules has quit [Server closed connection]
09:40tpw_rules has joined #asahi-dev
09:41pb17 has quit [Ping timeout: 480 seconds]
09:43jkkm has quit [Server closed connection]
09:44jkkm has joined #asahi-dev
09:46hdbngr has quit [Ping timeout: 480 seconds]
09:47jannau has quit [Server closed connection]
09:47jannau has joined #asahi-dev
09:54hdbngr has joined #asahi-dev
09:58sklug has quit [Server closed connection]
09:58sklug has joined #asahi-dev
09:59pb17 has joined #asahi-dev
10:01skmp has quit [Server closed connection]
10:01skmp has joined #asahi-dev
10:07cds has quit [Server closed connection]
10:07cds has joined #asahi-dev
10:09JTL has quit [Server closed connection]
10:09JTL has joined #asahi-dev
10:10hdbngr has quit [Ping timeout: 480 seconds]
10:19hdbngr has joined #asahi-dev
10:21eloy has quit [Server closed connection]
10:21eloy has joined #asahi-dev
10:25hailey has quit [Server closed connection]
10:25hailey has joined #asahi-dev
10:30hdbngr has quit [Ping timeout: 480 seconds]
10:34Nefsen402 has quit [Server closed connection]
10:34Nefsen402 has joined #asahi-dev
10:36Lightsword has quit [Server closed connection]
10:36Lightsword has joined #asahi-dev
10:39hdbngr has joined #asahi-dev
10:47hdbngr has quit [Ping timeout: 480 seconds]
10:49ckb has quit [Server closed connection]
10:49lockbox has quit [Server closed connection]
10:49ckb has joined #asahi-dev
10:49lockbox has joined #asahi-dev
10:51cy8aer has quit [Server closed connection]
10:51cy8aer has joined #asahi-dev
10:54esden has quit [Server closed connection]
10:54esden has joined #asahi-dev
10:54pldtf has quit [Server closed connection]
10:54pldtf has joined #asahi-dev
10:55leons has quit [Server closed connection]
10:55leons has joined #asahi-dev
10:55hdbngr has joined #asahi-dev
10:58sskras has quit [Server closed connection]
10:59sskras has joined #asahi-dev
11:00daniels has quit [Server closed connection]
11:00daniels has joined #asahi-dev
11:05robher has quit [Server closed connection]
11:05robher has joined #asahi-dev
11:06hdbngr has quit [Ping timeout: 480 seconds]
11:07josiedotlol has quit [Server closed connection]
11:07josiedotlol has joined #asahi-dev
11:16hdbngr has joined #asahi-dev
11:28pb17 has quit [Ping timeout: 480 seconds]
11:29fgcrl has quit [Server closed connection]
11:29fgcrl has joined #asahi-dev
11:31hdbngr has quit [Ping timeout: 480 seconds]
11:33nukelet has quit [Server closed connection]
11:33nukelet has joined #asahi-dev
11:40hdbngr has joined #asahi-dev
11:41argonaut has quit [Server closed connection]
11:43argonaut has joined #asahi-dev
11:45arnd has quit [Server closed connection]
11:45arnd has joined #asahi-dev
11:47snek has quit [Server closed connection]
11:47snek has joined #asahi-dev
11:52popey has quit [Server closed connection]
11:52popey has joined #asahi-dev
11:53hdbngr has quit [Ping timeout: 480 seconds]
11:56codingkoopa3218 has quit [Server closed connection]
11:56codingkoopa3218 has joined #asahi-dev
12:00hdbngr has joined #asahi-dev
12:01yukaplacing my print in the last line (or any line really) of __cpuhp_setup_state(), the print happens multiple times which is confusing
12:01yukabut then placing my print after the __cpuhp_setup_state() call in cpu_setup_state(), it never happens
12:07fl0_id:/ feels almost like once when i put a hvc in bsearch or sth like that and then ofc it was like everywhere lol
12:10fl0_idat least after enabling early_uart_base and putc I have some console output from the kernel, so at least it works in theory
12:12apalos- has quit [Server closed connection]
12:12apalos has joined #asahi-dev
12:13hdbngr has quit [Ping timeout: 480 seconds]
12:17yuyichao has quit [Server closed connection]
12:17yuyichao has joined #asahi-dev
12:17BlueMatt has quit [Server closed connection]
12:18BlueMatt has joined #asahi-dev
12:18steven has quit [Server closed connection]
12:18steven has joined #asahi-dev
12:20lonjil has quit [Server closed connection]
12:20lonjil has joined #asahi-dev
12:21pb17 has joined #asahi-dev
12:22hdbngr has joined #asahi-dev
12:23Chainsaw_ has quit [Server closed connection]
12:23Chainsaw_ has joined #asahi-dev
12:24Son_Goku has quit [Server closed connection]
12:24Son_Goku has joined #asahi-dev
12:25Manouchehri has quit [Server closed connection]
12:25Manouchehri has joined #asahi-dev
12:26Leo341B has quit [Server closed connection]
12:26Leo3418 has joined #asahi-dev
12:27annan_person has quit [Server closed connection]
12:27annan_person has joined #asahi-dev
12:31rosefromthedead has quit [Server closed connection]
12:31rosefromthedead has joined #asahi-dev
12:32hdbngr has quit [Ping timeout: 480 seconds]
12:32ella-0 has quit [Server closed connection]
12:32ella-0 has joined #asahi-dev
12:35akspecs has quit [Server closed connection]
12:35akspecs has joined #asahi-dev
12:36fl0_idnoopwafel not much, I have only suspicions. I added uart to my device tree, but that didn't seem to do anything. I rebased on asahi-wip, no observable change. somewhere along there I lost my symbols for whatever reason despite using the same config...
12:36sefidel has quit [Server closed connection]
12:37sefidel has joined #asahi-dev
12:37Mary has quit [Server closed connection]
12:38Mary has joined #asahi-dev
12:39hdbngr has joined #asahi-dev
12:40tbodt has quit [Server closed connection]
12:40tbodt has joined #asahi-dev
12:41yukahttps://cyberchaos.dev/yuka/linux/-/commit/864d804931e5d9864d9dea55312623bf29db9987#8d44d32e1d90e744a2166a88d974331d06c3fc15_0_22
12:41noopwafeloof, trying to log into macos with tracing on M3 takes so long that macos triggered sleep before I escaped loginwindow.
12:41kitlith has quit [Server closed connection]
12:42kitlith has joined #asahi-dev
12:44yukathe experience with working earlycon is much better. It's almost like I can actually see what's going on :)
12:44ellyqw has quit [Server closed connection]
12:45yukawell, I didn't make the effort to prepare a version with the needed drives & a standalone initramfs yet. Tried some random non-standalone initramfs which ran the /init and complained about not finding the rootfs
12:48noopwafelI want to ask what the backtrace is for __cpuhp_setup_state but I assume you are already looking at it :p
12:49ansg191 has quit [Server closed connection]
12:49ansg191 has joined #asahi-dev
12:50weirdtreething has quit [Server closed connection]
12:50weirdtreething has joined #asahi-dev
12:50noopwafelyou can build a little standalone initramfs with busybox pretty easily if this isn't obvious btw
12:52yukamatching the kernel modules shipped in the initrd on my distro of choice is also complicated by the distro's kernel config not producing an Image.gz
12:55cow123 has quit [Server closed connection]
12:56cow123 has joined #asahi-dev
12:59integralpilot has joined #asahi-dev
12:59integralpilotfor initramfs i am using alpine "mini root filesystem" (you need to make a /init script that just mounnts stuff and exec /bin/sh) and it's working pretty well
12:59tellowkrinkle_ has quit [Server closed connection]
13:00integralpilotusing this as initramfs because NVMe not working yet :D
13:00tellowkrinkle has joined #asahi-dev
13:01integralpilotbut yeah just works out of the box as a initramfs to pass to run_guest.sh, if you make the /init script and just chmod +x.
13:02integralpilotsetting a chicken bit SErrors, but if you remove the set, then the error the bit fixes occurs
13:04integralpilotAPPLE_ANS_UNKNOWN_CTRL
13:04integralpilotbut the thing is that from macOS tracing it literally writes to that exact address it seems and it works for macOS but not for us...
13:05lynndotpy7 has quit [Server closed connection]
13:05svennoopwafel: if the hv is working running trace_nvme.py with verbose=3 until the first command would be helpful
13:05hdbngr has quit [Ping timeout: 480 seconds]
13:05lynndotpy7 has joined #asahi-dev
13:06integralpilotsven: have traced t6030 but a t8122 would help as well (can't get it now cause busy)
13:06mazyuka: if you can dump this UNDEF exception with a full trace somewhere, it shouldn't take long to narrow it down.
13:06svenso it just write to that chicken bit on t6030 and it just wrote to that chicken bit there? huh
13:06integralpilotwhile it reads and writes from the bit to apply a mask, which we do too
13:07integralpilotinterestingly looking at my logs and testing now, our error occurs on the read but a write to the same address works perfectly fine
13:07integralpilotim thinking the writes are posted and not actually going through and there's an issue with the entire region, but errors only come on reads cause it tries
13:07integralpilot*cause it actually needs to wait for a response
13:08integralpiloti've been trying to look at that but seems its just the one we turn on, but might have missed something
13:10integralpilotyuka: use "mini root filesystem"
13:10integralpilotthe red one on the download page
13:10integralpilotyou need to scroll down
13:11integralpilotunpack it, add your /init and make it executable, then repack it
13:11integralpilotnoopwafel: yes
13:11integralpilotthough haven't tried it as a module, i just compile everything in
13:13jmax has joined #asahi-dev
13:13hdbngr has joined #asahi-dev
13:14integralpilot0x30dce4004 is the problem register
13:14integralpilotliterally from your trace macOS write and read from it FINE1
13:14integralpilotbut for us we get SError with FAR: 0x30dce4004
13:15integralpilotalso doesnt seem to be an issue with waiting for ANS to boot, from the log i found from linux boot i did, we do mulitple handshakes ans setup syslog and stuff with ANS all prior to the SError
13:17integralpilotnoopwafel: also change APPLE_ANS_UNKNOWN_CTRL to 0x24004 as the register was moved in M3 generation
13:17chaos_princessin the logs macos is not setting any bits, right? only the ones that it already read
13:17integralpilotyeah, it doesnt change it
13:18integralpilotseems to read and write 0x73a5 for me?
13:18integralpilotbut for us the read operation itself fails
13:19svenhave you checked if the rtkit sequence is the same? does it use the same target power state, etc?
13:19integralpilot has quit [Quit: integralpilot]
13:24hdbngr has quit [Ping timeout: 480 seconds]
13:24svenyou need the pmgr nodes in the device tree, ./proxyclient/tools/pmgr_adt2dt.py should generate them
13:25hdbngr has joined #asahi-dev
13:40hdbngr has quit [Ping timeout: 480 seconds]
13:41Alias[m]1 has joined #asahi-dev
13:41hdbngr has joined #asahi-dev
13:47yukaIt's still an AICv3, but we're running in the new "m1n1/Linux" mode where they lock down a lot of the Apple-specific implementation registers
13:50mazeither they now completely prevent accessing this (which can be sidetracked but will also kill KVM on this HW), or they have moved the functionnality somewhere else.
13:52hdbngr has quit [Ping timeout: 480 seconds]
13:56noopwafelhmm, apple_mbox_get returns -EPROBE_DEFER which means I don't get a nice error when I forgot the mbox in the dts, are there really cases where we might get a mbox node after initial boot?
13:59hdbngr has joined #asahi-dev
14:02dcavalca has quit [Server closed connection]
14:02dcavalca has joined #asahi-dev
14:04pb17 has quit [Ping timeout: 480 seconds]
14:08hdbngr has quit [Ping timeout: 480 seconds]
14:11svenkeep in mind that apple likes to lie in the ADT. so even though they claim aicv3 it may actually be aicv3.5 or aicv3 but soc-specific #ifdefs in the driver
14:12pb17 has joined #asahi-dev
14:12noopwafelsven: no I just screwed up the device tree, but the error message is suppressed because the apple mailbox driver returns -EPROBE_DEFER if there's no devicetree node
14:14hdbngr has joined #asahi-dev
14:18yukamaz: your analysis was correct. commenting out the is_kernel_in_hyp_mode() part of aic_init_cpu works
14:23hdbngr has quit [Ping timeout: 480 seconds]
14:23yukamaz: do we need to set SYS_IMP_APL_VM_TMR_FIQ_ENA_EL2 during run-time for kvm? or just initialize them with the correct values
14:24mazyuka: it's only used with KVM to context-switch the guest timers. nothing will break until then.
14:25noopwafelit does.. unfortunately it just works(tm) using the original APPLE_ANS2_UNKNOWN_CTRL field for me, I dont' think any of my changes are meaningful/relevant
14:26chaos_princesswhat does SYS_IMP_APL_VM_TMR_FIQ_ENA_EL2 do?
14:29noopwafelin backlog - this happened to me, but only because pmgr was powering off something it shouldn't
14:30noopwafelnow I guess I get to work out how to make a partition for linux alongside the xnu one :)
14:31hdbngr has joined #asahi-dev
14:31john-cabaj has joined #asahi-dev
14:32jannauthe is different from the nvme coproc crash I saw on m3, pmgr powering something down it shouldnt sounds plausible
14:33jannausven: I only see m1n1 rewriting the compatible based on the system fw version as mostly failsafe solution
14:36john-cabaj has quit []
14:36john-cabaj has joined #asahi-dev
14:36svenso i guess we need a trace of macos >15 booting and see if it does anything different with nvme
14:40hdbngr has quit [Ping timeout: 480 seconds]
14:47hdbngr has joined #asahi-dev
14:56hdbngr has quit [Ping timeout: 480 seconds]
15:00ellyq has joined #asahi-dev
15:00ellyq is now known as ellyqw
15:04hdbngr has joined #asahi-dev
15:19hdbngr has quit [Ping timeout: 480 seconds]
15:26hdbngr has joined #asahi-dev
15:27yukawhen the pmgr_adt2dt.py produces bad power-domain references, this means there were bad references in the adt?
15:35hdbngr has quit [Ping timeout: 480 seconds]
15:35hdbngr has joined #asahi-dev
15:49hdbngr has quit [Ping timeout: 480 seconds]
15:57hdbngr has joined #asahi-dev
16:03Mrmaxmeier1 has quit [Server closed connection]
16:03Mrmaxmeier1 has joined #asahi-dev
16:04Stary has quit [Server closed connection]
16:08Stary has joined #asahi-dev
16:13hdbngr has quit [Ping timeout: 480 seconds]
16:17agraf has quit [Server closed connection]
16:17agraf has joined #asahi-dev
16:22hdbngr has joined #asahi-dev
16:22mripard_ has joined #asahi-dev
16:24mripard has quit [Ping timeout: 480 seconds]
16:30hdbngr has quit [Ping timeout: 480 seconds]
16:31hdbngr has joined #asahi-dev
16:32user890104 has quit [Server closed connection]
16:33mripard_ has quit [Ping timeout: 480 seconds]
16:39hdbngr has quit [Ping timeout: 480 seconds]
16:42nebulabc has quit [Server closed connection]
16:42nebulabc has joined #asahi-dev
16:44ryzechdev has quit [Server closed connection]
16:44ryzechdev has joined #asahi-dev
16:48hdbngr has joined #asahi-dev
16:52goffrie[m] has quit [Server closed connection]
16:52goffrie[m] has joined #asahi-dev
16:56hdbngr has quit [Ping timeout: 480 seconds]
17:05hdbngr has joined #asahi-dev
17:07ncopa has quit [Server closed connection]
17:08ncopa has joined #asahi-dev
17:13hdbngr has quit [Ping timeout: 480 seconds]
17:21hdbngr has joined #asahi-dev
17:24alexaltea_ has quit [Server closed connection]
17:29alexaltea has joined #asahi-dev
17:32hdbngr has quit [Ping timeout: 480 seconds]
17:34pb17 has quit [Ping timeout: 480 seconds]
17:37hdbngr has joined #asahi-dev
17:38pb17 has joined #asahi-dev
17:41tumblingweed has quit [Server closed connection]
17:42tumblingweed has joined #asahi-dev
17:46ahdeb[mds] has quit [Server closed connection]
17:46ahdeb[mds] has joined #asahi-dev
17:46hdbngr has quit [Ping timeout: 480 seconds]
17:46Natalie[mds] has quit [Server closed connection]
17:47Natalie[mds] has joined #asahi-dev
17:47jacobm[mds] has quit [Server closed connection]
17:47jacobm[mds] has joined #asahi-dev
17:49blu0jay has quit [Ping timeout: 480 seconds]
17:52blu0jay has joined #asahi-dev
17:54hdbngr has joined #asahi-dev
18:11alxdrl has joined #asahi-dev
18:20Jayden has joined #asahi-dev
18:20blu0jay has quit [Read error: Connection reset by peer]
18:23fzwoch[m] has quit [Server closed connection]
18:23fzwoch[m] has joined #asahi-dev
18:27alxdrlquestion for you all : I'm looking for a recipe to boot the stock Fedora kernel image (PE format) using m1n1 proxyclient
18:27alxdrlI think I need to stitch m1n1+uboot+vmlinuz together (linux.py does something similar, but the u-boot use case is kind of obscure to me)
18:28alxdrlRequirement : using only pre-build components extracted from official software distribution channels (RPMs) if possible
18:30d3fus has quit [Server closed connection]
18:32jole has quit [Server closed connection]
18:32jole has joined #asahi-dev
18:45kraem has quit [Server closed connection]
18:45kraem has joined #asahi-dev
19:00ravikant_ has quit [Ping timeout: 480 seconds]
19:18crabbedhaloablut has quit []
19:20jannaualxdrl: the u-boot part in linux.py needs to be adjusted. a little bit tricky since there is not a lot of space after we switched to bootflow based booting
19:20crabbedhaloablut has joined #asahi-dev
19:21hdbngr has quit [Ping timeout: 480 seconds]
19:23yukamight have to add some compatible indicator in the device tree for this e.g. cpuidle-t8103 (which is also used in all the others which support this)?
19:27kloenk has quit [Server closed connection]
19:27kloenk has joined #asahi-dev
19:29jannaualxdrl: https://gist.github.com/jannau/43ce0026a7dd9ba89f2f2c14ff5b04c4 works for me but I dont have a lot space for bootargs. let's see how we can reserve space in u-boots environment
19:29hdbngr has joined #asahi-dev
19:36svenyuka: cpuidle can't be upstreamed anyway, does wfi retain full register state on your machine?
19:36linuxgemini has quit [Server closed connection]
19:37linuxgemini has joined #asahi-dev
19:38hdbngr has quit [Ping timeout: 480 seconds]
19:39hdbngr has joined #asahi-dev
19:39svenwhich is a problem because we can't implement psci on these machines because there's no EL3 or similar
19:39js6pak has quit [Server closed connection]
19:40js6pak has joined #asahi-dev
19:40minecrell has quit [Server closed connection]
19:40minecrell has joined #asahi-dev
19:41sveni'd still double check if wfi truly never loses state on these machines, that aidr_el1 is impdef iirc. i don't expect them to change it but who knows
19:42sventhough i guess if linux runs for a while and doesn't run into weird crashes that's proof enough that it keeps state :D
19:45svenwe only needed the special one because we wanted the deeper wfi state that drops register state
19:45svenI think when this came up the first time I looked at XNU and also didn't see it access SYS_APL_CYC_OVRD anymore
19:47hdbngr has quit [Ping timeout: 480 seconds]
19:48jannaumarcan did add this since it's necessary for entering the higher cpu frequency states and saves power
19:49alxdrljannau: thanks a lot, it gets me further https://gist.github.com/alxdrl/bc71349164e928111e1e711091cfcb93, will have a look tomorrow
19:50sven"proper" cpu sleep is much more cursed anyway. it would make the core lose ~all state and have it end up at RVBAR again when coming back up
19:50chaos_princess has quit [Server closed connection]
19:50chaos_princess has joined #asahi-dev
19:51svenbut that needs more investigation and some m1n1 code to stay around even linux is running and some PSCI-over-EFI or whatever to hook it all up
19:52hdbngr has joined #asahi-dev
19:52chaos_princesshttps://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/pexpert/pexpert/arm64/board_config.h#L269
19:54yukathat is similar to a lot of the things I discovered in xnu while trying to figure out why chickens were not working, and as sven just said there xnu no longer uses those registers on this platform and one might look at alternative code paths from there but that's more something for #asahi-re, no?
19:54chaos_princessoss xnu is fine
19:54chaos_princess-re is for disasm and similar
19:55chaos_princessyes, but that is why you don't copy xnu code.
19:56yukahttps://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/osfmk/arm64/machine_routines_asm.s#L1041
19:57chaos_princessyea, it seems to just do a wfi now
19:57svenwe're not disabling irqs there, we wrote to the register to turn wfi from "regular arm64 wfi" into "apple's wfi that now drops register state"
19:59yukaso then we also don't need cpuidle-apple there. shall I make a PR to hide it behind a new device tree compatible?
20:00hdbngr has quit [Ping timeout: 480 seconds]
20:01hdbngr has joined #asahi-dev
20:02yukaIf I knew that this is true for all M4(/Pro/...) cores, I would check based on that, but I only have the base M4
20:07lynndotpy7 has quit [Quit: bye bye]
20:08lynndotpy7 has joined #asahi-dev
20:08lynndotpy7 has quit []
20:09lynndotpy7 has joined #asahi-dev
20:11hdbngr has quit [Ping timeout: 480 seconds]
20:12Bjarne[m] has quit [Server closed connection]
20:12Bjarne[m] has joined #asahi-dev
20:15fl0_id__ has joined #asahi-dev
20:15JoshuaPeisach[mds](which area of code are you guys talking about, so as a newbie I can follow along?)
20:16hdbngr has joined #asahi-dev
20:16yukaJoshuaPeisach[mds] https://github.com/AsahiLinux/linux/blob/f1879b3d78dcf69a8ff9be3b504c1bd6d5fa2f47/drivers/cpuidle/cpuidle-apple.c
20:16JoshuaPeisach[mds]thanks
20:20yuka(lmk if you prefer these PRs to go against any other branch, though I suppose it doesn't matter much if you apply it directly)
20:21alxdrl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:23psykose has joined #asahi-dev
20:24svenwe're not using github's merge feature anymore, as long as the diff looks reasonable everything's good
20:24fl0_id__with the s5l,address argument I also get some earlycon output. it is trying to read from memory which it cannot.
20:25hdbngr has quit [Ping timeout: 480 seconds]
20:25ninelore has quit [Server closed connection]
20:25ninelore has joined #asahi-dev
20:34hdbngr has joined #asahi-dev
20:36fl0_id__yeah, maybe I have to extend the device tree. as my own ones weren't working either I used one by integralpilot to which I then added serial. it might need cpu0@<something> or an actual reg I think...
20:39chadmed_ has quit [Quit: Konversation terminated!]
20:40yukaand then you also want to make it an everest not sawtooth (not that it matters right now I think?) and have it use the larger l2 cache
20:40fl0_id__yeah that's waht I thought. In an earlier more complete device tree I had this for all, but cannot find it atm (it didn't work at the time for other reasons)
20:40xdbob has quit [Server closed connection]
20:40xdbob has joined #asahi-dev
20:41yukaif you declare all cpus in the device tree and then comment out the call to smp_start_secondaries() in linux.py, it also works nicely by pruning all cpus except the boot cpu
20:46jn has quit [Server closed connection]
20:46jn has joined #asahi-dev
20:52yuka has quit [Server closed connection]
20:53yuka has joined #asahi-dev
20:54Jayden has quit [Ping timeout: 480 seconds]
20:58blu0jay has joined #asahi-dev
21:05hdbngr has quit [Ping timeout: 480 seconds]
21:12hdbngr has joined #asahi-dev
21:12pb17 has quit [Ping timeout: 480 seconds]
21:16maaike has quit [Server closed connection]
21:16maaike has joined #asahi-dev
21:16fl0_id__yuka, without hv, it fails much earlier with a serial exception. https://www.pastery.net/ynxkxz/
21:17fl0_id__with hv and the right address/reg also added to the reg property, it continues a bit further https://www.pastery.net/urfxmv/ (and then seemingly hangs)
21:20hdbngr has quit [Ping timeout: 480 seconds]
21:21fl0_id__yes. it got an input/output error "read zero bytes" after, but not sure if that is from resetting myself or not
21:21hdbngr has joined #asahi-dev
21:25delroth has quit [Server closed connection]
21:25delroth has joined #asahi-dev
21:29pb17 has joined #asahi-dev
21:29fl0_id__yuka, I'm prob doing sth wrong with in regards to which serial port goes where...? the CS gets recognized, and should be on ACM2, but there's no output. I now only used /dev/m1n1 (ACM0) to chainload and load kernel, not the ACM1 port
21:32hdbngr has quit [Ping timeout: 480 seconds]
21:38fl0_id__I think so... though looking at them again, the control messages are wrong. but it was giving the correct one with the same cable
21:39yukahmm, if you want we can test your CS/cable/... vs mine some time. but you should definitely get output from m1n1 when you restart (Ctrl+_ '!' on the CS)
21:40hdbngr has joined #asahi-dev
21:40coroner21 has joined #asahi-dev
21:44oliver has quit [Server closed connection]
21:44oliver has joined #asahi-dev
21:44lion328 has quit [Server closed connection]
21:45lion328 has joined #asahi-dev
21:48vup has quit [Server closed connection]
21:49hdbngr has quit [Ping timeout: 480 seconds]
21:51alxdrl has joined #asahi-dev
21:53michaelrostom has joined #asahi-dev
21:54michaelrostom has quit []
21:54svenif someone is bored: there’s apparently a AppleKIS.kext in 12.3 and 12.3.1 and we know how to put the Mac’s into KIS/DebugUSB mode and could do that from m1n1
21:54michaelrostom has joined #asahi-dev
21:57michaelrostom has quit []
21:58hdbngr has joined #asahi-dev
22:04roxfan has quit [Server closed connection]
22:04roxfan has joined #asahi-dev
22:06fl0_id__thx for the feedback. I meant also like when to connect the CS. Like if I just leave it connected when restarting, it seems to sometimes be ACM0, and then m1n1 doesn't work to chainload etc
22:07hdbngr has quit [Ping timeout: 480 seconds]
22:15hdbngr has joined #asahi-dev
22:23alxdrl has quit [Quit: Textual IRC Client: www.textualapp.com]
22:24hdbngr has quit [Ping timeout: 480 seconds]
22:24jjbettcher has joined #asahi-dev
22:27hdbngr has joined #asahi-dev
22:28fl0_id__mmh the cs output seems to be connected now properly. but no m1n1 or linux output there. https://www.pastery.net/bydmnv/
22:29john-cabaj has quit [Ping timeout: 480 seconds]
22:33fl0_id__at least I have backtrace symbols back...forgot I messed around in proxyclient/m1n1/hv/__init__.py with symbol offset...
22:36hdbngr has quit [Ping timeout: 480 seconds]
22:40fl0_id__is there a trick to chainloading m1n1 before linux.py? it seems that is a problem if I just && it, but I need a newer m1n because I disabled cpufreq there. if I just use linux.py, it fails on cpufreq
22:43fl0_id__now I think I do.. just if I plugged in CS later, then it was usually ACM2, but when rebooting, it would be ACM0
22:45fl0_id__if I just && it seems to not reconnect or sth. or yeah, tbh it seems like unreliable evice names https://www.pastery.net/vynadt/
22:46hdbngr has joined #asahi-dev
22:47jjbettcher has quit [Quit: WeeChat 4.8.1]
23:01hdbngr has quit [Ping timeout: 480 seconds]
23:09hdbngr has joined #asahi-dev
23:18hdbngr has quit [Ping timeout: 480 seconds]
23:25fl0_id__ has quit [Ping timeout: 480 seconds]
23:25hdbngr has joined #asahi-dev
23:34hdbngr has quit [Ping timeout: 480 seconds]
23:44hdbngr has joined #asahi-dev
23:52blu0jay has quit [Ping timeout: 480 seconds]