#asahi-dev · 2026-05-28 20:39
chaos_princessdon't bother with ultra for now, i think this one is sptm-ed#asahi-dev · 2026-05-28 20:39
yukaAlso is the apcie1 on j575d used for anything? it doesn't have any bridges#asahi-dev · 2026-05-28 20:39
yukaM3 Ultra Mac Studio#asahi-dev · 2026-05-28 20:38
fl0_dyuka, which one is j575d?#asahi-dev · 2026-05-28 20:38
yukaI don't know how to wire this up properly with the multi die stuff#asahi-dev · 2026-05-28 20:37
yukabut then it only has the dart-apcie* on die0#asahi-dev · 2026-05-28 20:37
yukaI assume this means it has an apcie on both dies?#asahi-dev · 2026-05-28 20:37
yukaj575d has apcie0@580000000 and apcie1@2580000000#asahi-dev · 2026-05-28 20:36
yukaThe regs of apcie{,0} seem to be similar / the same for all of t603{0,1,2,4}. t6030 has an apcie,t6030 compatible and one less per-port reg (which we don't use, but having it means we interpret the last reg as intr2axi in m1n1)#asahi-dev · 2026-05-28 20:35
chaos_princesswhat was the missing parts?#asahi-dev · 2026-05-28 20:34
chaos_princessshould be the same as t602x?#asahi-dev · 2026-05-28 20:34
yukavery unsure how to structure the pcie nodes in the linux dt#asahi-dev · 2026-05-28 20:33
yukaT6034#asahi-dev · 2026-05-28 20:33
yukasorry#asahi-dev · 2026-05-28 20:33
yukaOn T6040#asahi-dev · 2026-05-28 20:33
yukaI see a wifi device in linux lspci :-)#asahi-dev · 2026-05-28 17:57
yuka"pcie: PHY clock enable timed out"#asahi-dev · 2026-05-28 17:56
yukasure, but the code implies causality here#asahi-dev · 2026-05-28 17:55
chaos_princessthere are situations where you can reorder stuff and it still works#asahi-dev · 2026-05-28 17:51
yukaOn t6031 pcie, the polling of state->phy_base[0] + 0x8 happens _before_ APCIE_PHYCMN_CLK is set (unless the order got messed up in tracing?)#asahi-dev · 2026-05-28 17:19
yukamore like it clears PMGR_WAS_CLKGATED and PMGR_WAS_PWRGATED#asahi-dev · 2026-05-28 17:18
yukaSo I'm not sure PMGR_AUTO_ENABLE is involved?#asahi-dev · 2026-05-28 17:18
yukalater, it reads it back again and it has value 0x1f0003ff#asahi-dev · 2026-05-28 17:17
yukaRe pmgr, mac os reads APCIE_SYS_GP as 0x1000030f, writes it back as 0x1000000f#asahi-dev · 2026-05-28 15:46
sklugjannau: Thanks for the hint. I did wrong on the -b parameter. Here is the paste: https://paste.debian.net/hidden/ec36f1ca#asahi-dev · 2026-05-28 15:23
yuka(used your switch_boot_cpu branch to get it)#asahi-dev · 2026-05-28 15:20
yuka0x48 is the other one#asahi-dev · 2026-05-28 15:17
yukadon't know from the top of my head how to get it in m1n1#asahi-dev · 2026-05-28 15:16
yukaI strongly suspect the E-Core part number is also the same as on T6031#asahi-dev · 2026-05-28 15:16
yukajannau: indeed, my boot core says CPU part: 0x49 M3 Max Everest#asahi-dev · 2026-05-28 15:14
jannausklug: do you have journald? `journalctl -k -o short-monotonic --no-hostname -b-${N} -g dcp` probably will recover the failed log with the correct value of N. drop the "-o short-monotonic" to find the right boot by timestamp#asahi-dev · 2026-05-28 15:13
chaos_princessin case of m1n1 pcie init - it calls pmgr_adt_enable, and that errors out on them as it wants them to reach state f, which they aren't doing. i just commented out the error return in my local branch#asahi-dev · 2026-05-28 15:12
jannauyes, I decided to ignore them to preserve the on-boot state but after clearing the AUTO_ENABLE bit they turn on as expected#asahi-dev · 2026-05-28 15:10
jannauyuka: do you have MIDR part numbers for t6034? I suspect those are the same as t6031/t6032#asahi-dev · 2026-05-28 15:09
jannaufor the linux devicetree I intend to use t6031 for {t6031, t6032, t6034}#asahi-dev · 2026-05-28 15:08
chaos_princessbasically every apcie_sys_* is like that#asahi-dev · 2026-05-28 15:07
chaos_princessapcie_sys_st is one of them#asahi-dev · 2026-05-28 15:07
chaos_princessyea, those weird things#asahi-dev · 2026-05-28 15:06
jannauthe linux driver clears APPLE_PMGR_AUTO_ENABLE#asahi-dev · 2026-05-28 15:06
jannauchaos_princess: failing pmgr init in m1n1? I did https://github.com/AsahiLinux/u-boot/commit/3b233f59d0b6b57eae5add46a6fa7787ea11388e in u-boot for apcie_st/gp power states#asahi-dev · 2026-05-28 15:05
chaos_princessor set it to pd_ignore_unused#asahi-dev · 2026-05-28 15:05
chaos_princessthere are now like 4 "root" pmgrs for some reason that it wants up#asahi-dev · 2026-05-28 15:05
chaos_princessoh, and you want to add multi-pmgr support to dart and pcie drivers, just use the helper and it works.#asahi-dev · 2026-05-28 15:04
sklugchaos_princess: A paste of dmesg grepped for dcp: https://paste.debian.net/hidden/92869b8b That was a partly sucessful run. The dmesg of the failed run is unfortunately lost.#asahi-dev · 2026-05-28 15:04
chaos_princessalso remove erroring out on failing to init pmgr, there are some weird pmgrs that remain stuck in state 3 instead of going to f#asahi-dev · 2026-05-28 15:03
chaos_princessnot the latest of what i have, 692 should use the same as t8122, m1n1 init succeeds, but linux complains that it can't get link up#asahi-dev · 2026-05-28 15:03
yukaOh, cool#asahi-dev · 2026-05-28 15:02
chaos_princesshttps://github.com/WhatAmISupposedToPutHere/m1n1/commit/9599abddf33243d87c5cf9a43509f8e1da87d518#asahi-dev · 2026-05-28 15:02
yukaI added --cpus 4#asahi-dev · 2026-05-28 15:01
chaos_princessso i only got the early parts of init, and yolo-d the rest.