Skip to content

drm/apple: bind AppleDCPPS190 as an HDR10 static metadata service - #3777

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
tully-8888:fix/dcp-ps190-hdr-metadata
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
tully-8888:fix/dcp-ps190-hdr-metadata

Conversation

@tully-8888

@tully-8888 tully-8888 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What: Add "AppleDCPPS190" to dcpavserv_hdr_class() in drivers/gpu/drm/apple/epic/dpavservep.c so firmware-27 T6050 MacBook Pro HDMI links admitted by #3609 bind as HDR10 static metadata services, with focused KUnit coverage (dpavservep-identity-test.c) and a host bind regression in tools/testing/selftests/drivers/gpu/apple-dcp/edid.py.

Tested: Head commit daa13c2 on aurora-silicon/linux main:

  • Live J714s hardware (14-inch MacBook Pro M5 Pro, T6050, system firmware 27.2 / 26B123, kernel 7.3.0-j714s-test+ built on a17872841, connected 4K 144 Hz HDR10 HDMI sink advertising CTA HDR Static Metadata Block: EOTF=0x0d (PQ=True, HLG=True) SM=0x01 on 306e00000.dcp / HDMI-A-1):
    • Boot service discovery: AFK[ep:2a]: new service AppleDCPPS190 on channel 1 bound cleanly; optional dcpdp-service-epic (AppleDCPPS190) on channel 3 skipped cleanly.
    • Live PQ HDR10 transition: HDMI-A-1 switched to XRGB2101010, Colorspace=BT2020_RGB (9), set_digital_out_mode(color:139 timing:122) depth:10 format:0 colorimetry:9 eotf:2 range:0 vrr:1, finished:2054; sink entered HDR mode visibly; returned cleanly to SDR (color:131, eotf:0, finished:2050) with zero HDR static metadata not taken and zero HDR InfoFrame not stopped warnings.
  • tools/testing/selftests/drivers/gpu/apple-dcp/run.py --group edid: 4/4 PASS (dpavserv-start, service-rebind, provider-admission, ordered-rx). Mutation check reverting only dpavservep.c fails provider-admission on the new AppleDCPPS190 bind assertion.
  • tools/testing/selftests/drivers/gpu/apple-dcp/run.py --group display: hdr-static-metadata PASS (existing retry/stop contract in iomfb.c untouched).
  • tools/asahi/dpavserv-admission-tests.py: 11/11 PASS.
  • git diff --check clean.

Risk: two-way door · affects firmware-27 T6050 external HDMI outputs advertising AppleDCPPS190 on EP 0x2a; verified on J714s with zero AFK errors or timeouts on PQ entry and SDR exit.

Not yet:

  • K114s live test row (same AppleDCPPS190 class on EP 0x2a, no K114s hardware here).
  • Hardware InfoFrame analyzer capture of the exact wire MaxCLL/MaxFALL bytes on the HDMI cable (tested via sink HDR entry + zero kernel dcp_hdr_send / dcp_hdr_infoframe_stop warnings).

Commit e8b9a342 (aurora-silicon#3609) admitted AppleDCPPS190 on DPAVSERV_ENDPOINT_V2
(EP 0x2a, EPICUnit 0) for firmware-27 T6050 MacBook Pro external HDMI
outputs, but omitted it from dcpavserv_hdr_class(). Because
dcpavserv_init() only calls dcp_hdr_service_bind() for classes accepted
by dcpavserv_hdr_class(), PS190 links never bind an HDR metadata service,
leaving HDR10 static metadata (MaxCLL, MaxFALL, mastering display
luminance) unsent and forcing a modeset on metadata-only updates.

Add "AppleDCPPS190" to dcpavserv_hdr_class(), add focused KUnit cases
for dcpavserv_hdr_class() in dpavservep-identity-test.c, and add an
AppleDCPPS190 prepare/init/teardown HDR bind regression in the apple-dcp
host selftest (edid.py).

Signed-off-by: vlad <[email protected]>
@tully-8888

Copy link
Copy Markdown
Contributor Author

Live J714s hardware test row (daa13c2 built into 7.3.0-j714s-test+ on a17872841, 14-inch MacBook Pro M5 Pro, T6050, system firmware 27.2 / 26B123):

  • Connected 4K 144 Hz HDR10-capable HDMI sink (CTA HDR Static Metadata Block: EOTF=0x0d (PQ=True, HLG=True) SM=0x01) on 306e00000.dcp (HDMI-A-1).
  • Service discovery at boot:
    • apple-dcp 306e00000.dcp: AFK[ep:2a]: new service AppleDCPPS190 on channel 1
    • apple-dcp 306e00000.dcp: AFK optional dcpdp-service-epic (AppleDCPPS190) is unsupported on channel 3
  • Switched HDMI-A-1 to 10-bit PQ HDR10 (XRGB2101010, Colorspace=BT2020_RGB (9), set_digital_out_mode(color:139 timing:122) depth:10 format:0 colorimetry:9 eotf:2 range:0 vrr:1, finished:2054) and back to SDR (color:131, eotf:0, finished:2050) with zero HDR static metadata not taken and zero HDR InfoFrame not stopped warnings.

@tully-8888
tully-8888 marked this pull request as ready for review December 1, 2026 13:49
@tully-8888
tully-8888 requested review from a team as code owners December 1, 2026 13:49

@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.

The added exact class match leaves existing admission unchanged. The new host case covers HDR bind and teardown, and the J714s row covers live PQ entry and return to SDR. The hosted build and focused checks are still pending.

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Merge readiness at daa13c23: not ready yet

Check Detail
CI at head no failing: host-tests, KUnit dcp-fabric dcp-topology dcp-display
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at daa13c23
Conflicts ok none
PR text ok Risk: two-way · affects firmware-27 T6050 external HDMI outputs advertising AppleDCPPS190 on EP 0x2a; verified on J714s with zero AFK errors or timeouts on PQ entry and SDR exit.

Areas: area:display

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

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 1, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at daa13c235251 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr. Row: the hardware row at daa13c2 that the readiness check found (PR body or comment). CI: train L12 = main 645b086 + #3595 #3777 #3713 #3508 #3491: Apple build + DTBs pass, KUnit dcp-fabric/dcp-topology/dcp-display/prores/asahi pass, host tests apple-dcp/dcp/g16 93 ok; hosted reds at these heads = Ubuntu apt outage (Install the tools exit 100) or main's known ave/brcmf host-test fails Revert: git revert -m 1 <merge commit>.

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) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants