summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-12man: update intel_bios_reader man pageJani Nikula
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-12lib/igt_aux: Polish docs for igt_timeoutDaniel Vetter
Add docs, rename parameter and rename the macro to igt_do_timeout to make it clear it works like a loop. v2: Rename instead to igt_until_timeout (Chris). Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2016-05-12lib/igt_aux: Polish docs for igt_interruptibleDaniel Vetter
- Give __ prefix to internal funcstion and structs, only igt_interruptible is used by tests. - Move docs to igt_interruptible and adjust. - Explain more clearly how the timeout is getting doubled each iteration until no more interruptions happen. Also rename the argument to give it a more meaningful name in the docs. - Link from other functions to this one for cross-referencing. - Rename to igt_do_interruptible to make it clearer it's a loop, inspired by do {} while () loops. v2: Rename instead to igt_while_interruptible and fix typos (Chris). And add gtk-doc for igt_ioctl, too. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2016-05-11benchmarks/, overlay/, demos/, tools/, tests/: Add optional Werror.marius vlad
v2: Initially added Werror by default. Make it optional so it doesn't break android build and (potential) distros maintaing the package (Hinted by Damien Lespiau). --enable-werror will enable -Werror compiler flag. Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Acked-by: Damien Lespiau <damien.lespiau@intel.com>
2016-05-11lib/igt_aux: define actual functions for kmstest_*_strJani Nikula
Macro generated function definitions considered harmful. You can't find them with code search tools or grep. There may be places where such things might be useful, but this is not it. Define actual functions for kmstest_encoder_type_str(), kmstest_connector_status_str() and kmstest_connector_type_str(). While at it, make the arrays static const. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-11lib/igt_aux: update encoder and type namesJani Nikula
Virtual, DSI, DP MST. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-11tools/intel_bios_reader: drop unused macrosJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-10tests/{gem_ctx_switch, gem_exec_create}: Fix shadow declaration of child ↵marius vlad
variable. Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-09tests/prime_mmap_kms: Fix white-space.Marius Vlad
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-09NEWS: Update news.Marius Vlad
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-09prime_mmap_kms: show case dma-buf new API and processes restrictionsTiago Vignatti
dma-buf new API consists of: - mmap(dma_buf_fd, ...): the ability to map a dma-buf file-descriptor of a graphics buffer to the userspace, and more importantly, to actually write on the mapped pointer (which was not possible before). It’s worth noting that the Direct Rendering Manager (DRM) and the hardware driver implementation are fundamentally important to safely export the graphics handle to be mapped. - ioctl(dma_buf_fd, DMA_BUF_IOCTL_SYNC, &args): cache coherency management in cases where the CPU and GPU devices are being accessed through dma-buf at the same time. Coherency markers, which forward directly to existing dma-buf device drivers vfunc hooks, are exposed to the userspace through the DMA_BUF_IOCTL_SYNC ioctl and have to be used before and after the mapped area is accessed. This is fundamentally important in hardware architectures where the graphics engine and the CPU cores don't share caches but also important in other type of hardware where the memory hierarchy is (most of the time) coherent. More details can be found in this patch set: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c11e391da2a8fe973c3c2398452000bed505851e v2: use uint32_t for color type, increment the variable and add --interactive-debug=paint v3: use igt_display_commit() to mode set the crtc so the rectangle is shown painted; also added Testcase description on the beginning of the file. v4: remove crtc actually which seems superfluous; add a igt_skip_on in case support for dma-buf mmap is nonexistent. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-09benchmarks/gem_latency: Revert to unsafe mmio access on gen7Chris Wilson
In theory, we need to only worry about concurrent mmio writes to the same cacheline. So far, disabling the spinlock hasn't hung the machine. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-09benchmarks/gem_blt: Add forked variantsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-09benchmarks/gem_exec_nop: Add forked variantsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-09benchmarks/gem_create: Report combined concurrent allocation rateChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-09igt/gem_exec_parse: Simple exercise for MI_LOAD_REGISTER_REGChris Wilson
Command parser version 7 introduces the ability to copy between regsiters from the Haswell RCS with MI_LOAD_REGISTER_REG. This provides a quick smoketest of that ability. v2: Add some negative tests as well Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-07benchmarks: Add some contention tests for object/context creationChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-07igt: Add a few more forked variants of basic testsChris Wilson
Check contention for context and object creation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-06tests/kms_addfb_basic: Move tiling tests into their own groupsTomeu Vizoso
So those subtests that require tiling don't cause unrelated subtests to be skipped. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
2016-05-06igt/gem_exec_flush: Add some commentary about clflush testingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-06igt/gem_exec_flush: Flush before each useChris Wilson
After we inspect map[i], we must flush again before checking map[i] for the xor pass. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-06igt/gem_exec_flush: Add a WC mmapping of the target bufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-06igt/gem_exec_flush: Test cacheline invalidation before execbufChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-06igt/gem_exec_flush: Restrict BAT batch testingChris Wilson
Only do one mode of batch writing for BAT, and hope that is sufficient to route out all the coherency problems when doing the cmdparser and when not. We still have the full set for non-BAT, just less of a smokescreen. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-04igt/gem_exec_flush: Halve the number of BAT tests, but double their runtimeChris Wilson
On the CI machines, the coherency tests are flip-flopping on byt/bsw. Undesirable as they should always fail (until we have a good w/a). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-04igt/gem_exec_flush: Also check flushing before the cmdparserChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-04tests/kms_plane: Skip the test when configuration couldn't be appliedFeceoru, Gabriel
This could happen when the selected pipe cannot be used with the connected port due do HW constrains. v2: Apply review comment (Marius) bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86763 Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-04lib/igt_kms: Add fail exit branch in do_display_commit()Feceoru, Gabriel
On Cherryview PIPE_C can only be connected to PORT_D (bspec). The driver properly reports the crtc_mask for the encoder, however the mismatch between pipe and port is not reported back to the test. Add support for detecting this case so the test can be skipped. v2: Apply review comments (Marius) Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-04tests/kms_plane: Skip on no connected outputsFeceoru, Gabriel
When no display is connected all kms_plane subtests pass although no testing is done. Change it by reporting the subtests as skipped. Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-04man: add .gitignore with defs.rstJani Nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-05-03igt/gem_exec_flush: Give even batch write a unique valueChris Wilson
One property lost in the expansion for various coherency checks was ensuring that every time we overwrote the batch it had a unique value (to ensure that the GPU was seeing the latest value). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-03igt/gem_exec_flush: Stress a few more synchronisation paths for execbufChris Wilson
Look at handling of multiple batches within the buffer and avoiding as much synchronisation as possible. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-03kms_panel_fitting: Enable connectors with "scaling mode" property set.Robert Foss
Enable testing on all connectors that have the "scaling mode" property set. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93012 Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-03kms_panel_fitting: Enabled test on non-Intel hardware.Robert Foss
Switched from DRIVER_INTEL to DRIVER_ANY to enable test on all hardware. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
2016-05-03kms_panel_fitting: Switched DRM format to a hardware agnostic alternative.Robert Foss
Changed the DRM format to LOCAL_DRM_FORMAT_MOD_NONE since it is hardware agnostic. Also fixed formatting/tabs. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>