Repository navigation
Commit ae497dd
committed
soc: apple: sleep: OR a core's start bits into the cpu-start words
After every J815 wake only the first core started in each complex came back
(CPU1 = E0, CPU7 = P1); CPU2-6 and CPU8-9 timed out ("failed to come online
... unknown state 0x0"), 5 s each, 7 x 5 s added to every resume.
sleep_cpu_on() wrote the SYS and cluster words plainly, so each start cleared
the bits of every core already released, the boot core's SYS bit included.
aura's T8142 start (smp.c) sets both bits read-modify-write, after macOS's
setCoreOnline/wakeCore ("preserve other released cores"); the start now does
the same. apple_sleep.cpu_start_or=0 restores the plain write for an A/B.
The per-core trace (cpu_on_trace) was gated on cpu_clusters, which no SoC
table sets; it now also runs where the SoC states its start stride (T8142).
Not yet tested on hardware.
Assisted-by: Claude Opus 5.5
Signed-off-by: Nick <[email protected]>1 parent a3d3862 commit ae497dd
1 file changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2099 | 2099 | | |
2100 | 2100 | | |
2101 | 2101 | | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2102 | 2112 | | |
2103 | 2113 | | |
2104 | 2114 | | |
2105 | 2115 | | |
2106 | | - | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
2107 | 2119 | | |
2108 | 2120 | | |
2109 | 2121 | | |
| |||
2116 | 2128 | | |
2117 | 2129 | | |
2118 | 2130 | | |
2119 | | - | |
2120 | | - | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
2121 | 2141 | | |
2122 | 2142 | | |
2123 | 2143 | | |
| |||
0 commit comments