Skip to content

PCI: apple: enable experimental J700 radio endpoint bootstrap - #151

Merged
Acelogic merged 7 commits into
aurora-wipfrom
codex/neo-pcie-root-bringup
Oct 2, 2026
Merged

Acelogic merged 7 commits into
aurora-wipfrom
codex/neo-pcie-root-bringup

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Enable the J700/T8140 PCIe path required by the Neo's Wi-Fi and Bluetooth: PIODMA bootstrap, downstream ECAM, BAR forwarding and translated DMA. Prerequisite for #153.

Enable with CONFIG_PCIE_APPLE_PIODMA_DIAG=y and pcie_apple_piodma_diag.enumerate=1.

Validated on the Neo:

Experimental: the bootstrap DMA arena remains allocated until external reset. Controller removal, memory reuse, suspend and kexec require further work. Setup and lifecycle details: Documentation/PCI/controller/apple-t8140.rst.

@Acelogic Acelogic changed the title PCI: apple: stage J700/T8140 root-port bring-up PCI: apple: enable experimental J700 radio endpoint bootstrap Oct 2, 2026
Describe the T8140 host with its root-controller window and three
port/PHY pairs. The resource layout is established by the pinned public
m1n1 T8140 initialization and a fresh J700 ADT topology capture.

Validate the binding and the J700 DTB with dt-schema. This binding change
does not establish downstream configuration or endpoint DMA support.
J700 exposes the radio power control as SMC GPIO8 through the pcIO key,
so the generic gP08 transaction cannot drive it. Extend the existing J700
pcIO GPIO path with the GPIO8 low/high words from a fresh function-reg_on
ADT observation. Keep GPIO19 behavior and cache only successful writes.

A coordinator-owned root-port test brought the PCIe link up with this
control. No radio firmware or endpoint DMA was exercised.
The public T8140 bootloader initializes PCIe, but Linux has no matching
host variant. Retain the initialized clocks, power-cycle the endpoint
under PERST, and add the T8140 SID-indexed RID table policy. Reject every
downstream config access and inactive root slot before mapping ECAM:
PIODMA configuration transport and DMA ownership remain unqualified.

This is a diagnostic prerequisite, not complete T8140 PCIe support.
The first physical test reported link-up after 12ms and enumerated the
106b:100c root bridge; no downstream configuration or DMA was attempted.

Register layout uses public m1n1 and fresh ADT observations. Takeover,
power timing and RID table behavior also use coordinator-reviewed prior
Aurora reference [cc917e8]. This is not an
independent cleanroom claim. Original Neo research and bring-up are
credited to DJ (DjDeveloperr), Ace (Acelogic), and Ryan Murray.
Describe the observed T8140 PCIe and DART resources and enable only J700
port0 with its observed reset, clock-request and SMC power controls.
Keep the DART disabled and omit endpoint routing. This topology relies
on the matching driver's unconditional downstream configuration guard.

The apple,t8140-pcie compatible also preserves the pinned public U-Boot
pre-MMIO refusal for this host. The candidate kernel/DTB reached root
bridge enumeration with link up; downstream devices remain inaccessible.
This board enablement is a diagnostic scaffold pending PIODMA support.
Describe the opt-in retained bootstrap provider and its host phandle. Keep
the association restricted to T8140. Schema and J700 DTB checks passed with
the integrated public Aurora tree; no runtime register or DMA layout changes.
Prime one retained PIODMA request behind an explicit opt-in, validate its
completion, then permit typed ECAM access to the two expected radio functions.
Program and check the root memory forwarding window and translated endpoint
DMA mappings. Add the J700 own-MAC bootloader handoff node.

This remains a diagnostic bring-up path. The arena is retained until full
reset; removal, suspend, kexec and memory reuse are not qualified. Document
those merge blockers rather than treating one completed request as teardown.

Built and tested on physical J700/T8140 with public Aurora m1n1/U-Boot/Linux:
KDE, WPA2/DHCP/DNS/HTTPS on 2.4 and 5 GHz, Bluetooth discovery and HCI power
cycling. Binding and J700 DTB schema checks pass. Executable PCI code matches
the tested Image; firmware and unit data are not included.
@Acelogic
Acelogic force-pushed the codex/neo-pcie-root-bringup branch from cd96f62 to 3b0af1d Compare October 2, 2026 02:43
@Acelogic
Acelogic marked this pull request as ready for review October 2, 2026 02:44
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Keep setup and lifecycle requirements; leave hardware run results in
the PR and local qualification artifacts. No hardware code changes.
@Acelogic
Acelogic merged commit e60f880 into aurora-wip Oct 2, 2026
Acelogic added a commit that referenced this pull request Oct 2, 2026
PR #153 was merged into the PCIe working branch after #151 had already
landed, leaving its Wi-Fi and Bluetooth files out of aurora-wip. Merge the
completed radio series into the development branch alongside the Neo AVD
integration from #154.

Keep the radio branch's complete contributor history. All radio files are
identical to that branch, and the AVD driver and board wiring are unchanged.
The two sides have no overlapping file edits against the public merge base.

Validation: exact tree comparisons and git diff --check pass. The existing
qualified Neo stack still passes Wi-Fi HTTPS with Bluetooth powered and KDE
running; its Aurora-firmware AVD campaign passed 34 runs / 1740 exact frames.
This integration does not claim a fresh build or boot of the merged kernel.
DjDeveloperr added a commit that referenced this pull request Oct 23, 2026
drm/asahi: G17 stability fixes from linux-aurora PR #151 (7.3 port)
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