Skip to content

drm/adbe: Keep the layer on screen for a colour-only commit - #181

Open
paulscalise1 wants to merge 1 commit into
OrchardLinux:mainfrom
paulscalise1:adbe-colour-first-frame
Open

paulscalise1 wants to merge 1 commit into
OrchardLinux:mainfrom
paulscalise1:adbe-colour-first-frame

Conversation

@paulscalise1

Copy link
Copy Markdown

Follow-up to #160: a colour-only commit before the first frame fell back to scanout address 0.

What changes

  • A CTM goes to the pipe in a packet that also carries the plane's layer. Until now a commit without a plane update repeated the last staged plane update, which is zero before any frame has been shown.
  • The driver now remembers the format, base and stride of the layer each packet puts on screen. That is the boot framebuffer at probe and after a park. A colour-only commit repeats that layer.

Tested on an iPhone 7 (D10), today's main plus this commit, booted from RAM:

  • CTM-only property commits (kmsctm) set and clear the matrix while the pipe's base, format and stride registers stay on the frame being shown.
  • GAMMA_LUT of 257 entries sets and clears.
  • 240 page flips in 4.000 s, 16.67 ms each. No display warnings in the log.
  • checkpatch --strict is clean.

Not tested

  • The exact ordering from the review. With the atomic helpers a CRTC turns on together with its plane, and the flush is skipped while the CRTC is off, so I could not get a colour-only commit ahead of the first frame from userspace. The test above runs the new path after a frame is up.
  • The iPads (J71b). The change touches only the CTM packet path, which the iPads use only once they get CTM.

🤖 Generated with Claude Code

A new CTM goes to the pipe in a packet, and the packet also carries the
plane's layer. A commit that changed only the colour sent the last
staged plane update, which before the first frame is still zero, so the
pipe fell back to scanout address 0.

Remember the format, base and stride of the layer each packet puts on
screen (the boot framebuffer at probe and after a park), and repeat
that layer when a commit has no plane update.

Tested on an iPhone 7 (D10) booted from RAM: while CTM-only property
commits set and clear the matrix, the pipe's base, format and stride
registers stay on the frame being shown. GAMMA_LUT still applies, and
240 page flips take 16.67 ms each.

Assisted-by: LLM
Signed-off-by: Paul Scalise <paulscalise1@users.noreply.github.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.

1 participant