From: Ben Widawsky Subject: Re: [PATCH 1/3] drm/i915: relative_constants_mode race fix Date: Wed, 23 Nov 2011 13:59:17 -0800 Message-ID: <20111123215917.GB13784@bolo_yeung.jf.intel.com> References: <1319337685-26195-1-git-send-email-ben@bwidawsk.net> <864nxued69.fsf@sumi.keithp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1930133105==" Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 88B1E9E97A for ; Wed, 23 Nov 2011 13:59:23 -0800 (PST) In-Reply-To: <864nxued69.fsf@sumi.keithp.com> 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: Keith Packard Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1930133105== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2011 at 01:34:06PM -0800, Keith Packard wrote: > On Sat, 22 Oct 2011 19:41:23 -0700, Ben Widawsky wrote: >=20 > > + mode !=3D dev_priv->relative_constants_mode) { > > + if (INTEL_INFO(dev)->gen < 4) > > + return -EINVAL; > > + > > + if (INTEL_INFO(dev)->gen > 5 && > > + mode =3D=3D I915_EXEC_CONSTANTS_REL_SURFACE) > > + return -EINVAL; >=20 > You need to clean up before returning; you've allocated cliprects and an > exec buffer and also locked the mutex. The hits just keep on coming for me it seems. I had this fixed locally and I'm not even sure how I ended up propagating this patch. It all broke when I rebased the original patch series to split this fix out. Even more unfortunate is this repo with the changes has long since been corrupted to destruction. So I shall fix this for the forced throttling series, and you can take it from there if you like it. Thanks for catching this. Shame on me... Ben --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOzWy0AAoJEL9nTIiJEj0pI74H+QEOGNPTQrT2+pGvwyy/AfU0 IAoJz6jwvmm969uwD4TERdwKbX2abE+dWC/kCsLILOAiFvXi/yaMl5qPndJR2otg 6nASSvpoGnmvNkGlmWoH50Ea1JqDTNxl6rPiJOnBFAJ/EHx4ApxUF62FpL/hhF4A rEIiJTTe3Pt0IO0d6l3JuTI+vL+IsLYzByJe4+DO4d/Z8P/4mvNW20uTa/SXhH8c uZO8dwp6IkYp1119yOkHuVs9bsaB/p8K6s7737ml2M9Q/soGOlzW++7mTSMzUARS +SH1gOIAON1D28oIjtAPrmg0hXfb2H4RzIy1txJu8v0PvBsjMd/08dKSK+R7cwU= =pDAe -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5-- --===============1930133105== 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 --===============1930133105==--