platform/upstream/intel-gpu-tools.git
12 years agolib/drmtest: extract gem_write
Daniel Vetter [Tue, 10 Jan 2012 14:31:11 +0000 (15:31 +0100)]
lib/drmtest: extract gem_write

Astonishing how many different function signatures are possible for
something that simple.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agolib/drmtest: extract gem_close
Daniel Vetter [Tue, 10 Jan 2012 14:07:19 +0000 (15:07 +0100)]
lib/drmtest: extract gem_close

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agolib/drmtest: extract gem_set_tiling
Daniel Vetter [Tue, 10 Jan 2012 13:59:58 +0000 (14:59 +0100)]
lib/drmtest: extract gem_set_tiling

Way too much copy-pasting going on here.

Also fix a compiler warnings in gem_stress while fixup things up.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agolib: fixup new compiler warnings
Daniel Vetter [Mon, 9 Jan 2012 22:42:19 +0000 (23:42 +0100)]
lib: fixup new compiler warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_stepping: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:37:36 +0000 (23:37 +0100)]
tools/intel_stepping: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_gtt: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:35:21 +0000 (23:35 +0100)]
tools/intel_gtt: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_reg_dumper: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:34:38 +0000 (23:34 +0100)]
tools/intel_reg_dumper: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoremove tools/intel_decode
Daniel Vetter [Mon, 9 Jan 2012 22:24:12 +0000 (23:24 +0100)]
remove tools/intel_decode

Everyone's using the libdrm decoder now.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_gpu_top: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:22:21 +0000 (23:22 +0100)]
tools/intel_gpu_top: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_dump_decode: use libdrm decoder
Daniel Vetter [Mon, 9 Jan 2012 22:19:32 +0000 (23:19 +0100)]
tools/intel_dump_decode: use libdrm decoder

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_bios_reader: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:11:58 +0000 (23:11 +0100)]
tools/intel_bios_reader: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_bios_dumper: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:10:44 +0000 (23:10 +0100)]
tools/intel_bios_dumper: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_audio_dump: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:09:37 +0000 (23:09 +0100)]
tools/intel_audio_dump: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_error_decode: fixup new warnings
Daniel Vetter [Mon, 9 Jan 2012 22:06:41 +0000 (23:06 +0100)]
tools/intel_error_decode: fixup new warnings

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_error_decode: convert over to libdrm decoder
Daniel Vetter [Mon, 9 Jan 2012 22:38:17 +0000 (23:38 +0100)]
tools/intel_error_decode: convert over to libdrm decoder

Note that a per-ring error decode state would make more sense - this
way we could better decode the ring head and tail. But our current
head tracking is already lame (we need the kernel to also dump the
ringbuffer head/tail first, not just acthd), so I didn't bother.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotestdisplay: update to new colorkey ioctl
Jesse Barnes [Mon, 9 Jan 2012 22:33:39 +0000 (14:33 -0800)]
testdisplay: update to new colorkey ioctl

12 years agoFix pthread compiler flags to work on Solaris and with Studio compiler
Alan Coopersmith [Fri, 6 Jan 2012 23:45:29 +0000 (15:45 -0800)]
Fix pthread compiler flags to work on Solaris and with Studio compiler

AC_USE_SYSTEM_EXTENSIONS is used to let autoconf take care of setting
the right system defintions for POSIX threads & similar extensions to
the base POSIX API.   Since it will also #define _GNU_SOURCE 1, remove
the extra setting to avoid compiler warnings about redefined macros.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoinclude <fcntl.h> in lib/intel_mmio.c for open() prototype on Solaris
Alan Coopersmith [Fri, 6 Jan 2012 22:37:20 +0000 (14:37 -0800)]
include <fcntl.h> in lib/intel_mmio.c for open() prototype on Solaris

<fcntl.h> is the POSIX standard specified header for open(), so should
be available on all platforms.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoList out array values instead of using gcc range extension
Alan Coopersmith [Fri, 6 Jan 2012 22:37:19 +0000 (14:37 -0800)]
List out array values instead of using gcc range extension

Required to compile with Solaris Studio cc compiler.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoUse sched_yield instead of pthread_yield
Alan Coopersmith [Fri, 6 Jan 2012 23:45:28 +0000 (15:45 -0800)]
Use sched_yield instead of pthread_yield

Despite the name implying it's a standard part of the POSIX threads API,
pthread_yield is actually non-standard and less portable than sched_yield.
For instance, Solaris only has sched_yield, and not pthread_yield.
Since even the Linux man page suggests using sched_yield, just call that.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoSolaris defines struct winsize in termios.h
Alan Coopersmith [Fri, 6 Jan 2012 22:37:17 +0000 (14:37 -0800)]
Solaris defines struct winsize in termios.h

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoProvide Solaris implementation of intel_get_total_ram_mb
Alan Coopersmith [Fri, 6 Jan 2012 22:37:16 +0000 (14:37 -0800)]
Provide Solaris implementation of intel_get_total_ram_mb

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoconfig: restore the libtool minimum version to 1.5
Gaetan Nadon [Wed, 4 Jan 2012 02:13:39 +0000 (21:13 -0500)]
config: restore the libtool minimum version to 1.5

Very few systems still use this old version, but it would be
inconvenient to build a video driver with libtool 1.5 and have
to build the gpu tools on another system having libtool 2.2.

The toolchain version requirements are documented here:
http://www.x.org/wiki/ModularDevelopersGuide#GNU_Build_System

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoconfig: the minimum version for autoconf is 2.60
Gaetan Nadon [Wed, 4 Jan 2012 02:12:25 +0000 (21:12 -0500)]
config: the minimum version for autoconf is 2.60

A version later than 2.60 can be used, but no new features from such
a later version can be used in configure.ac.

The toolchain version requirements are documented here:
http://www.x.org/wiki/ModularDevelopersGuide#GNU_Build_System

Minimum version for Automake is 1.10 but we have not written it
in any xorg module so far and there has been no issues.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoconfig: set-up xorg automatic rebuilding rules
Gaetan Nadon [Wed, 4 Jan 2012 02:12:24 +0000 (21:12 -0500)]
config: set-up xorg automatic rebuilding rules

The current code is a noop. Use the same configuration as all
the other xorg modules. This will change in the future but it is less
confusing when all modules behave the same way.
Note that these rules apply to building from a tarball only.

Restore autogen.sh to be identical in all xorg modules.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoconfig: use project wide xorg warnings variable
Gaetan Nadon [Wed, 4 Jan 2012 02:12:23 +0000 (21:12 -0500)]
config: use project wide xorg warnings variable

Use CWARNFLAGS as in all of xorg. There seems to be no reason why this
module should be different. The warnings were updated recently
for those who install the latest util-macros.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoconfig: remove duplicate AC_PROG_CC and AC_PROG__CC_99
Gaetan Nadon [Wed, 4 Jan 2012 02:12:22 +0000 (21:12 -0500)]
config: remove duplicate AC_PROG_CC and AC_PROG__CC_99

The compiler was configured three times.
It is done once by XORG_DEFAULT_OPTIONS in util-macros.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoconfig: remove unrequired AM_PROG_CC_C_O
Gaetan Nadon [Wed, 4 Jan 2012 02:12:21 +0000 (21:12 -0500)]
config: remove unrequired AM_PROG_CC_C_O

Required when using per-target flags or subdir-objects with C sources.

http://www.gnu.org/software/automake/manual/automake.html

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoAdd mandatory ChangeLog and INSTALL files
Gaetan Nadon [Wed, 4 Jan 2012 02:12:20 +0000 (21:12 -0500)]
Add mandatory ChangeLog and INSTALL files

These are generated from a macro in the util-macros package

Refer to the wiki for more details.
http://www.x.org/wiki/NewModuleGuidelines.

Acked-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoMan pages still showing version 1.0 in the 1.1 release
Gaetan Nadon [Wed, 4 Jan 2012 02:12:19 +0000 (21:12 -0500)]
Man pages still showing version 1.0 in the 1.1 release

The patch coverts the man subdir to the standard xorg man page makefile.
The version number is automatically updated when a new release is made.
The man page section number is no longer hard coded either.

The package util-macros at version 1.8 or greater is required.

Acked-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoUse standard .gitignore file and layout
Gaetan Nadon [Wed, 4 Jan 2012 02:12:18 +0000 (21:12 -0500)]
Use standard .gitignore file and layout

Reusing xorg code saves maintenance in the long term.

Now that m4/.gitignore is removed, the -I m4 ${ACLOCAL_FLAGS}
must be removed to avoid build breakage as m4 is generated and not
part of the git source.

Acked-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoAdd mandatory COPYING file.
Gaetan Nadon [Wed, 4 Jan 2012 02:12:17 +0000 (21:12 -0500)]
Add mandatory COPYING file.

This module is hosted as an X.Org app and is published as such.
This file is a summary of the copyright statements in the source code.

http://www.x.org/wiki/NewModuleGuidelines

Acked-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotools/intel_reg_dumper: retrieve rc6 residency values
Eugeni Dodonov [Mon, 19 Dec 2011 18:25:53 +0000 (16:25 -0200)]
tools/intel_reg_dumper: retrieve rc6 residency values

This allows to check if rc6 works, and how long have we been in each
state.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
12 years agotools/intel_reg_dumper: Add support for debug register
Eugeni Dodonov [Tue, 25 Oct 2011 16:40:12 +0000 (14:40 -0200)]
tools/intel_reg_dumper: Add support for debug register

Right now, we only check for hardware DRRS support. But much more can be
done with it. Some day.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
12 years agointel_audio_dump: show Gamut Metadata DIP
Wu Fengguang [Sat, 12 Nov 2011 03:12:55 +0000 (11:12 +0800)]
intel_audio_dump: show Gamut Metadata DIP

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show interrupt enable bit
Wu Fengguang [Sat, 12 Nov 2011 03:12:54 +0000 (11:12 +0800)]
intel_audio_dump: show interrupt enable bit

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show HDMI encoding
Wu Fengguang [Sat, 12 Nov 2011 03:12:53 +0000 (11:12 +0800)]
intel_audio_dump: show HDMI encoding

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show VIDEO_DIP_CTL_* for CPT
Wu Fengguang [Sat, 12 Nov 2011 03:12:52 +0000 (11:12 +0800)]
intel_audio_dump: show VIDEO_DIP_CTL_* for CPT

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show ironlake ELD_access_address
Wu Fengguang [Sat, 12 Nov 2011 03:12:51 +0000 (11:12 +0800)]
intel_audio_dump: show ironlake ELD_access_address

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show ELD contents for G45
Wu Fengguang [Sat, 12 Nov 2011 03:12:50 +0000 (11:12 +0800)]
intel_audio_dump: show ELD contents for G45

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show detected chipset name
Wu Fengguang [Sat, 12 Nov 2011 03:12:49 +0000 (11:12 +0800)]
intel_audio_dump: show detected chipset name

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: show DP control registers for Ironlake
Wu Fengguang [Sat, 12 Nov 2011 03:12:48 +0000 (11:12 +0800)]
intel_audio_dump: show DP control registers for Ironlake

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: explain Bits_per_Sample
Wu Fengguang [Sat, 12 Nov 2011 03:12:47 +0000 (11:12 +0800)]
intel_audio_dump: explain Bits_per_Sample

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: fix DP port width for CPT
Wu Fengguang [Sat, 12 Nov 2011 03:12:46 +0000 (11:12 +0800)]
intel_audio_dump: fix DP port width for CPT

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: fix DP control registers for CPT
Wu Fengguang [Sat, 12 Nov 2011 03:12:45 +0000 (11:12 +0800)]
intel_audio_dump: fix DP control registers for CPT

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: fix Ironlake detection
Wu Fengguang [Sat, 12 Nov 2011 03:12:44 +0000 (11:12 +0800)]
intel_audio_dump: fix Ironlake detection

The original test mistakenly calls dump_cpt() for Ironlake,
due to HAS_PCH_SPLIT := IS_GEN5 || IS_GEN6 || IS_GEN7.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: fix Digital_Port_D_Detected copy&paste error
Wu Fengguang [Sat, 12 Nov 2011 03:12:43 +0000 (11:12 +0800)]
intel_audio_dump: fix Digital_Port_D_Detected copy&paste error

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: fix ironlake Stream_ID indents
Wu Fengguang [Sat, 12 Nov 2011 03:12:42 +0000 (11:12 +0800)]
intel_audio_dump: fix ironlake Stream_ID indents

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: report effective channel count
Wu Fengguang [Sat, 12 Nov 2011 03:12:41 +0000 (11:12 +0800)]
intel_audio_dump: report effective channel count

The raw channel count is not user friendly and may be misleading.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: cleanup hex output
Wu Fengguang [Sat, 12 Nov 2011 03:12:40 +0000 (11:12 +0800)]
intel_audio_dump: cleanup hex output

- no need to show the 1-bit AUD_OUT_DIG_CNVT_* as hex value
- show the Connection_select_Control_* bits as hex values

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: cleanup ACP DIP name for ironlake and CPT
Wu Fengguang [Sat, 12 Nov 2011 03:12:39 +0000 (11:12 +0800)]
intel_audio_dump: cleanup ACP DIP name for ironlake and CPT

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_audio_dump: cleanup hyphen character
Wu Fengguang [Sat, 12 Nov 2011 03:12:38 +0000 (11:12 +0800)]
intel_audio_dump: cleanup hyphen character

Convert "­" (Hex 00ad) to "-" (Hex 2d), the former leads to ugly outputs
in some situations.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoRelease 1.1 1.1
Daniel Vetter [Sat, 24 Dec 2011 00:23:59 +0000 (01:23 +0100)]
Release 1.1

12 years agotestdisplay: shut up compiler
Daniel Vetter [Sat, 17 Dec 2011 23:24:45 +0000 (00:24 +0100)]
testdisplay: shut up compiler

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotestdisplay: move drm_fourcc.h include under the #ifdef protection
Daniel Vetter [Sat, 17 Dec 2011 23:21:39 +0000 (00:21 +0100)]
testdisplay: move drm_fourcc.h include under the #ifdef protection

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/testdisplay.c: make the 3th pipe finish all the mode setting.
Yi Sun [Thu, 1 Dec 2011 10:57:16 +0000 (18:57 +0800)]
tests/testdisplay.c: make the 3th pipe finish all the mode setting.

If test all modes rather than preferred mode, remove framebuffer and
set CRTC to zero after each connector mode setting.

Signed-off-by: Sun Yi <yi.sun@intel.com>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
12 years agointel-decode: fix flush dword post sync parse
Ben Widawsky [Thu, 15 Dec 2011 21:54:30 +0000 (13:54 -0800)]
intel-decode: fix flush dword post sync parse

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agotests/gem_double_irq_loop: silence the compiler
Chris Wilson [Wed, 14 Dec 2011 17:43:37 +0000 (17:43 +0000)]
tests/gem_double_irq_loop: silence the compiler

gem_double_irq_loop.c: In function ‘dummy_reloc_loop’:
gem_double_irq_loop.c:62:9: warning: unused variable ‘j’ [-Wunused-variable]

12 years agotests/gem_exec_blt: silence the compiler by failing on error
Chris Wilson [Wed, 14 Dec 2011 17:41:34 +0000 (17:41 +0000)]
tests/gem_exec_blt: silence the compiler by failing on error

gem_exec_blt.c: In function ‘gem_exec’:
gem_exec_blt.c:174:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Propagate the failure and exit(1).

12 years agotests/gem_exec_nop: silence the compiler by failing on error
Chris Wilson [Wed, 14 Dec 2011 17:41:34 +0000 (17:41 +0000)]
tests/gem_exec_nop: silence the compiler by failing on error

gem_exec_nop.c: In function ‘exec’:
gem_exec_nop.c:101:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Propagate the failure and exit(1).

12 years agotests/gem_stress: silence the compiler by using '%zu' for size_t
Chris Wilson [Wed, 14 Dec 2011 17:39:42 +0000 (17:39 +0000)]
tests/gem_stress: silence the compiler by using '%zu' for size_t

gem_stress.c: In function ‘main’:
gem_stress.c:980:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]

12 years agotests/gem_largeobject: silence the compiler
Chris Wilson [Wed, 14 Dec 2011 17:37:53 +0000 (17:37 +0000)]
tests/gem_largeobject: silence the compiler

gem_largeobject.c: In function ‘test_large_object’:
gem_largeobject.c:95:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

12 years agotestdisplay: don't test planes if i915 color key ioctl is not available
Jesse Barnes [Wed, 14 Dec 2011 16:14:45 +0000 (08:14 -0800)]
testdisplay: don't test planes if i915 color key ioctl is not available

12 years agoscripts/who: Add the process id to the output
Chris Wilson [Mon, 12 Dec 2011 20:19:03 +0000 (20:19 +0000)]
scripts/who: Add the process id to the output

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
12 years agoscripts: Add a trivial script to show which programs are using the GPU
Chris Wilson [Mon, 12 Dec 2011 17:44:58 +0000 (17:44 +0000)]
scripts: Add a trivial script to show which programs are using the GPU

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
12 years agodecode: Fix interpretation of i915 8bit formats
Chris Wilson [Sat, 10 Dec 2011 12:49:10 +0000 (12:49 +0000)]
decode: Fix interpretation of i915 8bit formats

2/3 are reserved with the correct values for A8/I8 being 4/5
respectively.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
12 years agotestdisplay: update for final plane & fb ABI
Jesse Barnes [Wed, 7 Dec 2011 16:22:41 +0000 (08:22 -0800)]
testdisplay: update for final plane & fb ABI

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
12 years agotests/gem_partial_pwrite_pread: don't trash gtt unnecessarily
Daniel Vetter [Tue, 6 Dec 2011 15:57:53 +0000 (16:57 +0100)]
tests/gem_partial_pwrite_pread: don't trash gtt unnecessarily

On chips that don't have a unmappable gtt part it's utterly pointless.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: add gem_partial_pwrite_pread
Daniel Vetter [Sun, 4 Dec 2011 20:42:31 +0000 (21:42 +0100)]
tests: add gem_partial_pwrite_pread

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/gem_reloc_vs_gpu: fixup this mess
Daniel Vetter [Sun, 4 Dec 2011 12:57:56 +0000 (13:57 +0100)]
tests/gem_reloc_vs_gpu: fixup this mess

- fixup pitch mess noticed by Chris Wilson.
- we need to diable bo reuse otherwise the kernel won't do the relocs
  (we might get an already gtt-bound batch from the dummy load).

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/gem_reloc_vs_gpu: emit special batch on blt ring on gen6+
Daniel Vetter [Sun, 4 Dec 2011 12:49:24 +0000 (13:49 +0100)]
tests/gem_reloc_vs_gpu: emit special batch on blt ring on gen6+

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/gem_reloc_vs_gpu: switch to COLOR_BLT instead of PIPE_CONTROL
Daniel Vetter [Sun, 4 Dec 2011 12:02:35 +0000 (13:02 +0100)]
tests/gem_reloc_vs_gpu: switch to COLOR_BLT instead of PIPE_CONTROL

Less fancy command that works everywhere. Suggested by Chris Wilons.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/gem_tiled_pread_pwrite: kill set-but-unsed warning
Daniel Vetter [Sat, 3 Dec 2011 18:57:36 +0000 (19:57 +0100)]
tests/gem_tiled_pread_pwrite: kill set-but-unsed warning

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: add gem_reloc_vs_gpu
Daniel Vetter [Sun, 4 Dec 2011 11:08:59 +0000 (12:08 +0100)]
tests: add gem_reloc_vs_gpu

Tests whether the kernel properly waits for the gpu before
applying a reloc.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoRevert some accidental things
Daniel Vetter [Fri, 2 Dec 2011 19:40:03 +0000 (20:40 +0100)]
Revert some accidental things

... somehow slipped in.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: add gem_exec_faulting_reloc
Daniel Vetter [Fri, 2 Dec 2011 19:36:06 +0000 (20:36 +0100)]
tests: add gem_exec_faulting_reloc

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: add gem_exec_bad_domains
Daniel Vetter [Fri, 2 Dec 2011 17:41:34 +0000 (18:41 +0100)]
tests: add gem_exec_bad_domains

To check whether the kernel properly rejects non-gpu domains in
relocs.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: add gem_tiled_pread_pwrite
Daniel Vetter [Fri, 2 Dec 2011 09:55:56 +0000 (10:55 +0100)]
tests: add gem_tiled_pread_pwrite

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoimprove README
Daniel Vetter [Tue, 1 Nov 2011 13:33:53 +0000 (14:33 +0100)]
improve README

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/gem_gtt_speed: Add modes that force that to the gtt domain
Daniel Vetter [Wed, 30 Nov 2011 11:36:29 +0000 (12:36 +0100)]
tests/gem_gtt_speed: Add modes that force that to the gtt domain

No sane userspace doesn't upload data to the gpu without actually
using it there ...

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoAdd missing executables to .gitignore.
Paul Berry [Wed, 30 Nov 2011 17:47:56 +0000 (09:47 -0800)]
Add missing executables to .gitignore.

12 years agotests: implement snb+ XY_SETUP_CLIP_BLT workaround
Daniel Vetter [Sun, 27 Nov 2011 01:39:14 +0000 (02:39 +0100)]
tests: implement snb+ XY_SETUP_CLIP_BLT workaround

Better safe than sorry.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/sysfs_edit_reader: posixify
Daniel Vetter [Sun, 27 Nov 2011 00:55:42 +0000 (01:55 +0100)]
tests/sysfs_edit_reader: posixify

Debian's default sh complains ...

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: properly terminate tests when values mismatch
Daniel Vetter [Sun, 27 Nov 2011 00:37:59 +0000 (01:37 +0100)]
tests: properly terminate tests when values mismatch

Not much use running them in the test rig otherwise.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agotests/gem_hang: fix copy-paste problem
Eugeni Dodonov [Fri, 11 Nov 2011 13:17:59 +0000 (11:17 -0200)]
tests/gem_hang: fix copy-paste problem

I suspect that we should do different things for different pipes..

Spotted by Thomas Jarosh on #intel-gfx freenode.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
13 years agotests: add a test for checking edid reading delays
Eugeni Dodonov [Thu, 10 Nov 2011 13:27:27 +0000 (11:27 -0200)]
tests: add a test for checking edid reading delays

With base on EDID timing testing, when we take more than 1s to run
xrandr command, something is wrong.. So add this test for testing the time
we take to read the status of all the connectors from sysfs. It should do
us an average picture of how long we'd take to run xrandr (roughtly 2x
that value).

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
13 years agotests: add test for kernel segmentation fault
Eugeni Dodonov [Thu, 10 Nov 2011 13:12:10 +0000 (11:12 -0200)]
tests: add test for kernel segmentation fault

As asked by Daniel Vetter, this is a tech which checks if we can cause
division by zero in kernel by reading the i915_emon_status debugfs
entry repeatably.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
13 years agointel_gpu_top: use debugfs interface for forcewake
Eugeni Dodonov [Tue, 8 Nov 2011 17:47:03 +0000 (15:47 -0200)]
intel_gpu_top: use debugfs interface for forcewake

Using debugfs facilities for forcewake-related stuff.

Acked-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
13 years agotests: disable pipe_control on i965g
Daniel Vetter [Tue, 8 Nov 2011 11:36:24 +0000 (12:36 +0100)]
tests: disable pipe_control on i965g

That hw is broken.

Reported-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoCall Arrandale gen5 not gen4.
Chris Wilson [Fri, 4 Nov 2011 17:10:06 +0000 (17:10 +0000)]
Call Arrandale gen5 not gen4.

13 years agotestdisplay: Round tiled allocations up to pot stride and fence size
Chris Wilson [Fri, 4 Nov 2011 13:26:13 +0000 (13:26 +0000)]
testdisplay: Round tiled allocations up to pot stride and fence size

Be simple and use the strictest requirements from gen2/3 with old
kernels so that this simply works everywhere.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42585

13 years agotestdisplay: find planes for each pipe
Jesse Barnes [Wed, 2 Nov 2011 19:57:40 +0000 (12:57 -0700)]
testdisplay: find planes for each pipe

Fixes a bug where we were masking against the wrong value.

13 years agotestdisplay: update to new addfb2 definition
Jesse Barnes [Wed, 2 Nov 2011 19:57:20 +0000 (12:57 -0700)]
testdisplay: update to new addfb2 definition

13 years agocargo-cult the build system into shape
Daniel Vetter [Tue, 1 Nov 2011 16:20:01 +0000 (17:20 +0100)]
cargo-cult the build system into shape

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoalways require libdrm
Daniel Vetter [Tue, 1 Nov 2011 16:04:44 +0000 (17:04 +0100)]
always require libdrm

... and also add the missing files to lib/Makefile.am

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agotests/gem_tiled_pread: fixup detiler for gen2
Daniel Vetter [Tue, 1 Nov 2011 11:10:35 +0000 (12:10 +0100)]
tests/gem_tiled_pread: fixup detiler for gen2

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agotests/gem_largeobject: accomodate for puny apertures
Daniel Vetter [Tue, 1 Nov 2011 10:52:53 +0000 (11:52 +0100)]
tests/gem_largeobject: accomodate for puny apertures

... like on my i855gm.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoi-g-t/debugger - make the debugger work with distcheck
Ben Widawsky [Tue, 1 Nov 2011 00:19:54 +0000 (17:19 -0700)]
i-g-t/debugger - make the debugger work with distcheck

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
13 years agoi-g-t/debugger: Only allow the shader debugger if the user has specified a gen4asm
Ben Widawsky [Mon, 31 Oct 2011 20:36:50 +0000 (13:36 -0700)]
i-g-t/debugger: Only allow the shader debugger if the user has specified a gen4asm

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
13 years agotests: mark gem_bad_address as HANG
Daniel Vetter [Mon, 31 Oct 2011 22:19:08 +0000 (23:19 +0100)]
tests: mark gem_bad_address as HANG

Kills my little i855gm.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>