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/loongson: stop to set get_vblank_timestamp for 7A1000 CRTC
Date: Mon, 16 Mar 2026 11:56:46 +1000	[thread overview]
Message-ID: <review-overall-20260314165421.1201790-1-zhengxingda@iscas.ac.cn> (raw)
In-Reply-To: <20260314165421.1201790-1-zhengxingda@iscas.ac.cn>

Overall Series Review

Subject: drm/loongson: stop to set get_vblank_timestamp for 7A1000 CRTC
Author: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Patches: 1
Reviewed: 2026-03-16T11:56:46.669899

---

This is a single-patch series that removes the `.get_vblank_timestamp` callback from the `ls7a1000_crtc_funcs` table in the Loongson DRM driver. The stated rationale is that the 7A1000 display controller lacks hardware capability for vblank querying, and setting this callback misleads the kernel.

However, the patch's rationale is questionable. The 7A1000 **does** have `get_scan_pos` hardware ops implemented (lines 289, 301 in `lsdc_crtc.c`), and the shared `lsdc_crtc_helper_funcs` (line 939) sets `.get_scanout_position = lsdc_crtc_get_scanout_position` for both 7A1000 and 7A2000 CRTCs. The `drm_crtc_vblank_helper_get_vblank_timestamp` function simply calls `get_scanout_position` from the helper funcs, so the 7A1000 does have the necessary plumbing in place.

The patch may paper over a real bug rather than fix the root cause. The warning the author encounters is more likely caused by `drm_calc_timestamping_constants()` not being called before vblank timestamp queries are made, or by the mode's `crtc_clock` being zero when using firmware-injected EDID timings. Removing the timestamp callback entirely downgrades vblank precision for **all** 7A1000 users rather than fixing the actual issue.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-03-16  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-14 16:54 [PATCH] drm/loongson: stop to set get_vblank_timestamp for 7A1000 CRTC Icenowy Zheng
2026-03-16  1:56 ` Claude Code Review Bot [this message]
2026-03-16  1:56 ` Claude review: " 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-overall-20260314165421.1201790-1-zhengxingda@iscas.ac.cn \
    --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