platform/upstream/intel-gpu-tools.git
13 years agogem_stress: pwrite/pread support
Daniel Vetter [Sun, 20 Mar 2011 20:12:20 +0000 (21:12 +0100)]
gem_stress: pwrite/pread support

And a few other things:
- inline checking when copying tiles with the cpu, fails _much_ faster.
- bo size seems to have a tremendous effect, put on the TODO.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoAdd gem stress test
Daniel Vetter [Sat, 19 Mar 2011 20:34:55 +0000 (21:34 +0100)]
Add gem stress test

Not where I want it to be, yet. And not as good as I've hoped in detecting
broken kernels.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode map state on gen2
Daniel Vetter [Mon, 14 Mar 2011 12:03:48 +0000 (13:03 +0100)]
Decode map state on gen2

At least the important stuff.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode gen2/gen3 fences in the error_state
Daniel Vetter [Mon, 14 Mar 2011 10:20:17 +0000 (11:20 +0100)]
Decode gen2/gen3 fences in the error_state

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode 3DSTATE_CLEAR_PARAMETERS
Daniel Vetter [Sat, 5 Mar 2011 23:12:03 +0000 (00:12 +0100)]
Decode 3DSTATE_CLEAR_PARAMETERS

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoSmall cleanups for immediate state S5
Daniel Vetter [Sat, 5 Mar 2011 23:11:50 +0000 (00:11 +0100)]
Small cleanups for immediate state S5

And a tiny fix.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agotest: Mark gem_bad_batch as a known hang
Chris Wilson [Sat, 5 Mar 2011 09:01:01 +0000 (09:01 +0000)]
test: Mark gem_bad_batch as a known hang

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoFully decode sampler state
Daniel Vetter [Fri, 4 Mar 2011 15:41:07 +0000 (16:41 +0100)]
Fully decode sampler state

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoFully decode map state
Daniel Vetter [Fri, 4 Mar 2011 14:58:00 +0000 (15:58 +0100)]
Fully decode map state

A few odd things were missing.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode 3DSTATE_LOAD_INDIRECT
Daniel Vetter [Fri, 4 Mar 2011 13:31:04 +0000 (14:31 +0100)]
Decode 3DSTATE_LOAD_INDIRECT

The remaining stuff + cleanups.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode 3DSTATE_LOAD_INDIRECT S0-S4
Daniel Vetter [Fri, 4 Mar 2011 11:50:48 +0000 (12:50 +0100)]
Decode 3DSTATE_LOAD_INDIRECT S0-S4

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode scissor state
Daniel Vetter [Thu, 3 Mar 2011 20:29:27 +0000 (21:29 +0100)]
Decode scissor state

Not absolutely paranoid, who cares.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode 3DSTATE_DRAWING_RECTANGLE
Daniel Vetter [Thu, 3 Mar 2011 20:23:13 +0000 (21:23 +0100)]
Decode 3DSTATE_DRAWING_RECTANGLE

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode MS3 tex format
Daniel Vetter [Thu, 3 Mar 2011 20:20:26 +0000 (21:20 +0100)]
Decode MS3 tex format

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agodecode: Fix pretty printing of 3DSTATE_URB allocation size
Chris Wilson [Wed, 2 Mar 2011 16:06:00 +0000 (16:06 +0000)]
decode: Fix pretty printing of 3DSTATE_URB allocation size

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodecode: fix gen6 PS binding table update bit
Chris Wilson [Wed, 2 Mar 2011 14:48:20 +0000 (14:48 +0000)]
decode: fix gen6 PS binding table update bit

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoDecode MS3 tex format
Daniel Vetter [Mon, 28 Feb 2011 23:01:34 +0000 (00:01 +0100)]
Decode MS3 tex format

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoDecode depth buffer format
Daniel Vetter [Mon, 28 Feb 2011 21:51:47 +0000 (22:51 +0100)]
Decode depth buffer format

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoAdd MI_SUSPEND_FLUSH instruction decode
Ben Widawsky [Tue, 22 Feb 2011 17:25:29 +0000 (09:25 -0800)]
Add MI_SUSPEND_FLUSH instruction decode

Signed-off-by: Ben Widawsky <bwidawsk@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoRemove confusing use of IS_9XX
Chris Wilson [Mon, 14 Feb 2011 15:56:14 +0000 (15:56 +0000)]
Remove confusing use of IS_9XX

... and test for what we mean instead.

Reported-by: Diego Celix <dcelix@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agocorrect a mistyping for testdisplay
Hai Lan [Sat, 12 Feb 2011 04:25:36 +0000 (23:25 -0500)]
correct a mistyping for testdisplay

For testing all mode, the sleep time should be sleep_between_modes

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotestdisplay: Remove deprecated GIO functions
Chris Wilson [Fri, 11 Feb 2011 10:56:41 +0000 (10:56 +0000)]
testdisplay: Remove deprecated GIO functions

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotestdisplay: Clarify
Chris Wilson [Fri, 11 Feb 2011 10:48:04 +0000 (10:48 +0000)]
testdisplay: Clarify

Move the loop operations around for test_all_modes so that it is clearly
split up into the desired phases.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoAdd a test case into intel-gpu-tools for intel display driver validation.
Hai Lan [Fri, 11 Feb 2011 16:14:15 +0000 (11:14 -0500)]
Add a test case into intel-gpu-tools for intel display driver validation.

We have not a unified tool to check Intel display driver and we plan to use
intel-gpu-tools/testdisplay to check Intel display driver even though some
function tests can be found in libdrm/test. 3 new features are added:test
all supported modes, force mode and dump mode info(dump mode info is based on
libdrm/tests/modetest).

[ickle: attack the whitespacing!]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agointel_stepping: Include clocks in summary
Chris Wilson [Thu, 10 Feb 2011 11:20:20 +0000 (11:20 +0000)]
intel_stepping: Include clocks in summary

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotools/intel_bios_reader: use correct printf format for size_t
Chris Wilson [Thu, 10 Feb 2011 11:00:49 +0000 (11:00 +0000)]
tools/intel_bios_reader: use correct printf format for size_t

intel_bios_reader.c: In function ‘dump_backlight_info’:
intel_bios_reader.c:192:22: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotools/intel_disable_clock_gating: Remove unused variable
Chris Wilson [Thu, 10 Feb 2011 10:59:54 +0000 (10:59 +0000)]
tools/intel_disable_clock_gating: Remove unused variable

intel_disable_clock_gating.c: In function ‘main’:
intel_disable_clock_gating.c:38:11: warning: unused variable ‘temp’ [-Wunused-variable]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotools: Do not install intel_gpu_dump
Chris Wilson [Thu, 10 Feb 2011 10:56:27 +0000 (10:56 +0000)]
tools: Do not install intel_gpu_dump

It has been supersede by intel_error_decode for the user-facing role of
obtaining debug info after a crash.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotools/intel_gpu_dump: Replace asprintf with snprintf
Chris Wilson [Thu, 10 Feb 2011 10:54:39 +0000 (10:54 +0000)]
tools/intel_gpu_dump: Replace asprintf with snprintf

The maximum filename is limited so we can simply use a large buffer
rather than fail to check the error return from asprintf.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotests/intel_reg_dumper: Replace asprintf with snprintf
Chris Wilson [Thu, 10 Feb 2011 10:50:48 +0000 (10:50 +0000)]
tests/intel_reg_dumper: Replace asprintf with snprintf

Stops the compiler warning about not checking the potential error return
from asprintf, which was a false positive anyway.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotests: Move potential machine killers away from distcheck
Chris Wilson [Wed, 9 Feb 2011 10:24:39 +0000 (10:24 +0000)]
tests: Move potential machine killers away from distcheck

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotests/gem_exec_blt: Compile fix
Chris Wilson [Wed, 9 Feb 2011 10:21:27 +0000 (10:21 +0000)]
tests/gem_exec_blt: Compile fix

13 years agobuild: Update autotools configuration
Javier Jardón [Tue, 8 Feb 2011 22:33:12 +0000 (22:33 +0000)]
build: Update autotools configuration

Replace deprecated macros and use the new libtool syntax
Also use silent-rules to make the build option less verbose.

13 years agoconfigure: Bump the libdrm dependency
Chris Wilson [Tue, 8 Feb 2011 12:04:17 +0000 (12:04 +0000)]
configure: Bump the libdrm dependency

Whoops, should have done this ages ago for I915_EXEC_BLT

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agogem_linear_blits,gem_tiled_blits: Add optional count
Chris Wilson [Sun, 6 Feb 2011 10:18:53 +0000 (10:18 +0000)]
gem_linear_blits,gem_tiled_blits: Add optional count

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoFix basic blt test for SNB
Chris Wilson [Tue, 1 Feb 2011 13:35:16 +0000 (13:35 +0000)]
Fix basic blt test for SNB

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoFix typo excluding Ironlake from IS_INTEL
Chris Wilson [Sun, 6 Feb 2011 10:12:42 +0000 (10:12 +0000)]
Fix typo excluding Ironlake from IS_INTEL

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agogem_tiled_blits: Minor enhancements
Chris Wilson [Sat, 5 Feb 2011 10:09:38 +0000 (10:09 +0000)]
gem_tiled_blits: Minor enhancements

Include a simple series of blits that exhaust the aperture but have the
maximum grace time between reuse.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agogem_linear_blits: Minor enhancements
Chris Wilson [Sat, 5 Feb 2011 10:09:38 +0000 (10:09 +0000)]
gem_linear_blits: Minor enhancements

Include a simple series of blits that exhaust the aperture but have the
maximum grace time between reuse.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoSimplify gem_linear_blits
Chris Wilson [Wed, 2 Feb 2011 10:32:52 +0000 (10:32 +0000)]
Simplify gem_linear_blits

By doing everything manually we can indeed exercise the full GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoSimple test to ensure that working sets larger than memory, just work.
Chris Wilson [Tue, 1 Feb 2011 19:22:32 +0000 (19:22 +0000)]
Simple test to ensure that working sets larger than memory, just work.

Based on gem_tiled_blit, but without the complication of the tiling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoerror decode: Search for first i915_error_state
Chris Wilson [Tue, 25 Jan 2011 16:34:08 +0000 (16:34 +0000)]
error decode: Search for first i915_error_state

Handy for multi-GPU systems where the IGFX may not be first.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoSearch for the first Intel dri device.
Chris Wilson [Tue, 1 Feb 2011 13:35:36 +0000 (13:35 +0000)]
Search for the first Intel dri device.

This is vital in a multi-GPU system so that we only test the Intel card
and not the discrete GPUs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotests/gem_tiled_fence_blits: Ensure the bo count is odd
Chris Wilson [Tue, 1 Feb 2011 11:12:40 +0000 (11:12 +0000)]
tests/gem_tiled_fence_blits: Ensure the bo count is odd

In order to avoid a self-copy, the number of bo must not be even.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoExercise the whole aperture with tiled blits
Chris Wilson [Tue, 1 Feb 2011 10:53:57 +0000 (10:53 +0000)]
Exercise the whole aperture with tiled blits

After full-gtt, gem_tiled_blits doesn't allocate enough to force
eviction. So query the total aperture and accommodate.

Also introduce a similar test that utilizes fences rather than
use the BLT to perform the tiling and detiling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoTime blt vs pwrite
Chris Wilson [Fri, 21 Jan 2011 00:43:11 +0000 (00:43 +0000)]
Time blt vs pwrite

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoAdd a simple test to execute n nop batches
Chris Wilson [Thu, 20 Jan 2011 22:10:10 +0000 (22:10 +0000)]
Add a simple test to execute n nop batches

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoAdd a GTT timing test
Chris Wilson [Thu, 23 Dec 2010 12:44:51 +0000 (12:44 +0000)]
Add a GTT timing test

Using for basic benchmarking and diagnosing some mysterious slowdowns.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agobios: Parse SDVO panel DTDs
Chris Wilson [Sat, 29 Jan 2011 16:12:38 +0000 (16:12 +0000)]
bios: Parse SDVO panel DTDs

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agogpu-top: Correct computation of ring size
Chris Wilson [Sun, 9 Jan 2011 14:01:47 +0000 (14:01 +0000)]
gpu-top: Correct computation of ring size

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoerror: Parse ring name before gtt_offset
Chris Wilson [Sun, 9 Jan 2011 13:26:50 +0000 (13:26 +0000)]
error: Parse ring name before gtt_offset

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agointel_gpu_top: Include BLT ring
Chris Wilson [Fri, 7 Jan 2011 19:59:00 +0000 (19:59 +0000)]
intel_gpu_top: Include BLT ring

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agointel_gpu_top: Wake the GT power well to read gen6 ring registers
Chris Wilson [Fri, 7 Jan 2011 19:42:29 +0000 (19:42 +0000)]
intel_gpu_top: Wake the GT power well to read gen6 ring registers

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoerror decode: print out class of chipset in the error report
Chris Wilson [Thu, 23 Dec 2010 19:44:14 +0000 (19:44 +0000)]
error decode: print out class of chipset in the error report

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoAdd a GTT timing test
Chris Wilson [Thu, 23 Dec 2010 12:44:51 +0000 (12:44 +0000)]
Add a GTT timing test

Using for diagnosing some mysterious slowdowns. Should include a variant
for basic benchmarking...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotools/bios_reader: try to dump more child device data
Jesse Barnes [Tue, 21 Dec 2010 20:06:00 +0000 (12:06 -0800)]
tools/bios_reader: try to dump more child device data

Some of our device class defines were incorrect, and we were missing
several recent ones, so fix those up and dump more child device data if
we have it.

13 years agotests: add display testing program
Jesse Barnes [Tue, 21 Dec 2010 17:38:23 +0000 (09:38 -0800)]
tests: add display testing program

Just a simple program to light up all detected outputs at their native
mode and respond to hotplug events.

13 years agointel_disable_clock_gating: New tool for turning off clock gating on ILK.
Eric Anholt [Fri, 17 Dec 2010 00:42:52 +0000 (16:42 -0800)]
intel_disable_clock_gating: New tool for turning off clock gating on ILK.

This is something I sometimes want to do in testing, to see if a
mystery bug (say, 29172) is due to broken clock gating.  Sadly, in
this case it isn't.  Note that it isn't supported on non-ILK chipsets
yet.

13 years agointel_gpu_top: Print stats regs on Ironlake as well.
Eric Anholt [Tue, 16 Nov 2010 01:25:56 +0000 (09:25 +0800)]
intel_gpu_top: Print stats regs on Ironlake as well.

13 years agoerror-decode: stdin is 0 not 1
Chris Wilson [Fri, 10 Dec 2010 15:31:59 +0000 (15:31 +0000)]
error-decode: stdin is 0 not 1

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodecode: Add a couple of BLT MI.
Chris Wilson [Sat, 4 Dec 2010 14:12:19 +0000 (14:12 +0000)]
decode: Add a couple of BLT MI.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agogpu-dump: Include BLT and BSD ringbuffers
Chris Wilson [Sat, 4 Dec 2010 11:41:30 +0000 (11:41 +0000)]
gpu-dump: Include BLT and BSD ringbuffers

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodecode: Add some missing protection against short buffers for gen6 instr
Chris Wilson [Fri, 3 Dec 2010 00:41:43 +0000 (00:41 +0000)]
decode: Add some missing protection against short buffers for gen6 instr

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodump-decode: allow specification of devid, i.e. gen
Chris Wilson [Thu, 2 Dec 2010 23:05:16 +0000 (23:05 +0000)]
dump-decode: allow specification of devid, i.e. gen

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoerror-decode: Operate as a pipe and accept input from stdin
Chris Wilson [Wed, 1 Dec 2010 21:51:59 +0000 (21:51 +0000)]
error-decode: Operate as a pipe and accept input from stdin

Useful for feeding in compressed files from bugzilla:

$ bzcat /tmp/i915_error_state.bz | intel_error_decode | less

Next step would be to use gzfopen or bzfopen to automagically handle
compressed files...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodecode: Improve parsing of i915 fixed-length indexed primitives
Chris Wilson [Mon, 29 Nov 2010 16:06:46 +0000 (16:06 +0000)]
decode: Improve parsing of i915 fixed-length indexed primitives

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoPrepare for split BLT ring on Sandybridge.
Chris Wilson [Tue, 26 Oct 2010 09:59:18 +0000 (10:59 +0100)]
Prepare for split BLT ring on Sandybridge.

Depends on libdrm 057fab3382c02af54126ce395c43d4e6dce9439a

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31123
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoDecode PGTBL_ER for i965
Chris Wilson [Fri, 22 Oct 2010 10:33:08 +0000 (11:33 +0100)]
Decode PGTBL_ER for i965

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agointel_gpu_top: Sample BSD rings as well as render
Chris Wilson [Fri, 1 Oct 2010 21:22:28 +0000 (22:22 +0100)]
intel_gpu_top: Sample BSD rings as well as render

Show how busy the GPU is when decoding video as well as rendering.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodecode: fix PS sample state change bit on sandybridge
Zhenyu Wang [Wed, 29 Sep 2010 01:47:46 +0000 (09:47 +0800)]
decode: fix PS sample state change bit on sandybridge

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
13 years agointel_decode: decode 3d commands for sandybridge
Zhenyu Wang [Mon, 27 Sep 2010 05:34:52 +0000 (13:34 +0800)]
intel_decode: decode 3d commands for sandybridge

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
13 years agoAdd all sandybridge device ids
Zhenyu Wang [Mon, 27 Sep 2010 05:24:52 +0000 (13:24 +0800)]
Add all sandybridge device ids

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
13 years agointel_reg_dumper: eDP port is on the CPU, not PCH
Jesse Barnes [Mon, 20 Sep 2010 21:37:07 +0000 (14:37 -0700)]
intel_reg_dumper: eDP port is on the CPU, not PCH

Made me think there was another register until I checked the offset.

13 years agobios_reader: Fix to work on non-Intel machines
Adam Jackson [Wed, 8 Sep 2010 18:39:12 +0000 (14:39 -0400)]
bios_reader: Fix to work on non-Intel machines

Actually, fix to work on _any_ machine where the ROM file doesn't match
the GPU.  Just extract the device ID from the ROM itself rather than
look at the running system.

Signed-off-by: Adam Jackson <ajax@redhat.com>
13 years agoreg dumper: Dump ILK panel fitting control debug registers
Chris Wilson [Sun, 5 Sep 2010 11:05:52 +0000 (12:05 +0100)]
reg dumper: Dump ILK panel fitting control debug registers

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoreg dumper: Fix ilk panel fitter filter shift
Chris Wilson [Sun, 5 Sep 2010 09:53:12 +0000 (10:53 +0100)]
reg dumper: Fix ilk panel fitter filter shift

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agotests: Fix fallout from s/EBADF/ENOENT/ in 2.6.36
Chris Wilson [Wed, 25 Aug 2010 10:56:59 +0000 (11:56 +0100)]
tests: Fix fallout from s/EBADF/ENOENT/ in 2.6.36

After bf79cb914dbfe848add8bb76cbb8ff89110d29ff, drm uses ENOENT to
report unknown handles buffer objects, update the tests accordingly.

Fixes:

  Bug 29794 - some intel_gpu_tools cases fail
  https://bugs.freedesktop.org/show_bug.cgi?id=29794

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agodecode: Handle errors during parsing.
Chris Wilson [Wed, 25 Aug 2010 10:55:25 +0000 (11:55 +0100)]
decode: Handle errors during parsing.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
13 years agoreg dumper: Add panel backlight detailed information
Chris Wilson [Wed, 25 Aug 2010 10:54:54 +0000 (11:54 +0100)]
reg dumper: Add panel backlight detailed information

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agointel_gpu_top: Fix the "limit printing to terminal height" again.
Eric Anholt [Mon, 19 Jul 2010 15:27:32 +0000 (08:27 -0700)]
intel_gpu_top: Fix the "limit printing to terminal height" again.

14 years agointel_decode: Fix decode for gen6's moved VERTEX_ELEMENTS valid bit.
Eric Anholt [Fri, 9 Jul 2010 20:26:57 +0000 (13:26 -0700)]
intel_decode: Fix decode for gen6's moved VERTEX_ELEMENTS valid bit.

14 years agodump decode: Add a non-installed program for decoding binary batchbuffer dumps.
Chris Wilson [Thu, 15 Jul 2010 18:31:21 +0000 (19:31 +0100)]
dump decode: Add a non-installed program for decoding binary batchbuffer dumps.

Rather than add yet another decoder into the drivers, I rather just emit
a binary blob and use the decoder being developed here.

As it is a pure debugging feature, lets not package it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agoerror: Decode i915 PGTBL errors
Chris Wilson [Thu, 15 Jul 2010 18:18:39 +0000 (19:18 +0100)]
error: Decode i915 PGTBL errors

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agointel_decode: Fix whitespace for importing to Mesa.
Eric Anholt [Thu, 8 Jul 2010 19:13:08 +0000 (12:13 -0700)]
intel_decode: Fix whitespace for importing to Mesa.

14 years agointel_reg_dumper: add some 945 MI reg dumping
Jesse Barnes [Wed, 30 Jun 2010 09:02:49 +0000 (02:02 -0700)]
intel_reg_dumper: add some 945 MI reg dumping

14 years agoUse longer string padding in intel_reg_dumper on ironlake
Adam Jackson [Wed, 30 Jun 2010 15:18:00 +0000 (11:18 -0400)]
Use longer string padding in intel_reg_dumper on ironlake

DIGITAL_PORT_HOTPLUG_CNTRL is 26 chars.  Bump out to 30.

Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agofix reg_dumper on systems without intel gpus
Adam Jackson [Wed, 5 May 2010 15:46:27 +0000 (11:46 -0400)]
fix reg_dumper on systems without intel gpus

14 years agointel_reg_dump: Off-by-one in calculation of i965 fence pitch
Chris Wilson [Tue, 15 Jun 2010 12:05:48 +0000 (13:05 +0100)]
intel_reg_dump: Off-by-one in calculation of i965 fence pitch

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agobios_reader: Fix SSC frequency parse for Ironlake/Sandybridge
Zhenyu Wang [Thu, 3 Jun 2010 02:31:04 +0000 (10:31 +0800)]
bios_reader: Fix SSC frequency parse for Ironlake/Sandybridge

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
14 years agointel_audio_dump: add support for IbexPeak and CougarPoint
Wu Fengguang [Mon, 19 Apr 2010 05:13:06 +0000 (13:13 +0800)]
intel_audio_dump: add support for IbexPeak and CougarPoint

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
14 years agobios reader: Decode device type from child device table
Adam Jackson [Thu, 22 Apr 2010 19:37:49 +0000 (15:37 -0400)]
bios reader: Decode device type from child device table

Signed-off-by: Adam Jackson <ajax@redhat.com>
14 years agodecode; Parse 3DSTATE_BUFFER_INFO
Chris Wilson [Fri, 16 Apr 2010 21:23:44 +0000 (22:23 +0100)]
decode; Parse 3DSTATE_BUFFER_INFO

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agodecode: Also override S2 for 3DPRIM_CLEAR_RECT
Chris Wilson [Thu, 15 Apr 2010 08:53:00 +0000 (09:53 +0100)]
decode: Also override S2 for 3DPRIM_CLEAR_RECT

3DPRIM_CLEAR_RECT implicitly uses only VERTEX_XY and no texture coords.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agodecode: Use a valid S4 mask [VERTEX_XY] for 3DPRIM_CLEAR_RECT
Chris Wilson [Thu, 15 Apr 2010 08:48:00 +0000 (09:48 +0100)]
decode: Use a valid S4 mask [VERTEX_XY] for 3DPRIM_CLEAR_RECT

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agoupdate PCH HDMI debug info
Zhenyu Wang [Thu, 15 Apr 2010 15:22:06 +0000 (23:22 +0800)]
update PCH HDMI debug info

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
14 years agoreg dump update for SNB/CPT
Zhenyu Wang [Wed, 14 Apr 2010 17:25:50 +0000 (01:25 +0800)]
reg dump update for SNB/CPT

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
14 years agoAdd PCH chipset type check for Cougarpoint
Zhenyu Wang [Thu, 15 Apr 2010 14:57:02 +0000 (22:57 +0800)]
Add PCH chipset type check for Cougarpoint

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
14 years agodecode: There are 4 unpreserved registers on i915, not 3.
Chris Wilson [Sun, 4 Apr 2010 23:26:35 +0000 (00:26 +0100)]
decode: There are 4 unpreserved registers on i915, not 3.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agodecode: CLEAR_RECT uses a fixed VERTEX_XY format.
Chris Wilson [Wed, 14 Apr 2010 21:30:58 +0000 (22:30 +0100)]
decode: CLEAR_RECT uses a fixed VERTEX_XY format.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
14 years agodecode: CLEAR_PARAMETERS has a fixed length bias of 5.
Chris Wilson [Wed, 14 Apr 2010 21:25:57 +0000 (22:25 +0100)]
decode: CLEAR_PARAMETERS has a fixed length bias of 5.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>