public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t v2 3/8] lib/igt_kms: Commit primary plane when a modeset is forced on a pipe
Date: Wed, 27 Sep 2017 20:16:30 +0200	[thread overview]
Message-ID: <20170927181635.21170-4-maarten.lankhorst@linux.intel.com> (raw)
In-Reply-To: <20170927181635.21170-1-maarten.lankhorst@linux.intel.com>

In between tests, some tests can do the following sequence:

(pipe C configured with FB)
igt_plane_set_fb(primary (pipe C), NULL);
/* Clear rotation property first */
igt_display_commit2(display, COMMIT_UNIVERSAL);

/* disable pipe */
igt_display_commit2(display, COMMIT_LEGACY);

This would result in PIPE_C not being properly disabled, which
will cause an error on the next mode. This can be seen when running
the full kms_rotation_crc testcase without --subtest, it will fail
on exhaust-fences because the bad-tiling subtest wasn't able to
disable pipe C correctly.

Testcase: kms_rotation_crc
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 lib/igt_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index a5db6bc493c2..d25090b05c70 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2332,7 +2332,7 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary,
 	igt_assert(!primary->rotation_changed);
 
 	if (!primary->fb_changed && !primary->position_changed &&
-	    !primary->size_changed)
+	    !primary->size_changed && !primary->pipe->mode_changed)
 		return 0;
 
 	crtc_id = pipe->crtc_id;
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2017-09-27 18:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-27 18:16 [PATCH i-g-t v2 0/8] lib/igt_kms: Convert properties to be more atomic-like Maarten Lankhorst
2017-09-27 18:16 ` [PATCH i-g-t v2 1/8] tests: Stop looking at plane private members Maarten Lankhorst
2017-09-27 18:16 ` [PATCH i-g-t v2 2/8] lib/igt_kms: Change output->pending_crtc_idx_mask to output->pending_pipe Maarten Lankhorst
2017-09-27 18:16 ` Maarten Lankhorst [this message]
2017-09-27 18:16 ` [PATCH i-g-t v2 4/8] lib/igt_kms: Rework connector properties to be more atomic, v2 Maarten Lankhorst
2017-09-27 18:16 ` [PATCH i-g-t v2 5/8] lib/igt_kms: Rework plane " Maarten Lankhorst
2017-09-28 10:28   ` [PATCH i-g-t v2 5/8] lib/igt_kms: Rework plane properties to be more atomic, v3 Maarten Lankhorst
2017-09-28 11:01     ` [PATCH i-g-t v2 5/8] lib/igt_kms: Rework plane properties to be more atomic, v4 Maarten Lankhorst
2017-09-29  9:52       ` [PATCH i-g-t] lib/igt_kms: Rework pipe properties to be more atomic, v4.1 Maarten Lankhorst
2017-09-27 18:16 ` [PATCH i-g-t v2 6/8] lib/igt_kms: Rework pipe properties to be more atomic, v2 Maarten Lankhorst
2017-09-28 10:28   ` [PATCH i-g-t v2 6/8] lib/igt_kms: Rework pipe properties to be more atomic, v3 Maarten Lankhorst
2017-09-29  6:50     ` [PATCH i-g-t] lib/igt_kms: Rework pipe properties to be more atomic, v4 Maarten Lankhorst
2017-09-27 18:16 ` [PATCH i-g-t v2 7/8] igt/kms_rotation_crc : Fix flip tests for sprite plane Maarten Lankhorst
2017-09-27 18:16 ` [PATCH i-g-t v2 8/8] tests: Rename kms_pipe_color to kms_color Maarten Lankhorst
2017-09-29 10:00   ` Mika Kahola
2017-09-27 18:39 ` ✓ Fi.CI.BAT: success for lib/igt_kms: Convert properties to be more atomic-like. (rev2) Patchwork
2017-09-27 22:51 ` ✗ Fi.CI.IGT: failure " Patchwork
2017-09-28 10:50 ` ✓ Fi.CI.BAT: success for lib/igt_kms: Convert properties to be more atomic-like. (rev4) Patchwork
2017-09-28 11:23 ` ✓ Fi.CI.BAT: success for lib/igt_kms: Convert properties to be more atomic-like. (rev5) Patchwork
2017-09-28 11:47 ` ✗ Fi.CI.IGT: failure for lib/igt_kms: Convert properties to be more atomic-like. (rev4) Patchwork
2017-09-28 12:34 ` ✗ Fi.CI.IGT: failure for lib/igt_kms: Convert properties to be more atomic-like. (rev5) Patchwork
2017-09-28 13:01 ` ✗ Fi.CI.IGT: failure for lib/igt_kms: Convert properties to be more atomic-like. (rev4) Patchwork
2017-09-28 13:04 ` ✗ Fi.CI.IGT: failure for lib/igt_kms: Convert properties to be more atomic-like. (rev5) Patchwork
2017-09-28 16:09 ` ✗ Fi.CI.IGT: failure for lib/igt_kms: Convert properties to be more atomic-like. (rev2) Patchwork
2017-09-29  6:58 ` ✗ Fi.CI.BAT: failure for lib/igt_kms: Convert properties to be more atomic-like. (rev6) 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=20170927181635.21170-4-maarten.lankhorst@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox