Message ID | 20210719134322.54386-2-chris.chiu@canonical.com |
---|---|
State | Rejected |
Headers | show |
Series | Fix garbage display when scrolling on TGL platforms | expand |
On Mon, Jul 19, 2021 at 9:43 PM <chris.chiu@canonical.com> wrote: > From: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com> > > BugLink: https://bugs.launchpad.net/bugs/1926579 > > TGL PSR2 hardware tracking shows momentary flicker and screen shift if > TGL Display stepping is B1 from A0. > It has been fixed from TGL Display stepping C0. > > HSDES: 18015970021 > HSDES: 2209313811 > BSpec: 55378 > > v2: Add checking of PSR2 manual tracking (Jose) > > Cc: José Roberto de Souza <jose.souza@intel.com> > Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com> > Reviewed-by: José Roberto de Souza <jose.souza@intel.com> > Signed-off-by: José Roberto de Souza <jose.souza@intel.com> > Link: > https://patchwork.freedesktop.org/patch/msgid/20210422160544.2427123-1-gwan-gyeong.mun@intel.com > (cherry picked from commit 8804325861be242a420d68c0175127a5947ac35a) > Signed-off-by: Chris Chiu <chris.chiu@canonical.com> > --- > drivers/gpu/drm/i915/display/intel_psr.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_psr.c > b/drivers/gpu/drm/i915/display/intel_psr.c > index 8ada4f829cab..056dcc2ec4ce 100644 > --- a/drivers/gpu/drm/i915/display/intel_psr.c > +++ b/drivers/gpu/drm/i915/display/intel_psr.c > @@ -804,6 +804,13 @@ static bool intel_psr2_config_valid(struct intel_dp > *intel_dp, > } > } > > + /* Wa_2209313811 */ > + if (!crtc_state->enable_psr2_sel_fetch && > + IS_TGL_DISPLAY_STEP(dev_priv, STEP_A0, STEP_B1)) { > + drm_dbg_kms(&dev_priv->drm, "PSR2 HW tracking is not > supported this Display stepping\n"); > + return false; > + } > + > if (!crtc_state->enable_psr2_sel_fetch && > (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { > drm_dbg_kms(&dev_priv->drm, > -- > 2.25.1 > > > -- > kernel-team mailing list > kernel-team@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/kernel-team Fail to compile on Hirsute and Impish due to undefined macros. Need v2 to fix
On 19.07.21 16:29, Chris Chiu wrote: > > > On Mon, Jul 19, 2021 at 9:43 PM <chris.chiu@canonical.com > <mailto:chris.chiu@canonical.com>> wrote: > > From: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com > <mailto:gwan-gyeong.mun@intel.com>> > > BugLink: https://bugs.launchpad.net/bugs/1926579 > <https://bugs.launchpad.net/bugs/1926579> > > TGL PSR2 hardware tracking shows momentary flicker and screen shift if > TGL Display stepping is B1 from A0. > It has been fixed from TGL Display stepping C0. > > HSDES: 18015970021 > HSDES: 2209313811 > BSpec: 55378 > > v2: Add checking of PSR2 manual tracking (Jose) > > Cc: José Roberto de Souza <jose.souza@intel.com <mailto:jose.souza@intel.com>> > Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com > <mailto:gwan-gyeong.mun@intel.com>> > Reviewed-by: José Roberto de Souza <jose.souza@intel.com > <mailto:jose.souza@intel.com>> > Signed-off-by: José Roberto de Souza <jose.souza@intel.com > <mailto:jose.souza@intel.com>> > Link: > https://patchwork.freedesktop.org/patch/msgid/20210422160544.2427123-1-gwan-gyeong.mun@intel.com > <https://patchwork.freedesktop.org/patch/msgid/20210422160544.2427123-1-gwan-gyeong.mun@intel.com> > (cherry picked from commit 8804325861be242a420d68c0175127a5947ac35a) > Signed-off-by: Chris Chiu <chris.chiu@canonical.com > <mailto:chris.chiu@canonical.com>> > --- > drivers/gpu/drm/i915/display/intel_psr.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_psr.c > b/drivers/gpu/drm/i915/display/intel_psr.c > index 8ada4f829cab..056dcc2ec4ce 100644 > --- a/drivers/gpu/drm/i915/display/intel_psr.c > +++ b/drivers/gpu/drm/i915/display/intel_psr.c > @@ -804,6 +804,13 @@ static bool intel_psr2_config_valid(struct intel_dp > *intel_dp, > } > } > > + /* Wa_2209313811 */ > + if (!crtc_state->enable_psr2_sel_fetch && > + IS_TGL_DISPLAY_STEP(dev_priv, STEP_A0, STEP_B1)) { > + drm_dbg_kms(&dev_priv->drm, "PSR2 HW tracking is not > supported this Display stepping\n"); > + return false; > + } > + > if (!crtc_state->enable_psr2_sel_fetch && > (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { > drm_dbg_kms(&dev_priv->drm, > -- > 2.25.1 > > > -- > kernel-team mailing list > kernel-team@lists.ubuntu.com <mailto:kernel-team@lists.ubuntu.com> > https://lists.ubuntu.com/mailman/listinfo/kernel-team > <https://lists.ubuntu.com/mailman/listinfo/kernel-team> > > > > Fail to compile on Hirsute and Impish due to undefined macros. Need v2 to fix > was that meant as a NACK?
On 20.07.21 15:10, Stefan Bader wrote: > On 19.07.21 16:29, Chris Chiu wrote: >> >> >> On Mon, Jul 19, 2021 at 9:43 PM <chris.chiu@canonical.com >> <mailto:chris.chiu@canonical.com>> wrote: >> >> From: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com >> <mailto:gwan-gyeong.mun@intel.com>> >> >> BugLink: https://bugs.launchpad.net/bugs/1926579 >> <https://bugs.launchpad.net/bugs/1926579> >> >> TGL PSR2 hardware tracking shows momentary flicker and screen shift if >> TGL Display stepping is B1 from A0. >> It has been fixed from TGL Display stepping C0. >> >> HSDES: 18015970021 >> HSDES: 2209313811 >> BSpec: 55378 >> >> v2: Add checking of PSR2 manual tracking (Jose) >> >> Cc: José Roberto de Souza <jose.souza@intel.com <mailto:jose.souza@intel.com>> >> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com >> <mailto:gwan-gyeong.mun@intel.com>> >> Reviewed-by: José Roberto de Souza <jose.souza@intel.com >> <mailto:jose.souza@intel.com>> >> Signed-off-by: José Roberto de Souza <jose.souza@intel.com >> <mailto:jose.souza@intel.com>> >> Link: >> https://patchwork.freedesktop.org/patch/msgid/20210422160544.2427123-1-gwan-gyeong.mun@intel.com >> <https://patchwork.freedesktop.org/patch/msgid/20210422160544.2427123-1-gwan-gyeong.mun@intel.com> >> (cherry picked from commit 8804325861be242a420d68c0175127a5947ac35a) >> Signed-off-by: Chris Chiu <chris.chiu@canonical.com >> <mailto:chris.chiu@canonical.com>> >> --- >> drivers/gpu/drm/i915/display/intel_psr.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/gpu/drm/i915/display/intel_psr.c >> b/drivers/gpu/drm/i915/display/intel_psr.c >> index 8ada4f829cab..056dcc2ec4ce 100644 >> --- a/drivers/gpu/drm/i915/display/intel_psr.c >> +++ b/drivers/gpu/drm/i915/display/intel_psr.c >> @@ -804,6 +804,13 @@ static bool intel_psr2_config_valid(struct intel_dp >> *intel_dp, >> } >> } >> >> + /* Wa_2209313811 */ >> + if (!crtc_state->enable_psr2_sel_fetch && >> + IS_TGL_DISPLAY_STEP(dev_priv, STEP_A0, STEP_B1)) { >> + drm_dbg_kms(&dev_priv->drm, "PSR2 HW tracking is not >> supported this Display stepping\n"); >> + return false; >> + } >> + >> if (!crtc_state->enable_psr2_sel_fetch && >> (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { >> drm_dbg_kms(&dev_priv->drm, >> -- >> 2.25.1 >> >> >> -- >> kernel-team mailing list >> kernel-team@lists.ubuntu.com <mailto:kernel-team@lists.ubuntu.com> >> https://lists.ubuntu.com/mailman/listinfo/kernel-team >> <https://lists.ubuntu.com/mailman/listinfo/kernel-team> >> >> >> >> Fail to compile on Hirsute and Impish due to undefined macros. Need v2 to fix >> > was that meant as a NACK? It seems like it, as v2/v3 has been sent and reviewed already. Kleber
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 8ada4f829cab..056dcc2ec4ce 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -804,6 +804,13 @@ static bool intel_psr2_config_valid(struct intel_dp *intel_dp, } } + /* Wa_2209313811 */ + if (!crtc_state->enable_psr2_sel_fetch && + IS_TGL_DISPLAY_STEP(dev_priv, STEP_A0, STEP_B1)) { + drm_dbg_kms(&dev_priv->drm, "PSR2 HW tracking is not supported this Display stepping\n"); + return false; + } + if (!crtc_state->enable_psr2_sel_fetch && (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { drm_dbg_kms(&dev_priv->drm,