1873 Commits

Author SHA1 Message Date
Daniel Vetter
c2c0efc21a tests/gem_mmap: Convert to subtests
I wanted to write a testcase for gtt mmap access restriction checking
and only noticed after conversion to subtests that this here is for
cpu mmaps ;-)

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26 19:44:31 +02:00
Imre Deak
86f60ee593 tests/kms_setmode: don't save/restore vt graphics for dry-run
Signed-off-by: Imre Deak <imre.deak@intel.com>
2013-08-26 17:20:29 +03:00
Imre Deak
40cc4b8d10 lib/drmtest: fix handling of -h --help argument parsing
So far we handled -h or --help arguments properly only if the test
called igt_subtest_init_parse_opts(). Fix this for igt_subtest_init()
callers too. Make sure we still don't exit for any other
unknown options, which the caller may parse with a second getopt scan.

Signed-off-by: Imre Deak <imre.deak@intel.com>
2013-08-26 17:18:38 +03:00
Chris Wilson
04a4fae32e overlay: Trim the padding slightly
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26 14:46:29 +01:00
Chris Wilson
908df374a9 overlay: Count number of semaphores used by each process
This required me to contract the per-process information considerably,
hopefully readability is not sacrificed too much.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26 14:34:05 +01:00
Chris Wilson
1e65d5ac2f overlay: Allow simple positioning and resizing
Using window.size=<width>x<height> or window.size=<scale>% in
the config file, or --size=<scale>% or --size=<width>x<height>

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 23:44:35 +01:00
Chris Wilson
c9f0173764 overlay: Monitor interrupts
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 20:14:13 +01:00
Chris Wilson
39f9812315 overlay: Detach from terminal
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 15:18:39 +01:00
Chris Wilson
d929102591 overlay: Add a raw kms output
For when you don't have any display server, use brute force.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
20a25f5eaf overlay: Draw the cpu busy line on top of the waits
By drawing it behind the waits, it is obscured by the translucent waits.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
a932c73ab7 overlay: simplify types for object counts for 32/64bit porting
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Chris Wilson
68c63ddd36 overlay: Expose sampling period/frequency as a user parameter
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25 13:34:31 +01:00
Daniel Vetter
09d9089ead tests/gem_evict_*: Add interruptible modes
Also I've stumbled over igt_fixture again. Somehow gcc loves to wreak
havoc with stack variables set up in igt_fixtures ... Duct-tape in the
form of moving fd out to global scope applied.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-23 22:32:29 +02:00
Chris Wilson
1b6480114e overlay: Fix power reading from debugfs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23 16:07:04 +01:00
Chris Wilson
b22e90bc8b overlay: Distinguish the root debugfs path and our dri node
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23 16:00:16 +01:00
Chris Wilson
9574cb1a3d overlay: Search for right debugfs path
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-23 15:53:01 +01:00
Daniel Vetter
fd88db77cc tests/sysfs_rps: Fix igt_require conversion
Another fumble caught by QA.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68461
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-23 09:30:47 +02:00
Chris Wilson
ea80196d9f overlay: Replace debug ticker with hostname
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 22:53:00 +01:00
Chris Wilson
163b6a52a4 overlay: Close DRI2 device after authentication failure
So that we don't leave a master fd open when operating remotely.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 22:15:46 +01:00
Chris Wilson
92a2f8010b overlay: Double buffer the x11 window
For pleasant remote transport.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 19:21:13 +01:00
Chris Wilson
b6ee8ccffe overlay: Make the config parser more lenient
Allow a dot-notation outside of the [ini] style to make commandline
parameters easier to add.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 19:21:13 +01:00
Paulo Zanoni
c62cf67a6f tests/pc8: don't work around the eDP I2C bug
On the current Kernels, i2c operations on disabled eDP panels don't
work because we don't enable the panel before doing the i2c
transactions. Whenever we try these transactions we print an error
message on dmesg and fail. The current test suite was trying to work
around this problem: we count how many eDP outputs we have and add
them to the final result.

Daniel asked me to not work around the bug, so now the i2c test will
fail until we actually fix the Kernel bug (or stop using eDP panels).

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-08-22 13:19:18 -03:00
Paulo Zanoni
9d29670dee tests/pc8: fix function return value
Looks like I forgot to push this chunk... The test was passing in
cases where you only have eDP monitors due to the fact that we
consider i2c won't work on eDP monitors.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-08-22 13:19:14 -03:00
Chris Wilson
7c52a3cf52 overlay: Rudiments of config files and option parsing
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 15:28:02 +01:00
Chris Wilson
184786988e overlay: Fill the blank charts with error messages
Instead of showing nothing, show a "space left intentionally blank"
message.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 10:59:58 +00:00
Chris Wilson
b20a6b8279 overlay: Remove busy estimation
Too inaccurate to be useful.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-22 03:25:02 +01:00
Rodrigo Vivi
4572067c88 tests: ddx_intel_after_fbdev loads intel ddx after fbdev was loaded.
v2: Don't add to kernel tests.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-21 23:18:00 +02:00
Chris Wilson
5e66c8c239 overlay: Fix underflow for clamping initial values
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21 13:49:45 +01:00
Chris Wilson
8b9f919b63 overlay: i915 pmu doesn't require a specific frequency
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21 13:44:44 +01:00
Chris Wilson
db35f8c6ad overlay: Put a faint outline around each chart
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21 13:36:51 +01:00
Chris Wilson
e34fab5d2b overlay: Fade the graphs behind the text
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21 11:11:53 +01:00
Chris Wilson
e104037fff tests: Add gem_evict_alignment
Clone gem_evict_everything and use it to exercise the misalignment
paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21 10:26:59 +01:00
Daniel Vetter
e075e7b43c lib/drmtest: fix logic fumble in gem_context_create
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68363
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-21 10:23:08 +02:00
Chris Wilson
3e7dddc1d1 overlay: Fix old mmio gpu busyness probing
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-21 09:16:25 +01:00
Chris Wilson
a7b7420927 overlay: Fix sampling of i915 perf event
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20 23:19:45 +01:00
Chris Wilson
0b78c1632c overlay: Fix display of rc6 states
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20 21:58:22 +01:00
Chris Wilson
b98bade56e overlay: Add copyright statements
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20 21:39:27 +01:00
Chris Wilson
2e482a3487 overlay: Use the new i915 PMU to query GPU busyness
And so avoid having to hold forcewake indefinitely.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20 21:30:56 +01:00
Chris Wilson
5cb8c77d69 overlay: Take a snapshot on SIGUSR1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20 21:30:56 +01:00
Daniel Vetter
57e573ecc1 tests/pc8: Update to latest igt infrastructure
- Use igt_require for magic SKIP results while still printing results
  for all subtests.

- Wrap setup/teardown code outside of subtests with igt_fixture. This
  will ensure that the so wrapped code isn't run when an
  igt_require/igt_assert failed (and we're essentially just printing
  the SKIP/FAIL result for all subtests) or when just enumerating
  subtests.

- Use igt_exit. Otherwise SKIP/FAIL results of subtests won't be propagated
  correctly.

- igt_subtest checks should be run unconditionally to make sure we
  always enumerate the same set of subtests. A bit on the line here
  since this is a subtest hidden behind a runtime flag.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-20 22:26:32 +02:00
Paulo Zanoni
c158128de5 tests: add pc8
This test chekcs our code that enables Package C8+. The environment
requirements for this test are quite complicated:
  - The machine needs to be properly configured to reach PC8+ when
    possible, which means all the power management policies and device
    drivers must be properly configured.
  - You need at least one output connected.
  - You need the /dev/cpu/0/msr file available.
  - You need the /dev/i2c-* files available.

v2: - Many many changes due to the latest review comments and rebase.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-20 22:26:32 +02:00
Damien Lespiau
a7aaf85ac0 gitignore: Add a couple of recent binaries to .gitignore files
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:56:54 +01:00
Damien Lespiau
84beb3a2a6 quick_dump: Use AM_V_GEN when generating the bindings
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:55:16 +01:00
Damien Lespiau
993815ae3b overlay: Include gpu-perf.h for distribution
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:52:53 +01:00
Damien Lespiau
01283245ab assembler: Disable the declare test
It's not hitting a valid assertion that it tries to write an instruction
without a defined execution size (because the "default" exec_size never
end up being set).

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:25:52 +01:00
Damien Lespiau
ca043f3a8f assembler: Disable tests that where already failing in the gen4asm repo
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:22:45 +01:00
Damien Lespiau
f8b25a3612 assembler: Ignore make check output
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:12:49 +01:00
Damien Lespiau
751f8a7378 assembler: Fix the path of intel-gen4asm
With the move to intel-gpu-tools, we need to update that as well.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:02:37 +01:00
Damien Lespiau
63720a4f86 assembler: Revert "Fix missing environment variables problem in test/run-test.sh"
Same as:

  commit 497814f2f2828efdc5bdd787ebc490d5083f61b8
  Author: Damien Lespiau <damien.lespiau@intel.com>
  Date:   Tue Aug 20 14:52:05 2013 +0100

      assembler: Revert "Automatically run all test cases."

make check will define srcdir and buildir variables for us.

This reverts commit 1c009349bc894bd195b5522540536898b0bee574.
2013-08-20 17:58:48 +01:00
Damien Lespiau
497814f2f2 assembler: Revert "Automatically run all test cases."
The tests where supposed to be run through make check, not running the
"run-test.sh" standalone. So revert that patch to have make check work
as intended.

This reverts commit 6983eebf47f37def8f2315d5af1800b81644f240.
2013-08-20 14:52:05 +01:00