search for: igt_require_fd

Displaying 13 results from an estimated 13 matches for "igt_require_fd".

2020 Apr 17
0
[PATCH i-g-t v3 2/5] lib/igt_core: Add igt_require_fd()
From: Lyude Paul <lyude at redhat.com> Like igt_assert_fd(), but using igt_require() instead Changes since v1: * Fix documentation error in igt_require_fd() - Petri Latvala Signed-off-by: Lyude Paul <lyude at redhat.com> --- lib/igt_core.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index 3f69b072..8f68b2dd 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1021,6 +1021,18 @@ void igt_de...
2020 Sep 30
0
[PATCH i-g-t v5 2/5] lib/igt_core: Add igt_require_fd()
From: Lyude Paul <lyude at redhat.com> Like igt_assert_fd(), but using igt_require() instead Changes since v1: * Fix documentation error in igt_require_fd() - Petri Latvala Signed-off-by: Lyude Paul <lyude at redhat.com> --- lib/igt_core.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index e74ede8b..5d835260 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1021,6 +1021,18 @@ void igt_de...
2020 Mar 18
0
[PATCH i-g-t 1/4] lib/igt_core: Add igt_require_fd()
...d, 12 insertions(+) diff --git a/lib/igt_core.h b/lib/igt_core.h index fae5f59e..b66336cf 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1008,6 +1008,18 @@ void igt_describe_f(const char *fmt, ...); else igt_debug("Test requirement passed: %s\n", #expr); \ } while (0) +/** + * igt_require_fd: + * @fd: file descriptor + * + * Skips (sub-) test if the given file descriptor is invalid. + * + * Like igt_require(), but displays the values being compared on failure instead + * of simply printing the stringified expression.. + */ +#define igt_require_fd(fd) \ + igt_require_f(fd >= 0, &quot...
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
...is series adds the relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Changes since v2: * Fix build errors on mips/arm/aarch64 Changes since v1: * fix documentation errors Petri pointed out * Fix documentation for igt_require_fd() * Fix copyright year in tests/nouveau_crc.c Lyude Paul (5): lib/igt_core: Fix igt_assert_fd() documentation lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests lib/drmtest.c |...
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
...support has made its way upstream. Hooray! So, let's start adding some relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Lyude Paul (5): lib/igt_core: Fix igt_assert_fd() documentation lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests .gitlab-ci.yml | 2 +- lib/drmtest.c | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 16 +- lib/igt_debugfs.c | 21 +++ lib/igt_debugfs.h...
2020 Mar 18
6
[PATCH i-g-t 0/4] Add nouveau-crc tests
...9;s mailing list configuration has blocked the email so I'm waiting for a moderator to fix that) So, this series adds the relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Lyude Paul (4): lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests lib/drmtest.c | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 12 ++ lib/igt_debugfs.c | 29 ++++ lib/igt_debugfs.h | 1 + lib/igt_kms.c...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
...il so I'm waiting for a moderator to fix that) So, this series adds the relevant tests for it since nvidia's CRC implementation has some rather interesting design choices that needed to be worked around. Lyude Paul (5): lib/igt_core: Fix igt_assert_fd() documentation lib/igt_core: Add igt_require_fd() lib/igt_debugfs: Add igt_debugfs_pipe_dir() lib/igt_kms: Hook up connector dithering prop tests: Add nouveau-crc tests lib/drmtest.c | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 16 +- lib/igt_debugfs.c | 29 ++++ lib/igt_debugfs.h | 1 + lib/igt_kms.c...
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
...y, + DRM_FORMAT_XRGB8888, + LOCAL_DRM_FORMAT_MOD_NONE, + 0.0, 0.0, 0.0, + &data.default_fb); + igt_plane_set_fb(data.primary, &data.default_fb); + igt_display_commit(&data.display); + + dir = igt_debugfs_pipe_dir(data.drm_fd, pipe, O_DIRECTORY); + igt_require_fd(dir); + data.nv_crc_dir = openat(dir, "nv_crc", O_DIRECTORY); + close(dir); + igt_require_fd(data.nv_crc_dir); + } + + /* We don't need to test this on every pipe, but the + * setup is the same */ + if (pipe == PIPE_A) { + igt_describe("Make sure that the CRC notifie...
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
...y, + DRM_FORMAT_XRGB8888, + LOCAL_DRM_FORMAT_MOD_NONE, + 0.0, 0.0, 0.0, + &data.default_fb); + igt_plane_set_fb(data.primary, &data.default_fb); + igt_display_commit(&data.display); + + dir = igt_debugfs_pipe_dir(data.drm_fd, pipe, O_DIRECTORY); + igt_require_fd(dir); + data.nv_crc_dir = openat(dir, "nv_crc", O_DIRECTORY); + close(dir); + igt_require_fd(data.nv_crc_dir); + } + + /* We don't need to test this on every pipe, but the + * setup is the same */ + if (pipe == PIPE_A) { + igt_describe("Make sure that the CRC notifie...
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
...y, + DRM_FORMAT_XRGB8888, + LOCAL_DRM_FORMAT_MOD_NONE, + 0.0, 0.0, 0.0, + &data.default_fb); + igt_plane_set_fb(data.primary, &data.default_fb); + igt_display_commit(&data.display); + + dir = igt_debugfs_pipe_dir(data.drm_fd, pipe, O_DIRECTORY); + igt_require_fd(dir); + data.nv_crc_dir = openat(dir, "nv_crc", O_DIRECTORY); + close(dir); + igt_require_fd(data.nv_crc_dir); + } + + /* We don't need to test this on every pipe, but the + * setup is the same */ + if (pipe == PIPE_A) { + igt_describe("Make sure that the CRC notifie...
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
...y, + DRM_FORMAT_XRGB8888, + LOCAL_DRM_FORMAT_MOD_NONE, + 0.0, 0.0, 0.0, + &data.default_fb); + igt_plane_set_fb(data.primary, &data.default_fb); + igt_display_commit(&data.display); + + dir = igt_debugfs_pipe_dir(data.drm_fd, pipe, O_DIRECTORY); + igt_require_fd(dir); + data.nv_crc_dir = openat(dir, "nv_crc", O_DIRECTORY); + close(dir); + igt_require_fd(data.nv_crc_dir); + } + + /* We don't need to test this on every pipe, but the setup is the same */ + if (pipe == PIPE_A) { + igt_describe("Make sure that the CRC notifier cont...
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...+ 0.0, 0.0, 0.0, > > + &data.default_fb); > > + igt_plane_set_fb(data.primary, &data.default_fb); > > + igt_display_commit(&data.display); > > + > > + dir = igt_debugfs_pipe_dir(data.drm_fd, pipe, > > O_DIRECTORY); > > + igt_require_fd(dir); > > + data.nv_crc_dir = openat(dir, "nv_crc", O_DIRECTORY); > > + close(dir); > > + igt_require_fd(data.nv_crc_dir); > > + } > > + > > + /* We don't need to test this on every pipe, but the > > + * setup is the same */ > &gt...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...LOCAL_DRM_FORMAT_MOD_NONE, > + 0.0, 0.0, 0.0, > + &data.default_fb); > + igt_plane_set_fb(data.primary, &data.default_fb); > + igt_display_commit(&data.display); > + > + dir = igt_debugfs_pipe_dir(data.drm_fd, pipe, O_DIRECTORY); > + igt_require_fd(dir); > + data.nv_crc_dir = openat(dir, "nv_crc", O_DIRECTORY); > + close(dir); > + igt_require_fd(data.nv_crc_dir); > + } > + > + /* We don't need to test this on every pipe, but the > + * setup is the same */ > + if (pipe == PIPE_A) { > + igt_...