From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/7] drm/i915/display: Remove intel_crtc_state->psr_vsc
Date: Thu, 14 Dec 2023 11:26:07 -0500 [thread overview]
Message-ID: <ZXssn5mhi52nx5mc@intel.com> (raw)
In-Reply-To: <20231214114838.1113648-2-jouni.hogander@intel.com>
On Thu, Dec 14, 2023 at 01:48:32PM +0200, Jouni Högander wrote:
> There is no really need to have separate vsc for psr usage. Use
> intel_crtc_state->infoframes.vsc instead.
I was worried that this would mess with the regular dp path,
but then I noticed that that skips on has_psr, so
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display_types.h | 1 -
> drivers/gpu/drm/i915/display/intel_psr.c | 4 ++--
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 341d80c2b9de..a9c9b6edcc25 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -1220,7 +1220,6 @@ struct intel_crtc_state {
> bool wm_level_disabled;
> u32 dc3co_exitline;
> u16 su_y_granularity;
> - struct drm_dp_vsc_sdp psr_vsc;
>
> /*
> * Frequence the dpll for the port should run at. Differs from the
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
> index b6e2e70e1290..9d5dc3fb6f20 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -1380,7 +1380,7 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
>
> crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_VSC);
> intel_dp_compute_psr_vsc_sdp(intel_dp, crtc_state, conn_state,
> - &crtc_state->psr_vsc);
> + &crtc_state->infoframes.vsc);
> }
>
> void intel_psr_get_config(struct intel_encoder *encoder,
> @@ -1652,7 +1652,7 @@ static void intel_psr_enable_locked(struct intel_dp *intel_dp,
> drm_dbg_kms(&dev_priv->drm, "Enabling PSR%s\n",
> intel_dp->psr.psr2_enabled ? "2" : "1");
>
> - intel_write_dp_vsc_sdp(encoder, crtc_state, &crtc_state->psr_vsc);
> + intel_write_dp_vsc_sdp(encoder, crtc_state, &crtc_state->infoframes.vsc);
> intel_snps_phy_update_psr_power_state(dev_priv, phy, true);
> intel_psr_enable_sink(intel_dp);
> intel_psr_enable_source(intel_dp, crtc_state);
> --
> 2.34.1
>
next prev parent reply other threads:[~2023-12-14 16:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-14 11:48 [PATCH 0/7] VSC SDP rework Jouni Högander
2023-12-14 11:48 ` [PATCH 1/7] drm/i915/display: Remove intel_crtc_state->psr_vsc Jouni Högander
2023-12-14 16:26 ` Rodrigo Vivi [this message]
2023-12-14 11:48 ` [PATCH 2/7] drm/i915/display: Move colorimetry_support from intel_psr to intel_dp Jouni Högander
2023-12-14 16:26 ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 3/7] drm/i915/display: Unify VSC SPD preparation Jouni Högander
2023-12-15 16:57 ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 4/7] drm/i915/display: Fix vsc_sdp computation Jouni Högander
2023-12-15 17:05 ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 5/7] drm/i915/display: Ignore only psr specific part of vsc sdp Jouni Högander
2023-12-15 17:29 ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 6/7] drm/i915/display: Read PSR configuration before VSC SDP Jouni Högander
2023-12-15 17:08 ` Rodrigo Vivi
2023-12-14 11:48 ` [PATCH 7/7] drm/i915/display: Take care of VSC select field in video dip ctl register Jouni Högander
2023-12-15 17:26 ` Rodrigo Vivi
2023-12-20 8:02 ` Kahola, Mika
2023-12-14 14:04 ` ✗ Fi.CI.CHECKPATCH: warning for VSC SDP rework Patchwork
2023-12-14 14:04 ` ✗ Fi.CI.SPARSE: " Patchwork
2023-12-14 14:22 ` ✓ Fi.CI.BAT: success " Patchwork
2023-12-14 15:21 ` ✓ Fi.CI.IGT: " 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=ZXssn5mhi52nx5mc@intel.com \
--to=rodrigo.vivi@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