summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-16intel_infoframes: options -p and -P require an argumentHEADmasterPaulo Zanoni1-3/+3
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2012-05-16intel_gpu_top: allow to work on Gen7Eugeni Dodonov1-1/+1
Somehow nobody noticed this before, but we were missing blt and bsd6 initialization on Gen7. Reported-by: Philippe Lecluse <philippe.lecluse@intel.com> Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-05-10tests/gtt_speed: try to outwit gccDaniel Vetter1-3/+14
It optimized away the read loops ;-) Also fix up the size to not be 1/4th of the one we want for tiled buffer tests. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-05-09tests/gem_tiled_pread_pwrite fix progname for pretty print progressChris Wilson1-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-09intel_error_decode: Be more lax for whitespace around parsing PCI-IDChris Wilson1-0/+2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-08tools: add Haswell registers into intel_reg_dumperEugeni Dodonov2-0/+225
For now, only print their content for diffing, but also add the necessary bits that can be used for more verbose output in the fugure. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-05-07tests/flip_test: test on each CRTC for each detected outputJesse Barnes1-27/+26
This allows us to test on 3 pipe configs for example.
2012-05-07tests: add simple flip testJesse Barnes4-0/+577
Add a simple flip test to test flipping on a single output with the preferred mode. TODO: test each crtc for 3s and print pass/fail results
2012-04-28intel_infoframe: fix assertion off by 1Ben Widawsky1-1/+1
this makes my compiler very unhappy Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-04-28chipset: accidentally left the old IS_GEN7 macroBen Widawsky1-6/+0
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-04-27test/ZZ_hangman: adjust to new error_state reset semanticsDaniel Vetter1-1/+1
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-25intel_infoframes: add support for Gen 4Paulo Zanoni2-55/+147
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-25intel_infoframes: AVI InfoFrame version should be 2Paulo Zanoni1-1/+1
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-25chipset updatesBen Widawsky1-2/+27
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-04-25test: fix up hangman script and enable by defaultDaniel Vetter2-6/+6
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-22tests: add gem_unfence_active_buffersDaniel Vetter5-0/+189
Unfortunately this requires slab poisoning to catch anything :( Also add a new helper to drmtest to get the available fence count. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-19lib: Fix render copy on gen2Chris Wilson1-263/+148
2012-04-19tests/gem_ringfill: add progress indicatorDaniel Vetter1-0/+6
This thing takes ages on older chips. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-17tests: re-enable commented-out testcaseDaniel Vetter1-2/+0
Meh, I suck. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-17tests: add gem_set_tiling_vs_pwriteDaniel Vetter3-0/+103
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-17tests/gem_set_tiling_vs_gtt: update copyright headerDaniel Vetter1-2/+2
Meh, I've forgotten these. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-17tests: add gem_set_tiling_vs_gttDaniel Vetter3-0/+139
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-17tests/gem_set_tiling_vs_blt: fix on gen4+Daniel Vetter1-1/+10
Oops, the new checks need correctly tiled blts to work. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-15tests: rename gem_tiled_after_untiled_blt into gem_set_tiling_vs_bltDaniel Vetter3-8/+12
... it checks much more now. Also update the comments a bit in the testcase. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-15tests: pimp tiled_after_untiled_bltDaniel Vetter1-30/+83
Now with more tiling transition tests. Changes: - refactoring to reuse the tiling transition functions. - add a tiled->untiled transition - add a tiled->tiled transition with different stride - add a check at the end to ensure that the tiling has indeed changed on the test_bo Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-13Add tools/intel_infoframesPaulo Zanoni5-0/+1079
This is a command-line tool that allows us to display and modify the InfoFrames we send. v2: use argv instead of stdin Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-12tests: skip rc6_residency test if not supportedDaniel Vetter1-0/+8
Fixes spurious failures. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-12Use mmap64() for performing the GTT mappingChris Wilson1-1/+1
Although the address space for GTT mappings may only be 32-bits, we need to use the explicit 64-bit mmap interface so that on a 32-bit platform the offset we pass is not truncated to 31-bits. Fixes gem_mmap_offset_exhaustion on 32-bit platforms. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-04-11tests: add gem_gtt_concurrent_blitDaniel Vetter3-0/+136
Same test as Chris Wilson's gem_cpu_concurrent_blit, but for gtt mmaps. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-11tests: add sysfs_rc6_residency to .gitignoreDaniel Vetter1-0/+1
2012-04-11tests/sysfs_rc6_residency: add some sleep before testingDaniel Vetter1-0/+4
That way I can run i-g-t on my ivb without spurious failures. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-10tests: rc6 residency testBen Widawsky3-0/+109
This is meant to test the sysfs entry for showing rc6 residency in milliseconds. Remember, sysfs is a permanent interface. v2: use new get_card interface to try "all" devices check rc6p and rc6pp in addition to rc6 v3: rename rc6_residency.c to sysfs_rc6_residency.c print better error messages skip test if rc6 isn't enabled v4: update to new sysfs names Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2012-04-10drm/i915: extract card gettingBen Widawsky1-39/+83
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-04-10build: make sure we have asprintfBen Widawsky1-0/+2
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-04-10test/gem_cpu_concurrent_blit: Limit memory usage to half apertureChris Wilson1-1/+5
So that we don't cause needless thrashing on older devices and spoil the test.
2012-04-10test: Exercise concurrent GPU read/write with CPU domain accessChris Wilson3-0/+129
Designed to exercise this patch to i915.ko: diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index fbf1118..57ae1f2 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -3181,9 +3181,11 @@ i915_gem_object_set_to_cpu_domain(struct drm_i915_gem_obj if (ret) return ret; - ret = i915_gem_object_wait_rendering(obj); - if (ret) - return ret; + if (write || obj->pending_gpu_write) { + ret = i915_gem_object_wait_rendering(obj); + if (ret) + return ret; + } i915_gem_object_flush_gtt_write_domain(obj); By exercising the conditions whereby should either of the checks be missed an error is detected.
2012-04-10tests: explicit use bashDaniel Vetter3-3/+3
We use bashisms, which debian's default sh dash doesn't like. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-04tests: add wedging testsBen Widawsky2-1/+11
Used to check that i915_error_state works. Unfortunately this kills the gpu because wedging is permanent. Base on a patch by Ben Widawsky. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-04tests: fixup drm_lib.sh sourcingDaniel Vetter4-4/+8
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-04tests: use / as path separator instead of _Daniel Vetter1-1/+1
Oops. Originally by me, noticed while reviewing Ben Widawsky's patch. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-04tests: use common code for scriptsBen Widawsky5-87/+36
This removes cut and pasted code and uses a more central source. Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-29Make the assertions guarding syscalls (drmIoctl in particular) verboseChris Wilson3-29/+23
Currently all we see is gem_read: ret == 0 failed, where it would help to see the errno and/or the ret. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-24tests: use gem_create and gem_close moreDaniel Vetter3-30/+8
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-24tests/gem_fence_thrash: make some good use of drmtest helpersDaniel Vetter1-28/+6
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-24tests/gem_exec_faulting_reloc: kill superflous mmap_boDaniel Vetter1-12/+2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-23tests: add gem_tiled_after_untiled_bltDaniel Vetter3-0/+205
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-22tests: adapt storedw tests to ppgttDaniel Vetter6-8/+58
MI_MEM_VIRTUAL actually means use global gtt now, not setting the bit means use ppgtt. On previous gens, not setting the bits ment 'use physical memory'. So what, the usual confusion. Note that for some odd reasong this is broken on gen6, but only on the bsd ring. Unexpected. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-22tests: don't just bail out when there's not enough RAMDaniel Vetter3-6/+3
... but actually run the test with reduced memory requirements, as the messages claims. Additional print it to stdout, stderr seems to imply FAIL in our QA's testing rig. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-20tests: add gem_mmap_offset_exhaustionDaniel Vetter4-0/+112
This also adds a gem_madvise helper to lib/drmtest.c Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-20update .gitingoreDaniel Vetter4-2/+4