search for: flip_threshold

Displaying 20 results from an estimated 22 matches for "flip_threshold".

2020 Oct 06
0
[RFC PATCH v2 1/3] drm/nouveau/kms/nvd9-: Introduce some kernel-docs for CRC support
...++ 2 files changed, 73 insertions(+) diff --git a/drivers/gpu/drm/nouveau/dispnv50/crc.c b/drivers/gpu/drm/nouveau/dispnv50/crc.c index b8c31b697797..84df41e8fb05 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/crc.c +++ b/drivers/gpu/drm/nouveau/dispnv50/crc.c @@ -699,6 +699,14 @@ nv50_crc_debugfs_flip_threshold_set(struct file *file, return ret; } +/** + * DOC: nv_crc/flip_threshold + * + * The number of CRC entries to place in a :term:`CRC notifier context` before + * attempting to flip to the other notifier context. Writing ``-1`` to this file + * will reset the threshold to the default value, whic...
2020 Jun 22
0
[RFC v5 10/10] drm/nouveau/kms/nvd9-: Add CRC support
...head->base.index, crc->frame); + crc->frame++; + + nv50_crc_reset_ctx(ctx); + need_reschedule = true; + } + + nv50_crc_get_entries(head, func, crc->src); + + if (need_reschedule) + drm_vblank_work_schedule(&crc->flip_work, + drm_crtc_vblank_count(crtc) + + crc->flip_threshold + - crc->entry_idx, + true); + +out: + spin_unlock(&crc->lock); +} + +static void nv50_crc_wait_ctx_finished(struct nv50_head *head, + const struct nv50_crc_func *func, + struct nv50_crc_notifier_ctx *ctx) +{ + struct drm_device *dev = head->base.base.dev;...
2020 Mar 18
0
[PATCH 9/9] drm/nouveau/kms/nvd9-: Add CRC support
...head->base.index, crc->frame); + crc->frame++; + + nv50_crc_reset_ctx(ctx); + need_reschedule = true; + } + + nv50_crc_get_entries(head, func, crc->src); + + if (need_reschedule) + drm_vblank_work_schedule(&crc->flip_work, + drm_crtc_vblank_count(crtc) + + crc->flip_threshold + - crc->entry_idx, + true); + +out: + spin_unlock(&crc->lock); +} + +static void nv50_crc_wait_ctx_finished(struct nv50_head *head, + const struct nv50_crc_func *func, + struct nv50_crc_notifier_ctx *ctx) +{ + struct drm_device *dev = head->base.base.dev;...
2020 Apr 17
0
[RFC v3 11/11] drm/nouveau/kms/nvd9-: Add CRC support
...head->base.index, crc->frame); + crc->frame++; + + nv50_crc_reset_ctx(ctx); + need_reschedule = true; + } + + nv50_crc_get_entries(head, func, crc->src); + + if (need_reschedule) + drm_vblank_work_schedule(&crc->flip_work, + drm_crtc_vblank_count(crtc) + + crc->flip_threshold + - crc->entry_idx, + true); + +out: + spin_unlock(&crc->lock); +} + +static void nv50_crc_wait_ctx_finished(struct nv50_head *head, + const struct nv50_crc_func *func, + struct nv50_crc_notifier_ctx *ctx) +{ + struct drm_device *dev = head->base.base.dev;...
2020 May 08
0
[RFC v4 12/12] drm/nouveau/kms/nvd9-: Add CRC support
...head->base.index, crc->frame); + crc->frame++; + + nv50_crc_reset_ctx(ctx); + need_reschedule = true; + } + + nv50_crc_get_entries(head, func, crc->src); + + if (need_reschedule) + drm_vblank_work_schedule(&crc->flip_work, + drm_crtc_vblank_count(crtc) + + crc->flip_threshold + - crc->entry_idx, + true); + +out: + spin_unlock(&crc->lock); +} + +static void nv50_crc_wait_ctx_finished(struct nv50_head *head, + const struct nv50_crc_func *func, + struct nv50_crc_notifier_ctx *ctx) +{ + struct drm_device *dev = head->base.base.dev;...
2020 Mar 18
12
[PATCH 0/9] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests that we'll be sending in just a short bit. This additionally adds a feature that Ville Syrj?l? came up with: vblank works. Basically, this is just a generic DRM
2020 Jun 22
13
[RFC v5 00/10] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Apr 17
9
[RFC v3 00/11] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests that we'll be sending in just a short bit. This additionally adds a feature that Ville Syrj?l? came up with: vblank works. Basically, this is just a generic DRM
2020 Sep 29
1
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...> + > > +struct color_fb { > > + double r, g, b; > > + igt_crc_t crc; > > + igt_fb_t fb; > > +}; > > + > > +#define HEX_COLOR(r_, g_, b_) \ > > + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } > > + > > +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) > > +{ > > + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); > > + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", > > "%d", threshold)); > > +} > >...
2020 Aug 18
2
[PATCH i-g-t v4] tests: Add nouveau-crc tests
...igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +static void create_colors(data_t *data, + struct colo...
2020 Sep 28
0
[igt-dev] [PATCH i-g-t v4] tests: Add nouveau-crc tests
...mode; > + igt_fb_t default_fb; > +} data_t; > + > +struct color_fb { > + double r, g, b; > + igt_crc_t crc; > + igt_fb_t fb; > +}; > + > +#define HEX_COLOR(r_, g_, b_) \ > + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } > + > +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) > +{ > + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); > + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); > +} > + > +static void create_colors(d...
2020 Jun 27
9
[RFC v8 0/9] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 May 08
16
[RFC v4 00/12] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Sep 30
0
[PATCH i-g-t v5 5/5] tests: Add nouveau-crc tests
...* Mention in test_ctx_flip_detection() that we also explicitly check that we've skipped -exactly- one frame. tl;dr more then one frame is too slow, less then one frame means a context flip just didn't happen when it should have. * Also check that the flip threshold we set in test_ctx_flip_threshold_reset_after_capture() isn't ignored by the driver * s/(create|destroy)_colors()/\1_crc_colors/g Changes since v3: * Update .gitlab-ci.yml to make nouveau exempt from the test-list-diff test, since all the cool kids are doing it and we don't care about autotools for nouveau Changes since...
2020 Jun 24
13
[RFC v7 00/11] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Mar 18
0
[PATCH i-g-t 4/4] tests: Add nouveau-crc tests
...igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +static void create_colors(data_t *data, + struct colo...
2020 Apr 17
0
[PATCH i-g-t v3 5/5] tests: Add nouveau-crc tests
...igt_output_t *output; + igt_plane_t *primary; + drmModeModeInfo *mode; + igt_fb_t default_fb; +} data_t; + +struct color_fb { + double r, g, b; + igt_crc_t crc; + igt_fb_t fb; +}; + +#define HEX_COLOR(r_, g_, b_) \ + { .r = (r_ / 255.0), .g = (g_ / 255.0), .b = (b_ / 255.0) } + +static void set_crc_flip_threshold(data_t *data, unsigned int threshold) +{ + igt_debug("Setting CRC notifier flip threshold to %d\n", threshold); + igt_assert_lt(0, igt_sysfs_printf(data->nv_crc_dir, "flip_threshold", "%d", threshold)); +} + +static void create_colors(data_t *data, + struct colo...
2020 Sep 30
9
[PATCH i-g-t v5 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, and at this point that 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
2020 Apr 17
10
[PATCH i-g-t v3 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau'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
2020 Sep 11
6
[RFC] Documentation: nouveau: Introduce some nouveau documentation
Other gpu drivers have some driver-specific documentation, so it would nice if nouveau did as well. This adds a bare-bones ReStructured Text document with sections for module parameter documentation, an overview of the driver architecture, a section for internal API documentation, and a glossary for nouveau-specific terms. To make the document a little less bare, I've included docblocks for