All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 5/7] drm/i915: add a new perf configuration execbuf parameter
Date: Tue, 4 Jun 2019 16:51:37 +0300	[thread overview]
Message-ID: <59cc211a-272d-e153-abfb-d07cece35129@intel.com> (raw)
In-Reply-To: <155965563149.21578.6954397047180158057@skylake-alporthouse-com>

On 04/06/2019 16:40, Chris Wilson wrote:
> Quoting Lionel Landwerlin (2019-06-04 14:11:38)
>>          list_add_tail(&rq->client_link, &rq->file_priv->mm.request_list);
>>   }
>>   
>> +static int eb_oa_config(struct i915_execbuffer *eb)
>> +{
>> +       struct i915_vma *oa_vma;
>> +       int err;
>> +
>> +       if (!eb->oa_config)
>> +               return 0;
>> +
>> +       /*
>> +        * If the config hasn't changed, skip reconfiguring the HW (this is
>> +        * subject to a delay we want to avoid has much as possible).
>> +        */
>> +       if (eb->oa_config == eb->i915->perf.oa.exclusive_stream->oa_config)
>> +               return 0;
> But you don't order the execution so it may not be the right oa_config.
> Just add the barrier. It is virtually no cost for the exclusive oa
> userspace.


Ah right sorry :(


>
> How does this interact with the global oa_config being changed via the
> ioctl?


eb_oa_config() should be called under the global lock right?
Or are you referring to something else?


>   What significance is there for this per-execbuf oa_config being
> applied to other users?


The expectation is that a single application is using this and data 
other users get from MI_REPORT_PERF_COUNT is undefined (much like when 
OA is turned off).

Now I see there is a problem with an application with multiple contexts 
because we have the Flex EU counter configurations per context.

I can break the config in 2 parts and execute the flex counter 
programming everything regardless.


We really want to minimize the NOA reprogramming because it takes an 
undefined amount of time to apply (been told below 1ms).


Thanks for spotting those issue.


-Lionel


> -Chris
>

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-06-04 13:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-04 13:11 [PATCH v3 0/7] drm/i915: Vulkan performance query support Lionel Landwerlin
2019-06-04 13:11 ` [PATCH v3 1/7] drm/i915/perf: introduce a versioning of the i915-perf uapi Lionel Landwerlin
2019-06-04 13:11 ` [PATCH v3 2/7] drm/i915/perf: allow for CS OA configs to be created lazily Lionel Landwerlin
2019-06-04 13:29   ` Chris Wilson
2019-06-04 13:11 ` [PATCH v3 3/7] drm/i915: introduce a mechanism to extend execbuf2 Lionel Landwerlin
2019-06-04 13:32   ` Chris Wilson
2019-06-04 13:11 ` [PATCH v3 4/7] drm/i915: add syncobj timeline support Lionel Landwerlin
2019-06-04 13:11 ` [PATCH v3 5/7] drm/i915: add a new perf configuration execbuf parameter Lionel Landwerlin
2019-06-04 13:40   ` Chris Wilson
2019-06-04 13:51     ` Lionel Landwerlin [this message]
2019-06-04 13:11 ` [PATCH v3 6/7] drm/i915/perf: allow holding preemption on filtered ctx Lionel Landwerlin
2019-06-04 13:45   ` Chris Wilson
2019-06-04 13:11 ` [PATCH v3 7/7] drm/i915: add support for perf configuration queries Lionel Landwerlin
2019-06-04 16:09 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Vulkan performance query support (rev3) Patchwork
2019-06-04 16:14 ` ✗ Fi.CI.SPARSE: " Patchwork
2019-06-04 16:30 ` ✓ Fi.CI.BAT: success " Patchwork
2019-06-05 12:11 ` ✓ 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=59cc211a-272d-e153-abfb-d07cece35129@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --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 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.