All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mateo Lozano, Oscar" <oscar.mateo@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: "Intel-gfx@lists.freedesktop.org"
	<Intel-gfx@lists.freedesktop.org>,
	"Madajczak, Tomasz" <Tomasz.Madajczak@intel.com>
Subject: Re: pin OABUFFER to GGTT
Date: Tue, 1 Jul 2014 17:13:44 +0000	[thread overview]
Message-ID: <92648605EABDA246B775AAB04C95A7A3137EB5BD@IRSMSX103.ger.corp.intel.com> (raw)
In-Reply-To: <20140701165149.GB7371@nuc-i3427.alporthouse.com>

> -----Original Message-----
> From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> Sent: Tuesday, July 01, 2014 5:52 PM
> To: Mateo Lozano, Oscar
> Cc: Intel-gfx@lists.freedesktop.org; Madajczak, Tomasz; Rutkowski, Adam J;
> Jesse Barnes (jbarnes@virtuousgeek.org)
> Subject: Re: [Intel-gfx] pin OABUFFER to GGTT
> 
> On Tue, Jul 01, 2014 at 04:34:48PM +0000, Mateo Lozano, Oscar wrote:
> > > -----Original Message-----
> > > From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> > > Sent: Tuesday, July 01, 2014 5:30 PM
> > > To: Mateo Lozano, Oscar
> > > Cc: Intel-gfx@lists.freedesktop.org; Madajczak, Tomasz
> > > Subject: Re: [Intel-gfx] pin OABUFFER to GGTT
> > >
> > > On Tue, Jul 01, 2014 at 04:24:56PM +0000, Mateo Lozano, Oscar wrote:
> > > > Submitting again (this time copying the mailing list correctly):
> > > >
> > > > The bo_pin ioctl has been discarded in GEN6+ with this patch:
> > > >
> > > >     drm/i915: Reject the pin ioctl on gen6+
> > > >
> > > >     Especially with ppgtt this kinda stopped making sense. And if
> > > > we
> > > >     indeed need this to hack around an issue, we need something
> > > > that also
> > > >     works for non-root.
> > > >
> > > >     Signed-off-by: Daniel Vetter daniel.vetter@ffwll.ch
> > > >
> > > > The thing is, the performance team used this call to pin the
> > > > OABUFFER to
> > > GGTT and then mapping it to userspace. This OABUFFER cannot be in
> > > PPGTT
> > > because: "When each context has its own Per Process GTT, this field
> > > should be always set to GGTT." (BSpec dixit).
> > > >
> > > > Can we re-enable it? or should we find an alternative for this case?
> > >
> > > EXEC_OBJECT_NEEDS_GTT?
> > > -Chris
> >
> > The object (AFAICT, please Tomasz correct me if I am wrong) is not really
> used inside any batchbuffer.
> 
> Then what's the issue? If you only use it as via a global gtt mapping it only
> exists in the ggtt.

The issue is they need:

A) A buffer object.
B) Bound to GGTT.
C) That userspace knows the GGTT offset of, so that they can program OABUFFER with it.
D) That userspace can map so that they can read the reported counters.

They used to create a bo, call bo_pin on it, use args->offset to program OABUFFER (via MI_LOAD_REGISTER_IMM, I imagine), map it and read the counter values. They cannot do this anymore.

  reply	other threads:[~2014-07-01 17:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01 16:24 pin OABUFFER to GGTT Mateo Lozano, Oscar
2014-07-01 16:30 ` Chris Wilson
2014-07-01 16:34   ` Mateo Lozano, Oscar
2014-07-01 16:51     ` Chris Wilson
2014-07-01 17:13       ` Mateo Lozano, Oscar [this message]
2014-07-01 17:16       ` Mateo Lozano, Oscar
2014-07-01 19:54         ` Chris Wilson
2014-07-02  6:40           ` Ben Widawsky
2014-07-02  6:55             ` Chris Wilson
2014-07-02  8:49               ` Mateo Lozano, Oscar
2014-07-02 10:31                 ` Madajczak, Tomasz
2014-07-02 10:49                   ` Damien Lespiau
2014-07-02 11:11                     ` Madajczak, Tomasz
2014-07-02 13:19                       ` Rutkowski, Adam J
2014-07-03  7:17                         ` Damien Lespiau
2014-07-03 17:10                           ` Ben Widawsky
2014-07-03 20:45                             ` Ben Widawsky
2014-07-02 17:36                   ` Ben Widawsky
2014-07-07 20:43           ` Daniel Vetter
2014-07-07 23:59             ` Bragg, Robert

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=92648605EABDA246B775AAB04C95A7A3137EB5BD@IRSMSX103.ger.corp.intel.com \
    --to=oscar.mateo@intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=Tomasz.Madajczak@intel.com \
    --cc=chris@chris-wilson.co.uk \
    /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.