Skip to contentSkip to conversation

lib: Fixup __gem_create() to be 64b safe.

PATCH New Chris Wilson 2 participants 3 messages Oct 3, 2017 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: Fixup __gem_create() to be 64b safe.

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

Cc Arkadiusz Hiler <[email protected]>
---
 lib/ioctl_wrappers.c | 2 +-
 lib/ioctl_wrappers.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
lib/ioctl_wrappers.c +1 -1
index 1b483706..87511fc6 100644
@@ -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,
lib/ioctl_wrappers.h +1 -1
index 6ed65fad..1663b7f8 100644
@@ -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);
Signature · 6 lines
2.14.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✓ Fi.CI.BAT: success for lib: Fixup __gem_create() to be 64b safe. (rev2)

== Series Details ==

== 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✓ Fi.CI.IGT: success for lib: Fixup __gem_create() to be 64b safe. (rev2)

In reply to Chris Wilson
== Series Details ==

== 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx