All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/atomic: Always allow async support for the atomic ioctl.
@ 2016-04-25  9:21 Maarten Lankhorst
  2016-04-25  9:35 ` Daniel Vetter
  2016-04-25 12:05 ` ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 5+ messages in thread
From: Maarten Lankhorst @ 2016-04-25  9:21 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

async_page_flip is a unrelated flag and should not be used for
testing support. It's up to the drivers to fail if they don't
support async commit.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/drm_atomic.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 984567057688..af8957b60388 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -1587,10 +1587,6 @@ int drm_mode_atomic_ioctl(struct drm_device *dev,
 	if (arg->reserved)
 		return -EINVAL;
 
-	if ((arg->flags & DRM_MODE_PAGE_FLIP_ASYNC) &&
-			!dev->mode_config.async_page_flip)
-		return -EINVAL;
-
 	/* can't test and expect an event at the same time. */
 	if ((arg->flags & DRM_MODE_ATOMIC_TEST_ONLY) &&
 			(arg->flags & DRM_MODE_PAGE_FLIP_EVENT))
-- 
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2016-04-25 12:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-25  9:21 [PATCH] drm/atomic: Always allow async support for the atomic ioctl Maarten Lankhorst
2016-04-25  9:35 ` Daniel Vetter
2016-04-25  9:37   ` Maarten Lankhorst
2016-04-25  9:40     ` Daniel Vetter
2016-04-25 12:05 ` ✗ Fi.CI.BAT: failure for " Patchwork

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.