summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-07trying to work around gen7 hangs.HEADmasterEric Anholt1-0/+4
2012-02-20gem_ringfill: Make it fill up the ring once again.Eric Anholt1-2/+5
2012-02-20gem_ringfill: Make this actually test that all the batches executed.Eric Anholt1-4/+61
I was looking into some strange behavior in Mesa that looks like batches maybe being skipped, but this test didn't catch it.
2012-02-20intel_reg_dumper: Add dumping of GPU turbo regs.Eric Anholt2-0/+51
I was interested in finding why my IVB system is not getting GPU turbo after suspend/resume. The piece that looks weird to me is that INTERRUPT_THRESHOLD is sitting at 0, whereas pre-suspend it's 0x12000000.
2012-02-20reg_dumper: Refactor duplicated reg-dumping code.Eric Anholt1-56/+17
2012-02-20instdone: Add support for one of the IVB instdone regs.Eric Anholt1-1/+23
2012-02-20instdone: Fix fallthroughs to invalid instdone bits on newer hardware.Eric Anholt1-1/+3
2012-02-16tests/intel_reg_dumper: s/pipe/disp_pipe/ to shut off the compilerDaniel Vetter1-22/+22
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16Add intel_panel_fitter toolPaulo Zanoni5-1/+398
The tool allows you to change the panel fitter settings, so you can change the size of the screen being displayed on your monitor without changing the real pixel size of your desktop. The biggest use case for this tool is to work around overscan done by TVs and some monitors in interlaced mode. v2: reviews by Ben, Chris and Rodrigo - don't install - use intel_register_access_init - check for maximum X and Y values - add a disclaimer saying this is not the real solution - print less when pf is disabled and option '-l' is used Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16reg_dumper: change and fix behavior when using dump filesPaulo Zanoni2-14/+64
Before this patch, handling dump files was wrong: - when HAS_PCH_SPLIT was specified, intel_reg_dumper segfaulted inside intel_check_pch() - the "devid" variable was used but not set - there was no way to specify the device id of the machine used to generate the dump file This patch fixes this behavior with the following changes: - the HAS_PCH_SPLIT variable is gone - there is now a '-d' argument that can be used to specify the device id used to interpret the results - when a dump file is used but the '-d' argument is not provided, an Ironlake machine is assumed Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16reg_dumper: add interlaced information to TRANSCONFPaulo Zanoni1-3/+22
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16reg_dumper: add interlaced and rotation information to PIPECONFPaulo Zanoni1-3/+62
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-15tests: fixup storedw testsDaniel Vetter3-6/+6
We need to use _INSTRUCTION as the reloc domain because otherwise the ppgtt pipe_control w/a for snb won't kick in and the test fails. The storedw tests for blt and bsd are still disabled because the corresponding patch to flag ppgtt support isn't merged upstream yet. Without ppgtt these hang my snb here. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-15test/gem_tiled_pread_pwrite: add progress indicatorDaniel Vetter1-0/+2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-12remove old .c filesDaniel Vetter2-1328/+0
Oopps, I've forgotten about this in commit 9b32894937af27f9ba95ea572ac857d376fe9034 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Sat Feb 11 16:52:26 2012 +0100 prepend 'intel_' to installed programms Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-11lib/drmtest: fixup copy&paste printf format issueDaniel Vetter1-2/+1
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-11prepend 'intel_' to installed programmsDaniel Vetter4-2/+1330
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-11Remove pointless Android ifdefs for sys/fcntl.h.Kenneth Graunke3-13/+0
On my system, sys/fcntl.h contains exactly one line: #include <fcntl.h> So there's really no need to #ifdef it. Also, intel_mmio.c already included <fcntl.h>; there's no need to include it twice. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-10Added support for AndroidSateesh Kavuri4-0/+543
Added the Android.mk file as per Android make system. Also had to modify the headers with the proper location for fcntl.h as per the Android bionic headers location Signed-off-by: Sateesh Kavuri <sateesh.kavuri@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-09Release 1.21.2Daniel Vetter1-1/+1
2012-02-09lib/rendercopy: fixup make distcheckDaniel Vetter4-4/+4
And complete the gem_stress->rendercopy rename that I've forgotten about. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-08Fix program name in intel_bios_dumper.man SYNOPSISAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-02-08Update generation checks to provide basic support for Ivybridge.Kenneth Graunke1-2/+3
There may be some updates required, but assuming Ivybridge is similar to Sandybridge is a decent start; previously it fell through to the Gen2/3 case and nothing worked. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-08add sprite demo from Armin ReeseDaniel Vetter6-2/+1234
Also fixed up the copyright header a bit. No comments on the coding styled used ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-06Move free(cmd) to after last use of cmd in intel_gpu_topAlan Coopersmith1-1/+1
Error: Use after free (CWE 416) Use after free of pointer 'cmd' in call to fprintf at line 496 of tools/intel_gpu_top.c in function 'main'. Previously freed at line 491 with free. [ This bug was found by the Parfait 0.4.2 bug checking tool. For more information see http://labs.oracle.com/projects/parfait/ ] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-06tests/testdisplay.c: rewite function dump_connectors and dump_crtcs.Yi Sun1-11/+26
Replace the globe variable drm_fd with local variable passed from parameter. Signed-off-by: Yi Sun <yi.sun@intel.com> [danvet: fixup whitespace] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-06tests/testdisplay.c: Fix the black screen issue while force mode.Yi Sun1-25/+12
Replace the 8 globe force mode variables with a struct drmModeInfo variable. Next step, we could reduce the number of globe veriables, to be convenient to call the functions. Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-31gem_partial_pwrite_pread: add progress indicatorDaniel Vetter1-3/+10
Without optimized pread/pwrite this test takes forever. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-27intel_reg_dumper: add TRANS_VSYNCSHIFTDaniel Vetter2-0/+6
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-25intel_reg_write: use register access init/finiBen Widawsky1-1/+2
This will do the proper forcewake stuff. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-01-25intel_reg_read: use register access init/finiBen Widawsky1-1/+3
This will do the proper forcewake stuff. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-01-25mmio: refactor reg init/finiBen Widawsky1-6/+11
Rearrange register access init and fini so that we properly accomodate platforms without forcewake. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-01-25i-g-t: silence -WinlineBen Widawsky1-0/+1
In this case, the code already has a comment about the problem. We don't need to flood the build with this less than useful message. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-01-25intel_bios_reader: Sanitize input to ensure all data blocks are within boundsChris Wilson1-43/+52
Running intel_bios_reader upon itself causes the reader to crash and burn. It obviously finds a VBT signature inside the binary, but then does not rigorously check that all data blocks are valid before dereferencing them. Reported-by: Emanuel Bronshtein Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45205 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-01-24drmtest: add progress indicatorDaniel Vetter3-0/+18
Some test that trash the aperture necessarily need to take forever, so add a little progress indicator to keep worried minds at peace. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24tests: add gem_cs_prefetchDaniel Vetter2-0/+168
Tested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24intel_error_decode: fixup glibc free warningDaniel Vetter1-1/+1
Usually some random stack garbage doesn't equal some other random stack garbage, leading to the filename != path check succeeding. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24Add Solaris implementation of intel_get_total_swap_mb()Alan Coopersmith2-1/+62
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24Make benchmarks also link against libpciaccessAlan Coopersmith1-1/+1
Fixes Solaris build error on build of intel_upload_blit_large: Undefined first referenced symbol in file pci_device_probe ../lib/.libs/libintel_tools.a(intel_pci.o) (symbol belongs to implicit dependency libpciaccess.so.0) pci_system_init ../lib/.libs/libintel_tools.a(intel_pci.o) (symbol belongs to implicit dependency libpciaccess.so.0) pci_device_find_by_slot ../lib/.libs/libintel_tools.a(intel_pci.o) (symbol belongs to implicit dependency libpciaccess.so.0) ld: fatal: symbol referencing errors. No output written to intel_upload_blit_large Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24testdisplay: make udev optionalDaniel Vetter2-2/+20
Hopefully this makes Solaris happy. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24testdisplay: extract hotplug codeDaniel Vetter4-88/+177
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24lib: forcewake is gen6+Daniel Vetter1-2/+2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-23tests/gem_tiled_swapping: be more conservative with the swap requirementsDaniel Vetter1-0/+5
Blew up and angered the OOM killer on one of my machines. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22tests: add gem_tiled_swappingDaniel Vetter5-0/+153
Also add a drmtest_exchange_int helper, might come handy at other places. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22lib: extract drmtest_permute_arrayDaniel Vetter3-15/+22
Lots of tests need to create havoc to LRUs in the kernel or otherwise need to shuffle things around a bit. So make a small array permutation function available. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22lib: add intel_get_total_swap_mbDaniel Vetter2-0/+22
Test that try to exercise the swap paths need to check whether swap is available, otherwise they'll just oom. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22Revert "tests/gem_tiled_pread_pwrite: actually try to use more than total ram"Daniel Vetter1-1/+1
This test is actually not really designed to test swap. This reverts commit 6d755c39d38e9f0e5a991933cc82e015d1ccd272. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22tests/gem_tiled_pread_pwrite: actually try to use more than total ramDaniel Vetter1-1/+1
Luckily there's usually enough other stuff around to waste the last few mb ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-21intel_audio_dump: show more AUD_CONFIG bitsWu Fengguang1-0/+35
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-21intel_audio_dump: fix missing Audio DIP tabsWu Fengguang1-3/+3
This makes the SNB/IVY Audio DIP values aligned with others. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>