search for: igt_debugfs_pipe_dir

Displaying 12 results from an estimated 12 matches for "igt_debugfs_pipe_dir".

2020 Mar 18
0
[PATCH i-g-t 2/4] lib/igt_debugfs: Add igt_debugfs_pipe_dir()
...bugfs.h | 1 + 2 files changed, 30 insertions(+) diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index bf6be552..3c3b11e1 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -260,6 +260,35 @@ int igt_debugfs_connector_dir(int device, char *conn_name, int mode) return ret; } +/** + * igt_debugfs_pipe_dir: + * @device: fd of the device + * @pipe: index of pipe + * @mode: mode bits as used by open() + * + * This opens the debugfs directory corresponding to the pipe index on the + * device for use with igt_sysfs_get() and related functions. + * + * Returns: + * The directory fd, or -1 on failure. + */...
2020 Apr 17
0
[PATCH i-g-t v3 3/5] lib/igt_debugfs: Add igt_debugfs_pipe_dir()
...bugfs.h | 1 + 2 files changed, 30 insertions(+) diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index bf6be552..3c3b11e1 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -260,6 +260,35 @@ int igt_debugfs_connector_dir(int device, char *conn_name, int mode) return ret; } +/** + * igt_debugfs_pipe_dir: + * @device: fd of the device + * @pipe: index of pipe + * @mode: mode bits as used by open() + * + * This opens the debugfs directory corresponding to the pipe index on the + * device for use with igt_sysfs_get() and related functions. + * + * Returns: + * The directory fd, or -1 on failure. + */...
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
...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 | 6 + lib/igt_kms.h | 1 + tests/me...
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
...rors 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 | 10 ++ lib/drmtest.h | 2 + lib/igt_core.h | 16 +- lib/igt_debugfs.c | 29 ++++ lib/igt_debugfs.h | 1 + lib/igt_kms.c | 6 + lib/igt_kms.h | 1 + tests/me...
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
...ay! 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 | 1 + lib/igt_kms.c | 5 + lib/igt_...
2020 Mar 18
6
[PATCH i-g-t 0/4] Add nouveau-crc tests
...ed 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 | 6 + lib/igt_kms.h | 1 + tests/me...
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
...data.mode->hdisplay, + data.mode->vdisplay, + 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) { +...
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
...data.mode->hdisplay, + data.mode->vdisplay, + 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) { +...
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
...data.mode->hdisplay, + data.mode->vdisplay, + 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) { +...
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
...data.mode->hdisplay, + data.mode->vdisplay, + 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...
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...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 t...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...a.mode->vdisplay, > + 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 i...