* [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
@ 2019-04-01 12:20 Chris Wilson
2019-04-01 12:45 ` [igt-dev] [PATCH i-g-t v2] " Chris Wilson
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Chris Wilson @ 2019-04-01 12:20 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
If we caused a fault on a GEM buffer while in the middle of trying to
write/read into that buffer, we could conceivably deadlock (e.g.
recursing on struct_mutex if we are not careful). Exercise these cases
by supplying a fresh mmap to pread/pwrite in both non-overlapping and
overlapping copies.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/i915/gem_pread.c | 31 +++++++++++++++++++++++++++++++
tests/i915/gem_pwrite.c | 31 +++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
diff --git a/tests/i915/gem_pread.c b/tests/i915/gem_pread.c
index 00379580c..60830c5c5 100644
--- a/tests/i915/gem_pread.c
+++ b/tests/i915/gem_pread.c
@@ -39,6 +39,34 @@
#include <sys/time.h>
#include "drm.h"
+#define MiB(x) ((x) * 1024 * 1024)
+
+static void pread_self(int i915)
+{
+ uint32_t handle = gem_create(i915, MiB(4));
+ void *ptr;
+
+ ptr = gem_mmap__gtt(i915, handle, MiB(4), PROT_WRITE);
+ gem_read(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_read(i915, handle, MiB(3), ptr, MiB(1));
+ gem_read(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+ munmap(ptr, MiB(4));
+
+ ptr = gem_mmap__cpu(i915, handle, 0, MiB(4), PROT_WRITE);
+ gem_read(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_read(i915, handle, MiB(3), ptr, MiB(1));
+ gem_read(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+ munmap(ptr, MiB(4));
+
+ ptr = gem_mmap__wc(i915, handle, 0, MiB(4), PROT_WRITE);
+ gem_read(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_read(i915, handle, MiB(3), ptr, MiB(1));
+ gem_read(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+ munmap(ptr, MiB(4));
+
+ gem_close(i915, handle);
+}
+
#define OBJECT_SIZE 16384
#define LARGE_OBJECT_SIZE 1024 * 1024
#define KGRN "\x1B[32m"
@@ -131,6 +159,9 @@ int main(int argc, char **argv)
}
}
+ igt_subtest("self")
+ pread_self(fd);
+
for (c = cache; c->level != -1; c++) {
igt_subtest(c->name) {
gem_set_caching(fd, dst, c->level);
diff --git a/tests/i915/gem_pwrite.c b/tests/i915/gem_pwrite.c
index 696bd316a..684b4b216 100644
--- a/tests/i915/gem_pwrite.c
+++ b/tests/i915/gem_pwrite.c
@@ -39,6 +39,34 @@
#include <sys/time.h>
#include "drm.h"
+#define MiB(x) ((x) * 1024 * 1024)
+
+static void pwrite_self(int i915)
+{
+ uint32_t handle = gem_create(i915, MiB(4));
+ void *ptr;
+
+ ptr = gem_mmap__gtt(i915, handle, MiB(4), PROT_READ);
+ gem_write(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_write(i915, handle, MiB(3), ptr, MiB(1));
+ gem_write(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+ munmap(ptr, MiB(4));
+
+ ptr = gem_mmap__cpu(i915, handle, 0, MiB(4), PROT_READ);
+ gem_write(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_write(i915, handle, MiB(3), ptr, MiB(1));
+ gem_write(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+ munmap(ptr, MiB(4));
+
+ ptr = gem_mmap__wc(i915, handle, 0, MiB(4), PROT_READ);
+ gem_write(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_write(i915, handle, MiB(3), ptr, MiB(1));
+ gem_write(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+ munmap(ptr, MiB(4));
+
+ gem_close(i915, handle);
+}
+
#define OBJECT_SIZE 16384
#define COPY_BLT_CMD (2<<29|0x53<<22|0x6)
@@ -258,6 +286,9 @@ int main(int argc, char **argv)
}
}
+ igt_subtest("self")
+ pwrite_self(fd);
+
for (c = cache; c->level != -1; c++) {
igt_subtest(c->name) {
gem_set_caching(fd, dst, c->level);
--
2.20.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [igt-dev] [PATCH i-g-t v2] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
2019-04-01 12:20 [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Chris Wilson
@ 2019-04-01 12:45 ` Chris Wilson
2019-04-02 12:48 ` [Intel-gfx] " Matthew Auld
2019-04-01 13:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Chris Wilson @ 2019-04-01 12:45 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
If we caused a fault on a GEM buffer while in the middle of trying to
write/read into that buffer, we could conceivably deadlock (e.g.
recursing on struct_mutex if we are not careful). Exercise these cases
by supplying a fresh mmap to pread/pwrite in both non-overlapping and
overlapping copies.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
Create a fresh handle for each pass.
---
tests/i915/gem_pread.c | 35 +++++++++++++++++++++++++++++++++++
tests/i915/gem_pwrite.c | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+)
diff --git a/tests/i915/gem_pread.c b/tests/i915/gem_pread.c
index 00379580c..83d878ee4 100644
--- a/tests/i915/gem_pread.c
+++ b/tests/i915/gem_pread.c
@@ -39,6 +39,38 @@
#include <sys/time.h>
#include "drm.h"
+#define MiB(x) ((x) * 1024 * 1024)
+
+typedef void *(*mmap_fn_t)(int, uint32_t, uint64_t, uint64_t, unsigned int);
+
+static void *wrap_gem_mmap__gtt(int i915, uint32_t handle,
+ uint64_t offset, uint64_t length,
+ unsigned int prot)
+{
+ return gem_mmap__gtt(i915, handle, length, prot);
+}
+
+static void pread_self(int i915)
+{
+ static const mmap_fn_t mmap_fn[] = {
+ wrap_gem_mmap__gtt,
+ gem_mmap__cpu,
+ gem_mmap__wc,
+ NULL
+ };
+ for (const mmap_fn_t *fn = mmap_fn; *fn; fn++) {
+ uint32_t handle = gem_create(i915, MiB(4));
+ void *ptr = (*fn)(i915, handle, 0, MiB(4), PROT_WRITE);
+
+ gem_read(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_read(i915, handle, MiB(3), ptr, MiB(1));
+ gem_read(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+
+ munmap(ptr, MiB(4));
+ gem_close(i915, handle);
+ }
+}
+
#define OBJECT_SIZE 16384
#define LARGE_OBJECT_SIZE 1024 * 1024
#define KGRN "\x1B[32m"
@@ -131,6 +163,9 @@ int main(int argc, char **argv)
}
}
+ igt_subtest("self")
+ pread_self(fd);
+
for (c = cache; c->level != -1; c++) {
igt_subtest(c->name) {
gem_set_caching(fd, dst, c->level);
diff --git a/tests/i915/gem_pwrite.c b/tests/i915/gem_pwrite.c
index 696bd316a..3fd0ef667 100644
--- a/tests/i915/gem_pwrite.c
+++ b/tests/i915/gem_pwrite.c
@@ -39,6 +39,38 @@
#include <sys/time.h>
#include "drm.h"
+#define MiB(x) ((x) * 1024 * 1024)
+
+typedef void *(*mmap_fn_t)(int, uint32_t, uint64_t, uint64_t, unsigned int);
+
+static void *wrap_gem_mmap__gtt(int i915, uint32_t handle,
+ uint64_t offset, uint64_t length,
+ unsigned int prot)
+{
+ return gem_mmap__gtt(i915, handle, length, prot);
+}
+
+static void pwrite_self(int i915)
+{
+ static const mmap_fn_t mmap_fn[] = {
+ wrap_gem_mmap__gtt,
+ gem_mmap__cpu,
+ gem_mmap__wc,
+ NULL
+ };
+ for (const mmap_fn_t *fn = mmap_fn; *fn; fn++) {
+ uint32_t handle = gem_create(i915, MiB(4));
+ void *ptr = (*fn)(i915, handle, 0, MiB(4), PROT_READ);
+
+ gem_write(i915, handle, 0, ptr + MiB(3), MiB(1));
+ gem_write(i915, handle, MiB(3), ptr, MiB(1));
+ gem_write(i915, handle, MiB(1), ptr + MiB(1), MiB(2));
+
+ munmap(ptr, MiB(4));
+ gem_close(i915, handle);
+ }
+}
+
#define OBJECT_SIZE 16384
#define COPY_BLT_CMD (2<<29|0x53<<22|0x6)
@@ -258,6 +290,9 @@ int main(int argc, char **argv)
}
}
+ igt_subtest("self")
+ pwrite_self(fd);
+
for (c = cache; c->level != -1; c++) {
igt_subtest(c->name) {
gem_set_caching(fd, dst, c->level);
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
2019-04-01 12:20 [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Chris Wilson
2019-04-01 12:45 ` [igt-dev] [PATCH i-g-t v2] " Chris Wilson
@ 2019-04-01 13:02 ` Patchwork
2019-04-01 14:44 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2) Patchwork
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2019-04-01 13:02 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev
== Series Details ==
Series: i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
URL : https://patchwork.freedesktop.org/series/58826/
State : success
== Summary ==
CI Bug Log - changes from IGT_4917 -> IGTPW_2749
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/58826/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_2749 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-hsw-peppy: NOTRUN -> SKIP [fdo#109271] +46
* igt@gem_exec_gttfill@basic:
- fi-skl-gvtdvm: NOTRUN -> SKIP [fdo#109271] +41
* igt@gem_exec_store@basic-bsd1:
- fi-kbl-r: NOTRUN -> SKIP [fdo#109271] +41
* igt@kms_chamelium@vga-edid-read:
- fi-hsw-4770r: NOTRUN -> SKIP [fdo#109271] +45
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: NOTRUN -> DMESG-FAIL [fdo#102614] / [fdo#107814]
#### Possible fixes ####
* igt@i915_selftest@live_uncore:
- fi-ivb-3770: DMESG-FAIL [fdo#110210] -> PASS
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#107814]: https://bugs.freedesktop.org/show_bug.cgi?id=107814
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#110210]: https://bugs.freedesktop.org/show_bug.cgi?id=110210
Participating hosts (29 -> 19)
------------------------------
Additional (4): fi-hsw-4770r fi-hsw-peppy fi-skl-gvtdvm fi-kbl-r
Missing (14): fi-ilk-m540 fi-bxt-dsi fi-hsw-4200u fi-bdw-gvtdvm fi-byt-squawks fi-apl-guc fi-snb-2520m fi-cfl-8109u fi-skl-iommu fi-icl-y fi-skl-lmem fi-blb-e6850 fi-bsw-kefka fi-bdw-samus
Build changes
-------------
* IGT: IGT_4917 -> IGTPW_2749
CI_DRM_5850: dfb9d3db8c114d63c1a24c24f90a7786503638f0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2749: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2749/
IGT_4917: ec9792ad770d5055d6f42e2a481b8314754c9218 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@gem_pread@self
+igt@gem_pwrite@self
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2749/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 8+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2)
2019-04-01 12:20 [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Chris Wilson
2019-04-01 12:45 ` [igt-dev] [PATCH i-g-t v2] " Chris Wilson
2019-04-01 13:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2019-04-01 14:44 ` Patchwork
2019-04-01 15:57 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Patchwork
2019-04-01 17:19 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2) Patchwork
4 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2019-04-01 14:44 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev
== Series Details ==
Series: i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2)
URL : https://patchwork.freedesktop.org/series/58826/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5851 -> IGTPW_2751
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/58826/revisions/2/mbox/
Known issues
------------
Here are the changes found in IGTPW_2751 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_basic@userptr:
- fi-kbl-8809g: PASS -> DMESG-WARN [fdo#108965]
* igt@amdgpu/amd_cs_nop@fork-compute0:
- fi-icl-y: NOTRUN -> SKIP [fdo#109315] +17
* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109315] +17
* igt@amdgpu/amd_cs_nop@sync-gfx0:
- fi-kbl-7567u: NOTRUN -> SKIP [fdo#109271] +33
* igt@gem_exec_basic@basic-bsd2:
- fi-kbl-7500u: NOTRUN -> SKIP [fdo#109271] +9
- fi-icl-y: NOTRUN -> SKIP [fdo#109276] +7
* igt@gem_exec_basic@basic-vebox:
- fi-ivb-3770: NOTRUN -> SKIP [fdo#109271] +48
* igt@gem_exec_basic@readonly-bsd1:
- fi-snb-2520m: NOTRUN -> SKIP [fdo#109271] +57
- fi-icl-u2: NOTRUN -> SKIP [fdo#109276] +7
* igt@gem_exec_basic@readonly-bsd2:
- fi-pnv-d510: NOTRUN -> SKIP [fdo#109271] +76
* igt@gem_exec_parse@basic-allowed:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109289] +1
* igt@gem_exec_parse@basic-rejected:
- fi-icl-y: NOTRUN -> SKIP [fdo#109289] +1
* igt@gem_exec_store@basic-bsd1:
- fi-kbl-r: NOTRUN -> SKIP [fdo#109271] +41
* igt@gem_ringfill@basic-default-fd:
- fi-elk-e7500: NOTRUN -> SKIP [fdo#109271] +73
* igt@i915_selftest@live_contexts:
- fi-icl-u2: NOTRUN -> DMESG-FAIL [fdo#108569]
- fi-icl-y: NOTRUN -> DMESG-FAIL [fdo#108569]
* igt@i915_selftest@live_execlists:
- fi-apl-guc: NOTRUN -> INCOMPLETE [fdo#103927] / [fdo#109720]
* igt@kms_addfb_basic@addfb25-y-tiled-small:
- fi-byt-n2820: NOTRUN -> SKIP [fdo#109271] +56
* igt@kms_busy@basic-flip-a:
- fi-bsw-n3050: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +1
* igt@kms_busy@basic-flip-c:
- fi-pnv-d510: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
- fi-snb-2520m: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
- fi-elk-e7500: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
- fi-byt-n2820: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: NOTRUN -> DMESG-WARN [fdo#103841]
- fi-icl-y: NOTRUN -> SKIP [fdo#109284] +8
* igt@kms_chamelium@dp-edid-read:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109316] +2
* igt@kms_chamelium@hdmi-crc-fast:
- fi-bsw-n3050: NOTRUN -> SKIP [fdo#109271] +62
* igt@kms_chamelium@hdmi-edid-read:
- fi-hsw-peppy: NOTRUN -> SKIP [fdo#109271] +46
* igt@kms_chamelium@vga-hpd-fast:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109309] +1
* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-y: NOTRUN -> SKIP [fdo#109285] +3
* igt@kms_force_connector_basic@prune-stale-modes:
- fi-icl-u2: NOTRUN -> SKIP [fdo#109285] +3
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: NOTRUN -> DMESG-FAIL [fdo#102614] / [fdo#107814]
- fi-icl-u2: NOTRUN -> FAIL [fdo#103167]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- fi-blb-e6850: PASS -> INCOMPLETE [fdo#107718]
* igt@kms_psr@primary_mmap_gtt:
- fi-skl-guc: NOTRUN -> SKIP [fdo#109271] +49
- fi-icl-y: NOTRUN -> SKIP [fdo#110189] +3
* igt@kms_psr@primary_page_flip:
- fi-apl-guc: NOTRUN -> SKIP [fdo#109271] +50
* igt@prime_vgem@basic-fence-flip:
- fi-icl-y: NOTRUN -> SKIP [fdo#109294]
* igt@runner@aborted:
- fi-kbl-7500u: NOTRUN -> FAIL [fdo#103841]
- fi-apl-guc: NOTRUN -> FAIL [fdo#108622] / [fdo#109720]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- fi-ilk-650: DMESG-WARN [fdo#106387] -> PASS
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103841]: https://bugs.freedesktop.org/show_bug.cgi?id=103841
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#106387]: https://bugs.freedesktop.org/show_bug.cgi?id=106387
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107814]: https://bugs.freedesktop.org/show_bug.cgi?id=107814
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
[fdo#108965]: https://bugs.freedesktop.org/show_bug.cgi?id=108965
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109284]: https://bugs.freedesktop.org/show_bug.cgi?id=109284
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109294]: https://bugs.freedesktop.org/show_bug.cgi?id=109294
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109316]: https://bugs.freedesktop.org/show_bug.cgi?id=109316
[fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
Participating hosts (24 -> 33)
------------------------------
Additional (14): fi-kbl-7567u fi-bsw-n3050 fi-hsw-peppy fi-skl-guc fi-icl-u2 fi-apl-guc fi-snb-2520m fi-kbl-7500u fi-ivb-3770 fi-elk-e7500 fi-pnv-d510 fi-icl-y fi-byt-n2820 fi-kbl-r
Missing (5): fi-ilk-m540 fi-byt-j1900 fi-bxt-j4205 fi-cfl-8109u fi-bdw-samus
Build changes
-------------
* IGT: IGT_4917 -> IGTPW_2751
CI_DRM_5851: ddcab27b76cf685a9136cf26f11103765fd7d8d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2751: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2751/
IGT_4917: ec9792ad770d5055d6f42e2a481b8314754c9218 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@gem_pread@self
+igt@gem_pwrite@self
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2751/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 8+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
2019-04-01 12:20 [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Chris Wilson
` (2 preceding siblings ...)
2019-04-01 14:44 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2) Patchwork
@ 2019-04-01 15:57 ` Patchwork
2019-04-01 16:01 ` Chris Wilson
2019-04-01 17:19 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2) Patchwork
4 siblings, 1 reply; 8+ messages in thread
From: Patchwork @ 2019-04-01 15:57 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev
== Series Details ==
Series: i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
URL : https://patchwork.freedesktop.org/series/58826/
State : success
== Summary ==
CI Bug Log - changes from IGT_4917_full -> IGTPW_2749_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/58826/revisions/1/mbox/
New tests
---------
New tests have been introduced between IGT_4917_full and IGTPW_2749_full:
### New IGT tests (2) ###
* igt@gem_pread@self:
- Statuses : 3 pass(s)
- Exec time: [0.01, 0.03] s
* igt@gem_pwrite@self:
- Statuses : 3 incomplete(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_2749_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* {igt@gem_pwrite@self} (NEW):
- shard-hsw: NOTRUN -> INCOMPLETE [fdo#103540]
- shard-apl: NOTRUN -> INCOMPLETE [fdo#103927]
- shard-glk: NOTRUN -> INCOMPLETE [fdo#103359] / [k.org#198133]
* igt@gem_pwrite@stolen-normal:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] +32
* igt@gem_tiled_swapping@non-threaded:
- shard-hsw: PASS -> FAIL [fdo#108686]
* igt@kms_atomic_transition@1x-modeset-transitions-nonblocking-fencing:
- shard-apl: PASS -> FAIL [fdo#109660]
- shard-kbl: PASS -> FAIL [fdo#109660]
* igt@kms_busy@extended-modeset-hang-newfb-render-e:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-a:
- shard-snb: PASS -> DMESG-WARN [fdo#110222] +1
- shard-hsw: PASS -> DMESG-WARN [fdo#110222]
* igt@kms_busy@extended-pageflip-hang-newfb-render-b:
- shard-glk: NOTRUN -> DMESG-WARN [fdo#110222]
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-b:
- shard-hsw: NOTRUN -> DMESG-WARN [fdo#110222]
* igt@kms_cursor_crc@cursor-64x21-onscreen:
- shard-glk: NOTRUN -> FAIL [fdo#103232]
* igt@kms_cursor_crc@cursor-64x64-onscreen:
- shard-kbl: NOTRUN -> FAIL [fdo#103232]
- shard-apl: PASS -> FAIL [fdo#103232]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-gtt:
- shard-glk: PASS -> FAIL [fdo#103167]
* igt@kms_frontbuffer_tracking@psr-2p-rte:
- shard-hsw: NOTRUN -> SKIP [fdo#109271] +69
* igt@kms_plane@pixel-format-pipe-c-planes-source-clamping:
- shard-glk: NOTRUN -> FAIL [fdo#110296 ]
- shard-hsw: NOTRUN -> FAIL [fdo#110296 ]
* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +4
- shard-kbl: NOTRUN -> FAIL [fdo#108145] / [fdo#108590]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparant-fb:
- shard-hsw: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +8
- shard-glk: NOTRUN -> FAIL [fdo#108145]
* igt@kms_plane_multiple@atomic-pipe-b-tiling-y:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +27
* igt@kms_plane_scaling@pipe-a-scaler-with-pixel-format:
- shard-glk: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +9
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-apl: PASS -> FAIL [fdo#104894]
* igt@perf@oa-exponents:
- shard-glk: PASS -> FAIL [fdo#105483]
* igt@perf_pmu@idle-no-semaphores-vcs1:
- shard-apl: NOTRUN -> SKIP [fdo#109271] +2
* igt@perf_pmu@idle-vcs1:
- shard-glk: NOTRUN -> SKIP [fdo#109271] +43
#### Possible fixes ####
* igt@kms_busy@extended-modeset-hang-newfb-render-b:
- shard-kbl: DMESG-WARN [fdo#110222] -> PASS +3
- shard-snb: DMESG-WARN [fdo#110222] -> PASS
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-c:
- shard-hsw: DMESG-WARN [fdo#110222] -> PASS
* igt@kms_cursor_crc@cursor-128x42-sliding:
- shard-apl: FAIL [fdo#103232] -> PASS
* igt@kms_flip@flip-vs-dpms-off-vs-modeset-interruptible:
- shard-apl: INCOMPLETE [fdo#103927] -> PASS
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-cpu:
- shard-glk: FAIL [fdo#103167] -> PASS
* igt@kms_rotation_crc@multiplane-rotation-cropping-bottom:
- shard-kbl: DMESG-FAIL [fdo#105763] -> PASS
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: FAIL [fdo#109016] -> PASS
* igt@kms_setmode@basic:
- shard-kbl: FAIL [fdo#99912] -> PASS
#### Warnings ####
* igt@gem_exec_schedule@preempt-contexts-vebox:
- shard-hsw: SKIP [fdo#109271] -> INCOMPLETE [fdo#103540]
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-kbl: INCOMPLETE [fdo#103665] -> FAIL [fdo#104894]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105483]: https://bugs.freedesktop.org/show_bug.cgi?id=105483
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108590]: https://bugs.freedesktop.org/show_bug.cgi?id=108590
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109660]: https://bugs.freedesktop.org/show_bug.cgi?id=109660
[fdo#110222]: https://bugs.freedesktop.org/show_bug.cgi?id=110222
[fdo#110296 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110296
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (7 -> 5)
------------------------------
Missing (2): shard-skl shard-iclb
Build changes
-------------
* IGT: IGT_4917 -> IGTPW_2749
CI_DRM_5850: dfb9d3db8c114d63c1a24c24f90a7786503638f0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2749: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2749/
IGT_4917: ec9792ad770d5055d6f42e2a481b8314754c9218 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2749/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
2019-04-01 15:57 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Patchwork
@ 2019-04-01 16:01 ` Chris Wilson
0 siblings, 0 replies; 8+ messages in thread
From: Chris Wilson @ 2019-04-01 16:01 UTC (permalink / raw)
To: Patchwork, igt-dev
Quoting Patchwork (2019-04-01 16:57:17)
> == Series Details ==
>
> Series: i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
> URL : https://patchwork.freedesktop.org/series/58826/
> State : success
>
> == Summary ==
>
> CI Bug Log - changes from IGT_4917_full -> IGTPW_2749_full
> ====================================================
>
> Summary
> -------
>
> **SUCCESS**
>
> No regressions found.
>
> External URL: https://patchwork.freedesktop.org/api/1.0/series/58826/revisions/1/mbox/
>
> New tests
> ---------
>
> New tests have been introduced between IGT_4917_full and IGTPW_2749_full:
>
> ### New IGT tests (2) ###
>
> * igt@gem_pread@self:
> - Statuses : 3 pass(s)
> - Exec time: [0.01, 0.03] s
>
> * igt@gem_pwrite@self:
> - Statuses : 3 incomplete(s)
> - Exec time: [0.0] s
>
>
>
> Known issues
> ------------
>
> Here are the changes found in IGTPW_2749_full that come from known issues:
>
> ### IGT changes ###
>
> #### Issues hit ####
>
> * {igt@gem_pwrite@self} (NEW):
> - shard-hsw: NOTRUN -> INCOMPLETE [fdo#103540]
> - shard-apl: NOTRUN -> INCOMPLETE [fdo#103927]
> - shard-glk: NOTRUN -> INCOMPLETE [fdo#103359] / [k.org#198133]
Kerpow!
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 8+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2)
2019-04-01 12:20 [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Chris Wilson
` (3 preceding siblings ...)
2019-04-01 15:57 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Patchwork
@ 2019-04-01 17:19 ` Patchwork
4 siblings, 0 replies; 8+ messages in thread
From: Patchwork @ 2019-04-01 17:19 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev
== Series Details ==
Series: i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2)
URL : https://patchwork.freedesktop.org/series/58826/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5851_full -> IGTPW_2751_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/58826/revisions/2/mbox/
New tests
---------
New tests have been introduced between CI_DRM_5851_full and IGTPW_2751_full:
### New IGT tests (2) ###
* igt@gem_pread@self:
- Statuses : 5 pass(s)
- Exec time: [0.01, 0.04] s
* igt@gem_pwrite@self:
- Statuses : 5 incomplete(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_2751_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@rcs0-s3:
- shard-apl: PASS -> DMESG-WARN [fdo#108566]
* igt@gem_ctx_isolation@vecs0-s3:
- shard-kbl: PASS -> INCOMPLETE [fdo#103665]
* igt@gem_eio@unwedge-stress:
- shard-snb: PASS -> FAIL [fdo#109661]
* {igt@gem_pwrite@self} (NEW):
- shard-hsw: NOTRUN -> INCOMPLETE [fdo#103540]
- shard-kbl: NOTRUN -> INCOMPLETE [fdo#103665]
- shard-snb: NOTRUN -> INCOMPLETE [fdo#105411]
- shard-apl: NOTRUN -> INCOMPLETE [fdo#103927]
- shard-glk: NOTRUN -> INCOMPLETE [fdo#103359] / [k.org#198133]
* igt@kms_atomic_transition@plane-all-modeset-transition:
- shard-apl: PASS -> INCOMPLETE [fdo#103927]
* igt@kms_busy@basic-modeset-f:
- shard-glk: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_busy@extended-modeset-hang-newfb-render-c:
- shard-hsw: PASS -> DMESG-WARN [fdo#110222]
- shard-kbl: PASS -> DMESG-WARN [fdo#110222]
* igt@kms_cursor_crc@cursor-64x64-suspend:
- shard-apl: PASS -> FAIL [fdo#103191] / [fdo#103232]
- shard-kbl: PASS -> FAIL [fdo#103191] / [fdo#103232]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-gtt:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] +22
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-plflip-blt:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +28
* igt@kms_pipe_crc_basic@hang-read-crc-pipe-d:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2
* igt@kms_plane_alpha_blend@pipe-a-alpha-7efc:
- shard-apl: PASS -> FAIL [fdo#108145]
* igt@kms_plane_scaling@pipe-a-scaler-with-clipping-clamping:
- shard-glk: PASS -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_universal_plane@cursor-fb-leak-pipe-d:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +5
* igt@kms_vblank@pipe-a-ts-continuation-modeset:
- shard-apl: PASS -> FAIL [fdo#104894] +1
* igt@prime_nv_pcopy@test1_micro:
- shard-glk: NOTRUN -> SKIP [fdo#109271] +2
* igt@tools_test@tools_test:
- shard-kbl: PASS -> SKIP [fdo#109271]
#### Possible fixes ####
* igt@kms_busy@extended-modeset-hang-newfb-render-a:
- shard-kbl: DMESG-WARN [fdo#110222] -> PASS +2
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-c:
- shard-hsw: DMESG-WARN [fdo#110222] -> PASS
* igt@kms_cursor_crc@cursor-128x42-sliding:
- shard-kbl: FAIL [fdo#103232] -> PASS
- shard-apl: FAIL [fdo#103232] -> PASS
* igt@kms_flip@flip-vs-suspend:
- shard-snb: DMESG-WARN [fdo#102365] -> PASS
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-cpu:
- shard-glk: FAIL [fdo#103167] -> PASS
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102365]: https://bugs.freedesktop.org/show_bug.cgi?id=102365
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110222]: https://bugs.freedesktop.org/show_bug.cgi?id=110222
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (10 -> 5)
------------------------------
Missing (5): shard-skl pig-hsw-4770r pig-glk-j5005 shard-iclb pig-skl-6260u
Build changes
-------------
* IGT: IGT_4917 -> IGTPW_2751
* Piglit: piglit_4509 -> None
CI_DRM_5851: ddcab27b76cf685a9136cf26f11103765fd7d8d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2751: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2751/
IGT_4917: ec9792ad770d5055d6f42e2a481b8314754c9218 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2751/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer
2019-04-01 12:45 ` [igt-dev] [PATCH i-g-t v2] " Chris Wilson
@ 2019-04-02 12:48 ` Matthew Auld
0 siblings, 0 replies; 8+ messages in thread
From: Matthew Auld @ 2019-04-02 12:48 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, Intel Graphics Development
On Mon, 1 Apr 2019 at 13:46, Chris Wilson <chris@chris-wilson.co.uk> wrote:
>
> If we caused a fault on a GEM buffer while in the middle of trying to
> write/read into that buffer, we could conceivably deadlock (e.g.
> recursing on struct_mutex if we are not careful). Exercise these cases
> by supplying a fresh mmap to pread/pwrite in both non-overlapping and
> overlapping copies.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-04-02 12:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-01 12:20 [Intel-gfx] [PATCH i-g-t] i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Chris Wilson
2019-04-01 12:45 ` [igt-dev] [PATCH i-g-t v2] " Chris Wilson
2019-04-02 12:48 ` [Intel-gfx] " Matthew Auld
2019-04-01 13:02 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-04-01 14:44 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2) Patchwork
2019-04-01 15:57 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer Patchwork
2019-04-01 16:01 ` Chris Wilson
2019-04-01 17:19 ` [igt-dev] ✓ Fi.CI.IGT: success for i915/gem_pread, gem_pwrite: Exercise using ourselves as the buffer (rev2) Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox