All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "Kahola, Mika" <mika.kahola@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Cc: "Sousa, Gustavo" <gustavo.sousa@intel.com>
Subject: Re: [PATCH v2 2/2] drm/i915/psr: Implement Wa 14019834836
Date: Tue, 8 Oct 2024 08:12:46 +0000	[thread overview]
Message-ID: <70fa8d99524c4e331cd0942a4e10819bbfd60eaf.camel@intel.com> (raw)
In-Reply-To: <MW4PR11MB7054D9AC5CE7A6BF7FDE646DEF702@MW4PR11MB7054.namprd11.prod.outlook.com>

On Wed, 2024-10-02 at 12:04 +0000, Kahola, Mika wrote:
> > -----Original Message-----
> > From: Hogander, Jouni <jouni.hogander@intel.com>
> > Sent: Thursday, 26 September 2024 9.48
> > To: intel-gfx@lists.freedesktop.org
> > Cc: Kahola, Mika <mika.kahola@intel.com>; Sousa, Gustavo
> > <gustavo.sousa@intel.com>; Hogander, Jouni
> > <jouni.hogander@intel.com>
> > Subject: [PATCH v2 2/2] drm/i915/psr: Implement Wa 14019834836
> > 
> > This patch implements HW workaround 14019834836 for display version
> > 30.
> > 
> > v2:
> >   - move Wa 14019834836 to it's own function
> >   - apply only for display version 30
> > 
> 
> Looks ok to me.
> 
> Reviewed-by: Mika Kahola <mika.kahola@intel.com>

Thank you Mika and Gustavo for reviewing my patches. These are now
pushed to drm-intel-next.

BR,

Jouni Högander

> 
> > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> > ---
> >  drivers/gpu/drm/i915/display/intel_psr.c | 36
> > ++++++++++++++++++++++++
> >  1 file changed, 36 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/display/intel_psr.c
> > b/drivers/gpu/drm/i915/display/intel_psr.c
> > index f3db0f997ef31..eaa3dd40efc9e 100644
> > --- a/drivers/gpu/drm/i915/display/intel_psr.c
> > +++ b/drivers/gpu/drm/i915/display/intel_psr.c
> > @@ -2611,6 +2611,38 @@ static bool
> > psr2_sel_fetch_pipe_state_supported(const struct intel_crtc_state
> > *c
> >         return true;
> >  }
> > 
> > +/* Wa 14019834836 */
> > +static void intel_psr_apply_pr_link_on_su_wa(struct
> > intel_crtc_state
> > +*crtc_state) {
> > +       struct intel_display *display =
> > to_intel_display(crtc_state);
> > +       struct intel_encoder *encoder;
> > +       int hactive_limit;
> > +
> > +       if (crtc_state->psr2_su_area.y1 != 0 ||
> > +           crtc_state->psr2_su_area.y2 != 0)
> > +               return;
> > +
> > +       if (crtc_state->output_format ==
> > INTEL_OUTPUT_FORMAT_YCBCR420)
> > +               hactive_limit = intel_dp_is_uhbr(crtc_state) ? 1230
> > : 546;
> > +       else
> > +               hactive_limit = intel_dp_is_uhbr(crtc_state) ? 615
> > : 273;
> > +
> > +       if (crtc_state->hw.adjusted_mode.hdisplay < hactive_limit)
> > +               return;
> > +
> > +       for_each_intel_encoder_mask_with_psr(display->drm, encoder,
> > +                                            crtc_state-
> > >uapi.encoder_mask) {
> > +               struct intel_dp *intel_dp =
> > enc_to_intel_dp(encoder);
> > +
> > +               if (!intel_dp_is_edp(intel_dp) &&
> > +                   intel_dp->psr.panel_replay_enabled &&
> > +                   intel_dp->psr.sel_update_enabled) {
> > +                       crtc_state->psr2_su_area.y2++;
> > +                       return;
> > +               }
> > +       }
> > +}
> > +
> >  static void
> >  intel_psr_apply_su_area_workarounds(struct intel_crtc_state
> > *crtc_state)  {
> > @@ -2623,6 +2655,10 @@ intel_psr_apply_su_area_workarounds(struct
> > intel_crtc_state *crtc_state)
> >               IS_ALDERLAKE_P(i915) || IS_TIGERLAKE(i915))) &&
> >             crtc_state->splitter.enable)
> >                 crtc_state->psr2_su_area.y1 = 0;
> > +
> > +       /* Wa 14019834836 */
> > +       if (DISPLAY_VER(display) == 30)
> > +               intel_psr_apply_pr_link_on_su_wa(crtc_state);
> >  }
> > 
> >  int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
> > --
> > 2.34.1
> 


  reply	other threads:[~2024-10-08  8:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-26  6:47 [PATCH v2 0/2] Implement Wa 14019834836 Jouni Högander
2024-09-26  6:47 ` [PATCH v2 1/2] drm/i915/psr: Add new SU area calculation helper to apply workarounds Jouni Högander
2024-09-26  6:47 ` [PATCH v2 2/2] drm/i915/psr: Implement Wa 14019834836 Jouni Högander
2024-10-02 12:04   ` Kahola, Mika
2024-10-08  8:12     ` Hogander, Jouni [this message]
2024-09-27 18:35 ` ✓ Fi.CI.BAT: success for Implement Wa 14019834836 (rev2) Patchwork
2024-09-28 19:55 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-10-08  7:07   ` Hogander, Jouni

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=70fa8d99524c4e331cd0942a4e10819bbfd60eaf.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=gustavo.sousa@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mika.kahola@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.