Skip to content

drm/apple: afk: replace compact services re-announced after poweron - #859

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
fix/afk-compact-reannounce
Nov 2, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
fix/afk-compact-reannounce

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Desktop DCP firmware announces every compact EPIC service again under a fresh interface after each DCP poweron, on every endpoint. Only the hotplug endpoints 0x27-0x29 replaced them in place, so each s2idle resume on the J616s used up one more slot on 0x2a (both DCPs) and 0x2b (internal DCP) until "too many enabled compact services" stopped new services from binding.

This counts iomfb poweron generations per DCP and lets a re-announced service with the same binding, name and unit from an earlier generation replace the old one on any endpoint. Services from the current generation still coexist (DPAVCTRL siblings), and hotplug endpoints keep their existing in-generation replacement.

Testing (t-4547)

  • AFKV2 host test extended to 64 poweron generations over every compact endpoint on two DCPs, plus hotplug, sibling, identity and capacity cases. Host selftests 175/175, the two mutation controls fail as expected, checkpatch clean.
  • J616s (M4 Pro), test kernel 7.3.0-aurora-j616s-afk1 on aurora-wip 7f12698 plus this commit, three boots (53c52614, 91b749e5, 3a143c12), about 25 s2idle resumes over rtc1 with the ANE up and both displays connected. Every resume logs "AFK[ep:29/2a/2b]: replacing compact service" on both DCPs, with 0 "too many enabled compact services" and no AFK errors. SELinux enforcing, selinux-gate PASS with 0 AVCs on each boot.
  • The only error-level lines on those boots are from the H16 ANE (quarantine -110 on a cold restart after resume, the intermittent startup stall tracked separately) and one PM abort, neither from this change.

Logs are in aurora-ctl reports/t4547-afk-compact.

🤖 Generated with Claude Code

Desktop DCP firmware announces every compact EPIC service again under a
fresh interface after each DCP poweron, on every endpoint, without
closing the previous interface. Only the hotplug endpoints 0x27-0x29
replaced such services in place, so on the J616s each s2idle resume
filled one more slot on endpoint 0x2a (both DCPs) and 0x2b (internal
DCP) until "too many enabled compact services" stopped new services
from binding.

Count iomfb poweron generations per DCP and record the generation on
each compact service. A service announced with the same binding, name
and unit as an enabled one from an earlier generation replaces it in
place, on any endpoint. Services from the current generation stay, so
DPAVCTRL's same-name, no-unit siblings still coexist, and the hotplug
endpoints keep replacing within a generation as before.

Extend the AFKV2 host test to 64 poweron generations over every compact
endpoint on two DCPs, plus hotplug, sibling, identity and capacity
cases.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit c243830 into aurora-wip Nov 2, 2026
@RyanTheTide
RyanTheTide deleted the fix/afk-compact-reannounce branch November 2, 2026 12:46
notmysegv pushed a commit to notmysegv/linux that referenced this pull request Nov 4, 2026
…nto integration/aurora

Bring integration/aurora up to the aurora-wip tip 9ff2b9a. After this
merge the two branches have the same tree.

The range contains the fleet14o source c243830 (aurora-silicon#857, aurora-silicon#858, aurora-silicon#795,
aurora-silicon#859), which was promoted on all four machines on 2026-11-02 and 03, and
the merges after it: aurora-silicon#861 (apple-dcp selftest stubs for aurora-silicon#858), aurora-silicon#860
(SEP keybag in the shared xART window, the aurora-wip copy of aurora-silicon#856),
aurora-silicon#724 (J616s boot NOR, both parts), aurora-silicon#779 (ALS colour temperature ABI),
aurora-silicon#862 (J700 GD25UF16E boot NOR, the Neo bless fix), aurora-silicon#863 (J616s ANE H16
start stall), aurora-silicon#797 (T6000 DCS whole-word writes) and aurora-silicon#803 (G17 keeps
innocent clients alive across another client's recovery).

aurora-silicon#858 and aurora-silicon#860 make the same changes integration/aurora already had as
aurora-silicon#855 and aurora-silicon#856, so they merge without conflicts.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant