mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Chen, Chen-Yu" <Chen-Yu.Chen@amd.com>
To: shivamkalra98@zohomail.in,
	"Harry Wentland" <harry.wentland@amd.com>,
	"Leo Li" <sunpeng.li@amd.com>,
	"Rodrigo Siqueira" <siqueira@igalia.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Hamza Mahfooz" <hamzamahfooz@linux.microsoft.com>,
	"Mario Limonciello" <mario.limonciello@amd.com>
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,
	David Weber <weber.aulendorf@gmail.com>,
	Alex Hung <alex.hung@amd.com>, Hugo Sales <hugo@hsal.es>
Subject: Re: [PATCH v2] drm/amd/display: use atomic commit for panel power savings
Date: Mon, 16 Nov 2026 17:55:05 +0800	[thread overview]
Message-ID: <ffbea2f6-c2d1-4e61-9e58-fc458d7abf0d@amd.com> (raw)
In-Reply-To: <20261111-abm-sysfs-atomic-v2-1-6dfb19c51ebe@zohomail.in>

Hi Shivam,

Thanks for the v2. Hugo posted v2 of two series on Nov 13 that do the
same thing, so it would be good to work together on one of them:

- "Leave self-refresh before an ABM level update" [1] takes the panel
  out of PSR or Panel Replay around the DC update that carries the new
  level.
- "Commit panel_power_savings writes from the kernel" [2]. Its 2/5 is
  the same atomic check change as in this patch and David's 2/2 [3],
  and its 4/5 commits the write from the store.

The part this patch is missing is [1]. Once ABM changes no longer force
a modeset, the level goes out as a fast update while the panel may
still be in self-refresh. On DCN 2.1 that hangs DMUB: Hugo hit it on
Cezanne, and we've seen it on Renoir. On Strix (DCN 3.5), with Hugo's
v1 series but without [1], a write on an idle desktop left PSR stuck
and the ABM ramp stalled until some unrelated commit. The IGT run
doesn't catch this, since the panel has to already be in self-refresh
when the level changes.

Hugo's 4/5 also skips the commit when the level doesn't change (as
Harry asked), sets allow_modeset to false so a write never turns into
a full modeset, and takes a runtime PM reference.

Hamza, agreed on running this through promotion first. We're putting
Hugo's two series through this week's promotion testing in place of
this patch, since they include [1].

Could you test Hugo's two v2 series on your Rembrandt and review them?
That's DCN 3.1.2, where PSR is on by default, so it covers a case
neither Hugo (DCN 2.1) nor we (DCN 3.5) have. It would help to:

- let psr_state reach 6 before each write, then check that it leaves
  and comes back
- rerun amd_abm, which Hugo hasn't done on v2

Hugo, please Cc Shivam on v3.

[1] https://lore.kernel.org/r/20261113-amdgpu-psr-abm-update-next-v2-0-27ce790856ea@hsal.es
[2] https://lore.kernel.org/r/20261113-abm-sysfs-commit-v2-0-5808d17a7e89@hsal.es
[3] https://lore.kernel.org/amd-gfx/20260813112634.11455-3-weber.aulendorf@gmail.com/

Thanks,
Chenyu

      parent reply	other threads:[~2026-11-16  9:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 19:24 Shivam Kalra via B4 Relay
2026-11-10 20:30 ` Mario Limonciello
2026-11-10 20:59   ` Hamza Mahfooz
2026-11-12 15:19     ` Alex Hung
2026-11-16  9:55 ` Chen, Chen-Yu [this message]

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=ffbea2f6-c2d1-4e61-9e58-fc458d7abf0d@amd.com \
    --to=chen-yu.chen@amd.com \
    --cc=airlied@gmail.com \
    --cc=alex.hung@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hamzamahfooz@linux.microsoft.com \
    --cc=harry.wentland@amd.com \
    --cc=hugo@hsal.es \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=shivamkalra98@zohomail.in \
    --cc=simona@ffwll.ch \
    --cc=siqueira@igalia.com \
    --cc=sunpeng.li@amd.com \
    --cc=weber.aulendorf@gmail.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

all inboxes | Powered by JetHome®