Skip to content

PCI: apple: preserve the retained bootstrap across suspend-to-idle sleep - #177

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
j700/piodma-sleep
Oct 8, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
j700/piodma-sleep

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

The retained J700 PCIe bootstrap cannot be selected with system sleep. Permit suspend-to-idle only after the one-shot request, command/FIFO state and owned storage validate as idle. Retain the arena and restore the existing register-bank configuration after power-domain resume without submitting another request.

The supplier and PCIe host stay built in: published DMA/IRQ ownership has no qualified removal contract. This keeps the existing dependency boundary and requires no parallel provider or module exports. Hibernation, deeper suspend, kexec, provider unload and descriptor reuse remain unsupported.

This extends the existing public provider. Original history is preserved. Strict checkpatch (only the project's required LLM trailer-format warning), trailer checks and conflict-free test composition pass. The arm64 provider object compiled remotely during the topic build. Focused DTB/compiler checks and the matched full kernel build are continuing.

Neo qualification is in progress. Retained radio/PCIe ownership across real suspend-to-idle has not yet been validated. It does not claim arbitrary endpoint or teardown support.

🤖 Generated with Claude Code

The retained PIODMA supplier prevents the radio configuration from being
built with system sleep. Permit suspend-to-idle once the single bootstrap
has completed and the command, FIFO and owned storage validate as idle.
Reject sleep from a failed or incomplete bootstrap.

Restore the existing register-bank configuration after its power domain
resumes, while preserving the arena and never resubmitting its descriptor.
Reject hibernation and deeper suspend, which cannot preserve the live
endpoint and firmware ownership contract.

Keep the supplier and PCI host built in: published DMA and supplier IRQ
ownership still lack a removal contract. This retains the existing link
boundary and requires no module export or parallel provider.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 936ad7d into aurora-wip Oct 8, 2026
@RyanTheTide
RyanTheTide deleted the j700/piodma-sleep branch October 8, 2026 10:22
DjDeveloperr pushed a commit that referenced this pull request Oct 23, 2026
…7 AV client

The host runner fails 36 of 56 cases on PR #177, all at compile time,
because production moved ahead of the fixtures' copies:

- 191c603 ("phy: apple: make legacy USB3 handoff completion
  retryable") adds t8103_dummy_pending and t8103_usb3_retry, splits out
  atcphy_pipehandler_lock_live() and atcphy_park_live_t8103_pipehandler(),
  reads hw->gen in atcphy_mux_switch() and skips the native host BIST,
  and with it the host lock, on the T8103 generation.
- 873dae4 ("drm/apple: support both T6030 Thunderbolt dock display
  streams") keys route availability and HDMI settling on
  dcp_typec_ordered_dual_stream().
- The 14.7 external role's AV client and HDMI audio add the instance
  epoch, open, terminate and close state, close work, an AFK teardown
  on re-announcement and a parser.h helper.

Extract the new ATC helpers wherever the fixtures extract their callers
(ATC_T8103_LIVE, '' for older sources) and add the new state to the
fixtures' PHY copies. The unwind and ordinary-port quiesce units, whose
PIPE is a modeled leaf, get a live-park stub that asserts it is never
reached; the ordinary port now has a real hw profile (T8122) because the
mux switch reads its generation. The transaction units extract the real
dcp_typec_ordered_dual_stream(); their of_machine_is_compatible() only
answers "apple,t6030", false, as these are M1/M2 Type-C scenarios.

The EDID units take the real dcp_is_v14_7_external() from
dcp-internal.h; they run H17P firmware, so the 14.7-only leaves
(dcpavserv_v14_open(), drm_edid_valid(), the queued AV close) assert
that they are never reached. afk_recv_handle_teardown() gets the forward
declaration it has in afk.c. The parser.h slice of the rate units marks
its static inlines unused, as the other header slices do. The
publication-hpd unit models external_native false explicitly and asserts
that neither the AV close nor the external audio start is reached.

One behaviour changes on purpose, and the assertions that check it follow
the source: a T8103 host start no longer locks the PIPE, so the lock ACK
faults of the init, mux, gate and dp-cache controls and of the PIPE
host-lock control cannot fail it. For sources that skip that BIST
(T8103_HOST_BIST 0) the T8103 cases inject the handshake that remains
reachable, the release of a stale lock in atcphy_pipehandler_check().
They assert the exact error, the poll count and the polling function,
so removing the fault fails the case rather than passing it, and that
the PIPE never moved and the lanes stayed clean. A lock that stays held
fails the next start too; once it lets go the start parks the PIPE and
routes USB3, with no BIST poll in the whole sequence. Sources that still
run the T8103 BIST keep the previous expectations.

The runner passes 56 of 56 on 6d31ee5 with all 67 retained recovery
controls meeting their expectations. Generated mutants of the actual
bodies that ignore a failed release in atcphy_pipehandler_check(), or
drop the pending-PIPE refusal of atcphy_configure() or of the legacy DP
rate cache, are killed. These are host fixtures only; no production
driver changes.

Signed-off-by: Chris Kearney <[email protected]>
Generated-by: LLM
(cherry picked from commit 31da169)
RyanTheTide added a commit that referenced this pull request Oct 25, 2026
…fixes) onto 7.3

Sync omacom #177 (G15, T6030 dock, platform fixes) onto 7.3
RyanTheTide added a commit that referenced this pull request Oct 25, 2026
Include the newly qualified #395 omacom #177 sync on Linux 7.3 before
running consolidation gates. Keep the newer complete DWC3 host fixture
instead of duplicating its role fields and runtime-PM helpers.

Retain the WIP-only files and non-conflicting changes from the earlier
normal merge. No history is rebased or force-updated.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
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