From: Animesh Manna <animesh.manna@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: jouni.hogander@intel.com, arun.r.murthy@intel.com,
Animesh Manna <animesh.manna@intel.com>
Subject: [RFC 3/3] drm/i915/alpm: Enable lobf from source in ALPM_CTL
Date: Mon, 4 Mar 2024 13:13:03 +0530 [thread overview]
Message-ID: <20240304074303.202882-4-animesh.manna@intel.com> (raw)
In-Reply-To: <20240304074303.202882-1-animesh.manna@intel.com>
Set the Link Off Between Frames Enable bit in ALPM_CTL register.
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
---
drivers/gpu/drm/i915/display/intel_display_types.h | 1 +
drivers/gpu/drm/i915/display/intel_psr.c | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
index 4d2161eeb686..c8e7a65df45d 100644
--- a/drivers/gpu/drm/i915/display/intel_display_types.h
+++ b/drivers/gpu/drm/i915/display/intel_display_types.h
@@ -1854,6 +1854,7 @@ struct intel_dp {
/* LOBF flags*/
bool lobf_supported;
+ bool lobf_enabled;
};
enum lspcon_vendor {
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index c08bffc2921a..a9f8f2982b50 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -1770,6 +1770,11 @@ static void lnl_alpm_configure(struct intel_dp *intel_dp)
ALPM_CTL_EXTENDED_FAST_WAKE_TIME(intel_dp->alpm_parameters.fast_wake_lines);
}
+ if (intel_dp->lobf_supported) {
+ alpm_ctl |= ALPM_CTL_LOBF_ENABLE;
+ intel_dp->lobf_enabled = true;
+ }
+
alpm_ctl |= ALPM_CTL_ALPM_ENTRY_CHECK(intel_dp->alpm_parameters.check_entry_lines);
intel_de_write(dev_priv, ALPM_CTL(cpu_transcoder), alpm_ctl);
--
2.29.0
next prev parent reply other threads:[~2024-03-04 7:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-04 7:43 [RFC 0/3] Link off between frames for edp Animesh Manna
2024-03-04 7:43 ` [RFC 1/3] drm/i915/alpm: Move alpm parameters from intel_psr Animesh Manna
2024-03-04 7:43 ` [RFC 2/3] drm/i915/alpm: Add compute config for lobf Animesh Manna
2024-03-04 17:33 ` Jani Nikula
2024-03-05 7:31 ` Manna, Animesh
2024-03-08 13:21 ` Hogander, Jouni
2024-03-04 7:43 ` Animesh Manna [this message]
2024-03-04 23:35 ` ✗ Fi.CI.BUILD: failure for Link off between frames for edp Patchwork
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=20240304074303.202882-4-animesh.manna@intel.com \
--to=animesh.manna@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jouni.hogander@intel.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