All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org,
	Petri Latvala <petri.latvala@intel.com>,
	Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] benchmarks/gem_userptr_benchmark: Dead code removal
Date: Fri, 21 May 2021 18:48:14 +0200	[thread overview]
Message-ID: <20210521164814.GA3680@zkempczy-mobl2> (raw)
In-Reply-To: <56c54d50-fc5b-1d87-badb-48c430aad268@linux.intel.com>

On Fri, May 21, 2021 at 04:16:48PM +0100, Tvrtko Ursulin wrote:
> 
> On 21/05/2021 15:17, Zbigniew Kempczyński wrote:
> > It seems nobody cares of this benchmark a long time - it is still having
> > libdrm dependency what is not true nor initializing code is not within
> > igt_fixture. As it is not supposed to work lets rid off it from IGT.
> 
> Not sure what you mean by it is not _supposed_ to work? Is it broken? Asking
> since not sure we should remove it.

There're two reasons I decided to remove this test:

1. kernel - c6bcc0c2fdfdc3eba0d1d9250521fde2a7a31931
   in short:

           if (flags & I915_USERPTR_UNSYNCHRONIZED)
-               return capable(CAP_SYS_ADMIN) ? 0 : -EPERM;
+               return -ENODEV;

2. igt skip info:

   Test requirement not met in function main, file ../benchmarks/gem_userptr_benchmark.c:477:
   Test requirement: !(ret == 0)
   No userptr support - No such device (0)
   Last errno: 19, No such device
   skipping is allowed only in fixtures, subtests or igt_simple_main
   please refer to lib/igt_core documentation
   gem_userptr_benchmark: ../lib/igt_core.c:363: internal_assert: Assertion `0' failed.
   Received signal SIGABRT.

I've quickly checked (2) and skipping in fixtures occured year ago, so 
from my perspective noone took a look to that benchmark since year.
But... kernel patch (1) occured two months ago and it's the reason
we fall in to that skip. 

I concluded noone takes a look to that benchmark only looking at (2) so
I've incidentally assumed we got > year of dead code. But when you've 
put your doubts I dig more in the kernel to find the history of dropping
I915_USERPTR_UNSYNCHRONIZED support and I've realized it is quite fresh
code. So I was wrong regarding benchmark state.


> There is some value to being able to
> check the various impact scenarios. For instance I remember just having
> userptr objects slows down unrelated operations like mmap/munap and so.
> Which I think would be totally surprising to userspace so existence of a
> benchmark which shows this could still be valuable. Long long time ago we
> almost got a way to run these IGT benchmarks on a CI like system in an
> automated fashion (ezbench) but it did not happen. Still it would be nice
> that one day it does happen.

Understood, benchmark still has value but we have to remove all UNSYCHRONIZED
parts because kernel won't support it likely anymore.

I've resent fixed benchmark and meson.build to drop confusing libdrm dependency.

--
Zbigniew

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

  reply	other threads:[~2021-05-21 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21 14:17 [igt-dev] [PATCH i-g-t] benchmarks/gem_userptr_benchmark: Dead code removal Zbigniew Kempczyński
2021-05-21 14:53 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-05-21 15:16 ` [igt-dev] [PATCH i-g-t] " Tvrtko Ursulin
2021-05-21 16:48   ` Zbigniew Kempczyński [this message]
2021-05-23 20:42 ` [igt-dev] ✗ Fi.CI.IGT: failure for " 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=20210521164814.GA3680@zkempczy-mobl2 \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    --cc=tvrtko.ursulin@intel.com \
    --cc=tvrtko.ursulin@linux.intel.com \
    /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.