From: Marius Vlad Subject: Re: [PATCH v2] drm/i915: Add RPM references in the *_get_hw_state functions Date: Tue, 5 Jan 2016 16:05:02 +0200 Message-ID: <20160105140502.GA31194@mcvlad-wk.rb.intel.com> References: <1451565949-8523-1-git-send-email-gabriel.feceoru@intel.com> <1451577127-3197-1-git-send-email-gabriel.feceoru@intel.com> <20160104150502.GW4437@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1855248487==" Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 055D76E080 for ; Tue, 5 Jan 2016 06:04:00 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org --===============1855248487== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 05, 2016 at 02:54:31PM +0100, Daniel Vetter wrote: > On Mon, Jan 4, 2016 at 4:05 PM, Ville Syrj=E4l=E4 > wrote: > > I think what we really need here is some kind of > > intel_display_power_get_unless_zero() thing. We need to make sure not > > only that the rpm reference is held when reading out the state, but also > > that the relevant power well(s) remain enabled while we're reading out > > the state. >=20 > Yeah, we need to check whether a given piece of hw is enabled or not. > All the get_hw_state funcs do that, using > intel_display_power_is_enabled. But it looks like > intel_ddi_get_hw_state partially gets this wrong. That would also > address the same backtrace in module unload. Tried __only__ this patch but it doesn't fix the trace in driver unload, had the same hunch.... > -Daniel > --=20 > Daniel Vetter > Software Engineer, Intel Corporation > +41 (0) 79 365 57 48 - http://blog.ffwll.ch > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWi82OAAoJELmLWIAQzyE+PX4H+wWkZF7yYsg7d/LPHaTl8xDQ QlC7QkY9N+msnn6mDNkOkH15BhA/6FgkE6PMfA44GJoPm+z0cHuaI4rISaZqjY5x 4zBh2a+zznS5C8648R4GBSPtk5r13nIljQw9JfTSbP8CUWHPM4VCwDDb++3Ahvx2 pZcG53oir4dBaVrOcvCDz7QukLYQ0F0TQydQNJGoT1zfpYsqiAXhiZX/aIJEVsAE uUrAuyeSoyCoCyroMQ3U7heKprLFRmC5OXfyZLW/1iYHy8A08iPmkjfY58gSgFnw lpEIGCN2VWzk+DO5pTynjZTYzsr9tQ2CG2tGvA65o8mPErmtQEaBR4ewQfkKNdg= =8pWl -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- --===============1855248487== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9pbnRlbC1nZngK --===============1855248487==--