Repository navigation
T8152 / J873g DisplayPort and HDMI audio support - #3613
Conversation
Document the apple,t8152-disp-isoc-dart compatible for T8152 display isochronous DARTs, which handle display ADMAC audio DMA on SID 30. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Add support for apple,t8152-disp-isoc-dart as a cold Gen3 DART covering stream ID 30 (the display ADMAC audio stream) with optional tunables. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Document apple,t8152-display-admac and apple,t8152-admac-control for the T8152 display audio DMA controllers and their CED/SSW control blocks. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Add the apple,t8152-display-admac match entry using T8152's 0x40000 channel layout with the display ADMAC profile. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Add the apple,t8152-dpaudio compatible to the Apple DisplayPort audio controller binding. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Allow an optional ports/port@0 audio graph endpoint on T8152 iBoot DCP nodes so display audio controllers can link to their owning DCP. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
…EDID On T8152 Firmware 27, DPTX_APCALL_GET_DRIVE_SETTINGS places the lane count at offset +0 and the IOReturn status at offset +16 (swapped relative to SET), with lane entries starting at +32. Fix the reply marshalling and buffer-size check accordingly. Additionally, when atc_read_edid() borrows the crossbar for AUX0 on an active link, mark the port as needing a retrain and return KIO_RETURN_NOT_READY from GetDriveSettings until the firmware retrains and issues a fresh SET_DRIVE_SETTINGS (or deactivates the port). Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Wire up the AV EPIC endpoint and audio server ops for DCP_FIRMWARE_IBOOT so T8152 iBoot DCP instances expose DisplayPort and HDMI audio through the existing dcp-dp-audio ASoC driver. - Bring up avep_init() and av_iboot_ops for DCP_FIRMWARE_IBOOT. - Check the Firmware 27 IOReturn status at reply + 48 in dcp_audiosrv_link(). - Support standalone dcp-dp-audio probing/binding via av_audiosrv_ready(), av_attach_audio_dev(), and av_detach_audio_dev() when the audio controller is described as a separate device tree node linked through the OF graph. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Switch the T8152 display isochronous DARTs to apple,t8152-disp-isoc-dart with their TLBI register windows, and add t8152-j873-dpaudio.dtsi (and include it from t8152-j873g.dts) enabling the display ADMACs, ADMAC control blocks, PMGR power states, isochronous DARTs, and DisplayPort audio controllers for disp0, dispext0, and dispext1. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
There was a problem hiding this comment.
Verdict: FIX, then re-review at 65f2b05a
Blockers:
- Non-T8152 build failure (
drivers/gpu/drm/apple/av.cL1159,iomfb_iboot.hL137–144):av_iboot_init()callsdcp_iboot_av_started(ib)inside#if IS_ENABLED(CONFIG_DRM_APPLE_DCP_T6030_AUDIO)without guarding forIS_ENABLED(CONFIG_DRM_APPLE_DCP_T8152).iomfb_iboot.honly declaresdcp_iboot_av_started()whenCONFIG_DRM_APPLE_DCP_T8152is enabled and provides no#elsestub, so any kernel built withCONFIG_DRM_APPLE_DCP_T6030_AUDIO=y(defaulty) andCONFIG_DRM_APPLE_DCP_T8152=nfails to compile. Either guardav_iboot_ops/DCP_FIRMWARE_IBOOTinav.cwithIS_ENABLED(CONFIG_DRM_APPLE_DCP_T6030_AUDIO) && IS_ENABLED(CONFIG_DRM_APPLE_DCP_T8152)or add astatic inlinestub fordcp_iboot_av_started()iniomfb_iboot.h. - Standalone
dpaudiounbind lifetime & race issues (drivers/gpu/drm/apple/audio.c,drivers/gpu/drm/apple/av.c):- Unbind UAF (
audio.cL2229–2246,av.cL1763–1764): Standalone T8152dpaudiohas no component master, andavep_init()only adds aDL_FLAG_STATELESS | DL_FLAG_PM_RUNTIMEdevice link. Unbindingdcp_iboot(dcp_iboot_remove()->dcp_iboot_detach()-> devres freesdcp,audiosrv_data, anddcp_iboot) does not unbinddpaudio, leaving a live ALSA card whosedcp_audio_sink_eld(),dcp_audiosrv_link(), or laterdcpaud_unbind()(av_detach_audio_dev()/dcp_audiosrv_close()) can dereference freeddcp/dcp->ibootstate. Create a managed consumer link (DL_FLAG_AUTOREMOVE_CONSUMER | DL_FLAG_PM_RUNTIME, withoutDL_FLAG_STATELESS) fromaudio_pdevtodcp_pdevin standalonedcpaud_probe()(and skip the stateless link inavep_init()forDCP_FIRMWARE_IBOOT) sodpaudioalways unbinds beforedcp_iboot. - Premature publication in
avep_init()(av.cL1748, L1774–1793): (a)dcp->audiosrv = audiosrv_datais stored beforeafk_init(), cleanup registration, andafk_start(), soav_audiosrv_ready()(READ_ONCE(dcp->audiosrv)) can returntrueto a concurrentdcpaud_probe()beforeavepis started or ifavep_init()fails. (b)dcp->avep = afk_init(...)storesdcp->avepbeforedcp->avep->unmatched_ops = &av_iboot_ops(L1783) anddebugfs_entry(L1789), sodcp_iboot_rtk_recv()(READ_ONCE(dcp->avep)) can observedcp->avepwithunmatched_ops == NULL(the self-storeWRITE_ONCE(dcp->avep, dcp->avep)at L1793 does not prevent the earlier store). Holdavepin a local until fully initialized, publishWRITE_ONCE(dcp->avep, avep)right beforeafk_start(), and expose readiness (av_audiosrv_ready()) only afterafk_start()succeeds. - Swallowed deferral in standalone
dcpaud_probe()(audio.cL2075–2120, L2234–2244):dcpaud_bind()inheritsdcpaud_comp_bind()'sreturn 0;on missing DMA device /dcpaud_init_snd_card()failure. In standalone mode, ifadmac_disp*has not probed yet,dcpaud_bind()returns0withdcpaud->card == NULL, skipping-EPROBE_DEFERand still callingav_attach_audio_dev()on an uninitialized audio device. Propagate deferral / bind errors in standalone mode instead of attaching a half-bound device.
- Unbind UAF (
- Merge conflicts and skipped CI: Branch is
CONFLICTINGagainstmain(overlappingapple,admac*.yaml,apple,t6030-dpaudio.yaml,drivers/iommu/apple-dart.c), andapple-build,dt-checks,host-tests, andkunitwere all skipped. Mergemaininto the branch (no force push) so hosted CI runs and passes at the new head, and include the exact new head SHA in the J873g verification row.
Checked: All 18 modified/added files across DT bindings, J873g/T8152 DTS,apple-dart.c,apple-admac.c,audio.c,av.c,av.h,iboot_drm.c,iomfb_iboot.c,iomfb_iboot.h,t8152_atc.c,t8152_display.h, andt8152_dptx.cat65f2b05a.
Evidence
- Verified clean parts:
drivers/iommu/apple-dart.c:apple_dart_apply_own_tunables()NULL guard fordart->tunables,apple,t8152-disp-isoc-dartcold Gen3 SID 30 admission (num_streams31..32,!dev->pm_domain), andapple,dart.yamlschema additions are clean.drivers/dma/apple-admac.c&apple,admac*.yaml:admac_t8152_display_hw(t8152_layout = true,display = true) andif: not:schema extension forapple,t8152-display-admacare clean.drivers/gpu/drm/apple/t8152_dptx.c&t8152_atc.c: Firmware 27DPTX_APCALL_GET_DRIVE_SETTINGSlayout (countat+0,IOReturnat+16, entries at+32,room >= 20check,memsetzero-fill beforemin(count, port->drive_count)copy) andneeds_retrain(KIO_RETURN_NOT_READY) handoff are clean.drivers/gpu/drm/apple/av.cdcp_audiosrv_link(): zeroingreplybeforeav_audiosrv_call()and checking iBootIOReturnatreply + 48are clean.
- Nits (non-blocking):
arch/arm64/boot/dts/apple/t8152-j873-dpaudio.dtsiL236–301: theadmac_disp*/admac_disp*_ced_sswnodes inside/ { soc { ... }; };are indented one tab less than their parentsocblock.drivers/gpu/drm/apple/t8152_atc.cL644:WRITE_ONCE(disp->port[0].needs_retrain, true)hardcodesport[0]; worth a brief comment or helper ift8152_displayever routes AUX0 on a non-zeroport[]entry.
…aces Address review blockers on the T8152 iBoot DP/HDMI audio path: - Add a static inline dcp_iboot_av_started() stub in iomfb_iboot.h and guard av_iboot_ops / DCP_FIRMWARE_IBOOT in av.c on both CONFIG_DRM_APPLE_DCP_T6030_AUDIO and CONFIG_DRM_APPLE_DCP_T8152 so non-T8152 builds compile cleanly. - In standalone dcpaud_probe(), add a managed consumer link (DL_FLAG_AUTOREMOVE_CONSUMER | DL_FLAG_PM_RUNTIME) to dcp_pdev and skip the stateless link in avep_init() for DCP_FIRMWARE_IBOOT so dpaudio always unbinds before dcp_iboot. - Keep avep local in avep_init() until unmatched_ops, debugfs_entry, and cleanup registration complete, publish dcp->avep with release semantics before afk_start(), and expose av_audiosrv_ready() only after afk_start() succeeds. - Propagate bind/deferral errors (e.g. -EPROBE_DEFER when admac_disp* has not probed yet) from dcpaud_bind() in standalone mode and release dma_link on failure instead of attaching a cardless audio device. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Addressed all blockers in
|
There was a problem hiding this comment.
Verdict: HOLD at b119fa9c — all three code/merge blockers from 65f2b05a are cleanly resolved in 4b986e3c + b119fa9c; awaiting queued hosted CI completion and an exact-head J873g hardware row at b119fa9c.
Blockers:
- Wait for queued hosted CI checks (
apple-build,dt-checks,host-tests,kunit,pr-text) atb119fa9cto pass. - Post a J873g verification row referencing exact head
b119fa9cconfirming DP/HDMI audio playback after the4b986e3cstandalone-probe/unbind changes.
Checked: Commit4b986e3c(drivers/gpu/drm/apple/audio.c,av.c,iomfb_iboot.c,iomfb_iboot.h) and merge commitb119fa9c(MERGEABLEonmain, DCOSigned-off-by:present).
Evidence
- Blocker 1 resolved (
iomfb_iboot.h,av.c): Addedstatic inline void dcp_iboot_av_started(struct dcp_iboot *ib) {}stub and guardedav_iboot_ops/DCP_FIRMWARE_IBOOTinav.cwithIS_ENABLED(CONFIG_DRM_APPLE_DCP_T6030_AUDIO) && IS_ENABLED(CONFIG_DRM_APPLE_DCP_T8152)(both matrix configs verified). - Blocker 2 resolved (
audio.c,av.c,iomfb_iboot.c):- Standalone
dcpaud_probe()adds a managed consumer link (DL_FLAG_AUTOREMOVE_CONSUMER | DL_FLAG_PM_RUNTIME) todcp_pdevandavep_init()skips the stateless link forDCP_FIRMWARE_IBOOT(putting itsaudio_pdevreference cleanly), ensuringdpaudioalways unbinds beforedcp_iboot. avep_init()keepsaveplocal untilunmatched_ops,debugfs_entry, and cleanup registration finish, publishesdcp->audiosrvanddcp->avepviasmp_store_release()(paired withsmp_load_acquire()inav_audiosrv_ready()anddcp_iboot_rtk_recv()), and setsaudiosrv_data->readyviasmp_store_release()only afterafk_start()succeeds.dcpaud_bind()propagates bind/deferral errors (-EPROBE_DEFER,-ENODEV, etc.) in standalone mode, fixesof_node_put()leaks on early exits, tears downdma_linkon failure, and resetsdcpaud->standalone = falsewithout attaching a cardless device.
- Standalone
- Blocker 3 resolved (
b119fa9c): Cleanly mergedmainwith DCO sign-off; localcheckpatch.pl,dt_binding_check,CHECK_DTBS=y, Apple DRM KUnit (174/174), anddcpaud-sleep-hold-tests.py(128/128) pass.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
…date selftest Address follow-up review and host-tests blockers on T8152 DP/HDMI audio: - Guard avep_init() in dcp_iboot_probe() on IS_ENABLED(CONFIG_DRM_APPLE_AUDIO) and hdmi_audio so audio-disabled T8152 builds link cleanly and appledrm.hdmi_audio=0 suppresses AV endpoint startup as on other DCPs. - Put the dcp_pdev (and dma_pdev) device references acquired by of_find_device_by_node() on deferred DMA lookup, standalone bind failure, and standalone unbind in audio.c. - Add the dcp_is_iboot_audio() stub in apple-dcp's cec-only-av-endpoint host selftest (tools/testing/selftests/drivers/gpu/apple-dcp/audio.py). Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Addressed follow-up blockers + host-tests + pr-text in
|
There was a problem hiding this comment.
Verdict: HOLD at ed0fdb17 — the audio config/module-param guard, dcpaud_bind()/dcpaud_unbind() device refcount fixes, and audio.py selftest stub are clean and code-ready; awaiting hosted CI completion and exact-head J873g hardware confirmation.
Blockers:
- Wait for queued CI checks at
ed0fdb17(apple-build,dt-checks,host-tests,kunit,pr-text,readiness) to complete green. - Post the exact-head
ed0fdb17J873g hardware row verifying DP/HDMI audio playback and clean probe/unbind.
Checked:
- Audited commit
ed0fdb17(DCOSigned-off-by:present,MERGEABLE):drivers/gpu/drm/apple/iomfb_iboot.c(L720–726): gatesavep_init(dcp)behind#if IS_ENABLED(CONFIG_DRM_APPLE_AUDIO)andif (hdmi_audio), keepingDRM_APPLE_AUDIO=n, T8152=ybuilds link-clean and honoringappledrm.hdmi_audio=0.drivers/gpu/drm/apple/audio.c(L2096–2138, L2193–2206): balancesof_find_device_by_node()references for bothdcp_pdevanddma_pdevacross deferred DMA lookup (put_device(&dcp_pdev->dev)), standalonedcpaud_init_snd_card()failure (deletesdma_link, putsdma_pdevanddcp_pdev, nulls both), and standalonedcpaud_unbind()(deletesdma_link, putsdma_devanddcp_dev, nulls both).tools/testing/selftests/drivers/gpu/apple-dcp/audio.py: addsdcp_is_iboot_audio()stub forcec-only-av-endpoint(PASSreported).
Evidence
drivers/gpu/drm/apple/audio.c: traced all 4 paths throughdcpaud_bind()/dcpaud_unbind()for standalone T8152 audio (!dcp_pdev,!dma_pdev,dcpaud_init_snd_card() != 0, and normal bind -> unbind); zero refcount leaks and zero double-puts.drivers/gpu/drm/apple/iomfb_iboot.c:avep_init(dcp)guarded onIS_ENABLED(CONFIG_DRM_APPLE_AUDIO)andhdmi_audio(verifiedDRM_APPLE_AUDIO=n, T8152=yclean build reported).tools/testing/selftests/drivers/gpu/apple-dcp/audio.py:dcp_is_iboot_audio()stub added alongsidedcp_is_v27_external().
There was a problem hiding this comment.
Verdict: HOLD at ed0fdb17 pending hosted checks and J873g validation.
Blockers: Repeat simultaneous DP and HDMI audio on J873g at this head, including open/close and a rebind or deferred-probe retry.
Checked: The delta balances the standalone DCP and DMA references on the updated defer, failed-card and unbind paths. AV endpoint startup now respects the audio build and runtime switches. The reported config matrix covers audio-disabled and non-T8152 builds.
…inds On T8152/J873g, of_fwnode_add_links() creates a pair of SYNC_STATE_ONLY cycle links between each apple,dpaudio node and its apple,t8152-dcp-iboot peer over the OF graph endpoints. Because dcp_audio_register() runs before dcp_register() (and unused main DCP nodes stay unbound), calling device_link_add() in dcpaud_probe() while the DCP device is still unbound clears DL_FLAG_SYNC_STATE_ONLY on the persistent fw_devlink without turning it into an autoremove link. When dcpaud_probe() then defers on !av_audiosrv_ready(), __device_links_no_driver() triggers a WARN_ON for each dpaudio instance. Check device_is_bound() and av_audiosrv_ready() before adding the managed device link, and re-check av_audiosrv_ready() after adding it. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Exact-head hardware verification on Mac mini M6 (J873g, T8152, FW 27.2) at
|
There was a problem hiding this comment.
Verdict: HOLD at e4f3bebf — e4f3bebf cleanly resolves the fw_devlink WARN_ON in __device_links_no_driver() when standalone dcpaud_probe() defers before apple,t8152-dcp-iboot binds or starts AV audio; awaiting hosted CI and exact-head J873g hardware confirmation.
Blockers:
- Wait for queued hosted CI checks at
e4f3bebf(apple-build,dt-checks,host-tests,kunit,pr-text,readiness, KUnit suites) to pass. - Post an exact-head
e4f3bebfJ873g hardware row confirming DP and HDMI audio playback (including open/close and deferred-probe/rebind with no__device_links_no_driver()warning indmesg).
Checked:
- Verified commit
e4f3bebf(+13/-5indrivers/gpu/drm/apple/audio.c, DCOSigned-off-by:present,MERGEABLEonmain) againstdrivers/base/core.c(__device_links_no_driver()L1491–1518) anddrivers/gpu/drm/apple/av.c(av_audiosrv_ready()L1616–1626). - Checking
!device_is_bound(&dcp_pdev->dev) || !av_audiosrv_ready(&dcp_pdev->dev)beforedevice_link_add()ensuresdcpaud_probe()does not stripDL_FLAG_SYNC_STATE_ONLYfrom the persistent OF-graphfw_devlinkwhile the iBoot DCP is unbound or running without audio (appledrm.hdmi_audio=0), and re-checking!av_audiosrv_ready(&dcp_pdev->dev)afterdevice_link_add()closes any concurrent teardown race while keepingput_device(&dcp_pdev->dev)balanced on every exit path.
Evidence
drivers/gpu/drm/apple/audio.cL2279–2290: pre-check gatesdevice_link_add(..., DL_FLAG_AUTOREMOVE_CONSUMER | DL_FLAG_PM_RUNTIME)ondevice_is_bound(&dcp_pdev->dev) && av_audiosrv_ready(&dcp_pdev->dev); post-check catches!link || !av_audiosrv_ready(&dcp_pdev->dev)withput_device(&dcp_pdev->dev).drivers/base/core.cL1508–1514: oncelink->supplier->links.status == DL_DEV_DRIVER_BOUND, later consumer deferral (e.g., DMA lookup) transitions the persistent link cleanly toDL_STATE_AVAILABLEwithout tripping theWARN_ON.
…udio Address follow-up review findings on standalone T8152 DP/HDMI audio: - Serialize outside-plug_lock AV audio callbacks (av_audio_before_modeset() and __av_service_disconnect()'s dcpaud_release_link()) with an rwsem in audiosrv_data so av_detach_audio_dev() drains both plug_lock and outside-plug_lock callbacks before standalone audio teardown proceeds. - Quiesce standalone dpaudio before dropping dma_link and supplier device references: dcpaud_remove() disconnects and waits for open PCM users via snd_card_free() and cancels void_work before releasing dma_link/dma_dev/ dcp_dev; dcpaud_shutdown() quiesces AV callbacks, disconnects the card, and stops void/native-link work without blocking on frozen userspace. - Exit dcpaud_probe() with -ENODEV instead of deferring indefinitely when appledrm.hdmi_audio=0 or when the bound iBoot DCP has no live AV audio service. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
There was a problem hiding this comment.
Verdict: HOLD at d3b3ade5 pending current-head lifecycle validation.
Blockers: Run hosted checks and a J873g rebind or disconnect while a PCM is open, then verify both display audio outputs recover. The published simultaneous-output row predates the new callback drain and card teardown.
Checked: The delta detaches the audio device before teardown and drains readers that already obtained the callback pointer. The probe path distinguishes an unbound supplier from a bound supplier with no audio service.
When standalone T8152 dpaudio unbinds, dcpaud_remove() quiesced the sound card and dropped dma_link/dma_dev without calling dma_release_channel() on dcpaud->chan. Rebinding dcp-dp-audio then failed with -ENODEV (-19) when of_dma_request_slave_channel() tried to claim the already-held ADMAC TX channel. Release dcpaud->chan in dcpaud_remove() after quiescing the card and silence link (unless idle_set remained stuck on a non-stopped channel). Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Addressed follow-up standalone teardown, disabled-audio exit, and live rebind DMA channel release findings in
|
There was a problem hiding this comment.
Verdict: MERGE at 3ff2527c after tracked validation.
Blockers: Complete hosted checks.
Checked: The new standalone remove path releases the requested DMA channel after card teardown when idle DMA has stopped. The exact J873g row exercised unbind with active PCM, rebind, and playback with channel reacquisition. The earlier dual-output result covers the unchanged streaming setup.
Commit d3b3ade ("drm/apple: quiesce standalone dpaudio teardown and exit on disabled audio") added audio_cb_rwsem to struct audiosrv_data in drivers/gpu/drm/apple/av.c. Add the matching struct lock field to the host-test stub in tools/testing/selftests/drivers/gpu/apple-dcp/audio.py so cec-only-av-endpoint builds and passes again. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Fixed the |
There was a problem hiding this comment.
Verdict: MERGE at 0773d03b
Blockers: None (wait for the queued hosted CI checks at 0773d03b to turn green before merging).
Checked:
- Verified the single-commit delta
3ff2527c..0773d03b(+1/-1intools/testing/selftests/drivers/gpu/apple-dcp/audio.py, DCO present): addsaudio_cb_rwsemto thestruct audiosrv_datahost-test stub incec_only_endpoint(), matching thescoped_guard(rwsem_read, &asrv->audio_cb_rwsem)added to__av_service_disconnect()indrivers/gpu/drm/apple/av.cbyd3b3ade5d6ec. - Confirmed zero kernel or driver code changed since the previously approved head
3ff2527c, so the J873g DP/HDMI audio hardware verification (dual-output streaming, active-PCM unbind, rebind, and DMA channel reacquisition) carries over unchanged. - Author verified
--group audio(2/2), fullapple-dcphost suite (98/98), andcheckpatch.pl --strict(0/0/0).
Evidence
tools/testing/selftests/drivers/gpu/apple-dcp/audio.py:156-165: stubstruct audiosrv_datanow declaresstruct lock srv_rwsem, plug_lock, audio_cb_rwsem;forscoped_guard(rwsem_read, &asrv->audio_cb_rwsem)indrivers/gpu/drm/apple/av.c:1364.git diff 3ff2527c..0773d03b: exclusivelytools/testing/selftests/drivers/gpu/apple-dcp/audio.py(+1/-1).- PR body includes
**Risk:** two-way; hosted CI currently0failures with checks queued (22pending).
There was a problem hiding this comment.
Verdict: MERGE at 0773d03b after hosted and integration checks.
Checked: The only change since the reviewed 3ff2527c adds the missing audio_cb_rwsem member to the CEC-only host fixture. It matches the field used by the extracted callback code. The test assertions and runtime sources are unchanged, so the previous J873g open-PCM unbind/rebind evidence still applies to the changed driver. The author reports 2/2 focused and 98/98 host cases locally. Verify the hosted result and outstanding train gates.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Second-generation peer row on the M2 Mac mini (J473, T8112, macOS 27.2 firmware), as Dj asked. Kernel: 7.3.0-aurora-dsc6, source 8c0ab41 = linux main a03face (which already has #3405: HDMI on dcp, USB-C on dcpext) + no-ff merge of #3613 at 3ff2527, then #3617 at 1e8cadc. Both heads are unchanged:
Not covered (needs hands): SuperSpeed enumeration on an ATC port. The J473's only 5000M devices sit on the PCIe xHCI (front USB-A); the MSI refuses a USB data-role swap, so a logical unplug/replug through the Type-C port isn't possible; and port 0 carries the USB4 link to the lab's J616s, which I left alone. A USB3 stick in the J473's USB-C port plus one physical unplug/replug is queued for Ryan. Evidence (lab store): traces/display/20261129-j473-dsc/{dsc6-peer,dsc6-usb,combo32-usb}. |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What:
Enable DisplayPort and HDMI audio on Mac mini M6 (
J873g,T8152, macOS 27.2 firmware):apple,t8152-display-admac,apple,t8152-admac-control) andapple,t8152-disp-isoc-dartcold Gen3 SID 30 admission.dpaudionodes (apple,t8152-dpaudio) and standalonedcpaud_probe()with a managed consumer link todcp_pdev(deferred untildcp_pdevis bound, exiting-ENODEVwhenhdmi_audio=0or a bound iBoot DCP has no AV audio service), serialized AV callback detach (audio_cb_rwsem), open-PCM/DMA-channel teardown quiescing on remove/shutdown, and orderedavep/audiosrvpublication.DPTX_APCALL_GET_DRIVE_SETTINGSlayout andDCP_FIRMWARE_IBOOTAV service routing (av.c,iomfb_iboot.c,t8152_dptx.c,t8152_atc.c).Tested:
3ff2527c14fa:T6030_AUDIO=y,T8152=n,T6030_AUDIO=n,T8152=y, andDRM_APPLE_AUDIO=n,T8152=yall build clean.drivers/gpu/drm/apple/tests/display.kunitconfig): 174 passed, 1 skipped, 0 failed.tools/asahi/dcpaud-sleep-hold-tests.py: 128/128 passed;tools/testing/selftests/drivers/gpu/apple-dcp/audio.pyPASS.dt_binding_check(apple,admac.yaml,apple,admac-control.yaml,apple,t6030-dpaudio.yaml,apple,dart.yaml),CHECK_DTBS=y apple/t8152-j873g.dtb, andscripts/checkpatch.pl --strict: 0 errors, 0 warnings.J873g,T8152, firmware 27.2, default cmdline, 0 failed units, 0WARNING:/Call trace/DART faults) at exact head3ff2527c14fa:card0-DP-1HDMI2560x1440+DisplayPort(32a140000.dma-controller): pre-unbind playback (IRQ 99: 0 -> 20), liveunbindofaudio-controller-1while anaplaystream was open (aplayexited cleanly on disconnect, 0 warnings/errors), liverebind, and post-rebind playback (IRQ 99: 20 -> 49, DMA channel cleanly re-acquired).DisplayPort,32a140000) + USB-C DP (DisplayPort_1,502140000) 48 kHz streaming and EV2780 ELD verified on J873g ate4f3bebf7735.Risk: two-way · T8152 (
J873g) DisplayPort/HDMI audio, display ADMAC, anddrm/appleiBoot AV endpoint startup.Not yet: