summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-05Fix some issue.HEADmasterYi Sun1-6/+0
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-05Remove unsed file in libYi Sun46-14362/+6
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-05Remove one more file.Yi Sun1-16/+0
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-05Remove all test cases.Yi Sun162-43255/+0
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-05Remove Android.mkYi Sun1-2/+0
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-05Remove MAINTAINERS.Yi Sun1-2/+0
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-04Remove un-related folder/files.Yi Sun271-52848/+0
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-04Crop Makefile.Yi Sun4-333/+4
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-04Crop testdisplay.Yi Sun1-347/+25
Signed-off-by: Yi Sun <yi.sun@intel.com>
2015-03-02tests/gem_tiled_swapping: Skip on L-shaped memoryDaniel Vetter1-0/+22
The only thing the kernel can do is pin the buffers, which essentially means no swapped tiled objects. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-27tests/pm_rpm: I2C VGA detection is unreliablePaulo Zanoni1-2/+25
We fail to detect some VGA monitors using our I2C method, leading to bug reports from QA. If you look at the dmesg of these cases, you'll see the Kernel complaining about EDID reading mostly FFs and then disabling bit-mangling. Since we don't want to reimplement everything the Kernel does, let's just accept the fact that some VGA outputs won't be properly detected. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84273 Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2015-02-27lib/igt_core: don't add newlines in logging functionsDaniel Vetter1-3/+9
igt_kms extensively uses line continuation when dumping state updates at the debug level. They got badly mangled with the recent changes to for the log handling functions. Two separate fixes: - Don't prepend domain and other metainformation when it's just a continuation line. - Dont add newlines when dumping the log recorder. If someone interleaves different log level messages this will go awry, but really just don't do that. Cc: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-27lib: add igt_assert_ltDaniel Vetter2-1/+14
Found one user in gem_wait.c Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-27tests/kms_universal_planes: Inline igt_assert(ret == 0) checksDaniel Vetter1-62/+50
This way the debug output in case of failures is nicer since we dump the entire test condition. Also replace one open-coded igt_assert_eq. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-27kms_universal_plane: Check for cursor fb leaksMatt Roper1-0/+119
We've been leaking the framebuffers that get created inside the legacy -> universal cursor compatibility layer and nobody noticed. Add an i-g-t test to check debugfs and ensure we end up the same number of framebuffers we started with after performing cursor operations. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-27lib/igt_kms.c: igt_require -> igt_require_f("two displays required\n")Marc Herbert1-1/+1
The bare "Test requirement: modes" message is too cryptic, I had to go and read the source code to understand the missing requirement. Signed-off-by: Marc Herbert <marc.herbert@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-26tests/pm_rc6_residency: Add media_rc6_residency_counter subtestDeepak S1-1/+7
Added new media_rc6_residency_subtest for chv & vlv. Signed-off-by: Deepak S <deepak.s@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-26tests/pm_rc6_residency: Fix proper residency calculationDeepak S1-1/+2
With current code we are not considering the RC6 residency during sysfs read. This is causing test to fail due to incorrect residency_accuracy check This patch consider code time spent for accuracy check Signed-off-by: Deepak S <deepak.s@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-26tests/drv_suspend: Unrename testsDaniel Vetter1-5/+5
Renaming tests massively confuses QA's test result tracking and blacklisting. So except when really good reasons are around we shouldn't do it. Here I think just adding the -hibernat suffix and leaving test names unchanged is enough. Cc: David Weinehall <david.weinehall@intel.com> Cc: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-25lib: small documentation fixesThomas Wood4-4/+4
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-25lib/tests: update .gitignoreThomas Wood1-1/+2
2015-02-25lib: print the signal name to stderr when handling a signalThomas Wood1-4/+18
Print the received signal name to stderr when handling a signal. This uses an array of handled signal names since strsignal() only provides descriptions. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-25tests: remove extra fileThomas Wood1-172/+0
Remove a file accidentally added in commit 6f582f7 (tests: Add gem_ctx_param_basic). Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-25lib: remove handled option arguments from argvThomas Wood14-26/+40
Remove options from argv that have been handled by getopt to allow additional non-option parameters to be processed in the test application. This fixes issues when using options such as --debug with tests that accept additional non-option parameters. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-25lib: use defines for igt_simple_init and igt_subtest_initThomas Wood2-38/+32
Using defines removes an extra function call and prepares for changes to the command line argument handling. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-25tests: improve pipe enumerationThomas Wood3-3/+3
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-25tests/gem_bad_blit.c : Fix dst address for Gen8 onwardsPraveen Paneri1-0/+2
Gen8 Onwards use 48 bit addressing for src and dst base addresses. This patch fixes this for destination base address. Signed-off-by: Praveen Paneri <praveen.paneri@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-24lib/igt_kms.c: remove tests dependency on VT /dev/tty0Marc Herbert1-4/+18
Required to run on any recent, freon-based and X11-free ChromeOS release. v2: - igt_debug() instead of igt_warn() - return KD_GRAPHICS instead of -1UL - print previous mode in debug statements. Among others this help a tiny bit with the now confusing debug output ("cannot change" immediately followed by a misleading "mode changed"). Signed-off-by: Marc Herbert <marc.herbert@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-24tests/drv_suspend: hibernation testDavid Weinehall3-23/+82
intel-gpu-tools currently has a bunch of tests for suspend, but currently none (that I could find) for hibernate. Attached is a rudimentary patch to add said test. It does so by repurposing the drv_suspend driver to handle both suspend and hibernate, since the difference is miniscule. I decided to split the suspend/autoresume functions in igt_aux.c though, to be able to leave the igt_system_uspend_autoresume() function unchanged (the other option would be to introduce a boolean function argument and have that decide what parameters to pass to rtcwake). The timeout passed to rtcwake probably needs tuning (it might even need to be dynamically adjusted, since the time hibernation takes varies wildly depending on the amount of non-cache memory in use). Signed-off-by: David Weinehall <david.weinehall@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2015-02-18lib: Use strtol not strtod for overiding the PCI IDChris Wilson1-1/+1
Simply to avoid the roundtrip through floating points and any extra headaches from worrying about the implications Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-18lib: Cache DRM device id to reduce number of ioctlsChris Wilson2-18/+15
The DRM device id for the igfx is fixed, since there can only be one in the system. So once we query it for the first time we can safely report that value on every subsequent request, cutting out a lot of noisy ioctls from inside tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-17lib: small documentation fixesThomas Wood2-2/+2
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-17lib: print recent log messages to stderr when a test or subtest failsThomas Wood1-3/+37
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-17lib: add a ring buffer for log entriesThomas Wood2-12/+63
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-17tests/kms_universal_plane: Fix subtest enumerationMatt Roper1-4/+5
We shouldn't use the contents of data.display to determine which pipes to run subtests on since this structure is initialized in an igt_fixture and won't contain any useful data when enumerating subtests (i.e., --list-subtests won't return anything). Instead, just assume we have three pipes in the main loop and ensure that each subtest will skip if we don't really have that many. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-02-16tools/intel_audio_dump: add support for SkylakeLu, Han1-2/+65
This patch adds support for dumping audio registers of Skylake. Signed-off-by: Lu, Han <han.lu@intel.com>
2015-02-13quick_dump: Add interrupt and PPAT registers to the SKL dumpDamien Lespiau1-0/+2
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-02-13tests/gem_ctx_param_basic: Include header, not sourceDaniel Vetter1-1/+1
Oops. Reported by Tim Gore. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-13lib/igt_gt: Document and consolidateDaniel Vetter23-246/+300
Also move forcewake and stop_rings code from igt_debugfs to igt_gt since it fits better. And move the hang injection fork helpers from igt_aux to igt_gt, too. Also push the intel_gen call into igt_hang_ring while at it. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-13doc: Consolidate naming conventions into docbookDaniel Vetter5-73/+21
Duplication just means it gets out of sync. Also update they keyword list in the Makefile, not everything was listed. And add a new "invalid" keyword. While at it update NEWS. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13tests/gem_wait: Adjust makefileDaniel Vetter1-1/+1
I've forgotten to do this in commit e4753d2d96fbb88077e70820793137f45f02c9ba Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Mon Sep 29 14:42:33 2014 +0200 tests/gem_wait_render_timeout: Convert to subtests Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13lib/igt_aux: s/swap/igt_swap/Daniel Vetter7-10/+10
It collides with the subtest naming convention glossary entry for swap. Which makes the docbook xml stuff unhappy. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13tests: Align subtest with naming conventionDaniel Vetter3-12/+12
Yeah, historically grown but we should try to be somewhat consistent. It helps with filtering testcases. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13tests/gem_ppgtt: Start rcs before bcs for context testsDaniel Vetter1-1/+1
This way the igt_require for the ctx support is hit before we've launched a bazillion threads and need to wait until they're all done. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13tests: Add invalid pad tests for ctx create/destroyDaniel Vetter2-27/+63
We've missed them, and the kernel isn't nasty enough and forgot to check them. To add these tests convert the existing create/destroy tests over to subtests. v2: Do the basic create/destroy in ctx_bad_destroy in a fixture so that all the tests skip properly. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-13tests: Add gem_ctx_param_basicDaniel Vetter5-1/+313
Boring ioctl validation. Luckily no gaps found while doing it. v2: git add ftw! v3: Fixes: - args->size is an outparam for get, adjust test. - Pick an invalid param, not an invalid ioctl number ... tsk. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-13lib/ioctl: Document ctx param functionsDaniel Vetter2-38/+63
And move them so that they're grouped with the other context wrappers. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-02-13tests/gem_reset_stat: Use new ctx helpersDaniel Vetter1-90/+27
A bit more invasive since getting rid off all the places meant to flatten some of the control flow with implicit igt_require. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13tests/gem_ctx_*: Use helpersDaniel Vetter3-48/+11
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-02-13lib/ioctl: Add gem_context_destroy helpersDaniel Vetter2-0/+34
We also need a raw version for some tests. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>