21 Commits

Author SHA1 Message Date
Mike Mason
b1e40e97c8 scripts/run-tests.sh: add option to not retry incomplete tests on resume
This patch utilizes piglit's new --no-retry option. That option
prevents incomplete tests from being retried when resuming a
test run. This is necessary because retrying tests that cause
a crash or reboot prevents a test run from being resumed.

This patch also adds -s to the piglit command line. The -s option
forces test logs to be synced to disk after every test.
Without it, some logs can be lost if a test causes a crash
or reboot, making it impossible to resume the test run at the
correct point.

Signed-off-by: Mike Mason <michael.w.mason@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-05-28 17:23:57 +01:00
Damien Lespiau
c0a0725fad list-workarounds: Print the line where the parsing error occured
Useful to understand the warnings the scripts prints.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-05-19 15:15:05 +01:00
Mike Mason
3db5762384 scripts/run-tests.sh: use single combined test list
i-g-t now creates a single combined test list for tests with
and without subtests. This patch adapts run-tests.sh to that
change.

Signed-off-by: Mike Mason <michael.w.mason@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-05-12 17:03:43 +01:00
Damien Lespiau
790398bbbd list-workarounds/bxt: Add Broxton to the list of valid platorms
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-04-08 14:52:37 +03:00
Damien Lespiau
334f657e98 list-workarounds/skl: Add Skylake to the list of valid platorms
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-09-30 12:21:02 +01:00
Mike Mason
822cc6a565 scripts: Add capability to resume interrupted run-tests.sh session
Piglit provides a 'resume' feature that can restart an interrupted
test run at the point where it stopped. This patch adds that
feature to run_tests.sh.

Signed-off-by: Mike Mason <michael.w.mason@intel.com>
[Thomas: remove additional new line from end of file]
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-08-29 16:32:42 +01:00
Mike Mason
e9da093b13 scripts: Allow multiple -t and -x regular expressions for run-tests.sh
Piglit allows multiple -t and -x regular expressions to be
given on the command line. This patch enables run-tests.sh to
support that as well.

Signed-off-by: Mike Mason <michael.w.mason@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-08-19 11:31:57 +01:00
Thomas Wood
ee62ca48e7 scripts: add a script to help run tests with Piglit
Add a script to facilitate running the tests with Piglit by providing
simplified options for listing, filtering and creating summaries of test
runs.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-07-11 11:47:46 +01:00
Damien Lespiau
8c4dd1d898 list-workarounds/chv: Add Cherryview to the list of valid platorms
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-06-11 16:55:55 +01:00
Damien Lespiau
1c5e1d230b list-workarounds/bdw: Add Broadwell to the list of valid platorms
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-06 09:39:41 -08:00
Damien Lespiau
17523ef7bf list-workarounds: Some workarounds start with WA, not Wa
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-06-06 16:52:56 +01:00
Damien Lespiau
81ba005381 list-workarounds: Don't prepend kernel_path to the driver directory
We are changing the cwd, so we just need the relative patch from the
root for the kernel git repo. This allows the script to work from
anywhere.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-05-23 12:12:54 +01:00
Ben Widawsky
0e8931925d list-workarounds: Convert to python3
The rest of the tool suite that uses python already uses python3.
The tool configure requires python >= 3 (which is confusing because of
the no backward compat problem).

The world is slowly moving to python3.

Converted with 2to3.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-05-11 16:00:08 -07:00
Damien Lespiau
397dcb745e list-workarounds: Don't add an already present platform
Currently if we come across several sites that say that a specific
workaround is implemented for a platform, we just add the platform
several times to the list. eg.

WaFbcDisableDpfcClockGating: ivb, hsw, ivb, hsw

This patch prevent that by only adding the plaform if it's not already
there.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-05-10 15:35:26 +01:00
Damien Lespiau
b9765af636 scripts: Add a script to list implemented workarounds
We document the implemented workarounds with

  workaround_name:platforms

with platforms being a comma separated list of 3-letters platform names.

This scripts gather those tags and output a summary of implemented work
arounds. Example usages:

$ ./scripts/list-workarounds ~/gfx/sources/linux-2.6/
WaApplyL3ControlAndL3ChickenMode: hsw, ivb, vlv
WaCatErrorRejectionIssue: hsw, ivb, vlv
WaDisable4x2SubspanOptimization: hsw, ivb
WaDisableBackToBackFlipFix: ivb, vlv
WaDisableDopClockGating: vlv
....

$ ./scripts/list-workarounds ~/gfx/sources/linux-2.6/ -p ivb
WaApplyL3ControlAndL3ChickenMode
WaCatErrorRejectionIssue
WaDisable4x2SubspanOptimization
WaDisableBackToBackFlipFix
WaDisableEarlyCull
...

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-05-08 13:27:24 +01:00
Ben Widawsky
d400551144 Converted a display debug script for use by designers
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-23 11:38:20 -07:00
Gaetan Nadon
812ca58f8a scripts: use PYTHON primary directive for python scripts
Should it become installlable in the future, it will get compiled
at installation time by Automake. Because it is "source", they get
included in the tarball.

Acked-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2012-01-12 09:13:08 -05:00
Chris Wilson
7ac492aec2 scripts/who: Add the process id to the output
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-12 20:19:15 +00:00
Chris Wilson
61ff1309ca scripts: Add a trivial script to show which programs are using the GPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-12 17:47:14 +00:00
Daniel Vetter
91b3c7f333 make distcheck fixes
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 21:24:12 +01:00
Chris Wilson
e0532d4eb0 scripts: Add throttle.py
Parses a trace.dat and works out how long each throttle was and how many
batches retired within that period (and their average duration).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-08 12:16:23 +01:00