From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/i915: Unbind the bo if the user requests a different alignment
Date: Wed, 14 Apr 2010 12:23:37 +0200 [thread overview]
Message-ID: <20100414102336.GA3440@viiv.ffwll.ch> (raw)
In-Reply-To: <89k304$i8icq3@orsmga001.jf.intel.com>
On Wed, Apr 14, 2010 at 10:29:24AM +0100, Chris Wilson wrote:
> Darn. The current incarnation was literally for glyph masks, clip masks
> and all the other short-lived write-once, immediately use as source
> buffers within the same batch, and then discard. But there is nothing to
> ensure that they exist only within a batch, and so they could well fall
> foul of a17. I wonder if we can simply lazily rebind the bo at the point
> of fence allocation rather than at tiling change. I am not sure if that
> even makes sense yet. The other approach would seem to be to SET_TILING
> on the last use within a batch and hope that doesn't cause a stall. Maybe
> also a mechanism to mark the buffer contents as uninitialized so that if
> we need to unbind, we can simply discard and allocate fresh pages? (An
> extension to madvise, MADV_UNINITIALIZED or MADV_CLEAN?)
At least currently, set_tiling always stalls when actually changing
something (if the alignment doesn't match or if there's a wrong fence reg
attached to the buffer). btw I think the libdrm bo caching has a bug wrt
to this: It resets tiling parameters before inserting a bo into the cache,
while the bo might still be busy. My first try at a patch a few weeks ago
blew up tough, so I left it as-is. Comments?
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2010-04-14 10:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1270416921-25483-1-git-send-email-chris@chris-wilson.co.uk>
2010-04-12 17:10 ` [PATCH 1/3] drm/i915: Unbind the bo if the user requests a different alignment Eric Anholt
2010-04-12 17:23 ` Chris Wilson
2010-04-13 23:49 ` Eric Anholt
2010-04-14 9:29 ` Chris Wilson
2010-04-14 10:23 ` Daniel Vetter [this message]
2010-04-14 21:19 ` Eric Anholt
2010-04-19 4:07 ` Owain Ainsworth
[not found] ` <1270417973-6795-1-git-send-email-chris@chris-wilson.co.uk>
2010-04-19 0:16 ` [PATCH] drm/i915: Remove spurious warning "Failure to install fence" Eric Anholt
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=20100414102336.GA3440@viiv.ffwll.ch \
--to=daniel@ffwll.ch \
--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