From: Ben Widawsky <widawsky@gmail.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, Daniel Vetter <daniel@ffwll.ch>
Cc: benjamin.widawsky@linux.intel.com, intel-gfx@lists.freedesktop.org
Subject: Re: [RFC] drm/i915: context support unit test
Date: Thu, 30 Dec 2010 16:48:31 -0800 [thread overview]
Message-ID: <20101231004831.GA14664@snipes.kumite> (raw)
In-Reply-To: <20101230202118.GA4813@snipes.kumite>
On Thu, Dec 30, 2010 at 12:21:19PM -0800, Ben Widawsky wrote:
> On Thu, Dec 30, 2010 at 01:48:36PM +0100, Daniel Vetter wrote:
> > This way userspace doesn't have to track a list of context bos and the
> > kernel gem stays in full control. And specifying the context relation of
> > a bo toghether with the relocation that actually uses it is probably the
> > clearest solution.
> I'll need to research this one more.
It seems like you picked this slot based mechanism to get rid of needing
a disassociate IOCTL. At least if I followed you, the scheme allows you
to overwrite BOs associated with the context. The cost is userspace
would have to manage the slots. It'd be very easy to just have a flag to
associate a buffer with a context, and forget the slots.
As you point out this hinges on the assumption that not many buffers are
needed, and the size doesn't grow. I'm not the right person to judge the
accuracy of that, but it seems like an undesirable trait. I do really
like doing away with the extra IOCTLs though.
Chris, do you have an opinion? I'm leaning towards the two IOCTLs at
present.
The compromise would be to associate in the execbuffer, and disassociate
through an IOCTL.
Thanks.
Ben
next prev parent reply other threads:[~2010-12-31 0:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-25 22:53 [RFC] drm/i915: context support unit test Ben Widawsky
2010-12-28 22:36 ` Daniel Vetter
2010-12-29 4:03 ` Ben Widawsky
2010-12-30 10:07 ` Daniel Vetter
2010-12-30 11:13 ` Chris Wilson
2010-12-30 12:48 ` Daniel Vetter
2010-12-30 20:21 ` Ben Widawsky
2010-12-31 0:48 ` Ben Widawsky [this message]
2010-12-31 9:31 ` Chris Wilson
2011-01-04 20:10 ` Daniel Vetter
2011-01-04 20:21 ` Ben Widawsky
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=20101231004831.GA14664@snipes.kumite \
--to=widawsky@gmail.com \
--cc=benjamin.widawsky@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=daniel@ffwll.ch \
--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