AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: <sunpeng.li@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: alexander.deucher@amd.com, Leo Li <sunpeng.li@amd.com>,
	harry.wentland@amd.com, dingchen.zhang@amd.com, roman.li@amd.com
Subject: [PATCH 1/4] drm/amd/display: expose AMD specific DPCD for PSR-SU-RC support
Date: Thu, 2 Jun 2022 14:03:44 -0400	[thread overview]
Message-ID: <20220602180347.754067-2-sunpeng.li@amd.com> (raw)
In-Reply-To: <20220602180347.754067-1-sunpeng.li@amd.com>

From: David Zhang <dingchen.zhang@amd.com>

[why & how]

Expose vendor specific DPCD registers for rate controlling the eDP sink
TCON's refresh rate during PSR active. When used in combination with
PSR-SU and Freesync, it is called PSR-SU Rate Contorol, or PSR-SU-RC for
short.

v2: Add all DPCD registers required

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
---
 drivers/gpu/drm/amd/display/include/ddc_service_types.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/include/ddc_service_types.h b/drivers/gpu/drm/amd/display/include/ddc_service_types.h
index 20a3d4e23f66..05096c644a60 100644
--- a/drivers/gpu/drm/amd/display/include/ddc_service_types.h
+++ b/drivers/gpu/drm/amd/display/include/ddc_service_types.h
@@ -41,6 +41,10 @@
 #define DP_DEVICE_ID_38EC11 0x38EC11
 #define DP_FORCE_PSRSU_CAPABILITY 0x40F
 
+#define DP_SINK_PSR_ACTIVE_VTOTAL		0x373
+#define DP_SINK_PSR_ACTIVE_VTOTAL_CONTROL_MODE	0x375
+#define DP_SOURCE_PSR_ACTIVE_VTOTAL		0x376
+
 enum ddc_result {
 	DDC_RESULT_UNKNOWN = 0,
 	DDC_RESULT_SUCESSFULL,
-- 
2.36.1


  reply	other threads:[~2022-06-02 19:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02 18:03 [PATCH 0/4] PSR-SU-RC DC support and some PSR-SU fixes sunpeng.li
2022-06-02 18:03 ` sunpeng.li [this message]
2022-06-02 18:03 ` [PATCH 2/4] drm/amd/display: Add PSR-SU-RC support in DC sunpeng.li
2022-06-02 18:03 ` [PATCH 3/4] drm/amd/display: pass panel instance in dirty rect message sunpeng.li
2022-06-02 20:48   ` Harry Wentland
2022-06-03 15:08     ` Leo
2022-06-03 16:32   ` [PATCH v2 3/4] drm/amd/display: pass panel instance in DMUB dirty rect command sunpeng.li
2022-06-03 17:29     ` Harry Wentland
2022-06-02 18:03 ` [PATCH 4/4] drm/amd/display: refactor dirty rect dmub command decision sunpeng.li
2022-06-02 20:50 ` [PATCH 0/4] PSR-SU-RC DC support and some PSR-SU fixes Harry Wentland

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=20220602180347.754067-2-sunpeng.li@amd.com \
    --to=sunpeng.li@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dingchen.zhang@amd.com \
    --cc=harry.wentland@amd.com \
    --cc=roman.li@amd.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