All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Cc: igt-dev@lists.freedesktop.org, hariom.pandey@intel.com
Subject: Re: [igt-dev] [i-g-t] lib/gem_execbuf_wr: Add gem_has_relocations check
Date: Thu, 8 Apr 2021 11:16:14 +0200	[thread overview]
Message-ID: <20210408091614.GA49645@zkempczy-mobl2> (raw)
In-Reply-To: <20210407093857.45333-1-tejaskumarx.surendrakumar.upadhyay@intel.com>

On Wed, Apr 07, 2021 at 03:08:57PM +0530, Tejas Upadhyay wrote:
> Check if relocation and execbuf ioctls are supported on
> respective platform or not. This will mark it skip instead
> of misleading fail if relocations are not supported.
> 
> Gitlab#3276

NAK.

That means we're not able to use gen12+ in IGT anymore. 
How do we could run GPU jobs then?

--
Zbigniew

> 
> Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
> ---
>  lib/ioctl_wrappers.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
> index 4440004c..465da0bc 100644
> --- a/lib/ioctl_wrappers.c
> +++ b/lib/ioctl_wrappers.c
> @@ -57,6 +57,7 @@
>  #include "igt_sysfs.h"
>  #include "config.h"
>  #include "i915/gem_mman.h"
> +#include "i915/gem_submission.h"
>  
>  #ifdef HAVE_VALGRIND
>  #include <valgrind/valgrind.h>
> @@ -636,6 +637,9 @@ void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
>  int __gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
>  {
>  	int err = 0;
> +
> +	/* Check if relocations is supported with execbuffer2 */
> +	igt_require(gem_has_relocations(fd));
>  	if (igt_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2_WR, execbuf)) {
>  		err = -errno;
>  		igt_assume(err != 0);
> -- 
> 2.30.0
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2021-04-08  9:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07  9:38 [igt-dev] [i-g-t] lib/gem_execbuf_wr: Add gem_has_relocations check Tejas Upadhyay
2021-04-07 10:29 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-04-07 11:29 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-04-08  9:16 ` Zbigniew Kempczyński [this message]
2021-04-08  9:37   ` [igt-dev] [i-g-t] " Surendrakumar Upadhyay, TejaskumarX

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=20210408091614.GA49645@zkempczy-mobl2 \
    --to=zbigniew.kempczynski@intel.com \
    --cc=hariom.pandey@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=tejaskumarx.surendrakumar.upadhyay@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.