summaryrefslogtreecommitdiff
path: root/tools/intel_infoframes.c
AgeCommit message (Collapse)Author
2019-03-29Revert "lib/igt_device: Move intel_get_pci_device under igt_device"Ville Syrjälä
One significant usecase for intel_reg/etc. is to be able to examine the hardware state *before* loading the driver. If the tool forces the driver to load we've totally lost that capability. This reverts commit 8ae86621d6fff60b6e20c6b0f9b336785c935b0f. Cc: Michał Winiarski <michal.winiarski@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Michał Winiarski <michal.winiarski@intel.com>
2019-03-20lib/igt_device: Move intel_get_pci_device under igt_deviceMichał Winiarski
It allows us to make things a little bit more generic. Also, we now require fd rather than doing guesswork when it comes to pci address. v2: Use readlinkat rather than string concat, move stuff around, provide a version that does not assert. (Chris) v3: Print addr on failure, avoid assignment in conditionals. (Chris) Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-11-21tools: Stop opening the driver just to find the debugfsChris Wilson
Since the tools want to work without the module loaded, remove the assumption that we want to load the driver to find debugfs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
2017-03-21Restore "lib: Open debugfs files for the given DRM device"Chris Wilson
This reverts commit 25fbae15262cf570e207e62f50e7c5233e06bc67, restoring commit 301ad44cdf1b868b1ab89096721da91fa8541fdc Author: Tomeu Vizoso <tomeu.vizoso@collabora.com> Date: Thu Mar 2 10:37:11 2017 +0100 lib: Open debugfs files for the given DRM device with fixes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-21Revert "lib: Open debugfs files for the given DRM device"Tomeu Vizoso
This reverts commit 301ad44cdf1b868b1ab89096721da91fa8541fdc. When a render-only device is opened and gem_quiescent_gpu is called, we need to use the debugfs dir for the master device instead. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
2017-03-21lib: Open debugfs files for the given DRM deviceTomeu Vizoso
When opening a DRM debugfs file, locate the right path based on the given DRM device FD. This is needed so, in setups with more than one DRM device, any operations on debugfs files affect the expected DRM device. v2: - rebased and fixed new API additions v3: - updated chamelium test, which was missed previously - use the minor of the device for the debugfs path, not the major - have a proper exit handler for calling igt_hpd_storm_reset with the right device fd. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Robert Foss <robert.foss@collabora.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-12-09tools: terminate getopt_long long option arrays properlyJani Nikula
The last element of the long options array has to be filled with zeros. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
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-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: 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-22lib/intel_chipset: intel_ prefix for pch globalDaniel Vetter
Just a bit better namespacing. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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-08-20intel_infoframes: Be future-proof about showing 3D_Ext_DataDamien Lespiau
As Ville noted, future 3D_Struct must also send 3D_Ext_Data in the vendor infoframe. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-15intel_infoframes: Dump 3D_Ext_Data when using Side-by-side (half)Damien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-15intel_infoframes: Add support for decoding HDMI VICsDamien Lespiau
The HDMI vendor infoframe can contain a HDMI VIC (as of HDMI 1.4, only used for 4k formats). Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
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-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-08-30clang: Fix static analysis warnings from clangBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-05-16intel_infoframes: options -p and -P require an argumentPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2012-04-28intel_infoframe: fix assertion off by 1Ben Widawsky
this makes my compiler very unhappy Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-04-25intel_infoframes: add support for Gen 4Paulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-25intel_infoframes: AVI InfoFrame version should be 2Paulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-13Add tools/intel_infoframesPaulo Zanoni
This is a command-line tool that allows us to display and modify the InfoFrames we send. v2: use argv instead of stdin Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>