From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915/display: Do not check psr2 if psr/panel replay is not supported
Date: Mon, 20 Nov 2023 15:11:08 +0200 [thread overview]
Message-ID: <87pm04o9hv.fsf@intel.com> (raw)
In-Reply-To: <20231120130214.3332726-1-jouni.hogander@intel.com>
On Mon, 20 Nov 2023, Jouni Högander <jouni.hogander@intel.com> wrote:
> Do not continue to psr2 checks if psr or panel replay is not supported.
>
> Cc: Animesh Manna <animesh.manna@intel.com>
>
> Fixes: b8cf5b5d266e ("drm/i915/panelreplay: Initializaton and compute config for panel replay")
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/9670
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_psr.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
> index 8d180132a74b..9aa1c269cfef 100644
> --- a/drivers/gpu/drm/i915/display/intel_psr.c
> +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> @@ -1373,6 +1373,9 @@ void intel_psr_compute_config(struct intel_dp *intel_dp,
> else
> crtc_state->has_psr = _psr_compute_config(intel_dp, crtc_state);
>
> + if (!(crtc_state->has_panel_replay || crtc_state->has_psr))
Pure nitpicking, but I always find it easier to think and read this:
if (!has_panel_replay && !has_psr)
BR,
Jani.
> + return;
> +
> crtc_state->has_psr2 = intel_psr2_config_valid(intel_dp, crtc_state);
>
> crtc_state->infoframes.enable |= intel_hdmi_infoframe_enable(DP_SDP_VSC);
--
Jani Nikula, Intel
next prev parent reply other threads:[~2023-11-20 13:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-20 13:02 [Intel-gfx] [PATCH] drm/i915/display: Do not check psr2 if psr/panel replay is not supported Jouni Högander
2023-11-20 13:11 ` Jani Nikula [this message]
2023-11-20 17:17 ` Manna, Animesh
2023-11-23 7:54 ` Hogander, Jouni
2023-11-21 3:21 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2023-11-22 12:42 ` Hogander, Jouni
2023-11-22 14:29 ` Illipilli, TejasreeX
2023-11-22 13:30 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-11-23 6:46 ` [Intel-gfx] ✓ 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=87pm04o9hv.fsf@intel.com \
--to=jani.nikula@linux.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