Imre Deak [Wed, 10 Oct 2012 13:04:38 +0000 (16:04 +0300)]
fix warn: 'div' shadows a global declaration
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Daniel Vetter [Tue, 9 Oct 2012 20:47:59 +0000 (22:47 +0200)]
tests/gem_exec_big: fixups
- don't emit a self-modifying batch, the kernel doesn't like those
- also change the buffer size, to exercise all corner-cases of the
sg_table stuff
Daniel Vetter [Tue, 9 Oct 2012 17:43:28 +0000 (19:43 +0200)]
tests/gem_exec_big: add a reloc at the end of the big batch
Since that's the other place where the broken get_page blows up.
Actually it seems to only blow up on specific pages ...
Daniel Vetter [Tue, 9 Oct 2012 17:29:02 +0000 (19:29 +0200)]
tests: add big batchbuffer test
... and use it in the hangman to stress the error_state capture a bit more.
Uncovered a bug in the obj->pages ->obj->sg_list rework.
Daniel Vetter [Tue, 9 Oct 2012 17:27:41 +0000 (19:27 +0200)]
lib: remove auto-quiescenting of the gpu
In retrospective, this is an ugly idea. Any tests that needs this
can call it themselves.
Daniel Vetter [Tue, 9 Oct 2012 15:50:40 +0000 (17:50 +0200)]
lib: make drmtest_progress more robust
Daniel Vetter [Tue, 9 Oct 2012 15:32:00 +0000 (17:32 +0200)]
tests: update .gitignore
I've thought I've fixed this, but looks like I've failed to commit.
Daniel Vetter [Tue, 9 Oct 2012 15:30:59 +0000 (17:30 +0200)]
tests: add gem_cs_tlb
Should test tlb coherency, but somehow it fails to hit the bug I want
it to hit ... needs more work.
Daniel Vetter [Tue, 9 Oct 2012 13:51:13 +0000 (15:51 +0200)]
tests/gem_cs_prefetch: clarify what it tests
I've forgotten ;-)
Daniel Vetter [Thu, 4 Oct 2012 19:40:54 +0000 (21:40 +0200)]
tests/flip_test: check -EBUSY and -EINVAL behaviour
We want -EBUSY for a pending flip and -EINVAL if the pipe is off
(either dpms off or completely off). With the small exception that
someone thought it would be funny to return -EBUSY when the crtc is
fully off.
Daniel Vetter [Thu, 4 Oct 2012 11:22:16 +0000 (13:22 +0200)]
tests/*storedw*: add subcases with more outstanding batches
Just in case this is better at hitting seqno signalling races ...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Daniel Vetter [Wed, 3 Oct 2012 21:16:18 +0000 (23:16 +0200)]
flip_test: fix timestamp order
When grabbing the timestamp after a flip, it has a decent chance to
actually be after the flip. Surprising.
Daniel Vetter [Wed, 3 Oct 2012 16:57:40 +0000 (18:57 +0200)]
tests/gem_caching: only disable on vintage i965g/gm
Hooray for confusing macros!
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Daniel Vetter [Wed, 3 Oct 2012 11:44:30 +0000 (13:44 +0200)]
tests: add drm_threaded_access_tiled
This catches parallel access to bo->virtual causing sigbus
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
[danvet: applied some bikeshed
- changed prefix from drm_ to gem_, it's a kernel gem test
- added autohell magic to link with pthreads
- .gitignore entry
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Daniel Vetter [Tue, 2 Oct 2012 19:29:57 +0000 (21:29 +0200)]
flip_test: add an explicit flag for timing checks
We'll need this for the wait_vblank test cases.
Chris Wilson [Tue, 2 Oct 2012 20:40:46 +0000 (21:40 +0100)]
gem_cpu_reloc: Do another pass explicitly moving to the CPU write domain
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 2 Oct 2012 20:04:36 +0000 (21:04 +0100)]
gem_cpu_reloc: Use the mappable aperture size!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 2 Oct 2012 20:02:22 +0000 (21:02 +0100)]
gem_cpu_reloc: And run the test in reverse to check with already bound batches
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 2 Oct 2012 19:50:17 +0000 (20:50 +0100)]
gem_cpu_reloc: Fix for running on SNB+
I work with these everyday and I still made a basic mistake.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Daniel Vetter [Tue, 2 Oct 2012 17:42:11 +0000 (19:42 +0200)]
flip_test: increase runtime of the plain flip to 15s
This ensures that we'll hit the stupid hpd poll handler in every run.
Also don't yell around about jitter for tv outputs ...
Daniel Vetter [Tue, 2 Oct 2012 17:33:30 +0000 (19:33 +0200)]
tests/flip_test: measure inter-frame ts jitter
Yell if it's wrong.
For some odd reason this blows up on my snb. And always on the same
o->count frame on the 2nd crtc ... And we have to thank the hpd poll
helper for that. Comment explaining this added, also made the error
non-fatal.
Daniel Vetter [Tue, 2 Oct 2012 15:38:04 +0000 (17:38 +0200)]
flip_test: race against modesets, too
Even slower than dpms switching ;-)
Chris Wilson [Tue, 2 Oct 2012 18:22:37 +0000 (19:22 +0100)]
gem_wait_render_timeout: Fix SKIP return code
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 2 Oct 2012 16:27:16 +0000 (17:27 +0100)]
tests: Add gem_cpu_reloc
Attempt to stress test performing relocations whilst the batch is in the
CPU domain.
A freshly allocated buffer starts in the CPU domain, and the pwrite
should also be performed whilst in the CPU domain and so we should
execute the relocations within the CPU domain. If for any reason one of
those steps should land it in the GTT domain, we take the secondary
precaution of filling the mappable portion of the GATT.
In order to detect whether a relocation fails, we first fill a target
buffer with a sequence of invalid commands that would cause the GPU to
immediate hang, and then attempt to overwrite them with a legal, if
short, batchbuffer using a BLT. Then we come to execute the bo, if the
relocation fail and we either copy across all zeros or garbage, then the
GPU will hang.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Daniel Vetter [Tue, 2 Oct 2012 15:22:09 +0000 (17:22 +0200)]
tests/flip_test: also test pannning with dummy load
Needs a bit more relaxed select timeout to work (which is not
required when testing dummy_load vs. dpms, since the dpms forces the
sync, not the select timeout).
Daniel Vetter [Tue, 2 Oct 2012 15:17:40 +0000 (17:17 +0200)]
tests/flip_test: test interaction with panning
Since panning with set_crtc is synchronous, we need to stall for any
outstanding pageflips. This new testcase exercise that code. Unfortunately
we still need eyes to check whether we don't loose the offset :(
Daniel Vetter [Tue, 2 Oct 2012 15:01:06 +0000 (17:01 +0200)]
tests/flip_test: robustifications
- don't yell around about dropped frames on tv connectors (and explain
why in a comment)
- wait a bit when using a test config that checks for dropped frames before
starting. Also allow for 1% of fudge, this makes it reliably work
- make the dummy load more variable, took too long on older machines.
Daniel Vetter [Tue, 2 Oct 2012 14:09:00 +0000 (16:09 +0200)]
tests/flip_test: don't complain about timestamps in the future
those can happen due to the scanline vblank timestamp adjuster ...
Daniel Vetter [Tue, 2 Oct 2012 13:59:58 +0000 (15:59 +0200)]
tests/flip_test: actually try to check what I want to check
/me sucks
Daniel Vetter [Tue, 2 Oct 2012 13:42:34 +0000 (15:42 +0200)]
tests/flip_test: check whether timestamp isn't in the past
This is mostly useful for when we add support for other clock sources,
e.g. clock_monotic, to check whether the kernel picked the right
clock.
Daniel Vetter [Tue, 2 Oct 2012 13:37:24 +0000 (15:37 +0200)]
tests/flip_test: check whether the pageflip event took too long
We're suspecting that something is fishy with the event deliver/vblank
timestamp handling on gmch platforms. Unfortunately, this isn't it.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Chris Wilson [Tue, 2 Oct 2012 11:59:16 +0000 (12:59 +0100)]
flip_test: count the number of flips and check we don't drop any
In the basic case of just flipping between two buffers with no
additional work, we should neve drop a frame.
Daniel Vetter [Tue, 2 Oct 2012 09:50:20 +0000 (11:50 +0200)]
tests/flip_test: re-enable disabled testcases
oops
Daniel Vetter [Tue, 2 Oct 2012 08:33:13 +0000 (10:33 +0200)]
tests/flip_test: new testcase with a busy load before the flip
I've hoped that this would be good enough to hang pch platforms, but
it looks like those just complete the flip immediately on disabled pipes.
Daniel Vetter [Tue, 2 Oct 2012 08:32:25 +0000 (10:32 +0200)]
fixup .gitignore for newly add sysfs_rps test
Daniel Vetter [Tue, 2 Oct 2012 08:32:10 +0000 (10:32 +0200)]
lib: helper to convert gem_hanlde to drm_intel_bo
Daniel Vetter [Mon, 1 Oct 2012 09:34:10 +0000 (11:34 +0200)]
drmtest: use do_or_die
Chris Wilson [Fri, 28 Sep 2012 12:03:02 +0000 (13:03 +0100)]
tests/flip_test: Revamp to demonstrate race with modeset/dpms and pageflips
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Damien Lespiau [Wed, 26 Sep 2012 17:17:53 +0000 (18:17 +0100)]
intel_infoframes: Dump HDMI vendor infoframes
Those infoframes are programmed when using stereo 3D modes.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Yi Sun [Tue, 25 Sep 2012 09:13:17 +0000 (17:13 +0800)]
Add option -o <number>, which can test only one specified mode.
Each mode line has a number just like '[i]'. So we can only test the specified mode with giving the number of mode to '-o' parameter.
Signed-off-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Chris Wilson [Tue, 18 Sep 2012 13:04:58 +0000 (14:04 +0100)]
tests/module_reload: Silence warnings when unloaded shared modules
So long as we spit out critical errors during i915 reload, or detect any
oops the test will do its job.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55040
Ben Widawsky [Sat, 8 Sep 2012 01:12:07 +0000 (18:12 -0700)]
sysfs rps test added
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Chris Wilson [Thu, 13 Sep 2012 14:05:34 +0000 (15:05 +0100)]
gem_gtt_speed: Add a test that caches the mmapping across iterations
Repeat the memset streaming performance test on the same mapping so that
we can factor out the overhead of establishing the GTT/CPU mmaps.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Thu, 13 Sep 2012 13:55:53 +0000 (14:55 +0100)]
gem_gtt_speed: Use a memset() to test streaming performance
This make the reasonable assumption that the libc code for memset() can
saturate the memory bandwidth -- at any rate it should do better than
the copy.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Ben Widawsky [Thu, 13 Sep 2012 00:48:21 +0000 (17:48 -0700)]
intel_sprite_on: plane needs 16.16 width and height
This only ever worked because we used to have a bug in our driver which
was fixed months ago by:
commit
b4db1e35ac59c144965f517bc575a0d75b60b03f
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date: Tue Mar 20 10:59:09 2012 -0700
drm/i915: treat src w & h as fixed point in sprite handling code
Reported-by: Armin Reese <armin.c.reese@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Thu, 13 Sep 2012 00:27:08 +0000 (17:27 -0700)]
intel_sprite_on: coding style fixes
It was driving me nuts...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Sat, 8 Sep 2012 20:40:04 +0000 (13:40 -0700)]
intel_sprite_on: Idententation + Copyright fix
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Damien Lespiau [Fri, 7 Sep 2012 10:42:20 +0000 (11:42 +0100)]
tools: Update gitignore with intel_dpio_{read, write}
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Damien Lespiau [Mon, 3 Sep 2012 15:16:29 +0000 (16:16 +0100)]
intel_reg_dumper: Add more information when dumping single registers
Now that we can dump registers giving a partial name, adding more
information about the dumped registers seems useful.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Damien Lespiau [Mon, 3 Sep 2012 15:16:28 +0000 (16:16 +0100)]
intel_reg_dumper: Allow partial register names on the command line
Let people give just a part of the register name. Handy when not
remembering the exact name or if the register is defined with a
different name than the one in the spec being looked at.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Damien Lespiau [Mon, 3 Sep 2012 15:16:27 +0000 (16:16 +0100)]
intel_reg_dumper: Also decode registers given by address
One can now give an address instead of a register name to decode a
single register.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Damien Lespiau [Mon, 3 Sep 2012 15:16:26 +0000 (16:16 +0100)]
intel_reg_dumper: Add a single register decode mode
From time to time, one would like to decode a register value that have
been captured at a certain point in time (and say printed out with a
printk). intel_reg_dumper has all the knowledge to do that and this
patch adds a way to ask it to decode a value.
Example usage:
$ ./tools/intel_reg_dumper PCH_PP_CONTROL 0xabcd0002
PCH_PP_CONTROL: 0xabcd0002 (blacklight disabled, power...
v2: friendlier invocation (Chris Wilson)
v3: remove unecessary casts and use strcasecmp (Jani Nikula)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Ben Widawsky [Thu, 30 Aug 2012 21:17:01 +0000 (14:17 -0700)]
clang: Fix static analysis warnings from clang
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Thu, 30 Aug 2012 21:03:54 +0000 (14:03 -0700)]
clang: Fix warnings found through clang.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Chris Wilson [Mon, 16 Jul 2012 15:41:16 +0000 (16:41 +0100)]
tests/gem_cacheing: Exercise snoop coherency
This is based on tests/gem_partial_pwrite_pread which aims to detect
incoherency between CPU reads and writes to a bo whilst using it as a
source and target for GPU writes.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Mon, 16 Jul 2012 15:39:57 +0000 (16:39 +0100)]
Add bare-metal interface to adjust cacheing (i.e. snoop status) of a bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Daniel Vetter [Mon, 27 Aug 2012 07:37:01 +0000 (09:37 +0200)]
bump to 1.3 release
Chris Wilson [Sun, 26 Aug 2012 20:22:15 +0000 (21:22 +0100)]
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>
Chris Wilson [Sun, 26 Aug 2012 20:22:14 +0000 (21:22 +0100)]
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>
Daniel Vetter [Fri, 24 Aug 2012 22:01:27 +0000 (00:01 +0200)]
s/NO_PID/NOP_ID
Alan typo'ed it, I've failed to notice :(
Alan Coopersmith [Fri, 24 Aug 2012 21:02:04 +0000 (14:02 -0700)]
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>
Alan Coopersmith [Fri, 24 Aug 2012 21:02:03 +0000 (14:02 -0700)]
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>
Alan Coopersmith [Fri, 24 Aug 2012 21:02:02 +0000 (14:02 -0700)]
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>
Alan Coopersmith [Fri, 24 Aug 2012 21:02:01 +0000 (14:02 -0700)]
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>
Daniel Vetter [Fri, 24 Aug 2012 21:18:48 +0000 (23:18 +0200)]
Revert "tests: disable nouveau if unavailable"
This reverts commit
dd8325323bfcca1f742e864ca7d87101a0d59936.
I like the patch from Alan Coopersmith with an explicit disable
option better.
Maarten Lankhorst [Fri, 24 Aug 2012 20:55:20 +0000 (22:55 +0200)]
tests: disable nouveau if unavailable
Maarten Lankhorst [Fri, 24 Aug 2012 20:50:21 +0000 (22:50 +0200)]
tests/prime_nv_test: add missing call for test8
Maarten Lankhorst [Fri, 24 Aug 2012 20:49:40 +0000 (22:49 +0200)]
tests/prime_nv_pcopy: kill debug code that's not upstream
Daniel Vetter [Fri, 24 Aug 2012 13:45:09 +0000 (15:45 +0200)]
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>
Ben Widawsky [Thu, 23 Aug 2012 18:37:09 +0000 (11:37 -0700)]
Converted a display debug script for use by designers
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Thu, 23 Aug 2012 18:32:57 +0000 (11:32 -0700)]
intel_reg_read: use strtol instead of atoi
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Thu, 23 Aug 2012 18:29:43 +0000 (11:29 -0700)]
intel_reg_read: support -c option to read multiple dwords
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Vijay Purushothaman [Fri, 17 Aug 2012 12:36:52 +0000 (18:06 +0530)]
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>
Daniel Vetter [Wed, 15 Aug 2012 08:26:08 +0000 (10:26 +0200)]
tests: add gem_gtt_cpu_tlb
This catches tlb invalidation issues on my snb mobile gt2+
Wang Xingchao [Wed, 15 Aug 2012 08:13:38 +0000 (16:13 +0800)]
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>
Wang Xingchao [Wed, 15 Aug 2012 08:13:37 +0000 (16:13 +0800)]
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>
Maarten Lankhorst [Tue, 14 Aug 2012 16:51:19 +0000 (18:51 +0200)]
Fixup previous commit
ENODEV not being defined and return code wrong
Maarten Lankhorst [Tue, 14 Aug 2012 16:50:29 +0000 (18:50 +0200)]
And add another corner case skip
Maarten Lankhorst [Tue, 14 Aug 2012 16:48:48 +0000 (18:48 +0200)]
fix crash with insufficient permissions
Maarten Lankhorst [Tue, 14 Aug 2012 16:25:50 +0000 (18:25 +0200)]
satisfy danvet's OC
and add skip codes, but mostly satisfy danvet's OCD
Maarten Lankhorst [Mon, 13 Aug 2012 13:57:57 +0000 (15:57 +0200)]
Add intel <-> nouveau prime tests
Daniel Vetter [Tue, 7 Aug 2012 16:16:34 +0000 (18:16 +0200)]
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.
Yi Sun [Wed, 8 Aug 2012 06:35:20 +0000 (14:35 +0800)]
Update the image file pass.png with higher correction level
Signed-off-by: Yi Sun <yi.sun@intel.com>
Yi Sun [Wed, 8 Aug 2012 06:32:04 +0000 (14:32 +0800)]
tests/testdisplay.c Remove an uncomfortable error output
Signed-off-by: Yi Sun <yi.sun@intel.com>
Paulo Zanoni [Mon, 6 Aug 2012 18:05:28 +0000 (15:05 -0300)]
lib: add more Haswell PCI IDs
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Daniel Vetter [Tue, 7 Aug 2012 12:50:54 +0000 (14:50 +0200)]
tools/reg_dumper: dump pipe C regs
Also reorder the pipe B regs a bit to be consisten with pipe A.
Daniel Vetter [Sun, 5 Aug 2012 19:40:56 +0000 (21:40 +0200)]
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
Yi Sun [Thu, 26 Jul 2012 06:23:36 +0000 (14:23 +0800)]
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>
Damien Lespiau [Wed, 25 Jul 2012 15:04:32 +0000 (16:04 +0100)]
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>
Daniel Vetter [Tue, 22 May 2012 17:55:21 +0000 (19:55 +0200)]
test/flip_test: don't fail if we can't find a crtc
some connectors are forced to certain crcs ...
Daniel Vetter [Mon, 23 Jul 2012 09:25:47 +0000 (11:25 +0200)]
tests: fixup prime test paranoia
Daniel Vetter [Mon, 23 Jul 2012 08:06:25 +0000 (10:06 +0200)]
tests/prime: more paranoia
- check the old contents first in check_bo
- drop all GEM handles for the re-import test
Daniel Vetter [Mon, 23 Jul 2012 07:51:12 +0000 (09:51 +0200)]
tests: add missing stuff to .gitignore
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Daniel Vetter [Mon, 23 Jul 2012 07:49:06 +0000 (09:49 +0200)]
tests: add basic re-importing prime test
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Daniel Vetter [Mon, 23 Jul 2012 04:41:10 +0000 (06:41 +0200)]
tests: s/drm_reg_read/gem_reg_read
gem_ is the prefix for low-level kernel tests, drm_ tests
libdrm_intel specific stuff.
Daniel Vetter [Sat, 21 Jul 2012 15:36:36 +0000 (17:36 +0200)]
shut up the compiler a bit
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Ben Widawsky [Sun, 22 Jul 2012 23:30:04 +0000 (16:30 -0700)]
reg_read: use good offset, and errno
The test was bonghits.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Wed, 18 Jul 2012 18:47:42 +0000 (11:47 -0700)]
reg_read: skip older kernels
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Ben Widawsky [Thu, 12 Jul 2012 00:06:01 +0000 (17:06 -0700)]
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>
Daniel Vetter [Fri, 13 Jul 2012 08:35:11 +0000 (10:35 +0200)]
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>