linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [[PATCH]test/kms_atomic:Added allow_modeset flag] Signed-off-by: Tan Pei Zhan <pei.zhan.tan@intel.com>
@ 2016-06-28  7:30 peizhant
  0 siblings, 0 replies; 2+ messages in thread
From: peizhant @ 2016-06-28  7:30 UTC (permalink / raw)
  To: linux-kernel, bob.j.paauwe, matthew.d.roper; +Cc: Tan Pei Zhan

From: Tan Pei Zhan <pei.zhan.tan@intel.com>

Added DMS_MODE_ATOMIC_ALLOW_MODESET in do_atomic_commit function
---
 tests/kms_atomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index f27ee46..b9259b3 100644
--- a/tests/kms_atomic.c
+++ b/tests/kms_atomic.c
@@ -238,7 +238,7 @@ static uint32_t blob_duplicate(int fd, uint32_t id_orig)
 	drmModeAtomicSetCursor(req, 0); \
 	crtc_populate_req(crtc, req); \
 	plane_populate_req(plane, req); \
-	do_atomic_commit((crtc)->state->desc->fd, req, 0); \
+	do_atomic_commit((crtc)->state->desc->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET); \
 	crtc_check_current_state(crtc, plane, relax); \
 	plane_check_current_state(plane, relax); \
 }
@@ -255,7 +255,7 @@ static uint32_t blob_duplicate(int fd, uint32_t id_orig)
 #define plane_commit_atomic(plane, req, relax) { \
 	drmModeAtomicSetCursor(req, 0); \
 	plane_populate_req(plane, req); \
-	do_atomic_commit((plane)->state->desc->fd, req, 0); \
+	do_atomic_commit((plane)->state->desc->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESETDRM); \
 	plane_check_current_state(plane, relax); \
 }
 
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [[PATCH]test/kms_atomic:Added allow_modeset flag] Signed-off-by: Tan Pei Zhan <pei.zhan.tan@intel.com>
@ 2016-06-28  7:31 peizhant
  0 siblings, 0 replies; 2+ messages in thread
From: peizhant @ 2016-06-28  7:31 UTC (permalink / raw)
  To: linux-kernel, bob.j.paauwe, matthew.d.roper; +Cc: Tan Pei Zhan

From: Tan Pei Zhan <pei.zhan.tan@intel.com>

Added DMS_MODE_ATOMIC_ALLOW_MODESET in do_atomic_commit function
---
 tests/kms_atomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index f27ee46..b9259b3 100644
--- a/tests/kms_atomic.c
+++ b/tests/kms_atomic.c
@@ -238,7 +238,7 @@ static uint32_t blob_duplicate(int fd, uint32_t id_orig)
 	drmModeAtomicSetCursor(req, 0); \
 	crtc_populate_req(crtc, req); \
 	plane_populate_req(plane, req); \
-	do_atomic_commit((crtc)->state->desc->fd, req, 0); \
+	do_atomic_commit((crtc)->state->desc->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET); \
 	crtc_check_current_state(crtc, plane, relax); \
 	plane_check_current_state(plane, relax); \
 }
@@ -255,7 +255,7 @@ static uint32_t blob_duplicate(int fd, uint32_t id_orig)
 #define plane_commit_atomic(plane, req, relax) { \
 	drmModeAtomicSetCursor(req, 0); \
 	plane_populate_req(plane, req); \
-	do_atomic_commit((plane)->state->desc->fd, req, 0); \
+	do_atomic_commit((plane)->state->desc->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESETDRM); \
 	plane_check_current_state(plane, relax); \
 }
 
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-28  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-28  7:30 [[PATCH]test/kms_atomic:Added allow_modeset flag] Signed-off-by: Tan Pei Zhan <pei.zhan.tan@intel.com> peizhant
2016-06-28  7:31 peizhant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).