#
…

2026-01-13

00:01nela has quit [Ping timeout: 480 seconds]
00:07hdbngr has quit [Ping timeout: 480 seconds]
00:10mixi has quit [Ping timeout: 480 seconds]
00:20mixi has joined #asahi-dev
00:22nela has joined #asahi-dev
00:30nela has quit [Ping timeout: 480 seconds]
00:31nela has joined #asahi-dev
00:39hdbngr has joined #asahi-dev
00:48hdbngr has quit [Ping timeout: 480 seconds]
00:57hdbngr has joined #asahi-dev
00:59cremfuelled has joined #asahi-dev
01:08hdbngr has quit [Ping timeout: 480 seconds]
01:10hdbngr has joined #asahi-dev
01:12amarioguy has quit [Remote host closed the connection]
01:16pb17 has quit [Ping timeout: 480 seconds]
01:17cremfuelled has quit [Quit: cremfuelled]
01:18hdbngr has quit [Ping timeout: 480 seconds]
01:27hdbngr has joined #asahi-dev
01:36hdbngr has quit [Ping timeout: 480 seconds]
01:38pb17 has joined #asahi-dev
01:54hdbngr has joined #asahi-dev
02:03hdbngr has quit [Ping timeout: 480 seconds]
02:10cremfuelled has joined #asahi-dev
02:16john-cabaj has joined #asahi-dev
02:30fl0_id__ has joined #asahi-dev
02:36hdbngr has joined #asahi-dev
02:36cremfuelled has quit [Quit: cremfuelled]
02:43fl0_id__ has quit [Ping timeout: 480 seconds]
02:43cremfuelled has joined #asahi-dev
02:44cremfuelled has quit []
02:45hdbngr has quit [Ping timeout: 480 seconds]
02:50pb17 has quit [Ping timeout: 480 seconds]
02:55pb17 has joined #asahi-dev
03:19hexdump01 has joined #asahi-dev
03:21hexdump0815 has quit [Ping timeout: 480 seconds]
03:32tobhe has joined #asahi-dev
03:39tobhe_ has quit [Ping timeout: 480 seconds]
04:23nora has joined #asahi-dev
04:25nora_ has quit [Ping timeout: 480 seconds]
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
04:36hdbngr has joined #asahi-dev
04:42midou has quit [Ping timeout: 480 seconds]
04:45hdbngr has quit [Ping timeout: 480 seconds]
05:12blu0jay has quit [Read error: Connection reset by peer]
05:12blu0jay has joined #asahi-dev
05:21midou has joined #asahi-dev
05:38hdbngr has joined #asahi-dev
05:47hdbngr has quit [Ping timeout: 480 seconds]
05:58ethantwardy has quit [Ping timeout: 480 seconds]
06:00hdbngr has joined #asahi-dev
06:02Graypup_ has quit [Ping timeout: 480 seconds]
06:08vup has quit []
06:08hdbngr has quit [Ping timeout: 480 seconds]
06:16svenpeter[m]we should either add that to run_guest.py or virtualize that dockchannel serial I think
06:18integralpilot has joined #asahi-dev
06:18integralpilotfl0_id: yes, i mean the kernel, not m1n1
06:20pb17 has quit [Ping timeout: 480 seconds]
06:27integralpilotensure CONFIG_APPLE_AIC=y (not unset, m, or n) and drivers/irqchip/irq-apple-aic.c has apple,aic3 compatible
06:28integralpilot has quit [Quit: integralpilot]
06:37hdbngr has joined #asahi-dev
06:48pb17 has joined #asahi-dev
06:52hdbngr has quit [Ping timeout: 480 seconds]
06:58ethantwardy has joined #asahi-dev
07:01midou has quit [Remote host closed the connection]
07:03midou has joined #asahi-dev
07:18T4ForFun has joined #asahi-dev
07:37john-cabaj has quit [Ping timeout: 480 seconds]
07:38hdbngr has joined #asahi-dev
07:47hdbngr has quit [Ping timeout: 480 seconds]
08:00opticron has quit [Read error: Connection reset by peer]
08:00opticron has joined #asahi-dev
08:03hdbngr has joined #asahi-dev
08:14hdbngr has quit [Ping timeout: 480 seconds]
08:21hdbngr has joined #asahi-dev
08:27vup has joined #asahi-dev
08:30hdbngr has quit [Ping timeout: 480 seconds]
08:41svenlooks like the full dockchannel serial implementation is in pexpert/arm/pe_serial.c in open source xnu
08:42svenand it looks fairly simple (which now that i think about it make perfect sense for what's essentially a UART)
08:42svenshould be easy to virtualize that
08:45hdbngr has joined #asahi-dev
08:46svenI also wonder where the other end of that dock channel UART is
08:46nickchancan it be supported in linux
08:46svenmaybe in that strange USB debug thing?
08:47svensure, it’s looks like just another serial driver
08:47nickchanthat one is *the* way to do SWD now
08:47nickchan05ac:1881
08:47svenjust needs someone to implement it
08:47svenyeah, that’s why I suspect the dockchannel UART is somewhere in there as well
08:48nickchansome cables can get xnu's serial=3 output from t2, but writes to s5l uart still goes nowhere
08:48nickchanso i suspect that is dockchannel as well
08:48nickchanwell, goes to nowhere other than test points
08:49svenguess that’s another yak to shave: figure out if that new UART ends up in that usb debug thingy and then maybe also write a simple Linux driver
08:49chadmedwait so did they replace the smasnug uart with a dockchannel?
08:50nickchansuch usage is first seen on Apple TV 4K i think
08:50svenThat’s where XNU’s output now ends up unless you mess with the ADT on newer macOS versions
08:50chadmedslightly annoying but surprised it didnt happen sooner
08:50nickchanthen it's seen on T2 and eventually on other devices as well
08:52nickchanDebug USB/KIS/taDFU is used for restores on newer iphone models
08:52nickchanso idevicerestore may have code for it
08:54svengood point
08:54sventhough I think either doing the ADT patching in run_guest or just adding virt_dockchannel.py to the HV is probably more important and easier
08:56nickchanthe new iphones comes up as USB FS device in "Port DFU" mode then a signed firmware needs to be uploaded then the device will come up as USB HS device in "Debug USB" mode
08:57nickchanbut if debug usb is activated using vdm when the kernel is running already there should be no such firmware upload requirement
08:59nickchanat least i would imagine the usbc firmware is running by then
09:04T4ForFun has quit [Ping timeout: 480 seconds]
09:15T4ForFun has joined #asahi-dev
09:26ravikant_ has joined #asahi-dev
09:30ravikant__ has joined #asahi-dev
09:35mattia013_ has joined #asahi-dev
09:35mattia013 has quit [Read error: Connection reset by peer]
09:35mattia013_ is now known as mattia013
09:57e376 has joined #asahi-dev
10:06svenself.adt["defaults"].serial_device = getattr(self.adt["/arm-io/uart0"], "AAPL,phandle") in setup_adt() in proxyclient/m1n1/hv/__init__.py might be enough to get xnu serial output back
10:12pb17 has quit [Ping timeout: 480 seconds]
10:15T4ForFun has quit [Ping timeout: 480 seconds]
10:16T4ForFun has joined #asahi-dev
10:31T4ForFun1 has joined #asahi-dev
10:31T4ForFun has quit [Quit: T4ForFun]
10:31T4ForFun1 is now known as T4ForFun
10:33pb17 has joined #asahi-dev
10:44___nick___ has joined #asahi-dev
10:55Yushi has quit [Remote host closed the connection]
10:56yapz337Oh i can see logs even on 26.2 now tysm
10:57Yushi has joined #asahi-dev
11:00hdbngr has quit [Ping timeout: 480 seconds]
11:01svenfrom boot to first admin command, includes sart and asc as well
11:02svenyapz337: good to hear, this was completely untested :D will open the m1n1 PR with that change later
11:10mattia013 has quit [Remote host closed the connection]
11:14hdbngr has joined #asahi-dev
11:36fl0_id_ has joined #asahi-dev
11:36hdbngr has quit [Ping timeout: 480 seconds]
11:37fl0_id_Mmmh ok. Sven but that is for macOS only right? Or should it work / is necessary for using cs with linux as well?
11:37svenno, that's macos only
11:38svenlinux still uses the uart that works with both hv and cs
11:38fl0_id_ has quit [Remote host closed the connection]
11:40T4ForFun has quit [Remote host closed the connection]
11:45hdbngr has joined #asahi-dev
12:06fl0_id_ has joined #asahi-dev
12:07fl0_id_ has quit [Remote host closed the connection]
12:14pb17 has quit [Ping timeout: 480 seconds]
12:55hdbngr has quit [Ping timeout: 480 seconds]
12:55pb17 has joined #asahi-dev
13:00yapz337Ok for 26.2 i had to add ATC1_USB and ATC1_USB_AON to make the kernel happy, i go to "attempting to load /sbin/launchd"
13:01yapz337Had to add them to pmgr dev hooks*
13:01svenon m1/m2? would be good to submit a PR to fix it either way :)
13:01yapz337I'll do, but i still have no output on my hdmi :[
13:02svenstill sounds like progress :)
13:03yapz337Sure does :D
13:03LarstiQfwiw there (used to be?) some issues with HDMI that it might not work if it's plugged in at boot, or after resuming, or only then, so worth it to experiment a bit with when you have it attached
13:03yapz337Dunno why i had to do that tho, just seen that the kernel complained and made it happy
13:04yapz337I should plug it after chainloading ?
13:04hdbngr has joined #asahi-dev
13:04svenis hdmi not working on macos or on linux?
13:05yapz337Macos 26.2
13:05yapz33715.0 also, i had the same kernel crash iirc, didnt retry yet
13:05svenright, that's something else then and likely not related to when the monitor was plugged in
13:07yapz337I suspect DCP, as i can't boot it properly
13:08yapz337When i use dcp and send the wakeup asc msg, i never get a reply
13:08svenhuh, does it work when you boot macOS as intended?
13:08fl0_id__ has joined #asahi-dev
13:09yapz337But when i use dcpext by just replacing it in display_config_m1, i do get the hello
13:09yapz337It does, i can even boot my debug kc without any problem
13:09svenweird
13:10yapz337I think i should see macos rn, i have libignition that got a hella from launchd in my logs :D
13:10svenhave you tried disabling all dcp code in m1n1? Iirc it talks to the iboot endpoint
13:10yapz337That was my next move :P
13:11jannaupossible dcp firmware changes and iboot endpoint or more likely rtkit suspend preventing macos form using it
13:11svenNice, go on then and ignore my suggestions :D
13:11jannaualthough I would expect a macos panic then
13:12svenmaybe they don’t have an error path for “coproc never comes up” and the thread just waits forever
13:12yapz337Cuz when i try to boot macos 13.5 (with asahi disk) it panics cuz obv i didnt install macos 13.5 but i can see the progress bar anyway
13:12jannauconfig.h has a commented `#define NO_DISPLAY` to disabling the display code
13:12jannaucauses issues on m2* devices
13:12hdbngr has quit [Ping timeout: 480 seconds]
13:12yapz337Oh, handy, i'm gonna try it
13:13yapz337I can't chainload it tho right, gotta re configure boot ?
13:15fl0_id__integralpilot yes it has the aic3 compatible and other aic3 code. I just used asahi branch. should I try asahi-wip?
13:15fl0_id__still not sure why cs doesn't get any output
13:15svenyapz337: yes
13:20hdbngr has joined #asahi-dev
13:22___nick___ has quit [Ping timeout: 480 seconds]
13:24yapz337Hmmm okay still no output, but i got DCP in logs now, much better !
13:25yapz337My screen does detect hdmi plug/unplug now, it wakes up so there's that
13:26svenweird
13:28yapz337When i plug/unplug hdmi it spits out a lot of logs, it seems to work hm...
13:28yapz337I'm gonna try to disable framebuffer as well
13:29hdbngr has quit [Ping timeout: 480 seconds]
13:38hdbngr has joined #asahi-dev
13:50yapz337Doesn't help i'm cooked
13:51svenat this point nothing in m1n1 should touch dcp i think :/
13:54Calandracas_ has joined #asahi-dev
13:55fl0_id__ has quit [Remote host closed the connection]
13:55fl0_id__ has joined #asahi-dev
13:57yapz337Is there a really minimal config/build that i can use ?
13:57yapz337To remove as much as i can
13:58svenBRINGUP
13:58svenbut that also removes usb
13:58Calandracas has quit [Ping timeout: 480 seconds]
13:58svenand I’m not sure if it removes anything the hv needs
13:59svenhave you tried chainloading xnu? I think that used to work as well and would rule out issues with the hv
14:03yapz337Chainloading xnu works like a charm :D
14:04yapz337Guess i'll need to check the logs with a chainloaded xnu
14:10cremfuelled has joined #asahi-dev
14:11___nick___ has joined #asahi-dev
14:11___nick___ has quit []
14:13___nick___ has joined #asahi-dev
14:21pb17 has quit [Ping timeout: 480 seconds]
14:24svenweird :D
14:28fl0_id__ has quit [Quit: Leaving]
14:30hdbngr has quit [Ping timeout: 480 seconds]
14:39hdbngr has joined #asahi-dev
14:45mattia013 has joined #asahi-dev
14:45Shizsven: curious, the use-legacy-uart=1 was not needed for our 14.8.x debugging
14:45Shiz... I think
14:47svenI’m not sure when that was added, all i know is that even m1 already has a dockchannel UART node
14:47Shizah, now i can't remember what our debug setup was :D
14:47Shizand if we used asahi or macos as the host
14:47Shizmoar bringup later today so I guess we'll see
14:47Shizwanna see if fixing the power gating things makes things any better
14:47hdbngr has quit [Ping timeout: 480 seconds]
14:48svenit may be that m4+ or whatever used the dockchannel UART as default with an earlier macOS release already
14:54cremfuelled has quit [Quit: cremfuelled]
14:54hdbngr has joined #asahi-dev
15:07john-cabaj has joined #asahi-dev
15:11pb17 has joined #asahi-dev
15:31hdbngr has quit [Ping timeout: 480 seconds]
15:38hdbngr has joined #asahi-dev
15:47hdbngr has quit [Ping timeout: 480 seconds]
15:53hdbngr has joined #asahi-dev
16:12___nick___ has quit [Read error: Connection reset by peer]
16:19cremfuelled has joined #asahi-dev
16:20yapz337Ok i got it to boot under hv, i'm just dumb...
16:20cremfuelled has quit []
16:20svenwhat was the issue?
16:20yapz337I was hooking el1 exceptions it was just timing out somehow
16:20cremfuelled has joined #asahi-dev
16:21hdbngr has quit [Ping timeout: 480 seconds]
16:22yapz337Letting it run freely makes everything work somehow, might be a race or smth
16:22yapz337Nice for the PR, you rock
16:26hdbngr has joined #asahi-dev
16:26yapz337To avoid panic in 26.2 i had to add "ATC1_USB" and "ATC1_USB_AON" in hook_devs (map_essential - proxyclient/m1n1/hv/__init__.py), im not sure if it's tied to my setup or an acceptable general fix :P
16:27yapz337(im on my phone cant generate a diff or open a pr rn)
16:27yapz337If someone else could try to confirm
16:27svendo you still have the panic serial output somewhere?
16:32ravikant_ has quit []
16:32ravikant__ has quit []
16:40kloenk has quit [Remote host closed the connection]
16:42kloenk has joined #asahi-dev
16:47yapz337This is from my clipboard i didnt save the whole panic
16:50pb17 has quit [Ping timeout: 480 seconds]
16:56svenand that's even without hooking el1 exceptions?
17:10yapz337iirc i didn't and then i did to catch that
17:15hdbngr has quit [Ping timeout: 480 seconds]
17:16sventhat's weird. it looks like it wants to power on ATC1 but that doesn't happen within its timeout
17:21cremfuelled has quit [Quit: cremfuelled]
17:23hdbngr has joined #asahi-dev
17:32hdbngr has quit [Ping timeout: 480 seconds]
17:42pb17 has joined #asahi-dev
17:42hdbngr has joined #asahi-dev
17:50hdbngr has quit [Ping timeout: 480 seconds]
17:53yapz337Yeah that's why i just added it to the hooks dunno if it was a race or another issue tho
17:58hdbngr has joined #asahi-dev
18:07hdbngr has quit [Ping timeout: 480 seconds]
18:16hdbngr has joined #asahi-dev
18:24hdbngr has quit [Ping timeout: 480 seconds]
18:32hdbngr has joined #asahi-dev
18:41hdbngr has quit [Ping timeout: 480 seconds]
18:48cremfuelled has joined #asahi-dev
18:49cremfuelled has quit []
18:49hdbngr has joined #asahi-dev
19:11svenwould be great if people with various M1/M2 devices could paste their /device-tree/arm-io/acio-cpu0 node + subnodes somewhere
19:11sven(from the ADT)
19:16opticronspecifically M1/M2 or any variants of those?
19:17svenall variants ideally :D
19:18jannauonly acio-cpu0 with the expectation that acio-cpuX with X > 0 match?
19:18svenhm, good point. maybe all of them ideally to be sure
19:19hdbngr has quit [Quit: Lost terminal]
19:20hdbngr has joined #asahi-dev
19:22opticronhmmm...is there an easy to get that from within linux?
19:22opticronI'm only seeing the standard FDT
19:22amarioguy has joined #asahi-dev
19:23opticronI'll have to boot into macos later
19:23Glanzmannopticron: I tried apt install -y device-tree-compiler; dtc -I fs -O dts -o running.dts /proc/device-tree; but can't find the trees requested by sven.
19:24opticronit's because it's the ADT, not the FDT
19:24svenit's about apple device trees
19:24svenbut no need to set that all up, there are usually enough people in here who can grab them from m1n1 and extract the nodes :)
19:24michaelrostom has joined #asahi-dev
19:25michaelrostom has quit []
19:25michaelrostom has joined #asahi-dev
19:26pb17 has quit [Ping timeout: 480 seconds]
19:34sventhanks!
19:37svengreat, thanks! that should be all i need
19:41jannaubah, my simple syn based AGX versions macro rewrite breaks down when it comes in contact with other macros
19:44svenall machines seems to have 0x10000000 as iova base for the sram, just gonna hardcode that instead of adding another apple, device tree property for now i think
19:45e376 has quit [Remote host closed the connection]
19:50jannauis it important? We still have to find a upstream solution for "apple,dma-range"
19:52alxdrl has joined #asahi-dev
19:55svennot really
19:56svenjust to verify that the buffer the co-proc requests aren't outside of its sram region
19:56svenwhat does apple,dma-range do again?
19:57Shizsven: can't you just grba that from the templates? :p
19:57sveni'm writing device tree bindings here and wanted to figure out if this thing has to be variable
19:59svenand we usually need a good justification for any property like apple,sram-iova-base so i'd rather just hardcode it in the driver for now when it's the same everywhere anyway
20:05jannaulimits the iova space and allows using "tags" (or whatever macos uses those for) in high bits
20:06svenand i guess we need that because some devices can't use the full iova range? i guess some co-processors that do weird things in the firmware?
20:08alxdrl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:08alxdrl has joined #asahi-dev
20:10jannaunot sure if we actually need that or are just cargo-culting what macos / the adt does
20:12svenmaybe it's time to drop it everywhere and see what breaks :D
20:15freetolga has joined #asahi-dev
20:25chadmed has quit [Quit: Konversation terminated!]
20:28jodaco_ has quit []
20:40michaelrostom has quit [Ping timeout: 480 seconds]
20:43pb17 has joined #asahi-dev
20:49hdbngr has quit [Ping timeout: 480 seconds]
20:54amarioguy has quit [Remote host closed the connection]
20:57hdbngr has joined #asahi-dev
21:13hdbngr has quit [Ping timeout: 480 seconds]
21:18michaelrostom has joined #asahi-dev
21:20hdbngr has joined #asahi-dev
21:21ipatch_ has quit [Quit: WeeChat 4.8.1]
21:23ipatch has joined #asahi-dev
21:29hdbngr has quit [Ping timeout: 480 seconds]
21:37hdbngr has joined #asahi-dev
21:38ipatch has quit [Quit: WeeChat 4.8.1]
21:38ipatch has joined #asahi-dev
21:46ipatch has quit [Quit: WeeChat 4.8.1]
21:46ipatch has joined #asahi-dev
21:46hdbngr has quit [Ping timeout: 480 seconds]
21:53hdbngr has joined #asahi-dev
21:54michaelrostom has quit [Quit: Konversation terminated!]
22:02hdbngr has quit [Ping timeout: 480 seconds]
22:05amarioguy has joined #asahi-dev
22:08ipatch has quit [Quit: WeeChat 4.8.1]
22:08ipatch has joined #asahi-dev
22:11hdbngr has joined #asahi-dev
22:20hdbngr has quit [Ping timeout: 480 seconds]
22:28hdbngr has joined #asahi-dev
22:34alxdrl has quit [Quit: Textual IRC Client: www.textualapp.com]
22:44hdbngr has quit [Ping timeout: 480 seconds]
22:46hdbngr has joined #asahi-dev
22:58ipatch has quit [Quit: WeeChat 4.8.1]
23:01ipatch has joined #asahi-dev
23:09michaelrostom has joined #asahi-dev
23:12hdbngr has quit [Ping timeout: 480 seconds]
23:22hdbngr has joined #asahi-dev
23:27fl0_id__ has joined #asahi-dev
23:31hdbngr has quit [Ping timeout: 480 seconds]
23:37john-cabaj has quit [Read error: Connection reset by peer]
23:37john-cabaj has joined #asahi-dev
23:38pb17 has quit [Ping timeout: 480 seconds]
23:40hdbngr has joined #asahi-dev
23:43crabbedhaloablut has quit []
23:44crabbedhaloablut has joined #asahi-dev
23:44fl0_id__ has quit [Ping timeout: 480 seconds]
23:45john-cabaj has quit [Ping timeout: 480 seconds]
23:46pb17 has joined #asahi-dev
…