* [igt-dev] [PATCH] [PATCH i-g-t][V3]tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform
@ 2020-03-30 13:50 Arjun Melkaveri
2020-03-30 14:44 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform (rev4) Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Arjun Melkaveri @ 2020-03-30 13:50 UTC (permalink / raw)
To: arjun.melkaveri, igt-dev
Crash issue was seen w.r.t engines on different platforms.
Fixed this by initializing engine and engine name with
maximum supported engines value.
V2:
Made changes for other tests using engine array.
V3:
Replaced GEM_MAX_ENGINES with EXECBUF_MAX_ENGINES.
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Signed-off-by: Arjun Melkaveri <arjun.melkaveri@intel.com>
---
tests/i915/gem_exec_nop.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/tests/i915/gem_exec_nop.c b/tests/i915/gem_exec_nop.c
index 6da6234f..21aba98a 100644
--- a/tests/i915/gem_exec_nop.c
+++ b/tests/i915/gem_exec_nop.c
@@ -55,6 +55,7 @@
#define MAX_PRIO LOCAL_I915_CONTEXT_MAX_USER_PRIORITY
#define MIN_PRIO LOCAL_I915_CONTEXT_MIN_USER_PRIORITY
+#define EXECBUF_MAX_ENGINES (I915_EXEC_RING_MASK + 1)
#define FORKED 1
#define CHAINED 2
@@ -225,7 +226,7 @@ static void poll_sequential(int fd, const char *name, int timeout)
struct drm_i915_gem_exec_object2 obj[2];
struct drm_i915_gem_relocation_entry reloc[4], *r;
uint32_t *bbe[2], *state, *batch;
- unsigned engines[16], nengine, flags;
+ unsigned int engines[EXECBUF_MAX_ENGINES], nengine, flags;
struct timespec tv = {};
unsigned long cycles;
uint64_t elapsed;
@@ -435,14 +436,15 @@ static void parallel(int fd, uint32_t handle, int timeout)
const struct intel_execution_engine2 *e;
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_exec_object2 obj;
- unsigned engines[16];
- char *names[16];
+ unsigned int engines[EXECBUF_MAX_ENGINES];
+ char *names[EXECBUF_MAX_ENGINES];
unsigned nengine;
unsigned long count;
double time, sum;
sum = 0;
nengine = 0;
+
__for_each_physical_engine(fd, e) {
engines[nengine] = e->flags;
names[nengine++] = strdup(e->name);
@@ -497,8 +499,8 @@ static void independent(int fd, uint32_t handle, int timeout)
const struct intel_execution_engine2 *e;
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_exec_object2 obj;
- unsigned engines[16];
- char *names[16];
+ unsigned int engines[EXECBUF_MAX_ENGINES];
+ char *names[EXECBUF_MAX_ENGINES];
unsigned nengine;
unsigned long count;
double time, sum;
@@ -621,7 +623,7 @@ static void series(int fd, uint32_t handle, int timeout)
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_exec_object2 obj;
struct timespec start, now, sync;
- unsigned engines[16];
+ unsigned int engines[EXECBUF_MAX_ENGINES];
unsigned nengine;
unsigned long count;
double time, max = 0, min = HUGE_VAL, sum = 0;
@@ -711,7 +713,7 @@ static void sequential(int fd, uint32_t handle, unsigned flags, int timeout)
const struct intel_execution_engine2 *e;
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_exec_object2 obj[2];
- unsigned engines[16];
+ unsigned int engines[EXECBUF_MAX_ENGINES];
unsigned nengine;
double *results;
double time, sum;
@@ -847,7 +849,7 @@ static void fence_signal(int fd, uint32_t handle,
struct drm_i915_gem_exec_object2 obj;
struct intel_execution_engine2 *__e;
struct timespec start, now;
- unsigned engines[16];
+ unsigned int engines[EXECBUF_MAX_ENGINES];
unsigned nengine;
int *fences, n;
unsigned long count, signal;
--
2.25.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform (rev4)
2020-03-30 13:50 [igt-dev] [PATCH] [PATCH i-g-t][V3]tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform Arjun Melkaveri
@ 2020-03-30 14:44 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2020-03-30 14:44 UTC (permalink / raw)
To: Arjun Melkaveri; +Cc: igt-dev
== Series Details ==
Series: tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform (rev4)
URL : https://patchwork.freedesktop.org/series/75145/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8213 -> IGTPW_4375
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4375 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_4375, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4375/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4375:
### IGT changes ###
#### Possible regressions ####
* igt@i915_module_load@reload:
- fi-bsw-kefka: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8213/fi-bsw-kefka/igt@i915_module_load@reload.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4375/fi-bsw-kefka/igt@i915_module_load@reload.html
Known issues
------------
Here are the changes found in IGTPW_4375 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@i915_selftest@live@execlists:
- fi-bxt-dsi: [INCOMPLETE][3] ([i915#656]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8213/fi-bxt-dsi/igt@i915_selftest@live@execlists.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4375/fi-bxt-dsi/igt@i915_selftest@live@execlists.html
[i915#656]: https://gitlab.freedesktop.org/drm/intel/issues/656
Participating hosts (47 -> 45)
------------------------------
Additional (6): fi-hsw-4770r fi-bsw-n3050 fi-byt-j1900 fi-glk-dsi fi-kbl-7560u fi-tgl-y
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-skl-6770hq fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5544 -> IGTPW_4375
CI-20190529: 20190529
CI_DRM_8213: 3cebf14c87d0d4508d4cc9c49db14061af752c37 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4375: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4375/index.html
IGT_5544: 477c562fc9932939083d732b77dd7b083c6bc0a1 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4375/index.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-30 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 13:50 [igt-dev] [PATCH] [PATCH i-g-t][V3]tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform Arjun Melkaveri
2020-03-30 14:44 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/gem_exec_nop:-Fixed Crash issue seen on few platform (rev4) Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox