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: media: iris: don't specify min_acc_length in the source code
Date: Thu, 07 May 2026 12:40:17 +1000	[thread overview]
Message-ID: <review-patch2-20260507-iris-ubwc-v5-2-e9a3aee53c49@oss.qualcomm.com> (raw)
In-Reply-To: <20260507-iris-ubwc-v5-2-e9a3aee53c49@oss.qualcomm.com>

Patch Review

Replaces `core->iris_platform_data->ubwc_config->mal_length` (which was hardcoded to `32` for SM8550) with:

```c
payload = qcom_ubwc_min_acc_length_64b(ubwc) ? 64 : 32;
```

The helper `qcom_ubwc_min_acc_length_64b()` returns true only when `ubwc_enc_version == UBWC_1_0` and `ubwc_dec_version` is `UBWC_2_0` or `UBWC_3_0`. SM8550 uses UBWC 4.x, so this returns false, yielding 32 -- matching the original hardcoded value.

The upstream header does note this is "the best guess, based on the MDSS driver," but that's the API's responsibility, not this patch's concern.

No issues.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-05-07  2:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07  1:10 [PATCH v5 0/7] media: iris: migrate to using global UBWC config Dmitry Baryshkov
2026-05-07  1:10 ` [PATCH v5 1/7] media: iris: retrieve UBWC platform configuration Dmitry Baryshkov
2026-05-07  2:40   ` Claude review: " Claude Code Review Bot
2026-05-07  1:10 ` [PATCH v5 2/7] media: iris: don't specify min_acc_length in the source code Dmitry Baryshkov
2026-05-07  2:40   ` Claude Code Review Bot [this message]
2026-05-07  1:10 ` [PATCH v5 3/7] media: iris: don't specify highest_bank_bit " Dmitry Baryshkov
2026-05-07  2:40   ` Claude review: " Claude Code Review Bot
2026-05-07  1:10 ` [PATCH v5 4/7] media: iris: don't specify ubwc_swizzle " Dmitry Baryshkov
2026-05-07  2:40   ` Claude review: " Claude Code Review Bot
2026-05-07  1:10 ` [PATCH v5 5/7] media: iris: don't specify bank_spreading " Dmitry Baryshkov
2026-05-07  2:40   ` Claude review: " Claude Code Review Bot
2026-05-07  1:10 ` [PATCH v5 6/7] media: iris: don't specify max_channels " Dmitry Baryshkov
2026-05-07  2:40   ` Claude review: " Claude Code Review Bot
2026-05-07  1:10 ` [PATCH v5 7/7] media: iris: drop remnants of UBWC configuration Dmitry Baryshkov
2026-05-07  2:40   ` Claude review: " Claude Code Review Bot
2026-05-07  2:40 ` Claude review: media: iris: migrate to using global UBWC config 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-patch2-20260507-iris-ubwc-v5-2-e9a3aee53c49@oss.qualcomm.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