Skip to content

drm/apple: enable the J615 panel brightness path - #3092

Merged
DjDeveloperr merged 5 commits into
aurora-silicon:mainfrom
ericjuta:j615/panel-brightness-7.3
Nov 25, 2026
Merged

DjDeveloperr merged 5 commits into
aurora-silicon:mainfrom
ericjuta:j615/panel-brightness-7.3

Conversation

@ericjuta

@ericjuta ericjuta commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable the existing v14.7 nits path for the J615 internal panel. Select its record using apple,panel-j615 on the DCP's panel node, following the J504 path, rather than admitting a machine compatible.

Tested: arm64 QEMU backlight KUnit 22/22, panel admission/geometry host tests passed, checkpatch 0 errors and 0 warnings. No exact-head hardware result yet.

Risk: two-way · J615 internal panel on the v14.7 DCP path; a revert restores machine-based admission. The J504 and J613 backlight paths are unchanged.

Not yet: Actual panel brightness changes on J615 and a J613 or J504 control boot on the normal boot setup, with restore verified. Prior combined-kernel measurements do not count for this head.

Evidence
  • Forwarded main at 49fc037ee by merge, not by rewriting the branch. Head: 52bc662b3fde6fc5858fbe7308c72b3ac7e69400.
  • dcp_v14_backlight*: 22 passed, including the J615 level-swap test and the selector checks for J504 and J615 with and without their panel nodes. Last commit changes only a test comment.
  • python3 tools/asahi/dcp14-panel-tests.py: passed J615/J613/J504 and existing T6030/J516C/J514C panel admission and geometry controls.

The J615 board record does not admit panel nits, so the working 14.7
display session never registers a backlight device: /sys/class/backlight
is empty on the 15-inch M3 MacBook Air and brightness controls do nothing.

The J615 runs the J613 DCP image (DCP_V14_J613_FIRMWARE_UUID) on the same
T8122 DCP, and its device tree carries apple,max-brightness like the J613.
Admit the J615 to the nits path the same way the J613 is admitted, keeping
the firmware UUID and display handoff checks. J514C remains excluded.

Run the existing swap-level KUnit case for J615 as well, and move it out
of the boards whose production path must stay untouched.

Signed-off-by: Eric Juta <ericjohnjuta@gmail.com>
@ericjuta
ericjuta requested review from a team as code owners November 24, 2026 21:42
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 52bc662b: ready to merge

Check Detail
CI at head ok 19 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at 52bc662b
Conflicts ok none
PR text ok Risk: two-way · J615 internal panel on the v14.7 DCP path; a revert restores machine-based admission. The J504 and J613 backlight paths are unchanged.

Areas: area:display, area:gpu
Merge: gh pr merge 3092 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
satchlj
satchlj previously approved these changes Nov 25, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gemini 4 Neon on @satchlj's behalf

Verdict at 30d8fd8d2710

Approve — minimal, clean enablement of the existing panel_nits brightness path for J615 with matching KUnit test updates.

Blockers

None for code review.

Note on merge readiness: As noted in Not yet and pr-readiness, a standalone exact-head J615 hardware boot row at 30d8fd8d2710 (outside the local 7.3 combined build) is still owed before merge.

Checked

  • Full static audit of both changed files (+18/-10):
    • drivers/gpu/drm/apple/dcp.c: sets .panel_nits = true on dcp_v14_board_j615 and adds machine_is(ctx, "apple,j615") to dcp_v14_panel_nits_admit(), matching J613's admitted path without altering non-J615 boards.
    • drivers/gpu/drm/apple/iomfb_v14_7_backlight_test.c: adds v14_bl_j615_swap_levels verifying J615 swap-level behavior and removes J615 from v14_bl_other_boards_untouched.
  • CI at 30d8fd8d2710: all completed checks SUCCESS (kunit, host-tests, pr-text, readiness, policy checks).
  • Untested scope: no local J615 hardware boot performed (static diff + CI verification only).
Evidence
  • Changed files (2): drivers/gpu/drm/apple/dcp.c, drivers/gpu/drm/apple/iomfb_v14_7_backlight_test.c (+18/-10).
  • CI: kunit, host-tests, pr-text all green at 30d8fd8d2710.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Nov 25, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Verdict: FINISH, then merge at 30d8fd8d2710.

Blockers: The live merge conflicts in drivers/gpu/drm/apple/iomfb_v14_7.c and its backlight KUnit file. Please forward main with a normal push. The merged J504 code already selects panel data using the panel node. Please select the J615 capability from the panel node as well, keeping both the existing J504 and new J615 tests.

Checked: The older combined J615 row is the baseline. At the forwarded head, please record actual brightness changes with the normal kernel and a peer on the shared code.

@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Nov 25, 2026
Signed-off-by: Eric Juta <ericjohnjuta@gmail.com>
Signed-off-by: Eric Juta <ericjohnjuta@gmail.com>
Signed-off-by: Eric Juta <ericjohnjuta@gmail.com>
Signed-off-by: Eric Juta <ericjohnjuta@gmail.com>
@ericjuta

Copy link
Copy Markdown
Contributor Author

Hardware regression request — J613 or J504 internal panel. No result yet.

Source: aurora-silicon/linux PR head.

Can someone with a J613 or J504 on the v14.7 internal-panel path do a same-head backlight check? J615 coverage is being prepared separately. Before the test, record the behavior and boot errors on your normal packaged kernel. In the test boot, change between two well-separated nonzero brightness levels in both directions; verify the panel visibly changes, record requested/actual levels, and restore the starting level. Return to the known-good default and verify the panel again.

Source-only build and boot kit

In a fresh checkout on arm64, with the normal Aurora build dependencies:

git init linux-pr3092 && cd linux-pr3092
git fetch --depth=1 https://github.com/ericjuta/linux.git 52bc662b3fde6fc5858fbe7308c72b3ac7e69400
git switch --detach FETCH_HEAD
mkdir out
cp /path/to/your/packaged-aurora.config out/.config
scripts/config --file out/.config --disable LOCALVERSION_AUTO --set-str LOCALVERSION -pr3092-52bc662b3fde
make ARCH=arm64 LLVM=1 LOCALVERSION= O=out olddefconfig
make ARCH=arm64 LLVM=1 LOCALVERSION= O=out -j4 Image modules dtbs

Use your regular packaged settings and your lab's one-shot boot procedure with a known-good fallback. Preserve the loader's live DT and reservations, and do not change Stage 1 or the permanent default. Report board/chip, source head, kernel version, any command-line or handoff differences, measured levels and visible result, failed units, new kernel errors, SELinux denials if applicable, and restore status. No raw serials or hardware logs needed.

@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 25, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Row at 52bc662b: J615 (15-inch M3 Air, macOS 27.2 stub). PASS

Kernel: main ba29027 + this PR + #3093 (both merge cleanly), on the default fleet command line. Non-default one-shot boot, then restored.

  • Panel node: the live DT panel node is apple,panel-j615 apple,panel, so the record was selected through the panel-node path.
  • Brightness: apple-panel-bl has max 500. Setting 125, 250, 500 and then 62 read back exactly in both brightness and actual_brightness. The panel firmware logged brightness_changed / send_brightness on every step.
  • Rest of the boot: eDP-1 2880x1864 lit, s2idle 1/1 (15.2 s), 0 AVC denials, 0 failed units, 0 faults. The kernel error lines are the same as on main.

Still open: a J613 or J504 control boot. Scott offered J613 rows on #2147.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 25, 2026
@ericjuta

Copy link
Copy Markdown
Contributor Author

J615 hardware PASS — tested head 52bc662b3fde6fc5858fbe7308c72b3ac7e69400 on a one-shot test boot. The built-in eDP-1 visibly dimmed and brightened; brightness readbacks matched 150 → 400 → 150 → 400 (max 500), and the original value of 400 was restored. No display or DART faults in the targeted boot-log check. The only failed unit was the Proton VPN service. Returned to the normal kernel. Suspend and J613/J504 controls were not tested in this run.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Audited full diff and all 5 commits at 52bc662: clean 2-line enablement in dcp_v14_board_j615 (.panel = apple,panel-j615 and .panel_nits = true) matching the J504 panel-node selection pattern with matching KUnit and host panel-test updates, leaving J613/J504/J514C untouched. Both independent exact-head J615 hardware rows passed cleanly; ready to merge once the remaining KUnit CI jobs finish.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@DjDeveloperr
DjDeveloperr merged commit 70a6579 into aurora-silicon:main Nov 25, 2026
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants