From: "Souza, Jose" Subject: Re: [PATCH v5 4/9] drm/i915/psr: Drop test for EDP in CRTC when forcing commit Date: Thu, 7 Mar 2019 22:53:05 +0000 Message-ID: References: <20190306064728.8234-1-jose.souza@intel.com> <20190306064728.8234-4-jose.souza@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1948995128==" Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 350946E244 for ; Thu, 7 Mar 2019 22:53:07 +0000 (UTC) In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "intel-gfx@lists.freedesktop.org" , "Pandiyan, Dhinakaran" List-Id: intel-gfx@lists.freedesktop.org --===============1948995128== Content-Language: en-US Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-Do0ua4+0LR7D+6iuA3Pg" --=-Do0ua4+0LR7D+6iuA3Pg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2019-03-07 at 12:26 -0800, Dhinakaran Pandiyan wrote: > On Tue, 2019-03-05 at 22:47 -0800, Jos=C3=A9 Roberto de Souza wrote: > > If has_psr is set it means that CRTC has a EDP panel attached so it > > can be dropped, also has_psr is better than check for EDP output > > alone as it will avoid set mode_changed when PSR is not supported > > in > > panel or with current modeset. > Since we were already checking has_psr, I don't think it is relevant > to > say checking just that is "better than check for EDP output alone". > Can > you please reword the commit message? What about replace everything to: If has_psr is set it means that CRTC has a EDP panel attached so the EDP check is redundant and can be dropped. >=20 > Reviewed-by: Dhinakaran Pandiyan > > Cc: Dhinakaran Pandiyan > > Cc: Ville Syrj=C3=A4l=C3=A4 > > Reviewed-by: Rodrigo Vivi > > Signed-off-by: Jos=C3=A9 Roberto de Souza > > --- > > drivers/gpu/drm/i915/intel_psr.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/i915/intel_psr.c > > b/drivers/gpu/drm/i915/intel_psr.c > > index 6175b1d2e0c8..2d9f64c362e2 100644 > > --- a/drivers/gpu/drm/i915/intel_psr.c > > +++ b/drivers/gpu/drm/i915/intel_psr.c > > @@ -981,9 +981,7 @@ static int intel_psr_fastset_force(struct > > drm_i915_private *dev_priv) > > =20 > > intel_crtc_state =3D to_intel_crtc_state(crtc_state); > > =20 > > - if (crtc_state->active && > > - intel_crtc_has_type(intel_crtc_state, > > INTEL_OUTPUT_EDP) && > > - intel_crtc_state->has_psr) { > > + if (crtc_state->active && intel_crtc_state->has_psr) { > > /* Mark mode as changed to trigger a pipe- > > > update() */ > > crtc_state->mode_changed =3D true; > > break; --=-Do0ua4+0LR7D+6iuA3Pg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEVNG051EijGa0MiaQVenbO/mOWkkFAlyBoNAACgkQVenbO/mO Wkk6Awf/eC9eQLGebCMQ9oOqR28pkqREskNVLFsN0jynAel/VfzuTYsiYfQz9ZvK VefiFUcynMMgD3RxSS/BIkv8RCmtzdwgcxZWlbyhaCmT/UmBUTlbs8p8w/pa0Khh 3BWWbUNqviieTHmzks8fZR7aCAcNDDfHPe9s8/czw3U2iaT10fSNmvW3VGv6Qx3e i2Jmx09owiP1B37UNqXfqn4scTcPtGILISCStj22fDL/D1D8CBST6OUJvDxDR8H8 +nFmCoAk5PjnpyPiUynEaKbW8ttxyb63p3SrqrV/b5JicjGi/LR2eJov0Hd68Ca/ T367H3Z9LKrlgWdU0RFjU5CGbPciew== =d9VV -----END PGP SIGNATURE----- --=-Do0ua4+0LR7D+6iuA3Pg-- --===============1948995128== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4 --===============1948995128==--