Repository navigation
drm/imagination: apple: land #122, drop A9 debug switches from #121 and #126 - #141
Merged
Merged
Conversation
…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>
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>
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to Berkay's A9 GPU pull requests #121, #122 and #126.
apple_jobs): its branch conflicts with drm/imagination: apple: give the A9 firmware its job records uncached #126 on one call ins8003_submit_frag(), and the contributor's fork does not accept maintainer pushes. This PR carries a merge of drm/imagination: apple: account S8003 firmware phase time in apple_jobs #122's branch with that conflict resolved (the PM set address from drm/imagination: apple: give the A9 firmware its job records uncached #126, plus drm/imagination: apple: account S8003 firmware phase time in apple_jobs #122'sgpu_ticks), so drm/imagination: apple: account S8003 firmware phase time in apple_jobs #122 shows as merged once this lands.apple_pm_shared(drm/imagination: apple: share S8003 PM pools between VMs #121): the PM pools are always shared. Adds a comment at the shared-pool guard that it relies on a scene's geometry and fragment jobs being armed in one submission.apple_ch_uncached,apple_pm_uncachedandapple_touch(drm/imagination: apple: give the A9 firmware its job records uncached #126): the A9 always uses the uncached record layout, as Apple's kext does;s8003_touch()still runs where the variant needs it.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).