From: Keith Packard Subject: Re: [PATCH 1/4] drm/i915: fix ilk rc6 teardown locking Date: Sat, 19 Mar 2011 11:46:38 -0700 Message-ID: References: <1300489968-8574-1-git-send-email-ben@bwidawsk.net> <1300489968-8574-2-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1232729354==" Return-path: Received: from keithp.com (home.keithp.com [63.227.221.253]) by gabe.freedesktop.org (Postfix) with ESMTP id 9AA899E75E for ; Sat, 19 Mar 2011 11:46:42 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson , Ben Widawsky , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1232729354== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Sat, 19 Mar 2011 07:44:24 +0000, Chris Wilson = wrote: > I have an aversion to passing parameters around to control locking. > Considering that we modify dev_private and adjust LP_RING during enable, > wouldn't it be prudent to move that under the struct mutex? Especially in > the future if we allow it be enabled at runtime. This seems like the right plan to me as well -- make access to the renderctx always covered by the struct mutex. > Failing that: bool was_locked =3D mutex_is_locked(&dev->struct_mutex); Ick. Better to just stick the needed locks around the two calls to ironlake_teardown_rc6. You're just masking the issue otherwise. =2D-=20 keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iD8DBQFNhPoOQp8BWwlsTdMRApc+AJ92yUQBBAbWWZKouo8VdnPph+iitwCfTCdV 7e5FARCFyW7Yy6Fva++luS0= =bkYA -----END PGP SIGNATURE----- --=-=-=-- --===============1232729354== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1232729354==--