summaryrefslogtreecommitdiff
path: root/tools/quick_dump
AgeCommit message (Collapse)AuthorFilesLines
2014-11-06tools/quick_dump: don't include generated sources in the distributionThomas Wood1-5/+6
This also ensures that "make dist" works even if SWIG is not available. BUILT_SOURCES is not required because the files are already explicit dependencies of other rules. v2: make sure SWIG is not invoked with the incorrect output filename Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-10-17quick_dump: fix distcheckThomas Wood1-1/+1
Commit 711a17a (quick_dump: Move base_display.txt to indivual platforms) renamed base_display.txt to common_display.txt, but didn't update Makefile.am accordingly. Since common_display.txt is now included in the platform files, it is automatically included in $(QUICK_DUMP_EXTRA_DIST) and therefore just the reference to base_display.txt needs removing. Cc: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-10-08quick_dump: Drop common_display.txt from VLV/CHVDamien Lespiau2-2/+0
Those registers are big core registers and weren't really relevant for VLV/CHV. Drop them from the dump then. Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-10-06quick_dump/skl: Make quick_dump SKL awareDamien Lespiau4-0/+10
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-10-06quick_dump/skl: Add some display registersDamien Lespiau1-0/+285
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-10-06quick_dump: Move base_display.txt to indivual platformsDamien Lespiau7-0/+6
SKL will have a whole separate display regs file, so merge base_display.txt into each platform file. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-10-06quick-dump: Make quick dump link against libintel_toolsDamien Lespiau2-21/+8
Because quick-dump was only selecting a few files in lib/ and we move stuff around and/or add new dependencies we were failing to provide the necessary symbols to the shim library providing python bindings. And so we had a run-time error: Traceback (most recent call last): File "./tools/quick_dump/quick_dump.py", line 17, in <module> import chipset File "/home/damien/gfx/sources/intel-gpu-tools/tools/quick_dump/chipset.py", line 28, in <module> _chipset = swig_import_helper() File "/home/damien/gfx/sources/intel-gpu-tools/tools/quick_dump/chipset.py", line 24, in swig_import_helper _mod = imp.load_module('_chipset', fp, pathname, description) File "/usr/lib64/python3.3/imp.py", line 183, in load_module return load_dynamic(name, filename, file) ImportError: /home/damien/gfx/sources/intel-gpu-tools/tools/quick_dump/_chipset.so: undefined symbol: kmstest_pipe_name So, let's simplify maintainance and just link against the library we're building and using elsewhere. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-07-25quick_dump: fix distcheckThomas Wood1-1/+1
version.h is now generated in the libs directory, so make sure it is correctly included in the compiler flags. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-06-12quick_dump: read the architecture files for items to add to EXTRA_DISTThomas Wood1-5/+1
Each architecture file contains a list of the text files it requires, so use this to add to the list of files to distribute. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-06-09quick_dump: Fix vlv file names on Makefile.amRodrigo Vivi1-1/+1
2014-06-03quick_dump: increase reg name column widthImre Deak1-3/+3
Needed by the new long audio register names. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: vlv: remove redundant base file specificationsImre Deak1-4/+0
The registers in these files are included in the dumps for all platforms by default, so no need to specify them explicitly. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: vlv: move flisdsi register group to its logical placeImre Deak1-1/+1
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: vlv: add missing dpio phy registersImre Deak3-62/+199
Also move the phy register block to its logical place. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: vlv: add missing display registersImre Deak3-98/+183
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: chv: add misc gen7 GT registersImre Deak1-0/+1
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: chv: add dsi (mipi) registersImre Deak1-0/+1
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: vlv: clean up dsi (mipi) registersImre Deak1-108/+108
Split out the base offset into the third argument and rename MIPIB to MIPIC to match the display cluster register HAS. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: chv: add full dpio phy dumpsVille Syrjälä3-0/+610
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2014-06-03quick_dump: chv: add display registersVille Syrjälä5-0/+732
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [imre: add audio regs] Reviewed-by: Imre Deak <imre.deak@intel.com>
2014-06-03quick_dump: chv: add detection supportVille Syrjälä3-0/+9
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2014-06-03quick_dump: add support for accessing the dpio phy 2 registersVille Syrjälä1-0/+2
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2014-06-03quick_dump: allow passing display base as the third argumentImre Deak1-0/+2
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2014-06-03quick_dump: pass register offsets as intVille Syrjälä2-14/+10
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [imre: fix s/regi/intreg/ typo] Reviewed-by: Imre Deak <imre.deak@intel.com>
2014-06-03quick_dump: fix typo breaking dpio reg dumpsImre Deak1-1/+1
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-03quick_dump: make autodetect the default optionImre Deak1-4/+1
Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Very-much-wanted-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-19igt/quickdump: vlv: dump FLISDSI regs tooImre Deak5-0/+50
Signed-off-by: Imre Deak <imre.deak@intel.com>
2014-03-28tools/quick_dump: Fix make distcheckDaniel Vetter1-1/+1
Someone really needs to fix this Makefile ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-27quick_dump: Put the cairo cflags with the other cflags.Ben Widawsky1-3/+1
I had been hoping we can avoid linking against cairo, but alas it was not meant to be. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-03-26tools/quick_dump: re-apply ducttapeDaniel Vetter1-0/+2
Someone with actual automake-fu really needs to fix this up for real since compiling a bunch of source files again, with broken dep tracking even just because we can't link against a .la somehow really isn't too awesome. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-26quick_dump: Fix the danvet fallout.Ben Widawsky3-2/+19
quick_dump built fine, but it could actually run, since a lot of the linking happens at run time. There is one hack where we redefine the environment stuff, since depending on igt_aux means we have to pull in libdrm, which I do not want to do. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-03-22lib: Move non-register things out of intel-gpu-tools.hDaniel Vetter1-1/+1
Right now almost everything in there concerns itself with register access. Move everything else out (into drmtest.h for lack of better place) to prepare for api documentation. Also rename intel_drm.c to intel_os.c since it contains OS, not drm abstractions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: rename intel_pci.c to intel_chipset.cDaniel Vetter2-2/+2
This is to consolidate all the chipset related functions to intel_chipset.[hc]. Unfortunately we need to rename a wrapper lib file in quick_dump, too. And quick_dump makes automake a bit unhappy apparently. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-19quick_dump: gen8 private PATBen Widawsky2-2/+5
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-21quick_dump: Add missed broadwell autodetectBen Widawsky1-0/+1
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump/broadwell: Add gen7 ring mode registersBen Widawsky1-0/+1
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump/haswell: Add gen7 stuff + VECS_MODEBen Widawsky2-0/+3
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump/gen7: Add other GFX_MODE registersBen Widawsky1-1/+3
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-02-02quick_dump: Add a file argumentBen Widawsky1-0/+7
-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 Widawsky1-27/+40
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-28mmio: use intel_iosf.c for DPIO reads and writesJesse Barnes1-1/+1
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 Barnes1-0/+9
2014-01-20quick_dump/watermarks: lp3, misc and debugBen Widawsky1-1/+5
I forgot to git add this originally. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-20quick_dump/broadwell: Use haswell_otherBen Widawsky1-0/+1
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 Widawsky1-0/+12
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-01-20quick_dump: Allow comments in the register filesBen Widawsky1-0/+14
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 Widawsky2-67/+70
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>
2013-12-05quick_dump: Restore execture permission on quick_dump.pyVille Syrjälä1-0/+0
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 Lee3-5/+7
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 Lee1-53/+51
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>