summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2014-03-19quick_dump: gen8 private PATBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-03-14intel_audio_dump: fix CTS/M value indexMengdong Lin
This patch fixes the reversed CTS/M value index when dumping the 'audio M/CTS programing enable' register. 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>
2014-03-06intel_audio_dump: add support for ValleyviewMengdong Lin
This patch adds support for dumping audio registers of Valleyview, by reusing Ironlake code with a different base address and pipe number. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-03-06intel_audio_dump: adjust code alignmentMengdong Lin
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-03-06intel_audio_dump: share common audio dump code for Ironlake, Haswell & BroadwellMengdong Lin
Most audio config registers of Ironlake, Haswell and Broadwell are almost same although the register names or some bit fields have little difference. And HSW and BDW already share their code. This patch further shares code for ILK and HSW/BDW: - ILK and HSW/BDW define their own base address to dump audio & display registers. - Small functions to dump a specific register are defined and shared. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-03-06intel_audio_dump: define get_num_pipes() to get number of pipes for a device IDMengdong Lin
It's for future code sharing because some registers define their bit fields according to the number of pipes. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-03-06intel_audio_dump: define IS_HASWELL_PLUS to cover Haswell and its successorsMengdong Lin
A macro IS_HASWELL_PLUS(devid) is defined to cover Haswell and its successors, for code sharing. Now it covers HSW and BDW. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-03-06intel_audio_dump: move definitions of transcoder/pipe/port/converter earlierMengdong Lin
Move these enum definitions earlier for future code sharing. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-03-06intel_audio_dump: support using base address plus an offset to dump registersMengdong Lin
Layout of display and audio registers can be same for different Intel GPUs. For code sharing, this patches defines functions to - set the base address of display and audio registers - dump registers using the base address and an offset Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
2014-02-21quick_dump: Add missed broadwell autodetectBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-04android: Change tests & tools directory to use the lib directoryRafael Barbalho
Instead of recompiling the lib directory for every tool or tests we can just re-use the static library. This also has the nice side effect of fixing the android "mm" command to allow android users to only rebuild the local changes in either the test or tools directory. Signed-off-by: Rafael Barbalho <rafael.barbalho@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-04android: Clean-up common makefile directivesRafael Barbalho
All the Android.mk files had the same directives to find the path of libdrm & libpciaccess. These are no longer required as the android system now allows the libraries being used to export include paths to dependant modules & programs. Signed-off-by: Rafael Barbalho <rafael.barbalho@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-02quick_dump/broadwell: Add gen7 ring mode registersBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump/haswell: Add gen7 stuff + VECS_MODEBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump/gen7: Add other GFX_MODE registersBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump: Add a file argumentBen Widawsky
-f, or --file will simply dump the file in the specified format. All other options will be skipped. This is helpful when one wants to create their own list for temporary debug, or if one requires a subset of registers to work around things like fused off PCH. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump: Refactor to allow future codeBen Widawsky
Extract everything possible, and create a main function which is pretty darn simple. The goal is to make the various paths the program can take based on command line options (one more is coming) more decipherable. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-28dpio: make dpio reg read/write output like normal reg read/write outputJesse Barnes
Just for consistency. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
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>