summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2014-01-28mmio: use intel_iosf.c for DPIO reads and writesJesse Barnes
This makes it a bit more like the kernel, so we can go poke at DPIO and other IOSF regs a bit more easily. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2014-01-27quick_dump: more vlv dpio regsJesse Barnes
2014-01-23intel_error_decode: Protect against missing ring registersChris Wilson
A dodgy kernel may miss printing out the ring registers leading to a FPE. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-23tools: Allow building on Android after noinst_PROGRAMS is not defined any moreTvrtko Ursulin
Looks like filter-out macro gets silently unhappy about an undefined variable. Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-20quick_dump/watermarks: lp3, misc and debugBen Widawsky
I forgot to git add this originally. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-20quick_dump/broadwell: Use haswell_otherBen Widawsky
For now, the power controls and watermarks seem to be the same offsets. So just reuse haswell_other.txt Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-20quick_dump/hsw: Watermark debugBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-20quick_dump: Allow comments in the register filesBen Widawsky
Simple addition to the parser to add the following full line comments: {';', '#', "//"} Empty lines will also be ignored Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-20quick_dump: Fix the indentationBen Widawsky
Fix the spaces to use [the python standard] 4 soft spaces for tabe. While here, add the proper vim tag so we don't do it again. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-17tools: Install them allDaniel Vetter
No reason really not too, especially since we install manpages for some of them. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66656 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-08build: Added -UNDEBUG to tools/Android.mkDevon Davies
NDEBUG is defined by default in Android and causes assert(x) to be defined as void(x). This change ensures that asserts work as expected in tools. This flag is already inside tests/Android.mk Reviewed-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Devon Davies <devon.davies@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-07tools: Remove intel_disable_clock_gatingDamien Lespiau
This tool only supports ILK. I take the fact that nobody has felt the need to update for later platform a sign it's not very useful. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-07tools: Removed unused tools/intel_iosf_read.cDamien Lespiau
Also intel_iosf_read() does not exist, and would need a bit more arguments. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-07lib: Use INSTDONE_I965 and INSTDONE_1 for gen6Damien Lespiau
The GEN6_INSTDONE_1 and GEN6_INSTDONE_2 registers are just the old INSTDONE_I965 and INSTDONE_1 registers but renamed. Let's use the old names (this is what the kernel does). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-07intel_reg: Renamed INST_DONE to INSTDONEDamien Lespiau
That's how the registers are named in the kernel defines. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-06intel_error_decode: Factor out common decoding codeDamien Lespiau
4 pieces of code were looking very similar. Let's factor out a common function in the not so unlikely case we need to tweak that code. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-12-06lib: rename some power well bit namesPaulo Zanoni
I did the same change in the Kernel a few months ago. This should help not getting confused about which bit does what. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-12-05quick_dump: Restore execture permission on quick_dump.pyVille Syrjälä
quick_dump.py execute permission was accidentally lost in: commit d56697233699844db9262a9a056b62b24b69dd39 Author: Mengdong Lin <mengdong.lin@intel.com> Date: Sun Aug 25 23:07:22 2013 -0400 quick_dump/bdw: support Broadwell in device auto-detection Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-12-05Update dpio read/write to take in extra PHY parameter.Chon Ming Lee
The extra parameter is for future platform. Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-12-05tools/quick_dump: Update Baytrail DPIO names to reflect to the driver change.Chon Ming Lee
DPIO name still using old name. Change it according to the driver name. Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-28intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variableDamien Lespiau
This is the one that already works in libdrm, so don't disappoint people coming with expectations. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-28intel_dump_decode: Actually parse the -d optionDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-20tools/reg_dumper: Add FW_BLC regsDaniel Vetter
Debugging watermark issues on gen2/3 without them is hard ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-12build: New Android makefilesOscar Mateo
These form the basis of the new Android build system. v2: As suggested by Daniel Vetter, modify compilation flags to not error on return-type and not warn on sign-compare. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-12build: list all test/tool/lib source files in their own Makefile.sourcesOscar Mateo
In this way, all source files are listed in Makefile.sources and included from Makefile.am, thus enabling the reuse from Android makefiles. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-06quick_dump/bdw: support Broadwell in device auto-detectionMengdong Lin
This patch exposes is_broadwell() to python, to be used by device auto-detection. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-06quick_dump/bdw: dump audio debug registers for Haswell and BroadwellMengdong Lin
A new file "audio_debug_haswell_plus.txt" is created to define audio debug registers for Haswell and its successors like Broadwell. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Xingchao Wang <xingchao.wang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-11-06quick_dump/bdw: dump audio configuration registers for Haswell and BroadwellMengdong Lin
A new file "audio_config_haswell_plus.txt" is created to define audio configuration registers for Haswell and its successors like Broadwell. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Xingchao Wang <xingchao.wang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-11-06quick_dump/bdw: Just basic stuff for nowBen Widawsky
Just the interrupt registers for now. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-06intel_audio_dump/bdw: dump audio M CTS readback registerMengdong Lin
This debug register provides test feedback of the audio M values (DP) or CTS values (HDMI) Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Xingchao Wang <xingchao.wang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-11-06intel_audio_dump/bdw: dump audio DP and DIP FIFO debug statusMengdong Lin
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Xingchao Wang <xingchao.wang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-11-06intel_audio_dump/bdw: dump audio chicken bit registerMengdong Lin
This patch dumps this debug register and parse the data for Broadwell. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Xingchao Wang <xingchao.wang@intel.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2013-11-06intel_audio_dump/bdw: dump debug registers for audio immediate commandsMengdong Lin
This patch dumps debug registers to check audio immediate command, response and status. The audio driver will fall back into immediate command mode if normal communication between controller and codec is dead. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Xingchao Wang <xingchao.wang@intel.com> [Ben: Small printf changes to remove compiler warning] Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-06intel_audio_dump/bdw: add support for BroadwellMengdong Lin
This patch renames Haswell audio dump function and reuses it for Broadwell. Since Haswell, audio registers are moved from the south display engine to the north display engine. And the audio register layout is same for Haswell and its successors like Broadwell. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-11-05quick_dump/vlv: add DPIO_CTL to the dumpJesse Barnes
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2013-11-01gitignore: Ignore recently introduced tools and testsDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-11-01Add VGA register read/write toolsVille Syrjälä
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-10-22build: include intel_l3_parity.h to its _SOURCES to fix make distcheckRodrigo Vivi
and make sure intel_l3_parity.h will be included in tarball. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-10-21intel_reg_dumper: fix "enable" at hsw_debug_lp_wmPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-10-21gitignore: Ignore intel_opregion_decodeDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-10-21intel_opregion_decode: decipher bclm tableJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2013-10-21intel_opregion_decode: new tool for decoding graphics opregionJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2013-10-21intel_bios_reader: dump all sections, including unknown onesJani Nikula
We still need to dump some of the known sections explicitly due to dependencies on information extracted, such as LFP data pointers and panel_type. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2013-10-21intel_bios_reader: dump all edp device info structsJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2013-10-21intel_bios_reader: prepare for dumping all sectionsJani Nikula
Dump sections through a table based on the section id. Hex dump the section. This works also for unknown sections. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2013-10-21intel_bios_reader: add size temp variable as a shorthand for finfo.st_sizeJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2013-10-21intel_error_decode: Fix X/Y fence for gen2/3Chris Wilson
2013-10-03intel_perf_counters: Add support for Gen7 platforms.Kenneth Graunke
We finally received permission to release this; the counters should be properly documented in the Haswell PRMs. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2013-09-30intel_infoframe: Display the VIC in decimalDamien Lespiau
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-23intel_l3_parity: Make compilation possible without udevBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>