#asahi-dev · 2026-07-03 22:22
yukajannau: when I last tried this, the entire code for enter_kis didn't exist, and I came up with my own#asahi-dev · 2026-07-03 22:05
jannauyuka: I'm not sure I follow. how did my i2c cd321x change fixed anything for spmi usb-c controllers?#asahi-dev · 2026-07-03 22:03
jannauand on the neo until we find out how to bypass the usb hub for usb device#asahi-dev · 2026-07-03 22:01
svenonce the hv works you just get a regular usb serial (cdc acm) device for the guest #asahi-dev · 2026-07-03 22:01
svenbut you also really only need it for early bringup #asahi-dev · 2026-07-03 22:00
svendebugusb works with a normal pc as a host #asahi-dev · 2026-07-03 22:00
enverbalalicthere is no way to make a regular PC be able to use debugusb, right ? Requires special stuff from mac usb controllers ?#asahi-dev · 2026-07-03 21:41
StanfordAppliedCyber[m]so i can upstream the HV properly#asahi-dev · 2026-07-03 21:41
StanfordAppliedCyber[m]my debugusb doesn't appear to work at all unfortunately, but once i get to the desktop priority #1 will be getting that to work#asahi-dev · 2026-07-03 21:41
StanfordAppliedCyber[m]awesome#asahi-dev · 2026-07-03 21:40
yukahttps://github.com/AsahiLinux/m1n1/pull/594#issuecomment-4879423855#asahi-dev · 2026-07-03 21:40
yukaStanfordAppliedCyber: this might be interesting for you too, the Neo can now self-enter debugusb and as such you don't need a second mac#asahi-dev · 2026-07-03 21:27
yukaWhatever jannau did for the i2c version of "tps6598x: Add compile time config to enable debugusb", it also fixes it for spmi#asahi-dev · 2026-07-03 20:43
StanfordAppliedCyber[m]sven: agreed, people using llms poorly is very annoying#asahi-dev · 2026-07-03 20:39
StanfordAppliedCyber[m]<teaman[m]> "i'm also an M4 user here, if i..." <- send me a dm, i have a large static re task if you're fine with tainting yourself#asahi-dev · 2026-07-03 19:51
yukanow I got "Unable to handle kernel write to read-only memory at virtual address" for the first time on the Neo :(#asahi-dev · 2026-07-03 19:51
yukaOh wow#asahi-dev · 2026-07-03 19:27
yukaso for now no pmgr#asahi-dev · 2026-07-03 19:27
yukaI will have to confirm this on 26.5.1 on monday when I'm back home and have physical access to the machine#asahi-dev · 2026-07-03 18:49
yukaI commented out arch_counter_enforce_ordering and disabled the "Enhanced Counter Virtualization" feature, to simplify the code even further#asahi-dev · 2026-07-03 18:48
yukahttps://x0.at/t32Y.txt#asahi-dev · 2026-07-03 18:47
yukathe pc is at "mrs x0, cntpct_el0" but m1n1 can read CNTPCT_EL0 just fine#asahi-dev · 2026-07-03 18:42
svenyeah#asahi-dev · 2026-07-03 18:42
sven*duh#asahi-dev · 2026-07-03 18:42
svenoh, du#asahi-dev · 2026-07-03 18:42
chaos_princessthe problem is that frequency is an int#asahi-dev · 2026-07-03 18:41
chaos_princessno? the fix is easy, just slap UL on all constants#asahi-dev · 2026-07-03 18:41
svensure, just don't see it as a priority and it might be a bit more than a simple fix though since that opp api seems to take a pointer to a long#asahi-dev · 2026-07-03 18:40
chaos_princessshould be fixed tbh, just not something that matters for current socs#asahi-dev · 2026-07-03 18:40
svenright, but whoever implements that is obviously going to notice at that point *shrug*#asahi-dev · 2026-07-03 18:39
mischa85sven: yes i realise. but it's something that's going to bite someone sooner or later#asahi-dev · 2026-07-03 18:38
svenmischa85: nothing before m4 can even boost that high iirc and that highest p-state on m4 might even need cluster sleep support#asahi-dev · 2026-07-03 18:34
yukaarch_counter_get_cntpct seems to be quite simple#asahi-dev · 2026-07-03 18:33
yukaI think this might be caused by iBoot updates/changes, but not 100% sure#asahi-dev · 2026-07-03 18:28
yukabut now I crash at arch_counter_get_cntpct+0xc/0x28#asahi-dev · 2026-07-03 18:28
mischa85https://github.com/torvalds/linux/blob/master/drivers/cpufreq/apple-soc-cpufreq.c#L291#asahi-dev · 2026-07-03 18:28
yukaI'm quite sure I had pmgr on t8140 working before#asahi-dev · 2026-07-03 18:28
mischa85this expression looks like it's being evaluated in 32-bits. so trouble when a soc tries to boost higher than ~4.2 GHz#asahi-dev · 2026-07-03 16:19
svenack, also don't see a reason why this has to be built-in#asahi-dev · 2026-07-03 16:18
chaos_princessseems fine#asahi-dev · 2026-07-03 16:16
chaos_princessi don't see one actually, let me try building it as module and see what breaks#asahi-dev · 2026-07-03 16:15
svenchaos_princess: now that i looked at it again, is there a reason that pmgr-misc thing can only be built-in and not a module?#asahi-dev · 2026-07-03 16:11
svennow let's see how i broke this psci-via-efi thing while cleaning it up :/#asahi-dev · 2026-07-03 16:10
svenhttps://github.com/AsahiLinux/m1n1/pull/613 not sure if that makes sense but this reliably fixed those weird secondary core bringup crashes for me#asahi-dev · 2026-07-03 15:24
svenhuh, interesting :D#asahi-dev · 2026-07-03 15:23
jannauworks in the sense that usb3 still works#asahi-dev · 2026-07-03 15:23
jannauwhat apperently works is replacing atc with the 6.17 downstream atc driver#asahi-dev · 2026-07-03 15:22
jannaubisect between two independent branches doesn't work very well