summaryrefslogtreecommitdiff
path: root/tools/intel_bios_reader.c
AgeCommit message (Collapse)Author
2016-07-14tools/intel_bios_reader: Dump out more of the eDP blockVille Syrjälä
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-07-14tools/intel_bios_reader: Dump out more information from the child device ↵Ville Syrjälä
structure Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-07-14tools/intel_bios_reader: Dump more bits for general bit definitions block (1)Ville Syrjälä
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-05-13tools/intel_bios_reader: print errors to stderr, return EXIT_FAILUREJani Nikula
Be consistent with exit status and printing errors to stderr. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-13tools/intel_bios_reader: clean up VBT/BDB header dumpingJani Nikula
Make the output nicer. Do not print the header if a specific block is requested. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-13tools/intel_bios_reader: abstract header information dumpingJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: add helpMarius Vlad
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: free the block returned by find_sectionJani Nikula
Since we no longer store pointers to previous blocks, we can free them. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: add --all-panels option to dump all panelsJani Nikula
Only dump the one matching panel_type by default. Cleans up the output, and allows the users to get more verbose output if he so chooses. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: add support for dumping only specific sectionJani Nikula
Now that the parsers for blocks don't depend on the dump ordering, we can also choose to dump specific sections only. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: add --hexdump option to dump hex, disable by defaultJani Nikula
The hex dump is useful, just not by default. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: dump the blocks in numerical orderJani Nikula
All parsers fetch the information they need without ordering constraints, so dump all in numerical order. This also makes it unnecessary to track already dumped blocks. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: let the user specify panel type on the command lineJani Nikula
On some systems the VBT panel type may be overridden in the opregion, and we can't necessarily get at that. Let the user specify it on the command line. As a byproduct, the section parsing order no longer matters. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: drop dependencies on lvds block parsingJani Nikula
Don't mandate a specific ordering on the parsing of the blocks. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: move devid to context tooJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: move more globals to struct contextJani Nikula
It's just good hygiene. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: pass around a context pointer instead of bdb_headerJani Nikula
Allow putting stuff in there instead of a global. A bit like passing dev_priv in the kernel. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: drop silly tv_present variable and printoutJani Nikula
There's no point in dumping a fixed value. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: drop unused lvds_support variableJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: add --devid parameterJani Nikula
Not sure it's a great idea to do platform specific parsing of the BIOS, but at least make it possible to pass in the devid on the command line and not just the environment. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: add command line option parsing and --file parameterJani Nikula
Keep positional parameter support for entering filename for backwards compatibility. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-12tools/intel_bios_reader: make VBIOS non-globalJani Nikula
No need for it to be global. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-11tools/intel_bios_reader: drop unused macrosJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-15tools/intel_bios_reader: Fix typo on dump infoMika Kahola
Fix typo on intel_bios_reader.c Signed-off-by: Mika Kahola <mika.kahola@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-14intel_bios_reader: dump MIPI sequence block v3Jani Nikula
Similar to what's done in kernel. It's a bit artificial that the parsing and dumping are two separate steps in the userspace tool, but it's easier to follow and debug the code when both the kernel and userspace are similar. v2: don't segfault so much on dumping null pointers Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-14intel_bios_reader: port the sequence block parsing from kernelJani Nikula
Reuse the same code as kernel. Also parses v3, although does not actually dump that stuff yet. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-14intel_bios_reader: port find_panel_sequence_block from kernelJani Nikula
No need to reinvent wheels, reuse the code from kernel. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-14intel_bios_reader: make the VBT pointers more constJani Nikula
In const we trust. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-14intel_bios_reader: fix size handling for 32-bit block sizeJani Nikula
The MIPI DSI sequence block v3+ has a separate block size field. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-01-14intel_bios_reader: pass bdb pointer around instead of having as globalJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2015-12-22intel_bios_reader: add dumping of i2c element in mipi sequenceJani Nikula
Due to the clever way the whole sequence block is specified without forward compatibility, it's not possible to dump most blocks without this. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2015-12-22intel_bios_reader: improve element dumpersJani Nikula
Try to print something useful and helpful for the user. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2015-12-22intel_bios_reader: rewrite the mipi sequence block dumpingJani Nikula
Simplify things a lot, make it correct, don't pass random pointers to free() on errors, etc. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2015-12-22intel_bios_reader: check mipi sequence block versionJani Nikula
Bail out on v3+, we don't support that just yet. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2015-09-11tools/intel_bios_reader: Add MIPI device typeVille Syrjälä
Decode the MIPI [sic] device type. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-09-11tools/intel_bios_reader: Decode the device type bitsVille Syrjälä
Each bit in the device type is supposed to mean something. Decode their meaning. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-09-11tools/intel_bios_reader: Print the child dev handleVille Syrjälä
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-09-11intel_bios_reader: Don't explode looking for the devidVille Syrjälä
Check that the offset where expect to find the device id is withing the BIOS image, instead of accessing whatever (if anything) happens to be there. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-09-11intel_bios_reader: Read the child device size from VBTVille Syrjälä
New stuff has been added to the end of the child device block at various times, so using a hardcoded size for the block is a bad idea. Fortunately the size of the block is listed in the VBT just before the blocks themselves, so grab it from there. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2015-04-08tools/intel_bios_read: fix SSC freq for BXTImre Deak
On BXT the SSC reference frequency is fixed 100MHz. Signed-off-by: Imre Deak <imre.deak@intel.com>
2015-04-08tools/intel_bios_reader: fix SSC freq for VLV/CHVImre Deak
VLV/CHV has a fixed 100MHz SSC reference frequency. Signed-off-by: Imre Deak <imre.deak@intel.com>
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-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>
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>
2012-01-25intel_bios_reader: Sanitize input to ensure all data blocks are within boundsChris Wilson
Running intel_bios_reader upon itself causes the reader to crash and burn. It obviously finds a VBT signature inside the binary, but then does not rigorously check that all data blocks are valid before dereferencing them. Reported-by: Emanuel Bronshtein Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45205 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>