public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: writeback: Document behaviour for framebuffer size mismatch
Date: Thu, 04 Jun 2026 13:41:03 +1000	[thread overview]
Message-ID: <review-patch1-20260601195732.72538-1-derek.foreman@collabora.com> (raw)
In-Reply-To: <20260601195732.72538-1-derek.foreman@collabora.com>

Patch Review

**Correctness:** The placement of the new text is appropriate — it's inserted into the `WRITEBACK_FB_ID` property description between the "will always read as zero and is not preserved across commits" sentence and the "Userspace must set this property" sentence. Looking at the existing code at line 60-62:

```
 *	and is not preserved across commits.
 *	Userspace must set this property to an output buffer every time it
```

The new text:
```
 *	If the width and height of the framebuffer do not match those of the
 *	attached CRTC, the driver may either fail or scale (not crop) the
 *	content to fit the framebuffer.
```

This reads well in context and is positioned logically.

**Suggestions:**

- Consider making the failure mode more explicit: "the driver may either fail the atomic commit or scale..." — this clarifies that failure should happen at check time, which is important for userspace doing `TEST_ONLY` commits to probe capabilities.

- It may be worth adding a note about aspect ratio behavior being driver-defined, e.g., "the driver may either fail the atomic commit or scale (not crop) the content to fit the framebuffer; the scaling method is driver-defined."

- The commit message mentions "Cropping would make less sense, as the region to crop is underspecified without some other properties to define an origin." This is good reasoning. It might be worth capturing the "not crop" rationale briefly in the doc itself (or at least confirming the commit message is sufficient for future archaeology).

**Nit:** The subject says "Document behaviour" (British English) — this is fine but note the kernel tends toward American English ("behavior") in most documentation, though it's not strictly enforced.

**Overall:** This is a clean, focused documentation patch. The content is correct and fills a real gap in the UAPI specification. It could benefit from slightly more precise wording around failure mode (at atomic check time) and scaling semantics, but as-is it's a reasonable improvement.

**Verdict:** Looks good with optional wording improvements. Reviewed-by worthy.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-06-04  3:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01 19:57 [PATCH] drm: writeback: Document behaviour for framebuffer size mismatch Derek Foreman
2026-06-04  3:41 ` Claude Code Review Bot [this message]
2026-06-04  3:41 ` Claude review: " Claude Code Review Bot
  -- strict thread matches above, loose matches on Subject: below --
2026-06-02 19:17 [PATCH v2] " Derek Foreman
2026-06-04  2:17 ` Claude review: " Claude Code Review Bot
2026-06-04  2:17 ` Claude Code Review Bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=review-patch1-20260601195732.72538-1-derek.foreman@collabora.com \
    --to=claude-review@example.com \
    --cc=dri-devel-reviews@example.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox