summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-30testdisplay: Use DRM_MODE_FLAG_3D_MASKDamien Lespiau3-14/+6
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Remove the timing adjustements now that the kernel does itDamien Lespiau1-26/+0
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30intel_infoframe: Display the VIC in decimalDamien Lespiau1-1/+1
It's not customary to display the VIC in hexadecimal and lead me to scratch my head for a couple of seconds. Print it in decimal instead. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Test the stereo 3D modesDamien Lespiau1-3/+228
Now that modes have flags to describe which 3d formats the sink supports, it's time to test them. The new test cycles through the supported 3D formats and paint 3D stereoscopic images taken from publicly available samples: http://www.quantumdata.com/apps/3D/sample_BMP.asp Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Provide a full path when opening pngsDamien Lespiau2-2/+5
This way one doesn't have to be in tests/ for testsdisplay to be able to open pass.png. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Free the array of connectorsDamien Lespiau1-0/+2
That's an array we allocated earlier in this function. Let's be symetric and free it once done. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Untangle dump_info() from the main testing loopDamien Lespiau1-11/+19
-i is just supposed to show some information about the DRM resources. Right now it works in a quite convoluted way. Untangle this to call dump_info() when -i is given, exit the program and be done with it. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Fix CRTS typoDamien Lespiau1-1/+1
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Properly handle the life cycle of framebuffersDamien Lespiau1-12/+12
When cycling through the modes, let's make sure to free the previous framebuffers. This is the perfect occasion to use kmstest_remove_fb(). Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Map the fb inside paint_color_key()Damien Lespiau1-5/+7
So the code for this is self-contained. This goes along the way of reducing the number of global variables in testdisplay. Take the opportunity to unmap the fb after use as well. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Move the code sanitizing depth into main()Damien Lespiau1-7/+8
It'll be shared by the set_mode() and set_3d_mode() functions. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30lib: Add a helper to write a png from a struct kmstest_fbDamien Lespiau2-0/+12
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30lib: Split create_image_surface() out of create_cairo_ctx()Damien Lespiau1-2/+11
So we can use it in the next commit. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30lib: Add a helper to paint a PNG using cairoDamien Lespiau2-0/+30
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30lib: Dump information about the supported 3D stereo formatsDamien Lespiau2-2/+44
When dumping the details of a mode, let's add the 3D formats the mode supports. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Add left/right images of a lovely sceneDamien Lespiau3-1/+1
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Distribute pass.pngDamien Lespiau1-1/+4
2013-09-30tests/gem_evict_everything: tune down forked subtestsDaniel Vetter1-1/+1
On new machines with gobloads of memory and cpu cores, but slow swap on spinning rust we need to limit the runtime a bit for sanity. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-25tests: use igt_assert/igt_require moreDaniel Vetter25-363/+146
With the new _f variants we can replace almost all of them. Also remove a ton of checks for argc != 1, they're a bit useless ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-23intel_l3_parity: Make compilation possible without udevBen Widawsky1-0/+5
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-23tests/pc8: fix supports_pc8_plus_residenciesPaulo Zanoni1-3/+3
Bug caused by bad copy+paste+replace. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-09-22overlay: Some very raw usage informationChris Wilson1-1/+16
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-22NEWS: Start with release notes for 1.5Daniel Vetter1-1/+11
Also extend the underlying for 1.4 to the full lenght ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-20intel_l3_parity: Support a daemonic modeBen Widawsky4-5/+186
v2: Add a comment explaining the dangers of directly accessing the DFT register (Daniel) Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: Support error injectionBen Widawsky2-3/+68
Haswell added the ability to inject errors which is extremely useful for testing. Add two arguments to the tool to inject, and uninject. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: Actually support multiple slicesBen Widawsky1-17/+28
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: slice supportBen Widawsky1-41/+65
Haswell GT3 adds a new slice which is kept distinct from the old register interface. Plumb it into the code, though it's only 1 slice still. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: Hardware info argumentBen Widawsky1-4/+20
Add a new command line argument to the tool which will spit out various parameters for the giving hardware. As a result of this, some new defines are added to help with the various info. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: Use getopt for the l3 parity toolBen Widawsky2-25/+109
Add new command line arguments in addition to supporting the old features. This patch only introduces one feature, the -e argument to enable a specific row/bank/subbank. Previously you could only enable all. Otherwise, it has what you expect (we prefer -r -b -s for specifying the row/bank/subbank). Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: Assert all GEN7+ supportBen Widawsky1-5/+4
v2: Don't assert for Valleyview (Bryan) Rework code to be a bit more readable. CC: "Bell, Bryan J" <bryan.j.bell@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-20intel_l3_parity: Fix indentationBen Widawsky1-6/+6
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-09-19lib/drmtest: Improve printf-like igt_skip_on/requireDaniel Vetter2-12/+8
Ben Widawsky suggested to use vasprintf, which perfectly fits the bill. Also fix the logic conversion bug in tests/gem_storedw_batches_loop that crept in again :( Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-19lib/drmtest: igt_assert|require with format stringsDaniel Vetter3-19/+69
v2: Add a comment about the pitfalls around va_list handling. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-19tests/gem_stored_batches_loop: use igt_assert moreDaniel Vetter1-35/+12
Terser code ftw! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-19tests/gem_reloc_overflow: New subtest for overflowing buffer_countDaniel Vetter1-1/+48
Luckily everything seems to be fine. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-19tests/gem_reloc_overflow: Extract reloc_testsDaniel Vetter1-48/+50
I'll be adding more stuff soon ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-18tests/gem_storedw_batches_loop: Add testcase to check secure dispatchDaniel Vetter2-37/+48
v2: Use the mrb_exec function since otherwise we can't pass flags. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-17tests/gem_persistent_relocs: Tune down the test a bitDaniel Vetter1-3/+5
Takes too long. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-17tests/gem_fenced_exec_thrash: Add interruptible and busy-load subtestsDaniel Vetter1-6/+81
Usual progression for gem tests up the nasty-scale. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-17lib/drmtest: check that igt_exit is called for subtest testsDaniel Vetter1-0/+11
I get this wrong for almost every conversion to subtests ... v2: Don't install the check when just listing subtest names. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-17tests/gem_fenced_exec_thrash: New subtests that uses all fencesDaniel Vetter2-13/+22
igt runs under the assumption that nothing else (besides maybe fbcon) is using the gpu. So we should be able to use all fences. Keep the conservative testcase around though in case someone has a broken setup. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-17tests/*: scrap get_num_fencesDaniel Vetter2-26/+4
Just use gem_available_fences directly. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-16intel_audio_dump/hsw: rename some audio configuration registers for HaswellMengdong Lin1-401/+510
For Haswell, some audio configuration registers have changed their name and some bit definitions. This patch applies the changes, and uses subfunctions to parse registers for code reuse. Here is the name change list: Audio configuration: AUD_CONFIG_x to AUD_TCx_CONFIG Audio Misc Control: AUD_MISC_CTRL_x to AUD_Cn_MISC_CTRL Audio M & CTS programming enable: AUD_CTS_ENABLE_x to AUD_TCx_M_CTS_ENABLE Audio EDID data block: AUD_HDMIW_HDMIEDID_x to AUD_TCx_EDID_DATA Audio Widget Data Island Packet: AUD_HDMIW_INFOFR_x to AUD_TCx_AUD_INFOFR Audio Pipe and Converter Configs: AUD_PORT_EN_HD_CFG to AUD_PIPE_CONV_CFG Audio Digital Converter: AUD_OUT_DIG_CNVT_x to AUD_Cn_DIG_CNVT Audio Stream Descriptor Format: AUD_OUT_STR_DESC_x to AUD_Cn_STR_DESC Audio Connect List Entry & Length: AUD_PINW_CONNLNG_LIST_x to AUD_TCx_PIN_PIPE_CONN_ENTRY_LNGTH Audio Connection Select Control: AUD_PINW_CONNLNG_SEL to AUD_PIPE_CONN_SEL_CTRL Audio DIP & ELD Control State: AUD_DIP_ELD_CTRL_ST_x to AUD_TCx_DIP_ELD_CTRL_ST Audio HDMI FIFO status: AUD_HDMIW_STATUS to AUD_HDMI_FIFO_STATUS NOTE: For Tx, x = A/B/C, meaning Transcoder A/B/C. For Cn, n = 1/2/3, meaning audio converter 1/2/3. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-09-16intel_audio_dump/hsw: align code with tabMengdong Lin1-1396/+1396
This patch makes the file to follow kernel coding style: - replace leading spaces with tabs for alignment - fix some minor format issues But the max length of a line is set to 120 characters for readability on high resolution displays. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-09-16intel_audio_dump/hsw: remove misuse of PCH transcoder configuration registerMengdong Lin1-10/+0
The PCH transcoder config register (PCH_TRANS_CONF, 0xf0008) is not the correct config register for transcoder A, B or C. This register is in PCH and for CRT display, nothing to do with display audio. So This patch removes misuse of it as config register for transcoder A/B/C. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-09-16bump version to 1.4 and add the release dateintel-gpu-tools-1.4Rodrigo Vivi2-2/+2
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-09-16NEWS: Fix dates of previous releasesRodrigo Vivi1-2/+2
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-09-16overlay: fix link error due to missing -lrtRodrigo Vivi1-0/+2
CC: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-09-13lib/drmtest: ducttape over fork raceDaniel Vetter1-1/+13
Whatever the reason (and I've thought there isn't one) if we fork and kill right away the child seems to not reliably die. We can work around this little race by forcing the default SIGQUIT handler. This should break anything since we reset our atexit handling anyway, so if the helper needs any atexit handling the special signal helpers will be reinstated. Note that inserting sufficient amounts of printf between the fork and kill makes this unnecessary. While add it also add the retry loop for the waitpid call, in case there's another guy constantly interrupting us. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-13lib: add test for igt_fork_signal_helperDaniel Vetter3-1/+44
If we're really fast we've trying to stop the signal helper again we somehow race somewhere and it'll never happen. So add a testcase for this. Since I expect more to come for testsuite tests add a separate make target for them. Run tests with $ make check Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>