Skip to content

selftests: apple-dcp: give the backlight fixtures the DAC fade fields - #987

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/apple-dcp-selftest-dac-fade
Nov 5, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/apple-dcp-selftest-dac-fade

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Since #983 ("drm/apple: fade the panel backlight on DAC firmware") the apple-dcp host selftests are 83/85. panel-takeover-registration and desktop-brightness-notifications build their own cut-down struct apple_dcp, and it lacks the new fade fields in struct dcp_brightness, so neither compiles.

This adds the fields to both fixtures. The takeover fixture only runs the desktop 26.x path, so the DAC fade helpers it now pulls in (dcp_dac_fade_starts, mod_delayed_work) assert if reached, like the other DAC-only stubs there. dcp_backlight_stop() now cancels three delayed works, so the notification fixture counts 3 and 6.

Test only, no kernel code. run.py on integration/aurora 2661d71 plus this: 85/85 (83/85 before).

🤖 Generated with Claude Code

"drm/apple: fade the panel backlight on DAC firmware" added the fade
state to struct dcp_brightness and a third delayed work that
dcp_backlight_stop() cancels. The panel-takeover-registration and
desktop-brightness-notifications fixtures declare their own cut-down
struct apple_dcp, so both stopped compiling and the apple-dcp host
selftests fell to 83/85.

Add the fade fields to both fixtures. The takeover fixture runs only
the desktop 26.x path, so the DAC fade helpers it now references
assert if they are ever reached, like the other DAC-only stubs there.
dcp_backlight_stop() now cancels three delayed works per call, so the
notification fixture expects 3 and 6.

Fixes: 2924f21 ("drm/apple: fade the panel backlight on DAC firmware")
Assisted-by: LLM
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@RyanTheTide
RyanTheTide merged commit 0041b90 into integration/aurora Nov 5, 2026
@RyanTheTide
RyanTheTide deleted the fix/apple-dcp-selftest-dac-fade branch November 5, 2026 13:13
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