727 Commits

Author SHA1 Message Date
Daniel Vetter
dd5f40f50c bump to 1.3 release 2012-08-27 09:37:01 +02:00
Chris Wilson
7a02aa4cbf mmio: Limit the uc- mapping to only map the registers
In the future, we may like to enable wc mapping of at least the GATT,
and so causing a conflict if we attempt to map the entire bar as uc-
here. Obviously we need a better fallback plan, but for the moment only
attempt to map the portion of the pci space that we use for register
access.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-27 09:34:33 +02:00
Chris Wilson
a4783f9485 intel_gtt: Harden against changes to kernel mappings of the GTT
Rather than use the common mmio segment which will be in future
restricted to just the registers and so exclude the GTT portion on all
architectures, explicitly mmap the GTT ourselves. Repeat this mmapping
with a couple of flags until we matching the existing kernel mapping.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-27 09:34:30 +02:00
Daniel Vetter
3d148e164d s/NO_PID/NOP_ID
Alan typo'ed it, I've failed to notice :(
2012-08-25 00:01:27 +02:00
Alan Coopersmith
1b5fd314fd Add --disable-nouveau option for platforms without nouveau support
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-24 23:20:32 +02:00
Alan Coopersmith
4cdfa8e9b7 flip_test: add cast to pacify Solaris Studio compiler
Fixes build error:
"flip_test.c", line 180: improper pointer/integer combination: op "="

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-24 23:20:27 +02:00
Alan Coopersmith
6b3e6f28d2 Rename NOPID to NO_PID to avoid conflict with Solaris NOPID
Solaris <sys/types.h> already has #define NOPID (pid_t)(-1)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-24 23:20:22 +02:00
Alan Coopersmith
99fdba921e Fall back to CLOCK_MONOTONIC on systems without CLOCK_MONOTONIC_RAW
Solaris has not yet adopted this Linux extension

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-24 23:20:14 +02:00
Daniel Vetter
e40146878e Revert "tests: disable nouveau if unavailable"
This reverts commit dd8325323bfcca1f742e864ca7d87101a0d59936.

I like the patch from Alan Coopersmith with an explicit disable
option better.
2012-08-24 23:18:48 +02:00
Maarten Lankhorst
dd8325323b tests: disable nouveau if unavailable 2012-08-24 22:55:20 +02:00
Maarten Lankhorst
425940be1d tests/prime_nv_test: add missing call for test8 2012-08-24 22:50:42 +02:00
Maarten Lankhorst
c5b7ebc1cc tests/prime_nv_pcopy: kill debug code that's not upstream 2012-08-24 22:50:42 +02:00
Daniel Vetter
94ec3f926c tests/prime_nv: don't enable buffer reuse
We share these suckers, hence the fd-local libdrn instance does not
have full control over the lifecycle of the object. Prevents the tests
from blowing up with

[drm:i915_gem_mmap_gtt] *ERROR* Attempting to mmap a purgeable buffer

and similar things.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-24 15:45:09 +02: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
Ben Widawsky
ea944a9faf intel_reg_read: use strtol instead of atoi
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-23 11:32:57 -07:00
Ben Widawsky
baf026d692 intel_reg_read: support -c option to read multiple dwords
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-23 11:29:43 -07:00
Vijay Purushothaman
4fc76adf31 tools: Added intel_dpio_read and intel_dpio_write
In Valleyview the DPLL and lane control registers are accessible only
through side band fabric called DPIO. Added two tools to read and write
registers residing in this space.

v2: Moved the core read/write functions to lib/intel_dpio.c based on
Ben's feedback

Signed-off-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-21 09:30:29 +02:00
Daniel Vetter
082826de6c tests: add gem_gtt_cpu_tlb
This catches tlb invalidation issues on my snb mobile gt2+
2012-08-15 10:26:48 +02:00
Wang Xingchao
c407722048 intel_audio_dump: add Haswell audio dump support
Add Haswell audio registers definition and dump support.

Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-15 11:08:43 +02:00
Wang Xingchao
f9a2481e71 intel_audio_dump: fix wrong port definition
there're three Ports B/C/D used for selection by each transcoder A/B/C.

Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-15 11:08:39 +02:00
Maarten Lankhorst
1f523bd8d1 Fixup previous commit
ENODEV not being defined and return code wrong
2012-08-14 18:52:23 +02:00
Maarten Lankhorst
3dda357445 And add another corner case skip 2012-08-14 18:50:29 +02:00
Maarten Lankhorst
0f65ee9576 fix crash with insufficient permissions 2012-08-14 18:48:48 +02:00
Maarten Lankhorst
fc54f2eaa8 satisfy danvet's OC
and add skip codes, but mostly satisfy danvet's OCD
2012-08-14 18:25:50 +02:00
Maarten Lankhorst
4520025b73 Add intel <-> nouveau prime tests 2012-08-13 15:57:57 +02:00
Daniel Vetter
0efa6c7b27 tools/reg_dumper: really dump pipe C regs
Not just a copy of pipe B. Meh.

Also kill a few redudant #define for pipe B - they match pipe A.
2012-08-08 22:05:14 +02:00
Yi Sun
9fcaffda88 Update the image file pass.png with higher correction level
Signed-off-by: Yi Sun <yi.sun@intel.com>
2012-08-08 08:51:55 +02:00
Yi Sun
f669e8c12e tests/testdisplay.c Remove an uncomfortable error output
Signed-off-by: Yi Sun <yi.sun@intel.com>
2012-08-08 08:51:47 +02:00
Paulo Zanoni
5ba39da67e lib: add more Haswell PCI IDs
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2012-08-07 10:43:32 -03:00
Daniel Vetter
f56a289aa8 tools/reg_dumper: dump pipe C regs
Also reorder the pipe B regs a bit to be consisten with pipe A.
2012-08-07 14:50:54 +02:00
Daniel Vetter
81f16261f4 tests/gem_reg_read: actually wait a bit between reading TIMESTAMP reg
QA could only hit this on ilk because the timer increase quite a bit
slower on that platform than on gen6+ (80ns vs 320ns, iirc).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52937
2012-08-05 21:40:56 +02:00
Yi Sun
41fe811feb tests/testdisplay.c: Add a option '-r'.
With the option '-r', the testdisplay could paint a 2-D bar code(QR
bar code) on the screen. The word "pass" is hiden in the bar code
image.  Further more, with this option, testdisplay will wait until a
system signal 'SIGUSR1' coming after each mode setting. This function
is for another program to control testdisplay.

danvet: Fix up the missing static.

Signed-off-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-26 15:01:08 +02:00
Damien Lespiau
3b0f80308a build: Make autoreconf honour ACLOCAL_FLAGS
When running autoreconf, it's possible to give flags to the underlying
aclocal by declaring a ACLOCAL_AMFLAGS variable in the top level
Makefile.am.

Putting ${ACLOCAL_FLAGS} there allows the user to set an environment
variable up before running autogen.sh and pull in the right directories
to look for m4 macros, say an up-to-date version of the xorg-util macros.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2012-07-25 17:59:58 +02:00
Daniel Vetter
efa5e355ac test/flip_test: don't fail if we can't find a crtc
some connectors are forced to certain crcs ...
2012-07-23 13:38:40 +02:00
Daniel Vetter
c832aa1714 tests: fixup prime test paranoia 2012-07-23 11:25:47 +02:00
Daniel Vetter
5d9e22366b tests/prime: more paranoia
- check the old contents first in check_bo
- drop all GEM handles for the re-import test
2012-07-23 10:06:25 +02:00
Daniel Vetter
796f6193c9 tests: add missing stuff to .gitignore
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-23 09:52:10 +02:00
Daniel Vetter
6bc22e3dfd tests: add basic re-importing prime test
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-23 09:52:10 +02:00
Daniel Vetter
fb748aad4c tests: s/drm_reg_read/gem_reg_read
gem_ is the prefix for low-level kernel tests, drm_ tests
libdrm_intel specific stuff.
2012-07-23 09:52:10 +02:00
Daniel Vetter
434be47f12 shut up the compiler a bit
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-23 09:52:10 +02:00
Ben Widawsky
4c9abd5aa4 reg_read: use good offset, and errno
The test was bonghits.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-22 16:30:04 -07:00
Ben Widawsky
58cfeabb90 reg_read: skip older kernels
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-18 11:47:42 -07:00
Ben Widawsky
4fe7869539 reg_read: basic register read ioctl test
This will need to get modified when the ioctl expands, and so is only
here for reference/to make Daniel happy.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-18 11:30:12 -07:00
Daniel Vetter
d9fb72e266 tests: improve concurrent blit tests
By adding another testcase that follows up with a gpu read. This
checks whether the kernel properly tracks the pending write and
doesn't lose it (or sync up to the wrong seqno).

For some odd reason only the cpu mmap variant blows up, the gtt one
works here. I need to look into that some more.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-13 10:35:11 +02:00
Ben Widawsky
fbd6d04959 gem_ctx_basic: fixes
I must have checked in the wrong version the first time.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-03 11:04:05 -07:00
Ben Widawsky
e843c55370 ctx_basic: we stopped using rendercopy
so get rid of the remants. perhaps we'll use it again someday.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-03 10:40:32 -07:00
Ben Widawsky
cbb3c685b5 rendercopy_gen7: add support for haswell
Only compile tested.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-30 19:32:33 -07:00
Ben Widawsky
afcffe783a context_basic: the most stressful context test to date.
this context test requiring libdrm updates

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-29 11:25:03 -07:00
Ben Widawsky
a635a5ac3b context: libdrm wrappers
This wraps libdrm functionality to exec with contexts. This patch
shouldn't be applied until libdrm for contexts is updated.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-29 11:24:52 -07:00
Ben Widawsky
c157e9485e intel: update libdrm requirement
We want context APIs in order to use our super context test.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-29 11:24:47 -07:00