AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: <sunpeng.li@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: <Harry.Wentland@amd.com>, <mario.limonciello@amd.com>,
	<wiagn233@outlook.com>, <sysdadmin@m1k.cloud>,
	<timur.kristof@gmail.com>, <xaver.hugl@kde.org>,
	<mario.kleiner.de@gmail.com>, <michel.daenzer@mailbox.org>,
	<matthew.schwartz@linux.dev>, <chris@kode54.net>,
	Leo Li <sunpeng.li@amd.com>
Subject: [PATCH v3 0/3] Fixes for flip_done timed outs and PSR/Replay corruption
Date: Tue, 30 Jun 2026 14:02:58 -0400	[thread overview]
Message-ID: <20260630180301.362070-1-sunpeng.li@amd.com> (raw)

From: Leo Li <sunpeng.li@amd.com>

v1 here:
https://lore.kernel.org/amd-gfx/20260616201828.389985-1-sunpeng.li@amd.com/
v2 here:
https://lore.kernel.org/amd-gfx/20260622171752.73374-1-sunpeng.li@amd.com/

Summary of changes since v2:

* Fixed a regression in kms_vrr@flip-basic, which exposed a scenario in
  optimistic event delivery where wrong vblank timestamps were attached.
  See new docstrings in patch 2/3 for details.
* Readability cleanups in patch 2/3, thanks Michel!

v7.0.y based branch here (drops the revert and resolves merge conflicts
due to recent refactor of IRQ handlers from amdgpu_dm.c into
amdgpu_dm_irq.c):
https://gitlab.freedesktop.org/leoli/linux-asdn/-/commits/lileo/flip_done_timeout_corruption_fixes?ref_type=heads

A Note on LLM use:

Claude helped with code plumbing and IGT testing. The effort of
reporting, debugging, spinning up fixes, and testing them, were from
humans. Kudos to individuals who collaborated on the amd-gfx mailing
list, gitlab, 2026 Display Hackfest, and AMD internal chats, to finally
nail down a fix.


Leo Li (3):
  drm/amd/display: consolidate DCN vblank/flip handling onto
    vupdate_no_lock
  drm/amd/display: check GRPH_FLIP status before sending event
  Revert "drm/amd/display: Restore 5s vbl offdelay for NV3x+ DGPUs"

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 234 +++++++++++---
 .../amd/display/amdgpu_dm/amdgpu_dm_crtc.c    |  70 ++--
 .../drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 299 +++++++++---------
 drivers/gpu/drm/amd/display/dc/core/dc.c      |  45 +++
 drivers/gpu/drm/amd/display/dc/dc.h           |   1 +
 5 files changed, 417 insertions(+), 232 deletions(-)

--
2.54.0


             reply	other threads:[~2026-06-30 18:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30 18:02 sunpeng.li [this message]
2026-06-30 18:02 ` [PATCH v3 1/3] drm/amd/display: consolidate DCN vblank/flip handling onto vupdate_no_lock sunpeng.li
2026-06-30 18:03 ` [PATCH v3 2/3] drm/amd/display: check GRPH_FLIP status before sending event sunpeng.li
2026-06-30 18:03 ` [PATCH v3 3/3] Revert "drm/amd/display: Restore 5s vbl offdelay for NV3x+ DGPUs" sunpeng.li
2026-07-01 21:09 ` [PATCH v3 0/3] Fixes for flip_done timed outs and PSR/Replay corruption Mario Limonciello

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=20260630180301.362070-1-sunpeng.li@amd.com \
    --to=sunpeng.li@amd.com \
    --cc=Harry.Wentland@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=chris@kode54.net \
    --cc=mario.kleiner.de@gmail.com \
    --cc=mario.limonciello@amd.com \
    --cc=matthew.schwartz@linux.dev \
    --cc=michel.daenzer@mailbox.org \
    --cc=sysdadmin@m1k.cloud \
    --cc=timur.kristof@gmail.com \
    --cc=wiagn233@outlook.com \
    --cc=xaver.hugl@kde.org \
    /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