public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 4/4] tests/perf: add new tests for configurable OA buffer size
Date: Wed, 10 Oct 2018 18:38:07 +0100	[thread overview]
Message-ID: <6c34918b-0ad1-8eed-b7aa-b173226caa4f@intel.com> (raw)
In-Reply-To: <153919153294.22433.12159230663644877848@skylake-alporthouse-com>

On 10/10/2018 18:12, Chris Wilson wrote:
> Quoting Lionel Landwerlin (2018-10-10 17:57:47)
>> +       igt_subtest("buffer-fill-sized") {
>> +               size_t size = 128 * 1024; /* Smallest HW supported size. */
>> +               const size_t max_size = DEFAULT_OA_BUF_SIZE;
>> +
>> +               igt_require(kernel_supports_open_option(drm_fd, DRM_I915_PERF_PROP_OA_BUFFER_SIZE, 0));
>> +
>> +               while (size <= max_size) {
>> +                       test_buffer_fill(true, size);
>> +                       size *= 2;
> If you care about the actual bufsz, then report it back? Otherwise it
> would seem to need to be a lot more stringent on validation to only use
> the user requested size.
> -Chris
>
Hmm... Not sure what you mean.

You would prefer to have the kernel report the OA buffer size, through 
device get_param for example?


Thanks,


-

Lionel

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-10-10 17:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10 16:57 [igt-dev] [PATCH i-g-t 0/4] tests/perf: add support for new oa buffer size parameter Lionel Landwerlin
2018-10-10 16:57 ` [igt-dev] [PATCH i-g-t 1/4] include: bump drm uAPI headers Lionel Landwerlin
2018-10-10 16:57 ` [igt-dev] [PATCH i-g-t 2/4] tests/perf: buffer-fill: drop load helper usage Lionel Landwerlin
2018-10-10 16:57 ` [igt-dev] [PATCH i-g-t 3/4] tests/perf: rename MAX_OA_BUFFER_SIZE Lionel Landwerlin
2018-10-10 16:57 ` [igt-dev] [PATCH i-g-t 4/4] tests/perf: add new tests for configurable OA buffer size Lionel Landwerlin
2018-10-10 17:12   ` Chris Wilson
2018-10-10 17:38     ` Lionel Landwerlin [this message]
2018-10-10 17:50 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/perf: add support for new oa buffer size parameter Patchwork
2018-10-10 23:56 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=6c34918b-0ad1-8eed-b7aa-b173226caa4f@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@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