Re: [Intel-gfx] [igt-dev] [PATCH igt 2/3] igt/gem_exec_fence: Exercise merging fences

2018-03-16 Thread Antonio Argenziano
On 16/03/18 15:14, Chris Wilson wrote: Quoting Antonio Argenziano (2018-03-16 22:11:11) On 13/03/18 05:31, Chris Wilson wrote: Execute the same batch on each engine and check that the composite fence across all engines completes only after the batch is completed on every engine. Signed

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/3] tests/gem_eio: Speed up test execution

2018-03-22 Thread Antonio Argenziano
On 22/03/18 05:42, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-03-22 12:36:58) On 22/03/2018 11:39, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-03-22 11:17:11) trigger_reset(fd); + + /* HACK for CI */ + igt_assert(igt_nsec_elapsed(&ts) < 5e9); igt_seconds_

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 2/3] tests/gem_eio: Speed up test execution

2018-03-22 Thread Antonio Argenziano
On 22/03/18 11:14, Chris Wilson wrote: Quoting Antonio Argenziano (2018-03-22 17:32:46) On 22/03/18 05:42, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-03-22 12:36:58) On 22/03/2018 11:39, Chris Wilson wrote: Quoting Tvrtko Ursulin (2018-03-22 11:17:11) trigger_reset(fd

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2 2/2] tests/gem_eio: Add reset and unwedge stress testing

2018-04-03 Thread Antonio Argenziano
On 03/04/18 04:36, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Reset and unwedge stress testing is supposed to trigger wedging or resets at incovenient times and then re-use the context so either the context or driver tracking might get confused and break. v2: * Renamed for more sensible na

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2 2/2] tests/gem_eio: Add reset and unwedge stress testing

2018-04-03 Thread Antonio Argenziano
On 03/04/18 11:24, Antonio Argenziano wrote: On 03/04/18 04:36, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Reset and unwedge stress testing is supposed to trigger wedging or resets at incovenient times and then re-use the context so either the context or driver tracking might get confused

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2 2/2] tests/gem_eio: Add reset and unwedge stress testing

2018-04-04 Thread Antonio Argenziano
On 04/04/18 02:58, Tvrtko Ursulin wrote: On 03/04/2018 19:34, Antonio Argenziano wrote: On 03/04/18 11:24, Antonio Argenziano wrote: On 03/04/18 04:36, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Reset and unwedge stress testing is supposed to trigger wedging or resets at incovenient

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/kms_plane_scaling: Open DRM_MASTER

2018-04-12 Thread Antonio Argenziano
On 12/04/18 01:43, Chris Wilson wrote: Modesetting requires DRM_MASTER privileges, so use drm_open_driver_master() to assert that we do acquire them. References: https://bugs.freedesktop.org/show_bug.cgi?id=105997 Signed-off-by: Chris Wilson Acked-by: Antonio Argenziano

Re: [Intel-gfx] [PATCH i-g-t 1/3] igt/gem_cpu_reloc: Check HW exists before attempting to use it

2018-05-17 Thread Antonio Argenziano
On 17/05/18 08:37, Chris Wilson wrote: Quoting Antonio Argenziano (2018-05-17 16:08:14) On 17/05/18 01:23, Chris Wilson wrote: Confirm we have the available HW before asserting it succeeds. Signed-off-by: Chris Wilson --- tests/gem_cpu_reloc.c | 1 + 1 file changed, 1 insertion

Re: [Intel-gfx] [PATCH i-g-t 1/3] igt/gem_cpu_reloc: Check HW exists before attempting to use it

2018-05-17 Thread Antonio Argenziano
On 17/05/18 09:52, Chris Wilson wrote: Quoting Antonio Argenziano (2018-05-17 17:29:26) On 17/05/18 08:37, Chris Wilson wrote: Quoting Antonio Argenziano (2018-05-17 16:08:14) On 17/05/18 01:23, Chris Wilson wrote: Confirm we have the available HW before asserting it succeeds. Signed

Re: [Intel-gfx] [PATCH i-g-t 2/3] igt/gem_blits: Check for blitter support before use

2018-05-17 Thread Antonio Argenziano
places. Also, we have a gem_has_blt() function which is slightly different. Which is making things quite confusing for me... I wish I had a better name but I think we should add at least a comment to differentiate the two. With that: Reviewed-by: Antonio Argenziano Thanks, Antonio +

Re: [Intel-gfx] [PATCH i-g-t] igt/kms_frontbuffer_tracking: Skip over IGT_DRAW_BLT when there's no BLT

2018-05-17 Thread Antonio Argenziano
On 17/05/18 02:56, Chris Wilson wrote: If the blitter is not available, we cannot use it as a source for dirty rectangles. We shall have to rely on the other engines to create GPU dirty instead. v2: Try using lots of subgroup+fixtures Signed-off-by: Chris Wilson TEST_MODE_ITER_BEG

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] tests/drv_suspend: Suspend under memory pressure

2018-05-24 Thread Antonio Argenziano
spend. References: https://bugs.freedesktop.org/show_bug.cgi?id=106640 Signed-off-by: Chris Wilson Cc: Tomi Sarvela LGTM: Reviewed-by: Antonio Argenziano --- lib/igt_core.c | 34 -- lib/igt_core.h | 1 + tests/drv_suspend.c

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/perf_pmu: Flush to idle after hang

2018-05-29 Thread Antonio Argenziano
; flushing it to idle in the process! Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin LGTM. Reviewed-by: Antonio Argenziano --- tests/perf_pmu.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index 590e6526b..9af192dd8

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib: Assert that we do manage to submit at least one batch when measuring

2018-05-30 Thread Antonio Argenziano
On 30/05/18 03:33, Chris Wilson wrote: As we measure the ring size, we never expect to find we can not submit no batches at all. Assert against the unexpected. Signed-off-by: Chris Wilson Cc: Antonio Argenziano --- lib/i915/gem_ring.c | 1 + 1 file changed, 1 insertion(+) diff --git a

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib: Align ring measurement to timer

2018-05-30 Thread Antonio Argenziano
On 30/05/18 03:33, Chris Wilson wrote: After hitting the SIGINT from execbuf, wait until the next timer signal before trying again. This aligns the start of the ioctl to the timer, hopefully maximising the amount of time we have for processing before the next signal -- trying to prevent the cas

Re: [Intel-gfx] [PATCH i-g-t 3/3] lib: Double check ring measurement

2018-05-30 Thread Antonio Argenziano
On 30/05/18 03:33, Chris Wilson wrote: Check twice for the signal interrupting the execbuf, because the real world is messy. References: https://bugs.freedesktop.org/show_bug.cgi?id=106695 Signed-off-by: Chris Wilson Cc: Antonio Argenziano LGTM. Reviewed-by: Antonio Argenziano

Re: [Intel-gfx] [PATCH i-g-t 2/3] lib: Align ring measurement to timer

2018-05-31 Thread Antonio Argenziano
On 30/05/18 12:52, Chris Wilson wrote: Quoting Antonio Argenziano (2018-05-30 18:30:36) On 30/05/18 03:33, Chris Wilson wrote: After hitting the SIGINT from execbuf, wait until the next timer signal before trying again. This aligns the start of the ioctl to the timer, hopefully maximising

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2] igt/drv_module_reload: Revamp fault-injection

2018-06-06 Thread Antonio Argenziano
On 06/06/18 10:42, Chris Wilson wrote: The current method of checking for a failed module load is flawed, as we only report the error on probing it is not being reported back by modprobe. So we have to dig inside the module_parameters while the module is still loaded to discover the error. v2:

Re: [Intel-gfx] [PATCH i-g-t] igt/gem_eio: Make reset-stress safe

2018-06-15 Thread Antonio Argenziano
On 15/06/18 11:56, Chris Wilson wrote: As we hang ctx0 quite frequently, it needs to be harden against being banned. Signed-off-by: Chris Wilson Cc: Mika Kuoppala For some reason I thought we had more hang stress tests. Reviewed-by: Antonio Argenziano --- tests/gem_eio.c | 2 +- 1

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] lib: Spin fast, sweet chariot, coming to carry me home

2018-06-19 Thread Antonio Argenziano
er of 5us, which is often larger than the target latency. Signed-off-by: Chris Wilson Reviewed-by: Antonio Argenziano --- lib/igt_dummyload.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index d32b421c6..b090b8004 1

[Intel-gfx] [RFC i-g-t 0/1] Introducing HW focused tests

2017-05-31 Thread Antonio Argenziano
intaining HW focused tests. Cc: Latvala Petri Antonio Argenziano (1): tests/gem_bad_address: Fix and update gem_bad_address Makefile.am | 4 ++ configure.ac | 11 ++ tests_hw/Makefile.am | 36 ++ tests

[Intel-gfx] [RFC i-g-t 1/1] tests/gem_bad_address: Fix and update gem_bad_address

2017-05-31 Thread Antonio Argenziano
tests. Signed-off-by: Antonio Argenziano --- Makefile.am | 4 ++ configure.ac | 11 ++ tests_hw/Makefile.am | 36 ++ tests_hw/Makefile.sources | 8 {tests => tests_hw}/gem_bad_addres

[Intel-gfx] [i-g-t] igt/gem_reset_stats: Fix pending batches status expectation

2017-06-09 Thread Antonio Argenziano
Test expects pending batches to be discarded after a reset. That is no longer the case. Fixed to expect a normal execution. Cc: Michel Thierry Signed-off-by: Antonio Argenziano --- tests/gem_reset_stats.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff

[Intel-gfx] [PATCH v2] igt/gem_reset_stats: Fix pending batches status expectation

2017-06-12 Thread Antonio Argenziano
ned-off-by: Antonio Argenziano --- tests/gem_reset_stats.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c index c4ce4ac2..73afeeb2 100644 --- a/tests/gem_reset_stats.c +++ b/tests/gem_reset_stats.c @@ -23

Re: [Intel-gfx] [i-g-t] igt/gem_reset_stats: Fix pending batches status expectation

2017-06-20 Thread Antonio Argenziano
On 20/06/17 04:45, Arkadiusz Hiler wrote: On Fri, Jun 09, 2017 at 10:54:13AM -0700, Michel Thierry wrote: On 6/9/2017 10:02 AM, Antonio Argenziano wrote: Test expects pending batches to be discarded after a reset. That is no longer the case. Fixed to expect a normal execution. You could

Re: [Intel-gfx] [PATCH i-g-t 1/3] lib: Force global reset + uevents for hang detector

2017-06-26 Thread Antonio Argenziano
On 20/06/17 11:25, Michel Thierry wrote: From: Chris Wilson The hang detector relies on a uevent for notification and aborting the test. As proposed, fine-grained resets may not produce a global uevent and so this hang detection becomes void. As we don't expect any hang, we can just reduce th

Re: [Intel-gfx] [PATCH i-g-t v2 2/2] tests/gem_reset_stats: Enforce full chip reset mode before run

2017-07-06 Thread Antonio Argenziano
On 28/06/17 11:37, Michel Thierry wrote: Platforms with per-engine reset enabled (i915.reset=2) are unlikely to perform a full chip reset, keeping the reset_count unmodified. In order to keep the expectations of this test, enforce that full GPU reset is enabled (i915.reset=1). Later on, we can

Re: [Intel-gfx] [PATCH] i-g-t/tests: Drop gem_seqno_wrap, gem_pin, gem_hangcheck_forcewake

2017-10-10 Thread Antonio Argenziano
On 10/10/17 01:55, Abdiel Janulgue wrote: This improves the GEM tests section of I-G-T to make it more suitable for CI testing Can you provide a little more details on what is the rationale behind this choice. Are the tests being removed only because they do not fit the CI guidelines or is

Re: [Intel-gfx] [PATCH] i-g-t/tests: Drop gem_seqno_wrap, gem_pin, gem_hangcheck_forcewake

2017-10-10 Thread Antonio Argenziano
On 10/10/17 13:19, Chris Wilson wrote: Quoting Antonio Argenziano (2017-10-10 18:12:17) On 10/10/17 01:55, Abdiel Janulgue wrote: This improves the GEM tests section of I-G-T to make it more suitable for CI testing Can you provide a little more details on what is the rationale behind

[Intel-gfx] [PATCH i-g-t] Lib: Move __gem_context_create to common ioctl wrapper library.

2017-10-11 Thread Antonio Argenziano
This patch adds a context creation ioctl wrapper that returns the error for the caller to consume. Multiple tests that implemented this already, have been changed to use the new library function. Signed-off-by: Antonio Argenziano --- benchmarks/gem_exec_ctx.c | 16 benchmarks

[Intel-gfx] [PATCH i-g-t 1/2] lib: Move __gem_context_create to common ioctl wrapper library.

2017-10-12 Thread Antonio Argenziano
: Antonio Argenziano Cc: Chris Wilson --- benchmarks/gem_exec_ctx.c | 6 +++--- benchmarks/gem_exec_trace.c | 4 ++-- lib/ioctl_wrappers.c| 44 ++-- lib/ioctl_wrappers.h| 2 ++ tests/gem_ctx_switch.c | 13 - tests/gem_eio.c

[Intel-gfx] [i-g-t 2/2] tests/gem_reset_stats: Add client ban test

2017-10-12 Thread Antonio Argenziano
When a client gets a fixed amount of its contexts banned, will be blocked from creating any new contexts itself. This patch adds a test for this feature. Signed-off-by: Antonio Argenziano Cc: Michel Thierry --- tests/gem_ctx_create.c | 10 +- tests/gem_reset_stats.c | 47

Re: [Intel-gfx] [i-g-t 2/2] tests/gem_reset_stats: Add client ban test

2017-10-12 Thread Antonio Argenziano
On 12/10/17 15:10, Antonio Argenziano wrote: When a client gets a fixed amount of its contexts banned, will be blocked from creating any new contexts itself. This patch adds a test for this feature. Signed-off-by: Antonio Argenziano Cc: Michel Thierry --- tests/gem_ctx_create.c | 10

[Intel-gfx] [PATCH i-g-t v2 1/2] lib: Move __gem_context_create to common ioctl wrapper library.

2017-10-13 Thread Antonio Argenziano
: Antonio Argenziano Cc: Chris Wilson --- benchmarks/gem_exec_ctx.c | 6 +++--- benchmarks/gem_exec_trace.c | 4 ++-- lib/ioctl_wrappers.c| 46 +++-- lib/ioctl_wrappers.h| 2 ++ tests/gem_ctx_create.c | 10 +- tests

[Intel-gfx] [PATCH i-g-t v2 2/2] tests/gem_reset_stats: Add client ban test

2017-10-13 Thread Antonio Argenziano
A client that submits 'bad' contexts will be banned eventually while other clients are not affected. Add a test for this. v2 - Do not use a fixed number of contexts to ban client (Chris) Signed-off-by: Antonio Argenziano Cc: Michel Thierry Cc: Chris Wilson

[Intel-gfx] [PATCH i-g-t v3] lib: Move __gem_context_create to common ioctl wrapper library.

2017-10-25 Thread Antonio Argenziano
gem_has_contexts to check for contexts support and change gem_require_contexts to skip if contests support is not available. (Chris) Signed-off-by: Antonio Argenziano Cc: Chris Wilson Cc: MichaƂ Winiarski --- benchmarks/gem_exec_ctx.c | 6 ++--- benchmarks/gem_exec_trace.c

[Intel-gfx] [PATCH i-g-t v4] lib: Move __gem_context_create to common ioctl wrapper library.

2017-10-26 Thread Antonio Argenziano
gem_has_contexts to check for contexts support and change gem_require_contexts to skip if contests support is not available. (Chris) v4: - Cosmetic changes and use lib function in gem_ctx_create where possible. (Michal) Signed-off-by: Antonio Argenziano Cc

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/gem_exec_schedule: Trim max number of contexts used

2018-02-13 Thread Antonio Argenziano
On 13/02/18 01:26, Chris Wilson wrote: icl offers a much reduced context space, and in its simplest setup we cannot allocate one context per priority level, so trim the number and reuse the same context for multiple priority requests. Signed-off-by: Chris Wilson --- tests/gem_exec_schedule.

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/gem_exec_schedule: Trim max number of contexts used

2018-02-13 Thread Antonio Argenziano
On 13/02/18 15:10, Chris Wilson wrote: Quoting Antonio Argenziano (2018-02-13 22:47:35) On 13/02/18 01:26, Chris Wilson wrote: icl offers a much reduced context space, and in its simplest setup we cannot allocate one context per priority level, so trim the number and reuse the same context

Re: [Intel-gfx] [PATCH igt] igt/gem_eio: Exercise set-wedging against request submission

2018-02-20 Thread Antonio Argenziano
On 07/02/18 01:50, Chris Wilson wrote: Build up a large stockpile of requests, ~500,000, and feed them into the system at 20KHz whilst simultaneously triggering set-wedged in order to try and race i915_gem_set_wedged() against the engine->submit_request() callback. Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH igt] lib/dummyload: Avoid assertions in lowlevel spin constructor

2018-02-22 Thread Antonio Argenziano
On 22/02/18 00:50, Chris Wilson wrote: __igt_spin_batch_new() may be used inside a background helper which is competing against the GPU being reset. As such, we cannot even assert that the spin->handle is busy immediately after submission as it may have already been reset by another client writ

Re: [Intel-gfx] [igt-dev] [PATCH igt 3/5] igt/gem_ctx_switch: Exercise all engines at once

2018-02-28 Thread Antonio Argenziano
On 28/02/18 07:51, Chris Wilson wrote: Just a small variant to apply a continuous context-switch load to all engines. --- tests/gem_ctx_switch.c | 83 ++ 1 file changed, 83 insertions(+) diff --git a/tests/gem_ctx_switch.c b/tests/gem_ctx_swit

Re: [Intel-gfx] [igt-dev] [PATCH igt 5/5] igt/gem_exec_fence: Exercise merging fences

2018-02-28 Thread Antonio Argenziano
On 28/02/18 07:51, Chris Wilson wrote: Execute the same batch on each engine and check that the composite fence across all engines completes only after the batch is completed on every engine. Signed-off-by: Chris Wilson LGTM. Reviewed-by: Antonio Argenziano --- tests/gem_exec_fence.c

Re: [Intel-gfx] [PATCH igt v2] igt/gem_ctx_switch: Exercise all engines at once

2018-03-01 Thread Antonio Argenziano
On 28/02/18 23:51, Chris Wilson wrote: Just a small variant to apply a continuous context-switch load to all engines. v2: Adapt to for_each_physical_engine() and sane gem_context_create() Signed-off-by: Chris Wilson Cc: Antonio Argenziano LGTM. Reviewed-by: Antonio Argenziano

Re: [Intel-gfx] [PATCH igt] Bump measure_ring_size() timer interval

2018-03-05 Thread Antonio Argenziano
Signed-off-by: Chris Wilson Cc: Antonio Argenziano Reviewed-by: Antonio Argenziano ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH igt] igt/drv_hangman: Check that the error state does hold the expected state

2018-03-05 Thread Antonio Argenziano
ssert(found); Test changes look fine to me, failures on CI seems to be caused by the test not waiting for reset to happen only before we would have not caught it. Reviwed-by: Antonio Argenziano } static void test_error_state_capture(unsigned ring_id, ___

Re: [Intel-gfx] [PATCH igt] igt: Add gem_ctx_freq to exercise requesting freq on a ctx

2018-03-07 Thread Antonio Argenziano
On 07/03/18 14:49, Chris Wilson wrote: Exercise some new API that allows applications to request that individual contexts are executed within a desired frequency range. Signed-off-by: Chris Wilson --- tests/Makefile.am | 2 +- tests/Makefile.sources | 1 + tests/gem_ctx_freq.c

Re: [Intel-gfx] [PATCH igt] igt: Add gem_ctx_freq to exercise requesting freq on a ctx

2018-03-08 Thread Antonio Argenziano
On 07/03/18 17:18, Chris Wilson wrote: Quoting Antonio Argenziano (2018-03-08 00:55:47) On 07/03/18 14:49, Chris Wilson wrote: +static void single(int fd, const struct intel_execution_engine *e) +{ + const unsigned int engine = e->exec_id | e->flags; + uint32

Re: [Intel-gfx] [PATCH igt] igt: Add gem_ctx_freq to exercise requesting freq on a ctx

2018-03-08 Thread Antonio Argenziano
: Antonio Argenziano --- tests/Makefile.am | 1 + tests/Makefile.sources | 1 + tests/gem_ctx_freq.c | 604 + tests/meson.build | 1 + 4 files changed, 607 insertions(+) create mode 100644 tests/gem_ctx_freq.c +static void

Re: [Intel-gfx] [PATCH igt] igt: Add gem_ctx_freq to exercise requesting freq on a ctx

2018-03-09 Thread Antonio Argenziano
On 08/03/18 17:03, Chris Wilson wrote: Quoting Antonio Argenziano (2018-03-09 00:45:42) On 08/03/18 09:13, Chris Wilson wrote: Exercise some new API that allows applications to request that individual contexts are executed within a desired frequency range. v2: Split single/continuous

Re: [Intel-gfx] [PATCH igt] igt: Add gem_ctx_freq to exercise requesting freq on a ctx

2018-03-12 Thread Antonio Argenziano
after each invalid request v4: Check the frequencies reported by the kernel across the entire range. v5: Rewrite sandwich to create a sandwich between multiple concurrent engines. Signed-off-by: Chris Wilson Cc: Praveen Paneri Cc: Sagar A Kamble Cc: Antonio Argenziano LGTM. Reviewed-by: Antonio

[Intel-gfx] [RFC i-g-t] igt/gem_ringfill: Adds full ringbuffer preemption test

2017-08-15 Thread Antonio Argenziano
for a long time before actually preempting. The testcase added here, stimulates this scenario where a high priority request is sent while another process keeps submitting requests and filling its ringbuffer. Cc: Chris Wilson Signed-off-by: Antonio Argenziano --- tests/gem_ringfill.c | 140

Re: [Intel-gfx] [RFC i-g-t] igt/gem_ringfill: Adds full ringbuffer preemption test

2017-08-17 Thread Antonio Argenziano
On 15/08/17 15:35, Chris Wilson wrote: Quoting Antonio Argenziano (2017-08-15 22:44:21) Sending as RFC to get feedback on what would be the correct behaviour of the driver and, therefore, if the test is valid. It's not a preemption specific bug. It is fair to say that any client blo

[Intel-gfx] [PATCH i-g-t] igt/gem_ringfill: Adds ringbuffer full preemption test

2017-08-23 Thread Antonio Argenziano
. - Bound processes to same cpu and wake with signals. Cc: Chris Wilson Signed-off-by: Antonio Argenziano --- tests/gem_exec_schedule.c | 113 +- 1 file changed, 112 insertions(+), 1 deletion(-) diff --git a/tests/gem_exec_schedule.c b/tests

[Intel-gfx] [PATCH i-g-t] tests/gem_exec_reuse: Adds cleanup at the end of test.

2017-08-28 Thread Antonio Argenziano
This patch introduces a fixture at the end of the test to destroy objects that have been created and stop the hang detector. Cc: Chris Wilson Signed-off-by: Antonio Argenziano --- tests/gem_exec_reuse.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tests/gem_exec_reuse.c b/tests

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation

2018-01-10 Thread Antonio Argenziano
On 08/12/17 09:07, Antonio Argenziano wrote: On 08/12/17 08:46, Chris Wilson wrote: Quoting Antonio Argenziano (2017-12-08 16:27:17) The test expected IOCTL 'I915_GET_RESET_STATS' would return an error when not root. That is no longer true in the driver and therefore th

[Intel-gfx] [PATCH] drm/i915/reset_stats: Only allow root to read reset_stats

2018-01-16 Thread Antonio Argenziano
Instead of returning a zero value for non root users, return an EPERM error. Signed-off-by: Antonio Argenziano Cc: Chris Wilson Cc: Michel Thierry --- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_gem_context.c | 9 - 2 files changed, 5 insertions(+), 6

Re: [Intel-gfx] [PATCH] drm/i915/reset_stats: Only allow root to read reset_stats

2018-01-16 Thread Antonio Argenziano
On 16/01/18 09:27, Chris Wilson wrote: Quoting Antonio Argenziano (2018-01-16 16:09:35) Instead of returning a zero value for non root users, return an EPERM error. What? reset-stats are per-context, private to the client, with the exception of the global value which is solely protected by

Re: [Intel-gfx] [PATCH i-g-t v2] tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation

2018-01-16 Thread Antonio Argenziano
On 13/12/17 16:48, Antonio Argenziano wrote: The test expected IOCTL 'I915_GET_RESET_STATS' would return an error when not root. That is no longer true in the driver since commit 4c9c0d09741d ("drm/i915: Fix retrieval of hangcheck stats") and therefore the test was inco

[Intel-gfx] [PATCH i-g-t v3] tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation

2018-01-16 Thread Antonio Argenziano
hanged the behaviour in the Driver to the commit message. (Michel) v3: - Reuse get_reset_count instead of implementing a new function. (Michel) Cc: Michel Thierry Cc: Arkadiusz Hiler Cc: Chris Wilson Signed-off-by: Antonio Argenziano --- tests/gem_reset_stats.c |

Re: [Intel-gfx] [igt-dev] [PATCH igt] tests: Add a random load generator

2018-01-23 Thread Antonio Argenziano
On 21/01/18 12:20, Chris Wilson wrote: Apply a random load to one or all engines in order to apply stress to RPS as it tries to constantly adjust the GPU frequency to meet the changing workload. Signed-off-by: Chris Wilson --- tests/Makefile.sources | 1 + tests/gem_exec_load.c | 124 ++

Re: [Intel-gfx] [PATCH igt 1/2] lib: Refactor igt_wait() to use library timers

2018-01-26 Thread Antonio Argenziano
do {\ + uint64_t elapsed = igt_nsec_elapsed(&tv) >> 20; \ Maybe tv_ and elapsed_ just for consistency. Reviewed-by: Anto

Re: [Intel-gfx] [PATCH] drm/i915: Always run hangcheck while the GPU is busy

2018-01-29 Thread Antonio Argenziano
On 29/01/18 06:41, Chris Wilson wrote: Previously, we relied on only running the hangcheck while somebody was waiting on the GPU, in order to minimise the amount of time hangcheck had to run. (If nobody was watching the GPU, nobody would notice if the GPU wasn't responding -- eventually somebod

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/prime_mmap_coherency: Close dmabuf after use

2018-01-29 Thread Antonio Argenziano
: Chris Wilson LGTM. Reviewed-by: Antonio Argenziano --- tests/prime_mmap_coherency.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/prime_mmap_coherency.c b/tests/prime_mmap_coherency.c index 192b43489..04b15dddb 100644 --- a/tests/prime_mmap_coherency.c +++ b/tests

Re: [Intel-gfx] [PATCH igt v2] tests: Add a random load generator

2018-02-06 Thread Antonio Argenziano
: Chris Wilson Acked-by: Antonio Argenziano --- tests/Makefile.sources | 1 + tests/gem_exec_load.c | 176 + 2 files changed, 177 insertions(+) create mode 100644 tests/gem_exec_load.c diff --git a/tests/Makefile.sources b/tests

Re: [Intel-gfx] [igt-dev] [PATCH igt] igt/pm_rc6_residency: Check debugfs existence before reading

2018-02-09 Thread Antonio Argenziano
On 09/02/18 06:30, Chris Wilson wrote: During the startup, we try to determine if the system supports rc6 prior to testing. However, the startup check asserts the residency debugfs exists, instead of testing for a requirement. Signed-off-by: Chris Wilson Reviewed-by: Antonio Argenziano

Re: [Intel-gfx] [igt-dev] [PATCH igt 1/2] lib: force a reset on an uncooperative i915 device

2018-02-12 Thread Antonio Argenziano
+1428,20 @@ void igt_require_gem(int fd) * sequences of batches. */ err = igt_debugfs_dir(fd); I would prefer to use two variables, one for the debugfs fd and one for -errno for the IOCTL below. With or without the new variable, Reviewed-by: Antonio Argenziano

[Intel-gfx] [PATCH i-g-t 1/2] lib/intel_batchbuffer: Add secure batch buffer flushing on ring

2017-02-28 Thread Antonio Argenziano
Added functions for flushing a batch buffer as privileged. Signed-off-by: Antonio Argenziano --- lib/intel_batchbuffer.c | 45 + lib/intel_batchbuffer.h | 4 +++- 2 files changed, 44 insertions(+), 5 deletions(-) diff --git a/lib/intel_batchbuffer.c

[Intel-gfx] [PATCH i-g-t 2/2] tests/gem_bad_address: Fix store address

2017-02-28 Thread Antonio Argenziano
The test purpose is to write at an invalid GTT location. To do so, the store instruction used in the test has been updated to use the correct value and extra unneeded flags have been removed. The batch buffer is also sent as privileged now. Signed-off-by: Antonio Argenziano --- tests

[Intel-gfx] [PATCH i-g-t] igt/gem_bad_address: Remove test

2017-03-02 Thread Antonio Argenziano
The intent of the test is to provide an incorrect input to a command. Since the driver doesn't do any command validation, this test is removed as non applicable. Signed-off-by: Antonio Argenziano --- tests/Makefile.sources | 1 - tests/gem_bad_address.c

Re: [Intel-gfx] [PATCH] drm/i915: get a runtime PM ref in i915_wedged_set

2017-03-14 Thread Antonio Argenziano
("drm/i915/bxt: Broxton decoupled MMIO). Reported-by: Antonio Argenziano Signed-off-by: Michel Thierry Tested-By: Antonio Argenziano --- drivers/gpu/drm/i915/i915_debugfs.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915

<    1   2