Repository navigation
Commit 3053678
committed
nvme-apple: Restart a stopped resident ANS without a PMGR reset
When a previous boot stage has run the ANS and stopped it cleanly, the
driver finds CPU_CONTROL.RUN clear and takes its soft-reset path, which
asserts the ANS reset. On post-M4 SoCs that assert raises an SError.
The stopped firmware stays resident, so on these SoCs set RUN and run a
fresh RTKit boot handshake instead, as U-Boot does, and keep the reset
path for the older generations.
This was tested on T8140 (MacBook Neo, J700) booting Linux from the
internal NVMe through a chain whose first m1n1 stage runs the ANS and
stops it (CPU_CONTROL.RUN clear, firmware still resident) before
chainloading the stage that boots Linux. It does not recover an ANS
that Linux itself has stopped: once Linux has shut RTKit down and
cleared RUN, as suspend did, the RTKit boot after setting RUN again
times out.
Satya wrote this change for Aurora's tree on 2026-09-18, after the
reset path raised the SError on his J700, and has been booting Omarchy
from the internal NVMe with it since 2026-09-16. It is carried here
with the restart message demoted to dev_dbg; his Signed-off-by is
outstanding.
(cherry picked from commit 711f8f6)
Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>1 parent 9101a16 commit 3053678
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1145 | 1161 | | |
1146 | 1162 | | |
1147 | 1163 | | |
| |||
1162 | 1178 | | |
1163 | 1179 | | |
1164 | 1180 | | |
| 1181 | + | |
1165 | 1182 | | |
1166 | 1183 | | |
1167 | 1184 | | |
| |||
0 commit comments