Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Eric Anholt <eric@anholt.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Remove bogus test for a present execbuffer
Date: Mon, 19 Nov 2012 17:53:32 +0100	[thread overview]
Message-ID: <20121119165332.GC5854@phenom.ffwll.local> (raw)
In-Reply-To: <874nkllf1o.fsf@eliezer.anholt.net>

On Mon, Nov 19, 2012 at 08:42:59AM -0800, Eric Anholt wrote:
> Chris Wilson <chris@chris-wilson.co.uk> writes:
> 
> > The intention of checking obj->gtt_offset!=0 is to verify that the
> > target object was listed in the execbuffer and had been bound into the
> > GTT. This is guarranteed by the earlier rearrangement to split the
> > execbuffer operation into reserve and relocation phases and then
> > verified by the check that the target handle had been processed during
> > the reservation phase.
> >
> > However, the actual checking of obj->gtt_offset==0 is bogus as we can
> > indeed reference an object at offset 0. For instance, the framebuffer
> > installed by the BIOS often resides at offset 0 - causing EINVAL as we
> > legimately try to render using the stolen fb.
> 
> We've never triggered this check in practice, as far as I know, so I'm
> happy to see it go.
> 
> Reviewed-by: Eric Anholt <eric@anholt.net>

Queued for -next, thanks for the patch.
-Daniel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

      reply	other threads:[~2012-11-19 16:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19 15:30 [PATCH] drm/i915: Remove bogus test for a present execbuffer Chris Wilson
2012-11-19 16:42 ` Eric Anholt
2012-11-19 16:53   ` Daniel Vetter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121119165332.GC5854@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=eric@anholt.net \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox