summaryrefslogtreecommitdiff
path: root/tools
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-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 Dodonov1-0/+68
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-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-25intel_infoframes: add support for Gen 4Paulo Zanoni1-54/+146
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-13Add tools/intel_infoframesPaulo Zanoni3-0/+1052
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-03-20update .gitingoreDaniel Vetter1-0/+1
2012-03-19intel_gpu_top: Trust the register access is safeChris Wilson1-1/+1
Fixes intel_gpu_top on gen3 which otherwise refuses to do mmio. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19decode: Use the correct start mask for gen3 fence registersChris Wilson1-1/+1
A cut'n'paste error from gen2 apparently. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-13intel_reg_read: add a flag to simplify bit decodingEugeni Dodonov1-2/+23
This allows to specify '-d' parameter which will decode individual bits in each register being read. The register bits are printed horizontally for space reasons. This requires more than 80x25 terminal to see them all. An alternative solution would be to print them vertically, but this will become much more difficult to read when printing multiple registers at the same time. v2: fix spacing to get us a bit closer to the code nirvana. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-03-13intel_reg_read: support reading multiple registersEugeni Dodonov1-5/+7
The registers must be passed on the command line and will be read sequentially, one at a time. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-03-13intel_reg_read: add support for getoptEugeni Dodonov1-9/+35
This will allow us to pass more options to it in the future. v2: fix whitespacing issues and improve scary warning text as suggested by Paul Menzel. Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-02-22intel_reg_dumper: Add dumping of GPU turbo regs.Eric Anholt1-0/+20
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-22reg_dumper: Refactor duplicated reg-dumping code.Eric Anholt1-56/+17
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 Zanoni3-1/+347
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 Zanoni1-7/+48
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-12remove old .c filesDaniel Vetter1-106/+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-11prepend 'intel_' to installed programmsDaniel Vetter2-1/+107
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-01-27intel_reg_dumper: add TRANS_VSYNCSHIFTDaniel Vetter1-0/+3
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-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-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-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>
2012-01-12tools: use correct src and build locationGaetan Nadon1-39/+32
Headers are found under top_srcdir/ Headers are CPP flags, not C Flags libintel_tools.la is located in top_builddir. Use dist_bin_SCRIPTS so it is included in tarball Line-up the line continuation characters Acked-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2012-01-09tools/intel_stepping: fixup new warningsDaniel Vetter1-12/+12
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_gtt: fixup new warningsDaniel Vetter1-1/+0
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_reg_dumper: fixup new warningsDaniel Vetter1-112/+111
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09remove tools/intel_decodeDaniel Vetter3-2972/+2
Everyone's using the libdrm decoder now. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_gpu_top: fixup new warningsDaniel Vetter1-4/+5
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_dump_decode: use libdrm decoderDaniel Vetter1-12/+20
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_bios_reader: fixup new warningsDaniel Vetter1-10/+10
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_bios_dumper: fixup new warningsDaniel Vetter1-10/+10
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_audio_dump: fixup new warningsDaniel Vetter1-13/+13
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_error_decode: fixup new warningsDaniel Vetter1-11/+10
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_error_decode: convert over to libdrm decoderDaniel Vetter1-7/+22
Note that a per-ring error decode state would make more sense - this way we could better decode the ring head and tail. But our current head tracking is already lame (we need the kernel to also dump the ringbuffer head/tail first, not just acthd), so I didn't bother. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-08List out array values instead of using gcc range extensionAlan Coopersmith1-2/+7
Required to compile with Solaris Studio cc compiler. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-08Solaris defines struct winsize in termios.hAlan Coopersmith1-0/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-04config: use project wide xorg warnings variableGaetan Nadon1-1/+1
Use CWARNFLAGS as in all of xorg. There seems to be no reason why this module should be different. The warnings were updated recently for those who install the latest util-macros. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-04Use standard .gitignore file and layoutGaetan Nadon1-0/+20
Reusing xorg code saves maintenance in the long term. Now that m4/.gitignore is removed, the -I m4 ${ACLOCAL_FLAGS} must be removed to avoid build breakage as m4 is generated and not part of the git source. Acked-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-03tools/intel_reg_dumper: retrieve rc6 residency valuesEugeni Dodonov1-0/+4
This allows to check if rc6 works, and how long have we been in each state. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-01-03tools/intel_reg_dumper: Add support for debug registerEugeni Dodonov1-0/+20
Right now, we only check for hardware DRRS support. But much more can be done with it. Some day. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-01-03intel_audio_dump: show Gamut Metadata DIPWu Fengguang1-1/+1
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>