Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Intel GFX <intel-gfx@lists.freedesktop.org>,
	Ben Widawsky <benjamin.widawsky@intel.com>
Subject: Re: [PATCH] gem_pin: Be explicit about GGTT needs
Date: Thu, 7 Nov 2013 10:58:24 -0800	[thread overview]
Message-ID: <20131107185824.GD13403@bwidawsk.net> (raw)
In-Reply-To: <CAKMK7uGYfRh5A8Grs5Dw05+rxSJOCO+5_SSTbwyufWXJUi2gdQ@mail.gmail.com>

On Thu, Nov 07, 2013 at 07:54:59PM +0100, Daniel Vetter wrote:
> On Thu, Nov 7, 2013 at 7:46 PM, Ben Widawsky <ben@bwidawsk.net> wrote:
> > On Thu, Nov 07, 2013 at 07:36:50PM +0100, Daniel Vetter wrote:
> >> On Thu, Nov 7, 2013 at 7:11 PM, Ben Widawsky <ben@bwidawsk.net> wrote:
> >> >> > @@ -63,7 +65,7 @@ static void exec(int fd, uint32_t handle, uint32_t offset)
> >> >> >     gem_exec[0].relocs_ptr = (uintptr_t) gem_reloc;
> >> >> >     gem_exec[0].alignment = 0;
> >> >> >     gem_exec[0].offset = 0;
> >> >> > -   gem_exec[0].flags = 0;
> >> >> > +   gem_exec[0].flags = LOCAL__EXEC_OBJ_NEEDS_GTT;
> >> >>
> >> >> This only really works with the aliasing ppgtt stuff on gen6, I'd just
> >> >> skip the test -it's not really useful with real ppgtt.
> >> >> -Daniel
> >> >
> >> > It is really useful with real ppgtt. Please rethink your assertion.
> >>
> >> The test links up the global gtt used by the current pin ioctl with
> >> the ppgtt. That's not useful, except when they alias. If we want
> >> soft-pinning, then we need a new ioctl mode to return the right
> >> address from the right address space. Which means a new (sub)test.
> >> -Daniel
> >
> > This is only indirectly related to soft pinning. No context will ever have the
> > global GTT address space. If you want to support the pin IOCTL, (which
> > Chris has before said he requires - the original patch series disabled
> > it) you must do this. We already have a flag that does what we want,
> > and, demonstrably, a test which exercises it.
> >
> > I do not think a new ioctl, nor a new subtest is the solution for this.
> 
> Ok, I'll wait until I see the code that implements this on top of
> ppgtt. But until we have that I don't think we need to change the test
> at all.
> -Daniel

This is a question for Chris. If DDX only depends on the behavior with
aliasing PPGTT, then I agree - no test change needed.

-- 
Ben Widawsky, Intel Open Source Technology Center

  reply	other threads:[~2013-11-07 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-07  4:05 [PATCH] gem_pin: Be explicit about GGTT needs Ben Widawsky
2013-11-07  8:30 ` Chris Wilson
2013-11-07  8:33 ` Daniel Vetter
2013-11-07 18:11   ` Ben Widawsky
2013-11-07 18:36     ` Daniel Vetter
2013-11-07 18:46       ` Ben Widawsky
2013-11-07 18:54         ` Daniel Vetter
2013-11-07 18:58           ` Ben Widawsky [this message]
2013-11-07 20:59             ` Chris Wilson

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=20131107185824.GD13403@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=benjamin.widawsky@intel.com \
    --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