public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Dave Gordon <david.s.gordon@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: introduce & use i915_gem_object_mark_dirty()
Date: Thu, 28 Apr 2016 18:32:46 +0100	[thread overview]
Message-ID: <5722493E.1030200@intel.com> (raw)
In-Reply-To: <20160428163455.GC29549@nuc-i3427.alporthouse.com>

On 28/04/16 17:34, Chris Wilson wrote:
> On Thu, Apr 28, 2016 at 05:26:20PM +0100, Dave Gordon wrote:
>> This just hides the existing obj->dirty flag inside a trivial inline
>> setter, to discourage non-GEM code from looking too closely.
>>
>> Existing code that sets obj->dirty is then changed to use the function
>> instead.
>
> I prefer set_dirty, unset_dirty, is_dirty which is what I used in my
> patches.
> -Chris

I wasn't going to abstract the test and clear operation because only GEM 
code needs those. In fact (apart from debugfs and error capture), only 
put_pages() implementations ever test or clear them.

Anyway, the real reason for sending this patchset was to see whether my 
local result was reproducible, namely that it will expose at least one 
path where an object is marked dirty while not pinned, in defiance of 
your previous comment about the invalidity of such an operation.

.Dave.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-04-28 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28 16:26 [PATCH 1/2] drm/i915: introduce & use i915_gem_object_mark_dirty() Dave Gordon
2016-04-28 16:26 ` [PATCH 2/2] drm/i915: a couple more uses for i915_gem_object_mark_dirty() Dave Gordon
2016-04-28 16:36   ` Chris Wilson
2016-04-28 17:20     ` Dave Gordon
2016-04-28 17:27       ` Chris Wilson
2016-04-28 16:34 ` [PATCH 1/2] drm/i915: introduce & use i915_gem_object_mark_dirty() Chris Wilson
2016-04-28 17:32   ` Dave Gordon [this message]
2016-04-28 17:48 ` ✗ Fi.CI.BAT: warning for series starting with [1/2] " Patchwork
2016-04-28 18:36   ` Dave Gordon
2016-05-02  8:58     ` Daniel Vetter

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=5722493E.1030200@intel.com \
    --to=david.s.gordon@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --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