From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH] drm/i915: Gracefully handle obj not bound to GGTT in is_pin_display Date: Thu, 15 May 2014 16:33:52 +0300 Message-ID: <20140515133352.GB27580@intel.com> References: <1396462861-16396-1-git-send-email-oscar.mateo@intel.com> <20140403093450.GC7225@phenom.ffwll.local> <92648605EABDA246B775AAB04C95A7A3012ED004@IRSMSX103.ger.corp.intel.com> <20140512161118.GH25056@phenom.ffwll.local> <20140512161453.GI25056@phenom.ffwll.local> <92648605EABDA246B775AAB04C95A7A3012EE985@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 97F1B6EE41 for ; Thu, 15 May 2014 06:33:56 -0700 (PDT) Content-Disposition: inline In-Reply-To: <92648605EABDA246B775AAB04C95A7A3012EE985@IRSMSX103.ger.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Mateo Lozano, Oscar" Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Thu, May 15, 2014 at 01:14:54PM +0000, Mateo Lozano, Oscar wrote: > > > But looking at the code a better way should be: > > > 1. Create new bo, wrap it in a kms fb. > > > 2. Slap busy load onto that bo, e.g. reapeatedly fill it with the bli= tter. > > > 3. Enable evil interruptor (igt_fork_signal_helper). > > > 4. Submit pageflip > > > > > > -> Boom since the set_cache_level will block, get interrupted and exit > > > early with -EINTR. > > > > > > Given sufficient overkill in 2. this should be 100% reliable to repro= duce. > = > As soon as I execbuffer to the bo, it gets a vma for the GGTT vm: > = > vm =3D ctx->vm; > if (!USES_FULL_PPGTT(dev)) > vm =3D &dev_priv->gtt.base; > = > ... > = > /* Look up object handles */ > ret =3D eb_lookup_vmas(eb, exec, args, vm, file); > if (ret) > goto err; > = > And then it becomes impossible to reproduce the problem :( > Is there any other trick to make set_cache_level fail? What if you make the pin_to_ggtt fail instead? Can you create an object that's too big for the ggtt? -- = Ville Syrj=E4l=E4 Intel OTC