From: "Souza, Jose" Subject: Re: [PATCH 3/7] drm/i915/psr: Initialize PSR mutex even when sink is not reliable Date: Fri, 5 Apr 2019 00:32:37 +0000 Message-ID: <8e13d0fb8c09263ef70778a26fa9aa7809940d03.camel@intel.com> References: <20190403233539.31828-1-jose.souza@intel.com> <20190403233539.31828-3-jose.souza@intel.com> <643fdbb13ef5356daa9993209b49fcd23b9c42be.camel@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2127335121==" Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id A8E336E5C7 for ; Fri, 5 Apr 2019 00:32:39 +0000 (UTC) In-Reply-To: <643fdbb13ef5356daa9993209b49fcd23b9c42be.camel@intel.com> 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 --===============2127335121== Content-Language: en-US Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-QHr2BvwsNKzTiAaMwDGx" --=-QHr2BvwsNKzTiAaMwDGx Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2019-04-04 at 17:22 -0700, Dhinakaran Pandiyan wrote: > On Wed, 2019-04-03 at 16:35 -0700, Jos=C3=A9 Roberto de Souza wrote: > > Even when driver is reloaded and hits this scenario the PSR mutex > > should be initialized, otherwise reading PSR debugfs status will > > execute mutex_lock() over a mutex that was not initialized. > >=20 > > Cc: Dhinakaran Pandiyan > > Cc: Rodrigo Vivi > > Signed-off-by: Jos=C3=A9 Roberto de Souza > > --- > > drivers/gpu/drm/i915/intel_psr.c | 1 - > > 1 file changed, 1 deletion(-) > >=20 > > diff --git a/drivers/gpu/drm/i915/intel_psr.c > > b/drivers/gpu/drm/i915/intel_psr.c > > index c80bb3003a7d..a84da931c3be 100644 > > --- a/drivers/gpu/drm/i915/intel_psr.c > > +++ b/drivers/gpu/drm/i915/intel_psr.c > > @@ -1227,7 +1227,6 @@ void intel_psr_init(struct drm_i915_private > > *dev_priv) > > if (val) { > > DRM_DEBUG_KMS("PSR interruption error set\n"); > > dev_priv->psr.sink_not_reliable =3D true; > Should we just sink_support =3D false and keep the return? IOW is there > any use > for sink_not_reliable? I guess it could cause confusion as user had PSR support before the module reload and after the load PSR debugfs will say that sink do not support PSR. >=20 > > - return; > > } > > =20 > > /* Set link_standby x link_off defaults */ --=-QHr2BvwsNKzTiAaMwDGx 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/mOWkkFAlymoiQACgkQVenbO/mO WkmhPgf/V3f1dacu7A7zFKLn/sF+XACHSzgPmyyktILuPsGGbwFEY1Bxz8okBapw 9H+SiHQFWWfVClDKtt0tW/qWFE7v2zFWKAdjaf/P2Nvxlyz/Fe+9thsXvjl1e4An 72nNUrIGbs1T/7mW7Vx5RtZ4mirGwsyFhTZi95NWRoWTnCDGFXMt3qGFdYjd3oiq d5nNaOqsaPSpBls7h88zhwZXzITsft5c+R5zYufZnThHcFwX5ZwTScxHwO6EPOQ/ lpQiVuBTZEwUcJMQdlzusTN4UJKuwJGLlVvXLzhyDp8A8C1vNCaxf0pbR+n9rc7a SW7P+UAUzdqim1WXWEzCNReN0u2a9Q== =Gj1A -----END PGP SIGNATURE----- --=-QHr2BvwsNKzTiAaMwDGx-- --===============2127335121== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4 --===============2127335121==--