All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Matthew Auld <matthew.auld@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Flush the existing fence before GGTT read/write
Date: Fri, 23 Aug 2019 16:44:16 +0100	[thread overview]
Message-ID: <156657505627.4019.6499438950068776719@skylake-alporthouse-com> (raw)
In-Reply-To: <156657427951.4019.2352830332162256103@skylake-alporthouse-com>

Quoting Chris Wilson (2019-08-23 16:31:19)
> Quoting Matthew Auld (2019-08-23 16:26:16)
> > On 23/08/2019 16:03, Chris Wilson wrote:
> > > Our fence management is lazy, very lazy. If the user marks an object as
> > > untiled, we do not immediately flush the fence but merely mark it as
> > > dirty. On the use we have to remember to check and remove the fence, by
> > > which time we hope it is idle and we do not have to wait.
> > > 
> > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111468
> > > Fixes: 1f7fd484fff1 ("drm/i915: Replace i915_vma_put_fence()")
> > > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > > Cc: Matthew Auld <matthew.auld@intel.com>
> > 
> > Well that sucks, should we also try to be more solid on the reloc path?
> 
> I was thinking about pulling it into the object_ggtt_pin. That appears
> to cover everyone.

An alternative would be not to be so lazy on changing tiling mode. We
are lazy because of the userspace caching, where it may inherit an
inappropriate tiling and so change it during object initialisation. That
used to introduce a stall, hence being lazy.

Although, the fence is on the vma. If we don't like the current fence,
we could just allocate a new vma. (If there isn't enough room for the
fresh vma, we would evict and hopefully stall on LRU one.) Hmm.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-08-23 15:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23 15:03 [PATCH] drm/i915: Flush the existing fence before GGTT read/write Chris Wilson
2019-08-23 15:26 ` Matthew Auld
2019-08-23 15:28   ` Matthew Auld
2019-08-23 15:31   ` Chris Wilson
2019-08-23 15:44     ` Chris Wilson [this message]
2019-08-23 15:39 ` [PATCH v2] " Chris Wilson
2019-08-23 17:48 ` ✓ Fi.CI.BAT: success for drm/i915: Flush the existing fence before GGTT read/write (rev2) Patchwork
2019-08-24 17:36 ` ✓ Fi.CI.IGT: " Patchwork

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=156657505627.4019.6499438950068776719@skylake-alporthouse-com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.