mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 05:46:25 +00:00
docs: various documentation fixes
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
8a109f94b9
commit
d01ebbd97d
@ -38,8 +38,8 @@
|
|||||||
<term><option>--debug[=log-domain]</option></term>
|
<term><option>--debug[=log-domain]</option></term>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
print extra debugging information when running tests and
|
print extra debugging information when running tests and
|
||||||
optionaly only show the messages from the specified log domain
|
optionally only show the messages from the specified log domain
|
||||||
(use "application" to specifiy the default application domain)
|
(use "application" to specify the default application domain)
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -74,7 +74,7 @@
|
|||||||
<row>
|
<row>
|
||||||
<entry>#IGT_EXIT_SUCCESS</entry>
|
<entry>#IGT_EXIT_SUCCESS</entry>
|
||||||
<entry>0</entry>
|
<entry>0</entry>
|
||||||
<entry>The test was succesful</entry>
|
<entry>The test was successful</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>#IGT_EXIT_SKIP</entry>
|
<entry>#IGT_EXIT_SKIP</entry>
|
||||||
@ -191,7 +191,7 @@
|
|||||||
</refentry>
|
</refentry>
|
||||||
|
|
||||||
<glossary>
|
<glossary>
|
||||||
<title>Gloassary</title>
|
<title>Glossary</title>
|
||||||
|
|
||||||
<para>The following terms are commonly used in test names to describe
|
<para>The following terms are commonly used in test names to describe
|
||||||
various features of the test and can be used to filter and select
|
various features of the test and can be used to filter and select
|
||||||
@ -249,7 +249,7 @@
|
|||||||
<glossentry id="rte">
|
<glossentry id="rte">
|
||||||
<glossterm>rte</glossterm>
|
<glossterm>rte</glossterm>
|
||||||
<glossdef>
|
<glossdef>
|
||||||
<para>Runtime enviroment checks.</para>
|
<para>Runtime environment checks.</para>
|
||||||
</glossdef>
|
</glossdef>
|
||||||
</glossentry>
|
</glossentry>
|
||||||
|
|
||||||
|
@ -469,7 +469,7 @@ void igt_debug_wait_for_keypress(const char *var)
|
|||||||
* When not connected to a terminal interactive_debug is ignored
|
* When not connected to a terminal interactive_debug is ignored
|
||||||
* and execution immediately continues. For this reason by default this function
|
* and execution immediately continues. For this reason by default this function
|
||||||
* returns true. It returns false only when N/n is pressed indicating the
|
* returns true. It returns false only when N/n is pressed indicating the
|
||||||
* user ins't seeing what was expected.
|
* user isn't seeing what was expected.
|
||||||
*
|
*
|
||||||
* Force test fail when N/n is pressed.
|
* Force test fail when N/n is pressed.
|
||||||
*/
|
*/
|
||||||
|
@ -690,7 +690,7 @@ out:
|
|||||||
* @extra_opt_handler: handler for the additional options
|
* @extra_opt_handler: handler for the additional options
|
||||||
* @handler_data: user data given to @extra_opt_handler when invoked
|
* @handler_data: user data given to @extra_opt_handler when invoked
|
||||||
*
|
*
|
||||||
* This function handles the subtest related cmdline options and allows an
|
* This function handles the subtest related command line options and allows an
|
||||||
* arbitrary set of additional options. This is useful for tests which have
|
* arbitrary set of additional options. This is useful for tests which have
|
||||||
* additional knobs to tune when run manually like the number of rounds execute
|
* additional knobs to tune when run manually like the number of rounds execute
|
||||||
* or the size of the allocated buffer objects.
|
* or the size of the allocated buffer objects.
|
||||||
@ -1632,7 +1632,7 @@ void igt_skip_on_simulation(void)
|
|||||||
* This is the generic structured logging helper function. i-g-t testcase should
|
* This is the generic structured logging helper function. i-g-t testcase should
|
||||||
* output all normal message to stdout. Warning level message should be printed
|
* output all normal message to stdout. Warning level message should be printed
|
||||||
* to stderr and the test runner should treat this as an intermediate result
|
* to stderr and the test runner should treat this as an intermediate result
|
||||||
* between SUCESS and FAILURE.
|
* between SUCCESS and FAILURE.
|
||||||
*
|
*
|
||||||
* The log level can be set through the IGT_LOG_LEVEL environment variable with
|
* The log level can be set through the IGT_LOG_LEVEL environment variable with
|
||||||
* values "debug", "info", "warn", "critical" and "none". By default verbose
|
* values "debug", "info", "warn", "critical" and "none". By default verbose
|
||||||
|
@ -100,8 +100,8 @@ void __igt_fixture_end(void) __attribute__((noreturn));
|
|||||||
* Annotate global test fixture code
|
* Annotate global test fixture code
|
||||||
*
|
*
|
||||||
* Testcase with subtests often need to set up a bunch of global state as the
|
* Testcase with subtests often need to set up a bunch of global state as the
|
||||||
* common test fixture. To avoid such code interferring with the subtest
|
* common test fixture. To avoid such code interfering with the subtest
|
||||||
* enumeration (e.g. when enumerating on systemes without an intel gpu) such
|
* enumeration (e.g. when enumerating on systems without an intel gpu) such
|
||||||
* blocks should be annotated with igt_fixture.
|
* blocks should be annotated with igt_fixture.
|
||||||
*/
|
*/
|
||||||
#define igt_fixture for (int igt_tokencat(__tmpint,__LINE__) = 0; \
|
#define igt_fixture for (int igt_tokencat(__tmpint,__LINE__) = 0; \
|
||||||
@ -131,7 +131,7 @@ int igt_subtest_init_parse_opts(int *argc, char **argv,
|
|||||||
* @argv: argv from the test's main()
|
* @argv: argv from the test's main()
|
||||||
*
|
*
|
||||||
* This initializes the for tests with subtests without the need for additional
|
* This initializes the for tests with subtests without the need for additional
|
||||||
* cmdline options. It is just a simplified version of
|
* command line options. It is just a simplified version of
|
||||||
* igt_subtest_init_parse_opts().
|
* igt_subtest_init_parse_opts().
|
||||||
*
|
*
|
||||||
* If there's not a reason to the contrary it's less error prone to just use an
|
* If there's not a reason to the contrary it's less error prone to just use an
|
||||||
@ -199,7 +199,7 @@ bool igt_only_list_subtests(void);
|
|||||||
*
|
*
|
||||||
* This is a magic control flow block used instead of a main() function for
|
* This is a magic control flow block used instead of a main() function for
|
||||||
* tests with subtests. Open-coding the main() function is only recommended if
|
* tests with subtests. Open-coding the main() function is only recommended if
|
||||||
* the test needs to parse additional cmdline arguments of its own.
|
* the test needs to parse additional command line arguments of its own.
|
||||||
*/
|
*/
|
||||||
#define igt_main \
|
#define igt_main \
|
||||||
static void igt_tokencat(__real_main, __LINE__)(void); \
|
static void igt_tokencat(__real_main, __LINE__)(void); \
|
||||||
@ -239,7 +239,7 @@ void igt_simple_init_parse_opts(int *argc, char **argv,
|
|||||||
*
|
*
|
||||||
* This is a magic control flow block used instead of a main() function for
|
* This is a magic control flow block used instead of a main() function for
|
||||||
* simple tests. Open-coding the main() function is only recommended if
|
* simple tests. Open-coding the main() function is only recommended if
|
||||||
* the test needs to parse additional cmdline arguments of its own.
|
* the test needs to parse additional command line arguments of its own.
|
||||||
*/
|
*/
|
||||||
#define igt_simple_main \
|
#define igt_simple_main \
|
||||||
static void igt_tokencat(__real_main, __LINE__)(void); \
|
static void igt_tokencat(__real_main, __LINE__)(void); \
|
||||||
@ -353,7 +353,7 @@ void igt_exit(void) __attribute__((noreturn));
|
|||||||
* @ncmp: negated version of @cmp
|
* @ncmp: negated version of @cmp
|
||||||
* @n2: second value
|
* @n2: second value
|
||||||
*
|
*
|
||||||
* Like igt_assert_cmpint(), but for unsigned ints;
|
* Like igt_assert_cmpint(), but for unsigned ints.
|
||||||
*/
|
*/
|
||||||
#define igt_assert_cmpuint(n1, cmp, ncmp, n2) \
|
#define igt_assert_cmpuint(n1, cmp, ncmp, n2) \
|
||||||
do { \
|
do { \
|
||||||
@ -371,7 +371,7 @@ void igt_exit(void) __attribute__((noreturn));
|
|||||||
* @ncmp: negated version of @cmp
|
* @ncmp: negated version of @cmp
|
||||||
* @n2: second value
|
* @n2: second value
|
||||||
*
|
*
|
||||||
* Like igt_assert_cmpint(), but for doubles;
|
* Like igt_assert_cmpint(), but for doubles.
|
||||||
*/
|
*/
|
||||||
#define igt_assert_cmpdouble(n1, cmp, ncmp, n2) \
|
#define igt_assert_cmpdouble(n1, cmp, ncmp, n2) \
|
||||||
do { \
|
do { \
|
||||||
|
@ -71,8 +71,8 @@
|
|||||||
*
|
*
|
||||||
* This covers the miscellaneous debugfs interface wrappers:
|
* This covers the miscellaneous debugfs interface wrappers:
|
||||||
*
|
*
|
||||||
* - drm/i915 supports interfaces to evict certain clases of gem buffer objects,
|
* - drm/i915 supports interfaces to evict certain classes of gem buffer
|
||||||
* see igt_drop_caches_set().
|
* objects, see igt_drop_caches_set().
|
||||||
*
|
*
|
||||||
* - drm/i915 supports an interface to disable prefaulting, useful to test
|
* - drm/i915 supports an interface to disable prefaulting, useful to test
|
||||||
* slow paths in ioctls. See igt_disable_prefault().
|
* slow paths in ioctls. See igt_disable_prefault().
|
||||||
@ -143,7 +143,7 @@ static igt_debugfs_t *__igt_debugfs_singleton(void)
|
|||||||
* @mode: mode bits as used by open()
|
* @mode: mode bits as used by open()
|
||||||
*
|
*
|
||||||
* This opens a debugfs file as a Unix file descriptor. The filename should be
|
* This opens a debugfs file as a Unix file descriptor. The filename should be
|
||||||
* relative to the drm device's root, i.e without "drm/<minor>".
|
* relative to the drm device's root, i.e. without "drm/<minor>".
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* The Unix file descriptor for the debugfs file or -1 if that didn't work out.
|
* The Unix file descriptor for the debugfs file or -1 if that didn't work out.
|
||||||
@ -166,7 +166,7 @@ int igt_debugfs_open(const char *filename, int mode)
|
|||||||
* @mode: mode string as used by fopen()
|
* @mode: mode string as used by fopen()
|
||||||
*
|
*
|
||||||
* This opens a debugfs file as a libc FILE. The filename should be
|
* This opens a debugfs file as a libc FILE. The filename should be
|
||||||
* relative to the drm device's root, i.e without "drm/<minor>".
|
* relative to the drm device's root, i.e. without "drm/<minor>".
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* The libc FILE pointer for the debugfs file or NULL if that didn't work out.
|
* The libc FILE pointer for the debugfs file or NULL if that didn't work out.
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
*
|
*
|
||||||
* This library contains helper functions for handling kms framebuffer objects
|
* This library contains helper functions for handling kms framebuffer objects
|
||||||
* using #igt_fb structures to track all the metadata. igt_create_fb() creates
|
* using #igt_fb structures to track all the metadata. igt_create_fb() creates
|
||||||
* a basic framebufffer and igt_remove_fb() cleans everything up again.
|
* a basic framebuffer and igt_remove_fb() cleans everything up again.
|
||||||
*
|
*
|
||||||
* It also supports drawing using the cairo library and provides some simplified
|
* It also supports drawing using the cairo library and provides some simplified
|
||||||
* helper functions to easily draw test patterns. The main function to create a
|
* helper functions to easily draw test patterns. The main function to create a
|
||||||
@ -130,7 +130,7 @@ static int create_bo_for_fb(int fd, int width, int height, int bpp,
|
|||||||
* @w: width of the fill rectangle
|
* @w: width of the fill rectangle
|
||||||
* @h: height of the fill rectangle
|
* @h: height of the fill rectangle
|
||||||
* @r: red value to use as fill color
|
* @r: red value to use as fill color
|
||||||
* @g: gree value to use as fill color
|
* @g: green value to use as fill color
|
||||||
* @b: blue value to use as fill color
|
* @b: blue value to use as fill color
|
||||||
*
|
*
|
||||||
* This functions draws a solid rectangle with the given color using the drawing
|
* This functions draws a solid rectangle with the given color using the drawing
|
||||||
@ -152,7 +152,7 @@ void igt_paint_color(cairo_t *cr, int x, int y, int w, int h,
|
|||||||
* @w: width of the fill rectangle
|
* @w: width of the fill rectangle
|
||||||
* @h: height of the fill rectangle
|
* @h: height of the fill rectangle
|
||||||
* @r: red value to use as fill color
|
* @r: red value to use as fill color
|
||||||
* @g: gree value to use as fill color
|
* @g: green value to use as fill color
|
||||||
* @b: blue value to use as fill color
|
* @b: blue value to use as fill color
|
||||||
* @a: alpha value to use as fill color
|
* @a: alpha value to use as fill color
|
||||||
*
|
*
|
||||||
@ -175,7 +175,7 @@ void igt_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h,
|
|||||||
* @w: width of the fill rectangle
|
* @w: width of the fill rectangle
|
||||||
* @h: height of the fill rectangle
|
* @h: height of the fill rectangle
|
||||||
* @r: red value to use as fill color
|
* @r: red value to use as fill color
|
||||||
* @g: gree value to use as fill color
|
* @g: green value to use as fill color
|
||||||
* @b: blue value to use as fill color
|
* @b: blue value to use as fill color
|
||||||
*
|
*
|
||||||
* This functions draws a gradient into the rectangle which fades in from black
|
* This functions draws a gradient into the rectangle which fades in from black
|
||||||
|
@ -1719,12 +1719,12 @@ drmModeModeInfo *igt_output_get_mode(igt_output_t *output)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* igt_output_override_mode:
|
* igt_output_override_mode:
|
||||||
* @output: Output of which the mode will be overriden
|
* @output: Output of which the mode will be overridden
|
||||||
* @mode: New mode
|
* @mode: New mode
|
||||||
*
|
*
|
||||||
* Overrides the output's mode with @mode, so that it is used instead of the
|
* Overrides the output's mode with @mode, so that it is used instead of the
|
||||||
* mode obtained with get connectors. Note that the mode is used without
|
* mode obtained with get connectors. Note that the mode is used without
|
||||||
* checking if the output supports it, so this might lead to unexpect results.
|
* checking if the output supports it, so this might lead to unexpected results.
|
||||||
*/
|
*/
|
||||||
void igt_output_override_mode(igt_output_t *output, drmModeModeInfo *mode)
|
void igt_output_override_mode(igt_output_t *output, drmModeModeInfo *mode)
|
||||||
{
|
{
|
||||||
@ -1804,7 +1804,7 @@ void igt_plane_set_position(igt_plane_t *plane, int x, int y)
|
|||||||
* @h: height
|
* @h: height
|
||||||
*
|
*
|
||||||
* This function sets width and height for requested plane.
|
* This function sets width and height for requested plane.
|
||||||
* New size will be commited at plane commit time via
|
* New size will be committed at plane commit time via
|
||||||
* drmModeSetPlane().
|
* drmModeSetPlane().
|
||||||
*/
|
*/
|
||||||
void igt_plane_set_size(igt_plane_t *plane, int w, int h)
|
void igt_plane_set_size(igt_plane_t *plane, int w, int h)
|
||||||
|
@ -439,7 +439,7 @@ intel_copy_bo(struct intel_batchbuffer *batch,
|
|||||||
* igt_buf_width:
|
* igt_buf_width:
|
||||||
* @buf: the i-g-t buffer object
|
* @buf: the i-g-t buffer object
|
||||||
*
|
*
|
||||||
* Computes the widht in 32-bit pixels of the given buffer.
|
* Computes the width in 32-bit pixels of the given buffer.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* The width of the buffer.
|
* The width of the buffer.
|
||||||
@ -674,7 +674,7 @@ void igt_blitter_fast_copy__raw(int fd,
|
|||||||
* @dst_x: destination pixel x-coordination
|
* @dst_x: destination pixel x-coordination
|
||||||
* @dst_y: destination pixel y-coordination
|
* @dst_y: destination pixel y-coordination
|
||||||
*
|
*
|
||||||
* Copy @src into @dst using the gen9 fast copy blitter comamnd.
|
* Copy @src into @dst using the gen9 fast copy blitter command.
|
||||||
*
|
*
|
||||||
* The source and destination surfaces cannot overlap.
|
* The source and destination surfaces cannot overlap.
|
||||||
*/
|
*/
|
||||||
|
@ -173,7 +173,7 @@ int intel_gen(uint32_t devid)
|
|||||||
* intel_check_pch:
|
* intel_check_pch:
|
||||||
*
|
*
|
||||||
* Detects the PCH chipset type of the running systems and fills in the results
|
* Detects the PCH chipset type of the running systems and fills in the results
|
||||||
* into the global #intel_pch varaible.
|
* into the global #intel_pch variable.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
intel_check_pch(void)
|
intel_check_pch(void)
|
||||||
|
@ -66,7 +66,7 @@ static int vlv_sideband_rw(uint32_t port, uint8_t opcode, uint32_t addr,
|
|||||||
/**
|
/**
|
||||||
* intel_punit_read:
|
* intel_punit_read:
|
||||||
* @addr: register offset
|
* @addr: register offset
|
||||||
* @val: pointer to starge for the read result
|
* @val: pointer to store the read result
|
||||||
*
|
*
|
||||||
* 32-bit read of the register at @offset through the P-Unit sideband port.
|
* 32-bit read of the register at @offset through the P-Unit sideband port.
|
||||||
*
|
*
|
||||||
|
@ -153,7 +153,7 @@ release_forcewake_lock(int fd)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* intel_register_access_init:
|
* intel_register_access_init:
|
||||||
* @pci_dev: intel gracphis pci device
|
* @pci_dev: intel graphics pci device
|
||||||
* @safe: use safe register access tables
|
* @safe: use safe register access tables
|
||||||
*
|
*
|
||||||
* This initializes the new register access library, which supports forcewake
|
* This initializes the new register access library, which supports forcewake
|
||||||
|
@ -210,7 +210,7 @@ intel_get_total_swap_mb(void)
|
|||||||
* there is not enough RAM + SWAP!
|
* there is not enough RAM + SWAP!
|
||||||
*
|
*
|
||||||
* If there is not enough RAM this function calls igt_skip with an appropriate
|
* If there is not enough RAM this function calls igt_skip with an appropriate
|
||||||
* message. It only ever returns if the requirement is fullfilled. This function
|
* message. It only ever returns if the requirement is fulfilled. This function
|
||||||
* also causes the test to be skipped automatically on simulation under the
|
* also causes the test to be skipped automatically on simulation under the
|
||||||
* assumption that any test that needs to check for memory requirements is a
|
* assumption that any test that needs to check for memory requirements is a
|
||||||
* thrashing test unsuitable for slow simulated systems.
|
* thrashing test unsuitable for slow simulated systems.
|
||||||
|
@ -526,7 +526,7 @@ bool gem_mmap__has_wc(int fd)
|
|||||||
* gem_mmap__wc:
|
* gem_mmap__wc:
|
||||||
* @fd: open i915 drm file descriptor
|
* @fd: open i915 drm file descriptor
|
||||||
* @handle: gem buffer object handle
|
* @handle: gem buffer object handle
|
||||||
* @offset: offset in the gem buffer of te mmap arena
|
* @offset: offset in the gem buffer of the mmap arena
|
||||||
* @size: size of the mmap arena
|
* @size: size of the mmap arena
|
||||||
* @prot: memory protection bits as used by mmap()
|
* @prot: memory protection bits as used by mmap()
|
||||||
*
|
*
|
||||||
@ -562,7 +562,7 @@ void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsi
|
|||||||
* gem_mmap__cpu:
|
* gem_mmap__cpu:
|
||||||
* @fd: open i915 drm file descriptor
|
* @fd: open i915 drm file descriptor
|
||||||
* @handle: gem buffer object handle
|
* @handle: gem buffer object handle
|
||||||
* @offset: offset in the gem buffer of te mmap arena
|
* @offset: offset in the gem buffer of the mmap arena
|
||||||
* @size: size of the mmap arena
|
* @size: size of the mmap arena
|
||||||
* @prot: memory protection bits as used by mmap()
|
* @prot: memory protection bits as used by mmap()
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user