All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t v3 1/2] tests/debugfs_test: Try to light all outputs to increase chances of finding fails, v3.
Date: Thu, 12 Oct 2017 15:05:23 +0100	[thread overview]
Message-ID: <150781712376.17631.13185584271491257475@mail.alporthouse.com> (raw)
In-Reply-To: <20171012104754.13836-1-maarten.lankhorst@linux.intel.com>

Quoting Maarten Lankhorst (2017-10-12 11:47:54)
> Make sure read_all_entries has all outputs possible enabled, but also
> add a test that runs with all outputs disabled.
> 
> This will maximize coverage of debugfs reading, and allows the test not
> to be dependent on fbcon for setup.
> 
> Changes since v1:
> - Put framebuffers on all primary planes, to get a crc from i915_sink_src_eDP1.

Sure that isn't a problem in our pipe_crc dumper?

> Changes since v2:
> - Use igt_output_get_plane_type, not igt_output_get_plane.
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> #v1
> ---
>  tests/debugfs_test.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
> 
> diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c
> index 5e7805e1559e..c4f43a65b61b 100644
> --- a/tests/debugfs_test.c
> +++ b/tests/debugfs_test.c
> @@ -78,15 +78,64 @@ static void read_and_discard_sysfs_entries(int path_fd)
>  igt_main
>  {
>         int fd = -1, debugfs;
> +       igt_display_t display;
> +       struct igt_fb fb[IGT_MAX_PIPES];
> +       enum pipe pipe;
> +
>         igt_skip_on_simulation();
>  
>         igt_fixture {
>                 fd = drm_open_driver_master(DRIVER_INTEL);
>                 igt_require_gem(fd);
>                 debugfs = igt_debugfs_dir(fd);
> +
> +               kmstest_set_vt_graphics_mode();
> +               igt_display_init(&display, fd);
>         }
>  
>         igt_subtest("read_all_entries") {
> +               /* try to light all pipes */
> +               for_each_pipe(&display, pipe) {
> +                       igt_output_t *output;
> +
> +                       for_each_valid_output_on_pipe(&display, pipe, output) {
> +                               igt_plane_t *primary;
> +                               drmModeModeInfo *mode;
> +
> +                               if (output->pending_pipe != PIPE_NONE)
> +                                       continue;
> +
> +                               igt_output_set_pipe(output, pipe);
> +                               primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
> +                               mode = igt_output_get_mode(output);
> +                               igt_create_pattern_fb(display.drm_fd,
> +                                                     mode->hdisplay, mode->vdisplay,
> +                                                     DRM_FORMAT_XRGB8888,
> +                                                     LOCAL_DRM_FORMAT_MOD_NONE, &fb[pipe]);
> +

/* Set a valid fb as some debugfs like to inspect it on a active pipe */

> +                               igt_plane_set_fb(primary, &fb[pipe]);
> +                               break;
> +                       }
> +               }
> +
> +               igt_display_commit2(&display, display.is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
> +
> +               read_and_discard_sysfs_entries(debugfs);

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-10-12 14:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-10 16:04 [PATCH i-g-t 0/2] tests/BAT: Reduce reliance on fbcon Maarten Lankhorst
2017-10-10 16:04 ` [PATCH i-g-t 1/2] tests/debugfs_test: Try to light all outputs to increase chances of finding fails Maarten Lankhorst
2017-10-10 20:12   ` Chris Wilson
2017-10-11 10:28     ` Maarten Lankhorst
2017-10-25  1:36       ` Pandiyan, Dhinakaran
2017-10-25  7:56         ` Maarten Lankhorst
2017-10-12 10:01     ` [PATCH i-g-t v2 1/2] tests/debugfs_test: Try to light all outputs to increase chances of finding fails, v2 Maarten Lankhorst
2017-10-12 10:47       ` [PATCH i-g-t v3 1/2] tests/debugfs_test: Try to light all outputs to increase chances of finding fails, v3 Maarten Lankhorst
2017-10-12 14:05         ` Chris Wilson [this message]
2017-10-10 16:04 ` [PATCH i-g-t 2/2] tests/pm_backlight: Enable all possible outputs to allow tests to succeed Maarten Lankhorst
2017-10-10 16:14   ` Ville Syrjälä
2017-10-10 16:23     ` Maarten Lankhorst
2017-10-11  9:24       ` Ville Syrjälä
2017-10-11  9:25         ` [PATCH i-g-t] tests/pm_backlight: Enable connected output to allow tests to succeed, v2 Maarten Lankhorst
2017-10-12 10:00           ` [PATCH i-g-t v2 2/2] tests/pm_backlight: Enable connected output to allow tests to succeed, v3 Maarten Lankhorst
2017-10-12 10:55             ` [PATCH i-g-t v3 2/2] tests/pm_backlight: Enable connected output to allow tests to succeed, v4 Maarten Lankhorst
2017-10-12 12:29               ` Ville Syrjälä
2017-10-10 19:26 ` ✗ Fi.CI.BAT: warning for tests/BAT: Reduce reliance on fbcon Patchwork
2017-10-11 13:09 ` ✗ Fi.CI.BAT: warning for tests/BAT: Reduce reliance on fbcon. (rev2) Patchwork
2017-10-12 10:28 ` ✗ Fi.CI.BAT: failure for tests/BAT: Reduce reliance on fbcon. (rev4) Patchwork
2017-10-12 11:29 ` ✓ Fi.CI.BAT: success for tests/BAT: Reduce reliance on fbcon. (rev6) Patchwork
2017-10-12 12:56 ` ✗ Fi.CI.IGT: warning " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=150781712376.17631.13185584271491257475@mail.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.