Skip to content

drm/imagination: apple: land #122, drop A9 debug switches from #121 and #126 - #141

Merged
henrikklee merged 4 commits into
mainfrom
a9-pm-cleanup
Dec 4, 2026
Merged

henrikklee merged 4 commits into
mainfrom
a9-pm-cleanup

Conversation

@henrikklee

Copy link
Copy Markdown

Follow-up to Berkay's A9 GPU pull requests #121, #122 and #126.

Debug switches stay on the contributor's fork (CONTRIBUTING, Bring-up material). No behaviour change with default parameters. Applies to every A9 (S8000 and S8003 share the code).

brkosebay and others added 4 commits December 3, 2026 11:56
…euse

Expose the firmware's retired geometry and fragment phase times, in
24 MHz ticks, alongside the existing host in-flight counters.

The two W records alternate by sequence parity. Both submit paths wait
for last_seq - 1 before writing seq = last_seq + 1, so the prior job in
that slot has retired. dma_rmb() orders the same coherent CPU mapping
used by the done stamp. Preserve W+0x550/0x8ac before fill_ta/fill_3d
memsets W, then count it in s8003_job_write before the result is zeroed.
A rejected fill cannot double-count an old result. No firmware record,
submission ordering or clock policy changes.

Affects: Apple A9 (S8003); measurement only
Assisted-by: LLM
Signed-off-by: Berkay Kösebay <brkosebay@users.noreply.github.com>
drm/imagination: apple: account S8003 firmware phase time in apple_jobs

Resolve the conflict with #126 in s8003_submit_frag(): keep the
per-device PM set address from #126 and pass #122's gpu_ticks.
The S8003 PM pools are now always shared between VMs, so drop the
apple_pm_shared module parameter that kept per-set pools one boot
parameter away. Debug switches stay out of the tree.

Say next to the guard on a shared pool what it relies on: a scene's
geometry and fragment jobs are armed in one submission, so a previous
user whose fragment job is not yet submitted has none to come.

Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
The A9 firmware now always gets its job channels and PM sets through
META's uncached window, as Apple's kext gives them. Drop the module
parameters that kept the earlier cached layout one boot parameter away
(apple_ch_uncached, apple_pm_uncached) and the runtime switch for
s8003_touch() (apple_touch); s8003_touch() still runs on every variant
that needs it. Debug switches stay out of the tree.

The comment on where the firmware reaches the records moves to where
the layout is chosen.

Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
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.

2 participants