Repository navigation
drm/apple: iomfb_v14_7: select the board record by the panel node, not the machine - #2360
RyanTheTide wants to merge 1 commit into
Conversation
…t the machine The 14.x internal-panel records were picked by the DCP compatible and the machine compatible (apple,j613, apple,j615, apple,j516c, apple,j514c), and the panel level block was admitted only on a machine list (j514s, j516s, j516c, j613) on top of the record's own panel_nits flag. What a record holds is panel and firmware data: the native panel size, the 120 Hz timing, the level block in the swap, and the DCP image the layouts were checked against. The device trees already name the panel: every one of these boards has a panel node under the DCP with apple,panel-j613, apple,panel-j615, apple,panel-j516 or apple,panel-j514. Select a record by the DCP compatible and that panel compatible, and take the level block from the record's panel_nits. For the boards in the list nothing changes: every record still matches its board, and panel_nits is set on exactly the records the machine list allowed (T6030, J613, J516C). A T6034 J514M or J516M, whose DCP is an apple,t6031-dcp with the J514 or J516 panel, now gets the T6031 record for its panel instead of "no board record"; it still starts only if its DCP image is the one the record names and the loader set the handoff marker, so an unchecked image keeps the boot framebuffer. The KUnit cases and the host panel test now give panel compatibles. Fixes: 5b906e1 ("drm/apple: drive the J613 (M3 Air 13") internal display from a board record") Fixes: 279f5f6 ("drm/apple: port the scoped T6030 14.7 panel backlight") Signed-off-by: Ryan Murray <[email protected]>
|
Looks good; approve once one existing-board row and one J514m/J516m row have run. Selecting by the DCP's
HW row: on this head, both with 0 AVC, 0 failed units and no new kernel errors.
Assisted-by: LLM (Claude:Opus 5.5) |
Problem
drivers/gpu/drm/apple/iomfb_v14_7.cpicked the 14.x internal-panel board record by the DCP compatible plus the machine compatible (apple,j613,apple,j615,apple,j516c,apple,j514c, around line 1654). It then admitted the panel level block only on a machine list (dcp_v14_panel_nits_admit(): j514s, j516s, j516c, j613, around line 1696), on top of the record's ownpanel_nitsflag. A record holds panel and firmware data: the native panel size, 120 Hz, the level block in the swap, and the DCP image whose layouts were checked. The board device trees already name the panel. Every one of these boards has apanelnode under its DCP withapple,panel-j613,apple,panel-j615,apple,panel-j516orapple,panel-j514.Change
A record is now selected by the DCP compatible and the compatible of the DCP's
panelchild. The level block follows the record'spanel_nitsflag. No DT change is needed.Every SoC it reaches:
panel_nitsis set on exactly the records the machine list allowed (T6030, J613, J516C), so the level block is unchanged.apple,t6031-dcpwith the J514/J516 panels, so they now get the T6031 record for their panel instead of "no board record". They still start only if the DCP image is the one the record names (apple,firmware-uuid) and the loader set the handoff marker. Otherwise the boot framebuffer stays, as before.Testing
iomfb_v14_7.o(which includes the backlight KUnit file) andv14-board-test.o: no new warnings.tools/asahi/dcp14-panel-tests.pypasses. It now gives panel nodes, and it covers J514m/J516m getting the T6031 records, an unknown panel and a missing panel node being refused, and the J615/J613/T6030/J516C/J514C cases as before.apple-dcp-v14-boardandv14_bl_boardswere rewritten for panel compatibles. They have not been run under kunit.py (that needs a booted arm64 kernel). Their logic was run in a host harness that compiles the production records,dcp_v14_board_select()and the test bodies with a KUnit shim: all cases pass.Still to run
dmesg | grep -i 'display not started'is empty, the debugfs status file has the same name (dcp-j613,dcp-j516c, ...), and brightness changes still reach the panel on J613/J516C/T6030.dmesgsays the DCP firmware image is not supported and the boot framebuffer stays.Hardware rows (combined test kernel, 2026-11-20)
This change was booted in a combined test kernel: integration/aurora 0abc2f3 plus the open gate-sweep drafts plus this and the related drafts (7.3.0-aurora-hk2/pwr1/hk3). It ran once on each lab Mac (M1 Pro J316s, M2 J413, J616s, Neo J700) and was compared against the production kernel on the same Mac, using the same silent row script:
M1 Pro, M2 and J616s matched production on every row, apart from the new counters and lines the drafts add. The Neo row found the old-DTB display regression that #2358's follow-up commit fixes.
This PR: No lab Mac reaches the v14_7 board records; boot-clean regression rows only.