Skip to content

drm/apple: defer initial backlight restore until policy is ready - #2117

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/dcp-backlight-coldboot-20261117
Nov 17, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/dcp-backlight-coldboot-20261117

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

On soft-DPMS cold boot, initial pipe enable can queue asynchronous loader/fallback initialization and immediately attempt brightness restore while policy is still unready. That returns -ENODATA and reports backlight restore unavailable: -61, although initialization completes normally later.

Keep pipe enable and fallback scheduling, then defer restore until the backlight policy is active. Initialized restore and real error reporting remain unchanged. No brightness-ownership, M4-path, firmware-command or DCP-phase-policy changes.

Validation:

  • GCC/Clang production-source power-on/fallback/DPMS/state tests pass, including a compiled old-code failure and five assertion-based mutation controls; registered in Host CI.
  • Host CI passed on exact head c68d9531497344121be65530812d04ab4dec69df; scoped checkpatch has no errors/warnings.
  • Combined native candidate c766a7981048 (this fix plus N1 resume-pair fixes) passed full Image/modules/DT build as 7.3.0-m5-n1r2.
  • Actual cold boot with the fix reports zero premature restore warnings; the original default's complete boot journal reports one at 3.6 s, before initialization at 5.7 s. Backlight requested/actual levels remain 10/10, and the three attached displays retain modes and layout. Hardware validation covers cold boot; initialized restore/error behavior is covered by the production-source tests.

Soft-DPMS power-on can queue asynchronous loader/fallback initialization
before brightness policy is ready. Calling restore at that point returns
-ENODATA and emits a misleading failure during otherwise normal cold boot.

Keep initial pipe setup and fallback scheduling, then defer restore until
the policy is active. Initialized restore and error reporting are unchanged.

Add production power-on/fallback/state tests, with old-code and compiled
failure controls, to the host CI runner.
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 17, 2026 05:30
@DjDeveloperr
DjDeveloperr merged commit 4157bcb into integration/aurora Nov 17, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the djdev/dcp-backlight-coldboot-20261117 branch November 17, 2026 23:52
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