summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2013-03-04build: Guard the inclusions of config.h with HAVE_CONFIG_HDamien Lespiau
autoconf can be configured to not generate a config.h but to give the defines with command line arguments instead. In this case, there's no config.h to include. To work in both cases autoconf adds a HAVE_CONFIG_H define on the command line to signal there's a config.h to include. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-02-21quick_dump: prettier printingBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-08quick_dump: Makefile.am best practices and fix distcheckMatt Turner
A few changes - Put CPPFLAGS in AM_CPPFLAGS instead of a per-target CFLAGS var; - Use _LIBS/_CFLAGS from pkg-config instead of hard-coded values; - List non-generated scripts in dist_bin_SCRIPTS; - Add chipset.py to the run that implicitly generates it, which fixes distcheck. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: chdir us to where the text files areBen Widawsky
This is useful if you run out of the quick_dump directory. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: Give dumper an AM_CONDITIONALBen Widawsky
It may sometimes be undesirable to build or install the quick dumper. This was requested by Damien. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: Use the register access libraryBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: Connect libpciaccess and other utilsBen Widawsky
Make a register access library with sample to do register reads Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: SWIG chipset interfaceBen Widawsky
This isn't strictly necessary it would have been easy enough to simply convert intel_chipset.h but this should be nice prep work for directly doing MMIO. It also serves as a nice review point. It's demonstrated with an autodetect function in the script. That autodetect has a hardcoded path that shouldn't be there, but it will go away in the next patch when we can properly link in libpciaccess. Thanks to Matt for helping whip the automake stuff into shape. v2: Switch to $(top_srcdir) Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: vlv supportBen Widawsky
This patch includes a patch from Jesse which removed a bunch of VLV registers which were useless in my original RFC. Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: gen7 supportBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: gen6 supportBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-07quick_dump: A dump utility different than reg_dumperBen Widawsky
This is the base tool for quick dump. At it's heart, quick dump is simply a basic text parsing thingie which plugs into intel-gpu-tools to do something similar to intel_reg_dumper. The format for the register definition files is very open, so it's just something simple for now. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-04intel_gtt: Fix PTE offsetsBen Widawsky
Vincent sent me a patch which I think didn't go far enough. Honestly, I don't even know what this tool does. Reported-by: Cheah, Vincent Beng Keat <vincent.beng.keat.cheah@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-04intel_error_decode: Don't barf on a malformed PCI ID lineChris Wilson
Whoops, someone added UTS_RELEASE with no newline before PCI ID which upsets our naive parser.
2013-01-06Fix out of bounds memory accessThomas Jarosch
cppcheck reported: [tools/intel_infoframes.c:836]: (error) Width 31 given in format string (no. 1) is larger than destination buffer 'option[16]', use %15s to prevent overflowing it. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-13tools: intel_gpu_abrt bug report template.Rodrigo Vivi
checking if file has been generated and output a template for a good bug report
2012-12-13tools: intel_gpu_abrt checking for root accessRodrigo Vivi
needed by other igt tools that are collecting more usefull information.
2012-12-13tools: intel_gpu_abrt collecting more useful infoRodrigo Vivi
2012-12-13tools: intel_gpu_abrt "get" functionRodrigo Vivi
A function to make it easy to collect any file or directory needed later.
2012-12-01tools/intel_reg_dumper: add some cpt/ppt debug regsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-10-10fix warn in intel_reg_snapshot: ignoring return value of 'write'Imre Deak
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-10-10fix warn in intel_error_decode: ignoring return value of 'asprintf'Imre Deak
Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-27intel_infoframes: Dump HDMI vendor infoframesDamien Lespiau
Those infoframes are programmed when using stereo 3D modes. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-07tools: Update gitignore with intel_dpio_{read, write}Damien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Add more information when dumping single registersDamien Lespiau
Now that we can dump registers giving a partial name, adding more information about the dumped registers seems useful. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Allow partial register names on the command lineDamien Lespiau
Let people give just a part of the register name. Handy when not remembering the exact name or if the register is defined with a different name than the one in the spec being looked at. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Also decode registers given by addressDamien Lespiau
One can now give an address instead of a register name to decode a single register. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Add a single register decode modeDamien Lespiau
From time to time, one would like to decode a register value that have been captured at a certain point in time (and say printed out with a printk). intel_reg_dumper has all the knowledge to do that and this patch adds a way to ask it to decode a value. Example usage: $ ./tools/intel_reg_dumper PCH_PP_CONTROL 0xabcd0002 PCH_PP_CONTROL: 0xabcd0002 (blacklight disabled, power... v2: friendlier invocation (Chris Wilson) v3: remove unecessary casts and use strcasecmp (Jani Nikula) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-30clang: Fix static analysis warnings from clangBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-30clang: Fix warnings found through clang.Ben Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-27intel_gtt: Harden against changes to kernel mappings of the GTTChris Wilson
Rather than use the common mmio segment which will be in future restricted to just the registers and so exclude the GTT portion on all architectures, explicitly mmap the GTT ourselves. Repeat this mmapping with a couple of flags until we matching the existing kernel mapping. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-25s/NO_PID/NOP_IDDaniel Vetter
Alan typo'ed it, I've failed to notice :(
2012-08-24Rename NOPID to NO_PID to avoid conflict with Solaris NOPIDAlan Coopersmith
Solaris <sys/types.h> already has #define NOPID (pid_t)(-1) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-23intel_reg_read: use strtol instead of atoiBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-23intel_reg_read: support -c option to read multiple dwordsBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-21tools: Added intel_dpio_read and intel_dpio_writeVijay Purushothaman
In Valleyview the DPLL and lane control registers are accessible only through side band fabric called DPIO. Added two tools to read and write registers residing in this space. v2: Moved the core read/write functions to lib/intel_dpio.c based on Ben's feedback Signed-off-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-15intel_audio_dump: add Haswell audio dump supportWang Xingchao
Add Haswell audio registers definition and dump support. Signed-off-by: Wang Xingchao <xingchao.wang@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-15intel_audio_dump: fix wrong port definitionWang Xingchao
there're three Ports B/C/D used for selection by each transcoder A/B/C. Signed-off-by: Wang Xingchao <xingchao.wang@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-08tools/reg_dumper: really dump pipe C regsDaniel Vetter
Not just a copy of pipe B. Meh. Also kill a few redudant #define for pipe B - they match pipe A.
2012-08-07tools/reg_dumper: dump pipe C regsDaniel Vetter
Also reorder the pipe B regs a bit to be consisten with pipe A.
2012-06-21intel_reg_dumper: use intel_register_access_init/finiEugeni Dodonov
We need to hold forcewake lock in order to be able to read GT registers. Otherwise, when the GPU is in RC6 mode, we'll read all zeros. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-06-13intel_reg_dumper: dump more PM registersEugeni Dodonov
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-06-07intel_reg_dumper: dump pre-pch-split blc regsDaniel Vetter
2012-05-31cleanups after l3_parity mergeDaniel Vetter
- call it sysfs_l3_parity for more consistency - add .gitignore for intel_l3_parity
2012-05-31tools/dpf: Tool to read and write l3 remap registers.Ben Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-05-22lib: extract kmstest_create_fbDaniel Vetter
We should get more kms tests soon, and not needing to copy-paste a nice test pattern should be useful. That establishes a firm depency of i-g-t on cairo over everything, but I don't care so much about that. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-05-16intel_infoframes: options -p and -P require an argumentPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2012-05-16intel_gpu_top: allow to work on Gen7Eugeni Dodonov
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 Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-08tools: add Haswell registers into intel_reg_dumperEugeni Dodonov
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>