Repository navigation
soc: apple: display-gate: request T8122 storage by soc-device record - #2682
Conversation
On T8122 the PTD request and acknowledge bits are indexed by soc-device record, not by device ID - 1. The gate already marks the display entry apple,soc-device-record for that reason, but left the storage entry (report@11, ANS, device ID 18) on its ID bit, 17. On T8122 that bit is another record's (the device ID 14 record, report@d), and ANS's own record bit is never set. The native T8122 path in pmp-report already expects ANS at its record, bit 19. Mark the storage entry by record too, wherever the PTD is indexed that way (gate_soc->records). The bit then comes from the PMP's own soc-device table, as the display entry's does. Signed-off-by: Ryan Murray <[email protected]>
|
Looks good; approve once a J613 row and a J615 row run on this head.
The change itself is right. pmp-report resolves every marked entry through Nit: the remaining T8122 entries (report@5/6/9/a/b/c/d, t8122.dtsi:776-863) are disabled and still ID-indexed. Whoever enables one hits this same bug. Marking the record indexing once on the T8122 report would cover them all. HW row: on dc5faac on |
Signed-off-by: Ryan Murray <[email protected]>
There was a problem hiding this comment.
The storage request now uses the same record-indexed PMP convention as the display request, under the existing SoC capability and in the same changeset. J615 shows the expected active-mask change and J473 provides a control. Keep hosted checks and the second T8122 J613 row pending.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What: On T8122 the display gate marks the storage request by soc-device record too, so the PMP is asked for ANS and not for the record at ID - 1.
Tested: J615 (M3 Air) and J473 (M2 mini) at dc5faac, in one combined one-shot test kernel 7.3.0-aurora-dsw1 (main d8c6043 + this PR + 15 other drafts). This PR's files there are byte-identical to the current head 4dcde55 (= dc5faac + a clean merge of main). J615 (M3 Air, T8122): PMP handover reads
requests 0x81800on the test kernel vs0x21800on the fleet kernel, i.e. the storage request is on its soc-device record (bit 19), not ID - 1 (bit 17). NVMe 1 GiB cold read 2.2-2.3 GB/s, one 15 s s2idle rc 0, 0 failed units, 0 WARN/BUG. J473 (M2 mini, T8112, not reached by this change): boots, s2idle rc 0, no new error lines.Risk: two-way · T8122 (J613, J615)
Not yet: the J613 row (the other T8122 Mac, where the PMP also runs with the GPU)
Evidence
git merge-treemerges of linux#2263 power: supply: macsmc: Report net discharge as discharging on every battery #2303 soc: apple: sep: Count sensor bring-up and frame failures; document the remaining SEP retries #2363 drm/apple: dcp: give each Type-C reconnect request its whole budget #2364 drm/apple: name the brightness and 180 Hz probe retry budgets and report their exhaustion #2387 drm/apple: stop the DCPLink when a start or swap ends the session #2460 drm/apple, kbuild, tools/aurora-sep: drop dead kill switches, Kconfig/Makefile leftovers and the login refresh unit #2464 btrfs: verify large data reads in parts #2493 soc: apple: display-gate: request T8122 storage by soc-device record #2682 drm/asahi: mmu: publish a binding without the VM reservation #2799 soc: apple: aop: refuse EPIC calls once the firmware has crashed #2800 soc: apple: sep: gate per-user key bags on a proven capability, not the create variant #2806 soc: apple: sep: read the pnon digest on the two-to-four-page SEPs #2810 PCI: apple: T6050: wait for the radio's port with a wait queue #2377 PCI: apple: t6050: write the gen5 shadow tunables into the 32 GT/s bank #2794 wifi: apple: centauri: T6050: don't veto s2idle for a failed or stopped N1 #2795, fleet89 config (+CONFIG_USB_BILLBOARD=m), LLVM 22.1.6 / rustc 1.97.1; build warnings are the same as main's (23 rustc dead-code warnings, all present on main).grub2-rebootone-shot, no Stage 2 or DTB change. Each Mac went back to its saved fleet kernel, the test kernel was removed, and production state was verified: saved entry, empty next_entry, Enforcing, 0 failed units.genpd_prepare -11, brcmfmac LPAS fallback), and the fleet kernel's own s2idle shows them too. On J615, dsw1's boot also had one brcmfmacring 4: r_ptr 0 outside depth 0line, not seen on 3 fleet boots. No PR in the batch touches brcmfmac.Merge main into j615s2r/t8122-storage-record(no conflicts).Original description
Problem. On T8122 (M3: J613, J615) the PMP's power request and acknowledge bits are indexed by soc-device record, not by device ID - 1. The display gate already marks the display entry
apple,soc-device-recordfor that reason. It leaves the storage entry (report@11, ANS, device ID 18) on its ID bit, 17, though. On these Macs bit 17 belongs to a different record (the device ID 14 record,report@d), so the PMP is asked to keep that block up, and ANS's own record bit, 19, is never set. The native T8122 path in pmp-report already expects ANS at bit 19 (apple_pmp_record_of_id(table, 18) != 19).Change. Where the PTD is indexed by record (
gate_soc->records), the display gate marks the storage entryapple,soc-device-recordas well. The bit then comes from the PMP's own soc-device table, the same way the display entry's does. No new property, parameter or board check.Testing. J615 (MacBook Air 15-inch, M3) on its default Stage 2 and the default kernel command line. Kernel: our T8122 sleep trial tree plus this commit, same file and hunk as here.
T8122 PMP handed over: requests 0x80800(was0x20800), andrequest bits 0x80800 are soc-device records.PMP ready: ... ack 0x8f0. The display record is acknowledged, and ANS is not, as its record's flags say. Before, the PMP acknowledged bit 17, i.e. it was keeping the other record's block up.display-gate.obuilds on this base with W=1.Still to run. A J613 row (the other T8122 Mac). There the PMP runs with the GPU, so this changes what it is asked for at start: ANS instead of the device ID 14 block.
Detail for reviewers
no unique request bit for /soc/pmp_report@2d03c0000/report@11. The added scodec entry (record 17) collided with the storage entry's ID bit 17.0x20800, the PMP's unrequested ack bits are 4-7. Those are the records of the always-on SoC and CPU-cluster devices, which only fits record indexing.report@21): none.recordsis set for T8122 only.traces/power/20261121-j615-s2r2/row-stor.log,stor-*-dmesg.txton our store.