summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2014-09-05tools/null_state_gen: build cmd and state space separatelyMika Kuoppala
Instead of building batch directly to memory, build into cmd and state arrays. This representation allows us more flexibility in batch state expression and batch generation/relocation. As a bonus, we can also attach the line information that produced the batch data to help debugging. There is no change in the output states produced. This can be considered as a preparatory patch to help introduce gen8 golden state. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-09-05lib/rendercopy: fix a typo in defineMika Kuoppala
No functional changes Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-09-05tools/null_state_gen: terminate relocs with -1Mika Kuoppala
as this was already changed in kernel. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-08-30batch: Specify number of relocations to accommodateChris Wilson
Since relocations are variable size, depending upon generation, it is easier to handle the resizing of the batch request inside the BEGIN_BATCH macro. This still leaves us with having to resize commands in a few places - which still need adaption for gen8+. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-01intel_bios_reader: Add support to dump MIPI Sequence block #53Gaurav K Singh
Signed-off-by: Gaurav K Singh <gaurav.k.singh@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-01intel_bios_reader: Add support to dump MIPI Configuration Block #52Gaurav K Singh
Signed-off-by: Gaurav K Singh <gaurav.k.singh@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-07-30Update .gitignore filesThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-07-25quick_dump: fix distcheckThomas Wood
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-13tools/intel_display_poller: Add a new tool that will poll various display ↵Ville Syrjälä
registers intel_poller can be used to poll various display registers (IIR,scanline/pixel/flip/frame counter, live address, etc.). It can be used to determine eg. at which scanline or pixel count certain events occur. v2: s/intel_poller/intel_display_poller/ Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-13tools: Add intel_iosf_sb_{read,write} toolsVille Syrjälä
Add generic tools to poke at IOSF sideband. The user needs to manually specify SB port as well as the register. TODO: Maybe add symbolic names for the units? Would avoid having to trawl the docs for the magic hex value. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-06-12gitignore: add missing files and keep lists sortedThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-06-12quick_dump: read the architecture files for items to add to EXTRA_DISTThomas Wood
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-09null_state_gen: Fix Makefile.am for make distcheckRodrigo Vivi
2014-06-09quick_dump: Fix vlv file names on Makefile.amRodrigo Vivi
2014-06-03quick_dump: increase reg name column widthImre Deak
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 Deak
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 Deak
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 Deak
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 Deak
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 Deak
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 Deak
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 Deak
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ä
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ä
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ä
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ä
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 Deak
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ä
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 Deak
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 Deak
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-06-03tools/null_state_gen: generate null render stateMika Kuoppala
Generate valid (null) render state for each gen. Output it as a c source file with batch and relocations. v2: noinst and vs_start fixed for BDW GT3 (Damien Lespiau) Acked-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-05-19igt/quickdump: vlv: dump FLISDSI regs tooImre Deak
Signed-off-by: Imre Deak <imre.deak@intel.com>
2014-05-06intel_bios_reader: make edp block decode match kernelJani Nikula
All the somewhat recent VBT specs and the kernel have different format for the eDP block than what the tool decodes. What the tool does *may* be correct for really old VBT, but I have no specs or other reference to suppor this. Just do what the kernel does, that's what we're interested in anyway. Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2014-04-04tools/intel_reg_dumper: use haswell_debug_regs on BDW tooPaulo Zanoni
Instead of using an older set of registers. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-03-28tools/quick_dump: Fix make distcheckDaniel Vetter
Someone really needs to fix this Makefile ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-28intel-gpu-tools: fix some include path problems on android buildstgore
When building within the android tree (specifically in /external) the compilation fails due to the wrong versions of some header files getting picked up. This commit adds some include paths to ensure the correct headers are found Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-27intel_infoframes: remove bogus "being transmitted" check from VLVJesse Barnes
This bit is reserved on VLV.
2014-03-27intel_infoframes: add VLV supportJesse Barnes
Different reg offsets and such.
2014-03-27quick_dump: Put the cairo cflags with the other cflags.Ben Widawsky
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 Vetter
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 Widawsky
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/intel_io: rename mmio setup functionsDaniel Vetter
Makes their intent a bit clearer. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: rename intel_gpu_tools.h to intel_io.hDaniel Vetter
With the header cleanup we can now give this header a suitable name, since it now really only contains register access and other I/O functions and assorted definitions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: remove uncessary #includes from headersDaniel Vetter
Only include what the header itself needs. The big fish here is intel-gpu-tools.h. More will follow. One ugly thing removed here is the duplicated GEN6_TD_CTL #define, one of which was broken. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22tests|lib: remove assert.h includesDaniel Vetter
Only the igt core and non-test tools should have asserts to catch internal errors, tests and helper libraries should all user igt_asert instead. Fix things up where assert instead of igt_assert was used. One tiny step towards header sanity. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: Move non-register things out of intel-gpu-tools.hDaniel Vetter
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/intel_chipset: intel_ prefix for pch globalDaniel Vetter
Just a bit better namespacing. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: rename intel_pci.c to intel_chipset.cDaniel Vetter
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-19intel_gtt: Dump the whole GTTBen Widawsky
The tool formerly only dumped the aperture size, which is fine, but not everything interesting. Most of the patch is just the variable rename. The real work happens with using the BAR0 size divided by 2 instead of the BAR2 size. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>