From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Golani,
Mitulkumar Ajitkumar" <mitulkumar.ajitkumar.golani@intel.com>
Cc: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
"Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
Subject: Re: [PATCH] drm/i915/psr: Disable Panel Replay as well if VRR is enabled
Date: Fri, 8 Nov 2024 10:06:41 +0000 [thread overview]
Message-ID: <fcf49aa2b4af04a5b2c54c746bec5815bcaa44e8.camel@intel.com> (raw)
In-Reply-To: <CY5PR11MB6344C7BDA3DDFFBFF2DC1CA7B25D2@CY5PR11MB6344.namprd11.prod.outlook.com>
On Fri, 2024-11-08 at 07:56 +0000, Golani, Mitulkumar Ajitkumar wrote:
>
>
> > -----Original Message-----
> > From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf
> > Of Jouni
> > Högander
> > Sent: 31 October 2024 13:40
> > To: intel-gfx@lists.freedesktop.org; intel-xe@lists.freedesktop.org
> > Cc: Hogander, Jouni <jouni.hogander@intel.com>
> > Subject: [PATCH] drm/i915/psr: Disable Panel Replay as well if VRR
> > is enabled
> >
> > Having Panel Replay enabled together with VRR is causing following
> > errors:
> >
> > xe 0000:00:02.0: [drm] *ERROR* Timed out waiting PSR idle state xe
> > 0000:00:02.0: [drm] *ERROR* Fault errors on pipe A: 0x00000080 xe
> > 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun xe
> > 0000:00:02.0:
> > [drm] *ERROR* Fault errors on pipe A: 0x00040080 xe 0000:00:02.0:
> > [drm]
> > *ERROR* Fault errors on pipe A: 0x00040080
> >
> > Let's disable Panel Replay as well if VRR is enabled.
> >
> > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_psr.c | 13 ++++++-------
> > 1 file changed, 6 insertions(+), 7 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> > b/drivers/gpu/drm/i915/display/intel_psr.c
> > index 0c8da1701c3a..b527c1cbb14b 100644
> > --- a/drivers/gpu/drm/i915/display/intel_psr.c
> > +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> > @@ -1564,13 +1564,6 @@ static bool _psr_compute_config(struct
> > intel_dp
> > *intel_dp,
> > const struct drm_display_mode *adjusted_mode = &crtc_state-
> > > hw.adjusted_mode;
> > int entry_setup_frames;
> >
> > - /*
> > - * Current PSR panels don't work reliably with VRR enabled
> > - * So if VRR is enabled, do not enable PSR.
> > - */
> > - if (crtc_state->vrr.enable)
> > - return false;
> > -
> > if (!CAN_PSR(intel_dp))
> > return false;
> >
> > @@ -1679,6 +1672,12 @@ void intel_psr_compute_config(struct
> > intel_dp
> > *intel_dp,
> > return;
> > }
> >
> > + /*
> > + * Currently PSR/PR doesn't work reliably with VRR enabled.
> > + */
> > + if (crtc_state->vrr.enable)
> > + return;
> > +
>
> Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Thank you Mitul for checking my patch. This is now pushed to drm-intel-
next.
BR,
Jouni Högander
>
> > crtc_state->has_panel_replay =
> > _panel_replay_compute_config(intel_dp,
> >
> > crtc_state,
> >
> > conn_state);
> > --
> > 2.34.1
>
prev parent reply other threads:[~2024-11-08 10:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 8:10 [PATCH] drm/i915/psr: Disable Panel Replay as well if VRR is enabled Jouni Högander
2024-10-31 8:15 ` ✓ CI.Patch_applied: success for " Patchwork
2024-10-31 8:15 ` ✓ CI.checkpatch: " Patchwork
2024-10-31 8:17 ` ✓ CI.KUnit: " Patchwork
2024-10-31 8:28 ` ✓ CI.Build: " Patchwork
2024-10-31 8:30 ` ✓ CI.Hooks: " Patchwork
2024-10-31 8:32 ` ✗ CI.checksparse: warning " Patchwork
2024-10-31 8:56 ` ✓ CI.BAT: success " Patchwork
2024-10-31 10:04 ` ✗ CI.FULL: failure " Patchwork
2024-11-08 9:02 ` Hogander, Jouni
2024-11-08 7:56 ` [PATCH] " Golani, Mitulkumar Ajitkumar
2024-11-08 10:06 ` Hogander, Jouni [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=fcf49aa2b4af04a5b2c54c746bec5815bcaa44e8.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mitulkumar.ajitkumar.golani@intel.com \
--cc=ville.syrjala@linux.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