#asahi-dev · 2023-05-05 03:33
eilnmarcan: on some runs it was b0f, is that different? seems to work after shutting it down though#asahi-dev · 2023-05-05 03:31
marcaneiln: 10f means the intended mode is f but the actual mode is 0, which usually happens when a parent power domain is not turned on or something else is causing the domain to be down for some other reason#asahi-dev · 2023-05-04 22:43
eilnjannau: woohoo! the first run is expected since it's not pwrgated yet#asahi-dev · 2023-05-04 22:41
jannau0x228e0802c8 for ane2#asahi-dev · 2023-05-04 22:41
jannaueiln: math checks out, there was "pmgr: timeout while trying to set mode f for device at 0x28e0802c8: b0f" on the first run on both ane0 and ane2#asahi-dev · 2023-05-04 22:19
eilnif it does i should fix src/pmgr.c to handle pwrgating#asahi-dev · 2023-05-04 22:18
eilntake 2, lmk if experiments/ane.py under ane-t6000 branch works (either ane0/ane2)#asahi-dev · 2023-05-04 21:40
eilnjannau: ah finally looks right!! thank you sm :)#asahi-dev · 2023-05-04 21:38
jannaueiln: https://jannau.net/asahi/2023-05-04_t6002_ane_power.log#asahi-dev · 2023-05-04 21:36
eilnjannau: do you mind attaching the mon.poll()? the other one wasn't fully on then#asahi-dev · 2023-05-04 21:35
jannaueiln: seems to work#asahi-dev · 2023-05-04 21:17
eilnplease lmk if anyone w/ a t600x ane0 can test#asahi-dev · 2023-05-04 21:17
eilnthe updated experiments/ane_t600x_power.py in the ane-power branch (https://github.com/eiln/m1n1.git) tries to manually powergate ane_sys_cpu before turning it on#asahi-dev · 2023-05-04 21:16
eilnwhich seems to be the PMGR_WAS_PWRGATED flag#asahi-dev · 2023-05-04 21:16
eilnTTY> pmgr: timeout while trying to set mode f for device at 0x28e0802c8: 10f#asahi-dev · 2023-05-04 21:16
eilnthe problem w/ t6000 seems to be:#asahi-dev · 2023-05-04 20:24
jannausounds sensible, I think I hacked typec/displayport to point of breaking usb for better dp reliability#asahi-dev · 2023-05-04 20:10
svenI’ve started to work on a uh.. hack that bypasses most of typec/altmode for now#asahi-dev · 2023-05-04 19:39
jannaudcpext seems to be stable when this display is powered over usb-c#asahi-dev · 2023-05-04 19:30
j`eySmart Interrupt? :p#asahi-dev · 2023-05-04 19:29
marcanthat's what it's called though#asahi-dev · 2023-05-04 19:29
marcanbeats me#asahi-dev · 2023-05-04 19:26
j`ey(SYS_IMP_APL_SIQ_CFG_EL1)#asahi-dev · 2023-05-04 19:26
j`eySIQ?#asahi-dev · 2023-05-04 19:17
marcansome of those chicken bit names are fun#asahi-dev · 2023-05-04 19:17
marcanat least today's distraction had me find more stuff :p#asahi-dev · 2023-05-04 19:16
marcansven, maz: https://github.com/AsahiLinux/m1n1/commit/938e6d4c897e6c83dee5122fe0aafc0e20289e8f#asahi-dev · 2023-05-04 15:46
maz(and no, I don't call myself a kernel developer anymore -- more like a part time tinkerer...)#asahi-dev · 2023-05-04 15:45
mazhey, I have 3 other M1/M2 to play with! :D#asahi-dev · 2023-05-04 15:44
kettenisand you call yourself a kernel developer? ;)#asahi-dev · 2023-05-04 15:44
maz 16:43:21 up 260 days, 23:40, 5 users, load average: 0.02, 0.08, 0.12#asahi-dev · 2023-05-04 15:44
mazuptime#asahi-dev · 2023-05-04 15:43
mazI'll get to try it then.,#asahi-dev · 2023-05-04 15:43
mazmarcan: fair enough, thanks for having investigated it. eventually, I need to rebuild my t6002 anyway, as it still runs on the stuff I built when I got it last year (it hasn't rebooted yet).#asahi-dev · 2023-05-04 15:41
marcanpushed to asahi-dev#asahi-dev · 2023-05-04 15:39
marcanpushing a new m1n1 now with that#asahi-dev · 2023-05-04 15:39
marcan(tested on linux)#asahi-dev · 2023-05-04 15:39
marcanmaz: I give up, but setting the magic reg to 2 fixes it so shrug#asahi-dev · 2023-05-04 14:24
marcanyeah, what I'm trying to figure out is whether the hypervisor pokes it (which would answer the question) or whether we screwed something else up.#asahi-dev · 2023-05-04 14:21
mazOK, so it all edges on this magic sysreg?#asahi-dev · 2023-05-04 14:20
marcanso there is *some* bug but it's not our problem#asahi-dev · 2023-05-04 14:20
marcanmaz: ok no, it only enables the workaround on dev machines by default as far as I can tell, and I see the same behavior on ecores anyway.#asahi-dev · 2023-05-04 14:08
mazhuh.#asahi-dev · 2023-05-04 14:08
marcanlovely#asahi-dev · 2023-05-04 14:08
marcanthere's a chicken kernel arg and some special handling here, and it only applies to pcores#asahi-dev · 2023-05-04 14:07
marcanmaz: I'm staring at the kernel and this looks like an errata on t600x...#asahi-dev · 2023-05-04 13:28
marcananother possiblity is that this is an intentional mechanism so that the extra HV IRQ latency is considered in the "pick a CPU" heuristic, and the HV is supposed to manually ack the low-level IRQ in some way with that bit clear#asahi-dev · 2023-05-04 13:26
marcanis my hypothesis#asahi-dev · 2023-05-04 13:26
marcanso the first IRQ arrives fine, the next one is bork