All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] lib: Fixup __gem_create() to be 64b safe.
@ 2017-10-03 13:56 Chris Wilson
  2017-10-03 17:37 ` ✓ Fi.CI.BAT: success for lib: Fixup __gem_create() to be 64b safe. (rev2) Patchwork
  2017-10-03 19:19 ` ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Wilson @ 2017-10-03 13:56 UTC (permalink / raw)
  To: intel-gfx

We want to create very large objects, larger than the 2G limit imposed
by using ints.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
 lib/ioctl_wrappers.c | 2 +-
 lib/ioctl_wrappers.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 1b483706..87511fc6 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -551,7 +551,7 @@ uint32_t gem_create_stolen(int fd, uint64_t size)
 	return create.handle;
 }
 
-int __gem_create(int fd, int size, uint32_t *handle)
+int __gem_create(int fd, uint64_t size, uint32_t *handle)
 {
 	struct drm_i915_gem_create create = {
 		.size = size,
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 6ed65fad..1663b7f8 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -73,7 +73,7 @@ void gem_sync(int fd, uint32_t handle);
 bool gem_create__has_stolen_support(int fd);
 uint32_t __gem_create_stolen(int fd, uint64_t size);
 uint32_t gem_create_stolen(int fd, uint64_t size);
-int __gem_create(int fd, int size, uint32_t *handle);
+int __gem_create(int fd, uint64_t size, uint32_t *handle);
 uint32_t gem_create(int fd, uint64_t size);
 void gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
 int __gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
-- 
2.14.2

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* ✓ Fi.CI.BAT: success for lib: Fixup __gem_create() to be 64b safe. (rev2)
  2017-10-03 13:56 [PATCH igt] lib: Fixup __gem_create() to be 64b safe Chris Wilson
@ 2017-10-03 17:37 ` Patchwork
  2017-10-03 19:19 ` ✓ Fi.CI.IGT: " Patchwork
  1 sibling, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-10-03 17:37 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: lib: Fixup __gem_create() to be 64b safe. (rev2)
URL   : https://patchwork.freedesktop.org/series/31327/
State : success

== Summary ==

IGT patchset tested on top of latest successful build
0045085c632a1cf5b4e9272304ee0e61ff9a7e6f lib: Report the error from __gem_create()

with latest DRM-Tip kernel build CI_DRM_3168
e7187e87bb3b drm-tip: 2017y-10m-03d-16h-09m-59s UTC integration manifest

No testlist changes.

Test drv_module_reload:
        Subgroup basic-reload-inject:
                pass       -> INCOMPLETE (fi-cfl-s) k.org#196765

k.org#196765 https://bugzilla.kernel.org/show_bug.cgi?id=196765

fi-bdw-5557u     total:289  pass:268  dwarn:0   dfail:0   fail:0   skip:21  time:468s
fi-bdw-gvtdvm    total:289  pass:265  dwarn:0   dfail:0   fail:0   skip:24  time:477s
fi-blb-e6850     total:289  pass:224  dwarn:1   dfail:0   fail:0   skip:64  time:398s
fi-bsw-n3050     total:289  pass:243  dwarn:0   dfail:0   fail:0   skip:46  time:584s
fi-bwr-2160      total:289  pass:184  dwarn:0   dfail:0   fail:0   skip:105 time:290s
fi-bxt-dsi       total:289  pass:259  dwarn:0   dfail:0   fail:0   skip:30  time:536s
fi-bxt-j4205     total:289  pass:260  dwarn:0   dfail:0   fail:0   skip:29  time:532s
fi-byt-j1900     total:289  pass:254  dwarn:1   dfail:0   fail:0   skip:34  time:553s
fi-byt-n2820     total:289  pass:250  dwarn:1   dfail:0   fail:0   skip:38  time:536s
fi-cfl-s         total:288  pass:255  dwarn:1   dfail:0   fail:0   skip:31 
fi-cnl-y         total:289  pass:261  dwarn:1   dfail:0   fail:0   skip:27  time:646s
fi-elk-e7500     total:289  pass:230  dwarn:0   dfail:0   fail:0   skip:59  time:433s
fi-glk-1         total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:596s
fi-hsw-4770      total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:439s
fi-hsw-4770r     total:289  pass:263  dwarn:0   dfail:0   fail:0   skip:26  time:419s
fi-ilk-650       total:289  pass:229  dwarn:0   dfail:0   fail:0   skip:60  time:470s
fi-ivb-3520m     total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:502s
fi-ivb-3770      total:289  pass:261  dwarn:0   dfail:0   fail:0   skip:28  time:479s
fi-kbl-7500u     total:289  pass:264  dwarn:1   dfail:0   fail:0   skip:24  time:504s
fi-kbl-7560u     total:289  pass:270  dwarn:0   dfail:0   fail:0   skip:19  time:578s
fi-kbl-7567u     total:289  pass:265  dwarn:4   dfail:0   fail:0   skip:20  time:495s
fi-kbl-r         total:289  pass:262  dwarn:0   dfail:0   fail:0   skip:27  time:589s
fi-pnv-d510      total:289  pass:223  dwarn:1   dfail:0   fail:0   skip:65  time:662s
fi-skl-6260u     total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:472s
fi-skl-6700k     total:289  pass:265  dwarn:0   dfail:0   fail:0   skip:24  time:542s
fi-skl-6770hq    total:289  pass:269  dwarn:0   dfail:0   fail:0   skip:20  time:523s
fi-skl-gvtdvm    total:289  pass:266  dwarn:0   dfail:0   fail:0   skip:23  time:477s
fi-snb-2520m     total:289  pass:251  dwarn:0   dfail:0   fail:0   skip:38  time:587s
fi-snb-2600      total:289  pass:250  dwarn:0   dfail:0   fail:0   skip:39  time:439s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_291/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ✓ Fi.CI.IGT: success for lib: Fixup __gem_create() to be 64b safe. (rev2)
  2017-10-03 13:56 [PATCH igt] lib: Fixup __gem_create() to be 64b safe Chris Wilson
  2017-10-03 17:37 ` ✓ Fi.CI.BAT: success for lib: Fixup __gem_create() to be 64b safe. (rev2) Patchwork
@ 2017-10-03 19:19 ` Patchwork
  1 sibling, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-10-03 19:19 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: lib: Fixup __gem_create() to be 64b safe. (rev2)
URL   : https://patchwork.freedesktop.org/series/31327/
State : success

== Summary ==

Test gem_pwrite:
        Subgroup huge-gtt-random:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-gtt-fbr:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-cpu-random:
                fail       -> PASS       (shard-hsw)
        Subgroup big-cpu-forwards:
                fail       -> PASS       (shard-hsw)
        Subgroup big-cpu-random:
                fail       -> PASS       (shard-hsw)
        Subgroup big-cpu-backwards:
                fail       -> PASS       (shard-hsw)
        Subgroup big-gtt-random:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-cpu-backwards:
                fail       -> PASS       (shard-hsw)
        Subgroup big-gtt-forwards:
                fail       -> PASS       (shard-hsw)
        Subgroup big-cpu-fbr:
                fail       -> PASS       (shard-hsw)
        Subgroup big-gtt-backwards:
                fail       -> PASS       (shard-hsw)
        Subgroup big-gtt-fbr:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-gtt-forwards:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-gtt-backwards:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-cpu-fbr:
                fail       -> PASS       (shard-hsw)
        Subgroup huge-cpu-forwards:
                fail       -> PASS       (shard-hsw)
Test perf:
        Subgroup polling:
                pass       -> FAIL       (shard-hsw) fdo#102252
Test gem_eio:
        Subgroup execbuf:
                dmesg-warn -> PASS       (shard-hsw) fdo#102886

fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102886 https://bugs.freedesktop.org/show_bug.cgi?id=102886

shard-hsw        total:2429 pass:1331 dwarn:6   dfail:0   fail:9   skip:1083 time:10042s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_291/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH igt] lib: Fixup __gem_create() to be 64b safe.
  2017-10-03 13:54 [PATCH igt] lib: Fixup __gem_create() to be 64b safe Chris Wilson
@ 2017-10-03 14:05 ` Mika Kuoppala
  0 siblings, 0 replies; 5+ messages in thread
From: Mika Kuoppala @ 2017-10-03 14:05 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx

Chris Wilson <chris@chris-wilson.co.uk> writes:

> We want to create very large objects, larger than the 2G limit imposed
> by using ints.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

Reviwed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>

> ---
>  lib/ioctl_wrappers.c | 2 +-
>  lib/ioctl_wrappers.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
> index 1b483706..87511fc6 100644
> --- a/lib/ioctl_wrappers.c
> +++ b/lib/ioctl_wrappers.c
> @@ -551,7 +551,7 @@ uint32_t gem_create_stolen(int fd, uint64_t size)
>  	return create.handle;
>  }
>  
> -int __gem_create(int fd, int size, uint32_t *handle)
> +int __gem_create(int fd, uint64_t size, uint32_t *handle)
>  {
>  	struct drm_i915_gem_create create = {
>  		.size = size,
> diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
> index 6ed65fad..1663b7f8 100644
> --- a/lib/ioctl_wrappers.h
> +++ b/lib/ioctl_wrappers.h
> @@ -73,7 +73,7 @@ void gem_sync(int fd, uint32_t handle);
>  bool gem_create__has_stolen_support(int fd);
>  uint32_t __gem_create_stolen(int fd, uint64_t size);
>  uint32_t gem_create_stolen(int fd, uint64_t size);
> -int __gem_create(int fd, int size, uint32_t *handle);
> +int __gem_create(int fd, uint64_t size, uint32_t *handle);
>  uint32_t gem_create(int fd, uint64_t size);
>  void gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
>  int __gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
> -- 
> 2.14.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH igt] lib: Fixup __gem_create() to be 64b safe.
@ 2017-10-03 13:54 Chris Wilson
  2017-10-03 14:05 ` Mika Kuoppala
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2017-10-03 13:54 UTC (permalink / raw)
  To: intel-gfx

We want to create very large objects, larger than the 2G limit imposed
by using ints.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
 lib/ioctl_wrappers.c | 2 +-
 lib/ioctl_wrappers.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 1b483706..87511fc6 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -551,7 +551,7 @@ uint32_t gem_create_stolen(int fd, uint64_t size)
 	return create.handle;
 }
 
-int __gem_create(int fd, int size, uint32_t *handle)
+int __gem_create(int fd, uint64_t size, uint32_t *handle)
 {
 	struct drm_i915_gem_create create = {
 		.size = size,
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 6ed65fad..1663b7f8 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -73,7 +73,7 @@ void gem_sync(int fd, uint32_t handle);
 bool gem_create__has_stolen_support(int fd);
 uint32_t __gem_create_stolen(int fd, uint64_t size);
 uint32_t gem_create_stolen(int fd, uint64_t size);
-int __gem_create(int fd, int size, uint32_t *handle);
+int __gem_create(int fd, uint64_t size, uint32_t *handle);
 uint32_t gem_create(int fd, uint64_t size);
 void gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
 int __gem_execbuf_wr(int fd, struct drm_i915_gem_execbuffer2 *execbuf);
-- 
2.14.2

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-03 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03 13:56 [PATCH igt] lib: Fixup __gem_create() to be 64b safe Chris Wilson
2017-10-03 17:37 ` ✓ Fi.CI.BAT: success for lib: Fixup __gem_create() to be 64b safe. (rev2) Patchwork
2017-10-03 19:19 ` ✓ Fi.CI.IGT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2017-10-03 13:54 [PATCH igt] lib: Fixup __gem_create() to be 64b safe Chris Wilson
2017-10-03 14:05 ` Mika Kuoppala

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.