Skip to contentSkip to conversation

drm/atomic: Take the atomic toys away from X

PATCH In review Daniel Vetter 9 participants 25 messages Sep 3, 2019 – May 8, 2020

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 drm/atomic: Take the atomic toys away from X

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/drm_ioctl.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_ioctl.c +3 -0
index 2c120c58f72d..1cb7b4c3c87c 100644
@@ -334,6 +334,9 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
 		file_priv->universal_planes = req->value;
 		break;
 	case DRM_CLIENT_CAP_ATOMIC:
+		/* The modesetting DDX has a totally broken idea of atomic. */
+		if (strstr(current->comm, "X"))
+			return -EOPNOTSUPP;
 		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
 			return -EOPNOTSUPP;
 		if (req->value > 1)
Signature · 1 line
2.23.0
#1 lore raw

PATCH 2/3 drm/atomic: Reject FLIP_ASYNC unconditionally

It's never been wired up. Only userspace that tried to use it (and didn't actually check whether anything works, but hey it builds) is the -modesetting atomic implementation. And we just shut that up.

If there's anyone else then we need to silently accept this flag no matter what, and find a new one. Because once a flag is tainted, it's lost.

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/drm_atomic_uapi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/drm_atomic_uapi.c +1 -2
index 5a5b42db6f2a..7a26bfb5329c 100644
@@ -1305,8 +1305,7 @@ 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)
+	if (arg->flags & DRM_MODE_PAGE_FLIP_ASYNC)
 		return -EINVAL;
 
 	/* can't test and expect an event at the same time. */
Signature · 6 lines
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

PATCH 3/3 drm/atomic: Rename crtc_state->pageflip_flags to async_flip

In reply to Daniel Vetter

It's the only flag anyone actually cares about. Plus if we're unlucky, the atomic ioctl might need a different flag for async flips. So better to abstract this away from the uapi a bit.

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Nicholas Kazlauskas <[email protected]>
Cc Leo Li <[email protected]>
Cc Harry Wentland <[email protected]>
Cc David Francis <[email protected]>
Cc Mario Kleiner <[email protected]>
Cc Bhawanpreet Lakha <[email protected]>
Cc Ben Skeggs <[email protected]>
Cc "Christian König" <[email protected]>
Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Chris Wilson <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ++---
 drivers/gpu/drm/drm_atomic_helper.c               | 2 +-
 drivers/gpu/drm/drm_atomic_state_helper.c         | 2 +-
 drivers/gpu/drm/nouveau/dispnv50/wndw.c           | 4 ++--
 include/drm/drm_crtc.h                            | 8 ++++----
 5 files changed, 10 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -3
index 0a71ed1e7762..2f0ef0820f00 100644
@@ -5756,8 +5756,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
 		 * change FB pitch, DCC state, rotation or mirroing.
 		 */
 		bundle->flip_addrs[planes_count].flip_immediate =
-			(crtc->state->pageflip_flags &
-			 DRM_MODE_PAGE_FLIP_ASYNC) != 0 &&
+			crtc->state->async_flip &&
 			acrtc_state->update_type == UPDATE_TYPE_FAST;
 
 		timestamp_ns = ktime_get_ns();
@@ -6334,7 +6333,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
 	amdgpu_dm_enable_crtc_interrupts(dev, state, true);
 
 	for_each_new_crtc_in_state(state, crtc, new_crtc_state, j)
-		if (new_crtc_state->pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC)
+		if (new_crtc_state->async_flip)
 			wait_for_vblank = false;
 
 	/* update planes when needed per crtc*/
drivers/gpu/drm/drm_atomic_helper.c +1 -1
index e9c6112e7f73..1e5293eb66e3 100644
@@ -3263,7 +3263,7 @@ static int page_flip_common(struct drm_atomic_state *state,
 		return PTR_ERR(crtc_state);
 
 	crtc_state->event = event;
-	crtc_state->pageflip_flags = flags;
+	crtc_state->async_flip = flags & DRM_MODE_PAGE_FLIP_ASYNC;
 
 	plane_state = drm_atomic_get_plane_state(state, plane);
 	if (IS_ERR(plane_state))
drivers/gpu/drm/drm_atomic_state_helper.c +1 -1
index 46dc264a248b..d0a937fb0c56 100644
@@ -128,7 +128,7 @@ void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
 	state->zpos_changed = false;
 	state->commit = NULL;
 	state->event = NULL;
-	state->pageflip_flags = 0;
+	state->async_flip = false;
 
 	/* Self refresh should be canceled when a new update is available */
 	state->active = drm_atomic_crtc_effectively_active(state);
drivers/gpu/drm/nouveau/dispnv50/wndw.c +2 -2
index 2db029371c91..5193b6257061 100644
@@ -267,7 +267,7 @@ nv50_wndw_atomic_check_acquire(struct nv50_wndw *wndw, bool modeset,
 			asyw->image.pitch[0] = fb->base.pitches[0];
 		}
 
-		if (!(asyh->state.pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC))
+		if (!asyh->state.async_flip)
 			asyw->image.interval = 1;
 		else
 			asyw->image.interval = 0;
@@ -383,7 +383,7 @@ nv50_wndw_atomic_check_lut(struct nv50_wndw *wndw,
 	}
 
 	/* Can't do an immediate flip while changing the LUT. */
-	asyh->state.pageflip_flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
+	asyh->state.async_flip = false;
 }
 
 static int
include/drm/drm_crtc.h +4 -4
index 7e2963cad543..900ae8d452b8 100644
@@ -284,12 +284,12 @@ struct drm_crtc_state {
 	u32 target_vblank;
 
 	/**
-	 * @pageflip_flags:
+	 * @async_flip:
 	 *
-	 * DRM_MODE_PAGE_FLIP_* flags, as passed to the page flip ioctl.
-	 * Zero in any other case.
+	 * This is set when DRM_MODE_PAGE_FLIP_ASYNC is set in the legacy
+	 * PAGE_FLIP IOCTL. It's not wired up for the atomic IOCTL itself yet.
 	 */
-	u32 pageflip_flags;
+	bool async_flip;
 
 	/**
 	 * @vrr_enabled:
Signature · 6 lines
2.23.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 3/3
#3 lore raw

Re: [PATCH 3/3] drm/atomic: Rename crtc_state->pageflip_flags to async_flip

Quoted 24 lines · Daniel Vetter

It's the only flag anyone actually cares about. Plus if we're unlucky, the atomic ioctl might need a different flag for async flips. So better to abstract this away from the uapi a bit.

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Nicholas Kazlauskas <[email protected]>
Cc Leo Li <[email protected]>
Cc Harry Wentland <[email protected]>
Cc David Francis <[email protected]>
Cc Mario Kleiner <[email protected]>
Cc Bhawanpreet Lakha <[email protected]>
Cc Ben Skeggs <[email protected]>
Cc "Christian König" <[email protected]>
Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Chris Wilson <[email protected]>
Quoted 1 line

---

Series is:

I would like to see a new flag eventually show up for atomic as well, but the existing one is effectively broken at this point and I would hope that no userspace is setting it expecting that it actually does something.

At this point we don't really gain anything from enabling atomic in DDX I think, most drivers already make use of DRM helpers to map these legacy IOCTLs to atomic anyway.

Nicholas Kazlauskas

Quoted 90 lines
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ++---
  drivers/gpu/drm/drm_atomic_helper.c               | 2 +-
  drivers/gpu/drm/drm_atomic_state_helper.c         | 2 +-
  drivers/gpu/drm/nouveau/dispnv50/wndw.c           | 4 ++--
  include/drm/drm_crtc.h                            | 8 ++++----
  5 files changed, 10 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -3
index 0a71ed1e7762..2f0ef0820f00 100644
@@ -5756,8 +5756,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
  		 * change FB pitch, DCC state, rotation or mirroing.
  		 */
  		bundle->flip_addrs[planes_count].flip_immediate =
-			(crtc->state->pageflip_flags &
-			 DRM_MODE_PAGE_FLIP_ASYNC) != 0 &&
+			crtc->state->async_flip &&
  			acrtc_state->update_type == UPDATE_TYPE_FAST;
 
  		timestamp_ns = ktime_get_ns();
@@ -6334,7 +6333,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
  	amdgpu_dm_enable_crtc_interrupts(dev, state, true);
 
  	for_each_new_crtc_in_state(state, crtc, new_crtc_state, j)
-		if (new_crtc_state->pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC)
+		if (new_crtc_state->async_flip)
  			wait_for_vblank = false;
 
  	/* update planes when needed per crtc*/
drivers/gpu/drm/drm_atomic_helper.c +1 -1
index e9c6112e7f73..1e5293eb66e3 100644
@@ -3263,7 +3263,7 @@ static int page_flip_common(struct drm_atomic_state *state,
  		return PTR_ERR(crtc_state);
 
  	crtc_state->event = event;
-	crtc_state->pageflip_flags = flags;
+	crtc_state->async_flip = flags & DRM_MODE_PAGE_FLIP_ASYNC;
 
  	plane_state = drm_atomic_get_plane_state(state, plane);
  	if (IS_ERR(plane_state))
drivers/gpu/drm/drm_atomic_state_helper.c +1 -1
index 46dc264a248b..d0a937fb0c56 100644
@@ -128,7 +128,7 @@ void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
  	state->zpos_changed = false;
  	state->commit = NULL;
  	state->event = NULL;
-	state->pageflip_flags = 0;
+	state->async_flip = false;
 
  	/* Self refresh should be canceled when a new update is available */
  	state->active = drm_atomic_crtc_effectively_active(state);
drivers/gpu/drm/nouveau/dispnv50/wndw.c +2 -2
index 2db029371c91..5193b6257061 100644
@@ -267,7 +267,7 @@ nv50_wndw_atomic_check_acquire(struct nv50_wndw *wndw, bool modeset,
  			asyw->image.pitch[0] = fb->base.pitches[0];
  		}
 
-		if (!(asyh->state.pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC))
+		if (!asyh->state.async_flip)
  			asyw->image.interval = 1;
  		else
  			asyw->image.interval = 0;
@@ -383,7 +383,7 @@ nv50_wndw_atomic_check_lut(struct nv50_wndw *wndw,
  	}
 
  	/* Can't do an immediate flip while changing the LUT. */
-	asyh->state.pageflip_flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
+	asyh->state.async_flip = false;
  }
 
  static int
include/drm/drm_crtc.h +1 -1
index 7e2963cad543..900ae8d452b8 100644
@@ -284,12 +284,12 @@ struct drm_crtc_state {
  	u32 target_vblank;
 
  	/**
-	 * @pageflip_flags:
+	 * @async_flip:
  	 *

include/drm/drm_crtc.h struct drm_crtc_state { · line 295

Quoted 10 lines
include/drm/drm_crtc.h +3 -3
-	 * DRM_MODE_PAGE_FLIP_* flags, as passed to the page flip ioctl.
-	 * Zero in any other case.
+	 * This is set when DRM_MODE_PAGE_FLIP_ASYNC is set in the legacy
+	 * PAGE_FLIP IOCTL. It's not wired up for the atomic IOCTL itself yet.
  	 */
-	u32 pageflip_flags;
+	bool async_flip;
 
  	/**
  	 * @vrr_enabled:

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

Re: [PATCH 3/3] drm/atomic: Rename crtc_state->pageflip_flags to async_flip

Quoted 28 lines · Nicholas
Quoted 24 lines · Daniel Vetter

It's the only flag anyone actually cares about. Plus if we're unlucky, the atomic ioctl might need a different flag for async flips. So better to abstract this away from the uapi a bit.

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Nicholas Kazlauskas <[email protected]>
Cc Leo Li <[email protected]>
Cc Harry Wentland <[email protected]>
Cc David Francis <[email protected]>
Cc Mario Kleiner <[email protected]>
Cc Bhawanpreet Lakha <[email protected]>
Cc Ben Skeggs <[email protected]>
Cc "Christian König" <[email protected]>
Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Chris Wilson <[email protected]>
Quoted 1 line

---

Quoted 8 lines

Series is:

I would like to see a new flag eventually show up for atomic as well, but the existing one is effectively broken at this point and I would hope that no userspace is setting it expecting that it actually does something.

You mean it is generally broken? My software uses non-vsync'ed flips for diagnostic purpose and iirc some gpu + driver combo didn't work as expected anymore. But i thought that was one specific driver bug (maybe on AMD + DC)?

Quoted 5 lines

At this point we don't really gain anything from enabling atomic in DDX I think, most drivers already make use of DRM helpers to map these legacy IOCTLs to atomic anyway.

One thing i wanted to try, once i hopefully find some time in late 2019 / early 2020 (if nobody else starts working on such a thing earlier), would be to add the ability to pass in a target flip time to the pageflip ioctl for use with VRR. For that i thought adding a new pageflip flag a la DRM_MODE_PAGE_FLIP_TARGETTIME) would be a good way to reuse the existing page_flip_target ioctl and redefine the "uint32 sequence" field of struct drm_mode_crtc_page_flip_target to pass in the target time - or at least the lower 32 bits of a target time.

So that would be one more page flip flag for the future. I'd like this to be workable from X11, and the current DDX don't use the atomic interface, apart from the modesetting DDX where it just got disabled by default in xserver master due to various unresolved bugs afaik?

thanks,
-mario

Quoted 99 lines

Nicholas Kazlauskas

Quoted 97 lines
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ++---
  drivers/gpu/drm/drm_atomic_helper.c               | 2 +-
  drivers/gpu/drm/drm_atomic_state_helper.c         | 2 +-
  drivers/gpu/drm/nouveau/dispnv50/wndw.c           | 4 ++--
  include/drm/drm_crtc.h                            | 8 ++++----
  5 files changed, 10 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -3
index 0a71ed1e7762..2f0ef0820f00 100644
@@ -5756,8 +5756,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
               * change FB pitch, DCC state, rotation or mirroing.
               */
              bundle->flip_addrs[planes_count].flip_immediate =
-                     (crtc->state->pageflip_flags &
-                      DRM_MODE_PAGE_FLIP_ASYNC) != 0 &&
+                     crtc->state->async_flip &&
                      acrtc_state->update_type == UPDATE_TYPE_FAST;
 
              timestamp_ns = ktime_get_ns();
@@ -6334,7 +6333,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
      amdgpu_dm_enable_crtc_interrupts(dev, state, true);
 
      for_each_new_crtc_in_state(state, crtc, new_crtc_state, j)
-             if (new_crtc_state->pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC)
+             if (new_crtc_state->async_flip)
                      wait_for_vblank = false;
 
      /* update planes when needed per crtc*/
drivers/gpu/drm/drm_atomic_helper.c +1 -1
index e9c6112e7f73..1e5293eb66e3 100644
@@ -3263,7 +3263,7 @@ static int page_flip_common(struct drm_atomic_state *state,
              return PTR_ERR(crtc_state);
 
      crtc_state->event = event;
-     crtc_state->pageflip_flags = flags;
+     crtc_state->async_flip = flags & DRM_MODE_PAGE_FLIP_ASYNC;
 
      plane_state = drm_atomic_get_plane_state(state, plane);
      if (IS_ERR(plane_state))
drivers/gpu/drm/drm_atomic_state_helper.c +1 -1
index 46dc264a248b..d0a937fb0c56 100644
@@ -128,7 +128,7 @@ void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
      state->zpos_changed = false;
      state->commit = NULL;
      state->event = NULL;
-     state->pageflip_flags = 0;
+     state->async_flip = false;
 
      /* Self refresh should be canceled when a new update is available */
      state->active = drm_atomic_crtc_effectively_active(state);
drivers/gpu/drm/nouveau/dispnv50/wndw.c +2 -2
index 2db029371c91..5193b6257061 100644
@@ -267,7 +267,7 @@ nv50_wndw_atomic_check_acquire(struct nv50_wndw *wndw, bool modeset,
                      asyw->image.pitch[0] = fb->base.pitches[0];
              }
 
-             if (!(asyh->state.pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC))
+             if (!asyh->state.async_flip)
                      asyw->image.interval = 1;
              else
                      asyw->image.interval = 0;
@@ -383,7 +383,7 @@ nv50_wndw_atomic_check_lut(struct nv50_wndw *wndw,
      }
 
      /* Can't do an immediate flip while changing the LUT. */
-     asyh->state.pageflip_flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
+     asyh->state.async_flip = false;
  }
 
  static int
include/drm/drm_crtc.h +4 -4
index 7e2963cad543..900ae8d452b8 100644
@@ -284,12 +284,12 @@ struct drm_crtc_state {
      u32 target_vblank;
 
      /**
-      * @pageflip_flags:
+      * @async_flip:
       *
-      * DRM_MODE_PAGE_FLIP_* flags, as passed to the page flip ioctl.
-      * Zero in any other case.
+      * This is set when DRM_MODE_PAGE_FLIP_ASYNC is set in the legacy
+      * PAGE_FLIP IOCTL. It's not wired up for the atomic IOCTL itself yet.
       */
-     u32 pageflip_flags;
+     bool async_flip;
 
Quoted 4 lines

include/drm/drm_crtc.h struct drm_crtc_state { · line 295

Quoted 3 lines
include/drm/drm_crtc.h +0 -0
      /**
       * @vrr_enabled:

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

Re: [PATCH 3/3] drm/atomic: Rename crtc_state->pageflip_flags to async_flip

Quoted 39 lines · Mario Kleiner
Quoted 28 lines · Nicholas
Quoted 24 lines · Daniel Vetter

It's the only flag anyone actually cares about. Plus if we're unlucky, the atomic ioctl might need a different flag for async flips. So better to abstract this away from the uapi a bit.

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Nicholas Kazlauskas <[email protected]>
Cc Leo Li <[email protected]>
Cc Harry Wentland <[email protected]>
Cc David Francis <[email protected]>
Cc Mario Kleiner <[email protected]>
Cc Bhawanpreet Lakha <[email protected]>
Cc Ben Skeggs <[email protected]>
Cc "Christian König" <[email protected]>
Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Chris Wilson <[email protected]>
Quoted 1 line

---

Quoted 8 lines

Series is:

I would like to see a new flag eventually show up for atomic as well, but the existing one is effectively broken at this point and I would hope that no userspace is setting it expecting that it actually does something.

Quoted 4 lines

You mean it is generally broken? My software uses non-vsync'ed flips for diagnostic purpose and iirc some gpu + driver combo didn't work as expected anymore. But i thought that was one specific driver bug (maybe on AMD + DC)?

atomic ioctl + FLIP_ASYNC does not do anything special. FLIP_ASYNC with the legacy page_flip ioctl works correctly. This is in the core ioctl handler (the flag simply did nothing for atomic), so irrespective of whether the driver has a bug or not with FLIP_ASYNC.

Quoted 5 lines
Quoted 4 lines

At this point we don't really gain anything from enabling atomic in DDX I think, most drivers already make use of DRM helpers to map these legacy IOCTLs to atomic anyway.

Quoted 8 lines

One thing i wanted to try, once i hopefully find some time in late 2019 / early 2020 (if nobody else starts working on such a thing earlier), would be to add the ability to pass in a target flip time to the pageflip ioctl for use with VRR. For that i thought adding a new pageflip flag a la DRM_MODE_PAGE_FLIP_TARGETTIME) would be a good way to reuse the existing page_flip_target ioctl and redefine the "uint32 sequence" field of struct drm_mode_crtc_page_flip_target to pass in the target time - or at least the lower 32 bits of a target time.

Yeah target time (instead of just target vblank that we currently have) has been discussed before. It's just that no one yet typed an implementation (driver and userspace and all that).

Quoted 4 lines

So that would be one more page flip flag for the future. I'd like this to be workable from X11, and the current DDX don't use the atomic interface, apart from the modesetting DDX where it just got disabled by default in xserver master due to various unresolved bugs afaik?

It was a bit too simplistic a conversion. But for specific features (like doing a page flip with atomic instead of the legacy page_flip ioctl because you need that one new feature) you can just use the atomic ioctl - legacy ioctl and atomic can be mixed like that, because underneath it's all atomic anyway.

The trouble with the modesetting atomic is that atomic isn't a simple 1:1 translation of the old ioctls, and the implementation that landed was simply broken. And no one has put in the work to make it solid, so it got backed out.
-Daniel

Quoted 107 lines

thanks,
-mario

Quoted 103 lines

Nicholas Kazlauskas

Quoted 100 lines
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 ++---
  drivers/gpu/drm/drm_atomic_helper.c               | 2 +-
  drivers/gpu/drm/drm_atomic_state_helper.c         | 2 +-
  drivers/gpu/drm/nouveau/dispnv50/wndw.c           | 4 ++--
  include/drm/drm_crtc.h                            | 8 ++++----
  5 files changed, 10 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -3
index 0a71ed1e7762..2f0ef0820f00 100644
@@ -5756,8 +5756,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
               * change FB pitch, DCC state, rotation or mirroing.
               */
              bundle->flip_addrs[planes_count].flip_immediate =
-                     (crtc->state->pageflip_flags &
-                      DRM_MODE_PAGE_FLIP_ASYNC) != 0 &&
+                     crtc->state->async_flip &&
                      acrtc_state->update_type == UPDATE_TYPE_FAST;
 
              timestamp_ns = ktime_get_ns();
@@ -6334,7 +6333,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)
      amdgpu_dm_enable_crtc_interrupts(dev, state, true);
 
      for_each_new_crtc_in_state(state, crtc, new_crtc_state, j)
-             if (new_crtc_state->pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC)
+             if (new_crtc_state->async_flip)
                      wait_for_vblank = false;
 
      /* update planes when needed per crtc*/
drivers/gpu/drm/drm_atomic_helper.c +1 -1
index e9c6112e7f73..1e5293eb66e3 100644
@@ -3263,7 +3263,7 @@ static int page_flip_common(struct drm_atomic_state *state,
              return PTR_ERR(crtc_state);
 
      crtc_state->event = event;
-     crtc_state->pageflip_flags = flags;
+     crtc_state->async_flip = flags & DRM_MODE_PAGE_FLIP_ASYNC;
 
      plane_state = drm_atomic_get_plane_state(state, plane);
      if (IS_ERR(plane_state))
drivers/gpu/drm/drm_atomic_state_helper.c +1 -1
index 46dc264a248b..d0a937fb0c56 100644
@@ -128,7 +128,7 @@ void __drm_atomic_helper_crtc_duplicate_state(struct drm_crtc *crtc,
      state->zpos_changed = false;
      state->commit = NULL;
      state->event = NULL;
-     state->pageflip_flags = 0;
+     state->async_flip = false;
 
      /* Self refresh should be canceled when a new update is available */
      state->active = drm_atomic_crtc_effectively_active(state);
drivers/gpu/drm/nouveau/dispnv50/wndw.c +2 -2
index 2db029371c91..5193b6257061 100644
@@ -267,7 +267,7 @@ nv50_wndw_atomic_check_acquire(struct nv50_wndw *wndw, bool modeset,
                      asyw->image.pitch[0] = fb->base.pitches[0];
              }
 
-             if (!(asyh->state.pageflip_flags & DRM_MODE_PAGE_FLIP_ASYNC))
+             if (!asyh->state.async_flip)
                      asyw->image.interval = 1;
              else
                      asyw->image.interval = 0;
@@ -383,7 +383,7 @@ nv50_wndw_atomic_check_lut(struct nv50_wndw *wndw,
      }
 
      /* Can't do an immediate flip while changing the LUT. */
-     asyh->state.pageflip_flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
+     asyh->state.async_flip = false;
  }
 
  static int
include/drm/drm_crtc.h +4 -4
index 7e2963cad543..900ae8d452b8 100644
@@ -284,12 +284,12 @@ struct drm_crtc_state {
      u32 target_vblank;
 
      /**
-      * @pageflip_flags:
+      * @async_flip:
       *
-      * DRM_MODE_PAGE_FLIP_* flags, as passed to the page flip ioctl.
-      * Zero in any other case.
+      * This is set when DRM_MODE_PAGE_FLIP_ASYNC is set in the legacy
+      * PAGE_FLIP IOCTL. It's not wired up for the atomic IOCTL itself yet.
       */
-     u32 pageflip_flags;
+     bool async_flip;
 
      /**
       * @vrr_enabled:
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/atomic: Take the atomic toys away from X

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/3] drm/atomic: Take the atomic toys away from X
URL : https://patchwork.freedesktop.org/series/66180/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
6ca9335b74af drm/atomic: Take the atomic toys away from X
-:51: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 9 lines checked
94ce77c000f1 drm/atomic: Reject FLIP_ASYNC unconditionally
-:38: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 9 lines checked
a705142c4deb drm/atomic: Rename crtc_state->pageflip_flags to async_flip
-:125: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 65 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#7 lore raw

✓ Fi.CI.BAT: success for series starting with [1/3] drm/atomic: Take the atomic toys away from X

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/3] drm/atomic: Take the atomic toys away from X
URL : https://patchwork.freedesktop.org/series/66180/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6828 -> Patchwork_14270
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/

Known issues
------------

Here are the changes found in Patchwork_14270 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_exec@basic:
- fi-icl-u3: [PASS][1] -> [INCOMPLETE][2] ([fdo#107713])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-icl-u3/igt@[email protected]

* igt@gem_ctx_switch@legacy-render:
- fi-bxt-dsi: [PASS][3] -> [INCOMPLETE][4] ([fdo#103927] / [fdo#111381])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-bxt-dsi/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-bxt-dsi/igt@[email protected]

* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [PASS][5] -> [DMESG-FAIL][6] ([fdo#111108])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html

* igt@kms_chamelium@dp-crc-fast:
- fi-cml-u2: [PASS][7] -> [FAIL][8] ([fdo#110627])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-cml-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-cml-u2/igt@[email protected]

* igt@kms_chamelium@dp-edid-read:
- fi-icl-u2: [PASS][9] -> [FAIL][10] ([fdo#109483] / [fdo#109635 ])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-icl-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-icl-u2/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [INCOMPLETE][11] ([fdo#107718]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-blb-e6850/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-blb-e6850/igt@[email protected]

* igt@gem_exec_suspend@basic-s4-devices:
- fi-kbl-7500u: [DMESG-WARN][13] ([fdo#105128] / [fdo#107139]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-kbl-7500u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-kbl-7500u/igt@[email protected]

* igt@kms_chamelium@hdmi-crc-fast:
- fi-icl-u2: [FAIL][15] ([fdo#109635 ]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/fi-icl-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/fi-icl-u2/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105128]: https://bugs.freedesktop.org/show_bug.cgi?id=105128
[fdo#107139]: https://bugs.freedesktop.org/show_bug.cgi?id=107139
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#110627]: https://bugs.freedesktop.org/show_bug.cgi?id=110627
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108
[fdo#111381]: https://bugs.freedesktop.org/show_bug.cgi?id=111381

Participating hosts (53 -> 46)
------------------------------

Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6828 -> Patchwork_14270

CI-20190529: 20190529
CI_DRM_6828: 6e043dde15a1b2b97d908d0467e9197ffa8934c2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5164: 90babd3f12707dfabaa58bb18f6b8e22636b6895 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14270: a705142c4deb47ede8d6765c5da0fe74fa48a77e @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

a705142c4deb drm/atomic: Rename crtc_state->pageflip_flags to async_flip 94ce77c000f1 drm/atomic: Reject FLIP_ASYNC unconditionally 6ca9335b74af drm/atomic: Take the atomic toys away from X

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw

✓ Fi.CI.IGT: success for series starting with [1/3] drm/atomic: Take the atomic toys away from X

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/3] drm/atomic: Take the atomic toys away from X
URL : https://patchwork.freedesktop.org/series/66180/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6828_full -> Patchwork_14270_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Known issues
------------

Here are the changes found in Patchwork_14270_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_balancer@smoke:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#110854])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb6/igt@[email protected]

* igt@gem_exec_schedule@pi-ringfull-render:
- shard-apl: [PASS][3] -> [FAIL][4] ([fdo#111547])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl4/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl8/igt@[email protected]

* igt@gem_exec_schedule@preempt-self-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb4/igt@[email protected]

* igt@gem_exec_suspend@basic-s3:
- shard-skl: [PASS][7] -> [INCOMPLETE][8] ([fdo#104108])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-skl8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-skl1/igt@[email protected]

* igt@gem_ppgtt@blt-vs-render-ctxn:
- shard-iclb: [PASS][9] -> [INCOMPLETE][10] ([fdo#107713] / [fdo#109801])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb7/igt@[email protected]

* igt@i915_pm_rpm@gem-evict-pwrite:
- shard-hsw: [PASS][11] -> [FAIL][12] ([fdo#111548]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-hsw7/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-hsw7/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-skl: [PASS][13] -> [INCOMPLETE][14] ([fdo#110741])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-skl2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-skl9/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-hsw: [PASS][15] -> [FAIL][16] ([fdo#103375]) +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-hsw4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-hsw7/igt@[email protected]

* igt@kms_cursor_edge_walk@pipe-b-64x64-top-edge:
- shard-snb: [PASS][17] -> [SKIP][18] ([fdo#109271] / [fdo#109278])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-snb2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-snb1/igt@[email protected]

* igt@kms_cursor_legacy@short-flip-after-cursor-atomic-transitions-varying-size:
- shard-hsw: [PASS][19] -> [INCOMPLETE][20] ([fdo#103540])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-hsw6/igt@kms_cursor_legacy@short-flip-after-cursor-atomic-transitions-varying-size.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-hsw5/igt@kms_cursor_legacy@short-flip-after-cursor-atomic-transitions-varying-size.html

* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-ytiled:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#103184] / [fdo#103232])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb8/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb8/igt@[email protected]

* igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-xtiled:
- shard-snb: [PASS][23] -> [SKIP][24] ([fdo#109271]) +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-snb2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-snb1/igt@[email protected]

* igt@kms_flip@flip-vs-dpms-off-vs-modeset:
- shard-iclb: [PASS][25] -> [INCOMPLETE][26] ([fdo#107713])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb5/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb1/igt@[email protected]

* igt@kms_flip@flip-vs-fences-interruptible:
- shard-apl: [PASS][27] -> [INCOMPLETE][28] ([fdo#103927])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl3/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
- shard-iclb: [PASS][29] -> [FAIL][30] ([fdo#103167]) +5 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb7/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb6/igt@[email protected]

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-snb: [PASS][31] -> [FAIL][32] ([fdo#103375])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-snb4/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-snb6/igt@[email protected]

* igt@kms_psr@no_drrs:
- shard-iclb: [PASS][33] -> [FAIL][34] ([fdo#108341])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb3/igt@kms_psr@no_drrs.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb1/igt@kms_psr@no_drrs.html

* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][35] -> [SKIP][36] ([fdo#109441]) +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb1/igt@kms_psr@psr2_primary_mmap_cpu.html

* igt@kms_setmode@basic:
- shard-hsw: [PASS][37] -> [FAIL][38] ([fdo#99912])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-hsw6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-hsw2/igt@[email protected]
- shard-kbl: [PASS][39] -> [FAIL][40] ([fdo#99912])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-kbl2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-kbl6/igt@[email protected]

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [PASS][41] -> [DMESG-WARN][42] ([fdo#108566]) +5 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl2/igt@[email protected]

* igt@kms_vblank@pipe-c-ts-continuation-dpms-suspend:
- shard-apl: [PASS][43] -> [FAIL][44] ([fdo#103375]) +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl4/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl8/igt@[email protected]

* igt@perf_pmu@frequency:
- shard-apl: [PASS][45] -> [FAIL][46] ([fdo#111545]) +9 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl4/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl8/igt@[email protected]

* igt@prime_busy@hang-bsd2:
- shard-iclb: [PASS][47] -> [SKIP][48] ([fdo#109276]) +14 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb2/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb5/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_isolation@vcs0-s3:
- shard-skl: [INCOMPLETE][49] ([fdo#104108]) -> [PASS][50] +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-skl9/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-skl7/igt@[email protected]

* igt@gem_eio@in-flight-suspend:
- shard-snb: [FAIL][51] ([fdo#103375]) -> [PASS][52] +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-snb2/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-snb1/igt@[email protected]

* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [SKIP][53] ([fdo#111325]) -> [PASS][54] +4 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb1/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb6/igt@[email protected]

* igt@gem_workarounds@suspend-resume-context:
- shard-apl: [DMESG-WARN][55] ([fdo#108566]) -> [PASS][56] +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl5/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl1/igt@[email protected]

* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-kbl: [DMESG-WARN][57] ([fdo#105604] / [fdo#105763]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-kbl2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-kbl6/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank:
- shard-glk: [FAIL][59] ([fdo#105363]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-glk5/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-glk1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [FAIL][61] ([fdo#103375]) -> [PASS][62] +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl7/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [FAIL][63] ([fdo#103167]) -> [PASS][64] +8 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@psr-rgb565-draw-blt:
- shard-skl: [FAIL][65] ([fdo#103167]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-skl4/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-skl6/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [FAIL][67] ([fdo#108145]) -> [PASS][68] +2 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-skl5/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-skl8/igt@[email protected]

* igt@kms_psr@psr2_sprite_render:
- shard-iclb: [SKIP][69] ([fdo#109441]) -> [PASS][70] +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb1/igt@kms_psr@psr2_sprite_render.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb2/igt@kms_psr@psr2_sprite_render.html

* igt@kms_setmode@basic:
- shard-glk: [FAIL][71] ([fdo#99912]) -> [PASS][72]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-glk8/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-glk3/igt@[email protected]

* igt@perf_pmu@enable-race-rcs0:
- shard-apl: [TIMEOUT][73] ([fdo#111545]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl7/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl6/igt@[email protected]

* igt@perf_pmu@multi-client-rcs0:
- shard-apl: [FAIL][75] ([fdo#111545]) -> [PASS][76] +2 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl7/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl6/igt@[email protected]

* igt@perf_pmu@rc6:
- shard-kbl: [SKIP][77] ([fdo#109271]) -> [PASS][78] +1 similar issue
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-kbl2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-kbl6/igt@[email protected]

* igt@prime_vgem@fence-wait-bsd2:
- shard-iclb: [SKIP][79] ([fdo#109276]) -> [PASS][80] +5 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb7/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb4/igt@[email protected]

#### Warnings ####

* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [SKIP][81] ([fdo#109276]) -> [FAIL][82] ([fdo#111329])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb3/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb1/igt@[email protected]

* igt@gem_mocs_settings@mocs-isolation-bsd2:
- shard-iclb: [FAIL][83] ([fdo#111330]) -> [SKIP][84] ([fdo#109276])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb1/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb6/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-apl: [DMESG-WARN][85] ([fdo#108566]) -> [FAIL][86] ([fdo#103375])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-apl5/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-apl8/igt@[email protected]

* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][87] ([fdo#107724]) -> [SKIP][88] ([fdo#109349])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-iclb2/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-iclb7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-skl: [FAIL][89] ([fdo#108040]) -> [FAIL][90] ([fdo#103167])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-skl6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt.html
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-skl4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-mmap-gtt.html

* igt@perf_pmu@cpu-hotplug:
- shard-hsw: [INCOMPLETE][91] ([fdo#103540]) -> [TIMEOUT][92] ([fdo#111546])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6828/shard-hsw4/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/shard-hsw7/igt@[email protected]

[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103184]: https://bugs.freedesktop.org/show_bug.cgi?id=103184
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105604]: https://bugs.freedesktop.org/show_bug.cgi?id=105604
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108341]: https://bugs.freedesktop.org/show_bug.cgi?id=108341
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109801]: https://bugs.freedesktop.org/show_bug.cgi?id=109801
[fdo#110741]: https://bugs.freedesktop.org/show_bug.cgi?id=110741
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#111545]: https://bugs.freedesktop.org/show_bug.cgi?id=111545
[fdo#111546]: https://bugs.freedesktop.org/show_bug.cgi?id=111546
[fdo#111547]: https://bugs.freedesktop.org/show_bug.cgi?id=111547
[fdo#111548]: https://bugs.freedesktop.org/show_bug.cgi?id=111548
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (10 -> 10)
------------------------------

No changes in participating hosts

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6828 -> Patchwork_14270

CI-20190529: 20190529
CI_DRM_6828: 6e043dde15a1b2b97d908d0467e9197ffa8934c2 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5164: 90babd3f12707dfabaa58bb18f6b8e22636b6895 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14270: a705142c4deb47ede8d6765c5da0fe74fa48a77e @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14270/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

maintainer Reviewed-by on v1 1/3
#9 lore raw
In reply to Daniel Vetter

Op 03-09-2019 om 21:06 schreef Daniel Vetter:

Quoted 37 lines

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/drm_ioctl.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_ioctl.c +0 -0
index 2c120c58f72d..1cb7b4c3c87c 100644

drivers/gpu/drm/drm_ioctl.c drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) · line 342

Quoted 9 lines
drivers/gpu/drm/drm_ioctl.c +3 -0
@@ -334,6 +334,9 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
 		file_priv->universal_planes = req->value;
 		break;
 	case DRM_CLIENT_CAP_ATOMIC:
+		/* The modesetting DDX has a totally broken idea of atomic. */
+		if (strstr(current->comm, "X"))
+			return -EOPNOTSUPP;
 		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
 			return -EOPNOTSUPP;
 		if (req->value > 1)

Good riddance!

Missing one more:
commit abbc0697d5fbf53f74ce0bcbe936670199764cfa
Author: Dave Airlie <[email protected]>
Date:   Wed Apr 24 16:33:29 2019 +1000

    drm/fb: revert the i915 Actually configure untiled displays from master
    This code moved in here in master, so revert it the same way.
    This is the same revert as 9fa246256e09 ("Revert "drm/i915/fbdev:
    Actually configure untiled displays"") in drm-fixes.

Can we unrevert that now?

With that fixed, on the whole series:

#10 lore raw
Quoted 58 lines · Maarten Lankhorst

Op 03-09-2019 om 21:06 schreef Daniel Vetter:

Quoted 37 lines

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/drm_ioctl.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_ioctl.c +0 -0
index 2c120c58f72d..1cb7b4c3c87c 100644

drivers/gpu/drm/drm_ioctl.c drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) · line 342

Quoted 9 lines
drivers/gpu/drm/drm_ioctl.c +3 -0
@@ -334,6 +334,9 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
              file_priv->universal_planes = req->value;
              break;
      case DRM_CLIENT_CAP_ATOMIC:
+             /* The modesetting DDX has a totally broken idea of atomic. */
+             if (strstr(current->comm, "X"))
+                     return -EOPNOTSUPP;
              if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
                      return -EOPNOTSUPP;
              if (req->value > 1)

Good riddance!

Missing one more:
commit abbc0697d5fbf53f74ce0bcbe936670199764cfa

Author: Dave Airlie <[email protected]>
Date:   Wed Apr 24 16:33:29 2019 +1000

drm/fb: revert the i915 Actually configure untiled displays from master

Quoted 8 lines

This code moved in here in master, so revert it the same way.

This is the same revert as 9fa246256e09 ("Revert "drm/i915/fbdev:
Actually configure untiled displays"") in drm-fixes.

Can we unrevert that now?

My idea is to land this in drm-misc-fixes first (or maybe drm-misc-next-fixes). And then we can land the revert of the revert once that's backmerged into drm-intel. -fixes since this one here is
cc: stable.

And yes I'll add a reference to that one in the commit message when merging.

Quoted 3 lines

With that fixed, on the whole series:

Thanks, Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
#11 lore raw
In reply to Daniel Vetter
Quoted 38 lines · Daniel Vetter

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180

Cc Maarten Lankhorst <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Adam Jackson <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 drivers/gpu/drm/drm_ioctl.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_ioctl.c +0 -0
index 2c120c58f72d..1cb7b4c3c87c 100644

drivers/gpu/drm/drm_ioctl.c drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv) · line 339

Quoted 6 lines
drivers/gpu/drm/drm_ioctl.c +3 -0
@@ -334,6 +334,9 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
                file_priv->universal_planes = req->value;
                break;
        case DRM_CLIENT_CAP_ATOMIC:
+               /* The modesetting DDX has a totally broken idea of atomic. */
+               if (strstr(current->comm, "X"))
+                       return -EOPNOTSUPP;

Seems like we can be a bit more targeted than "anything that has 'X' in the name".. at a minimum restrict things to "starts with 'X'" seems saner. But I guess we could probably somehow look at the processes memory map and look for modesetting_drv.so.

BR,
-R

Quoted 10 lines
drivers/gpu/drm/drm_ioctl.c +0 -1
                if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
                        return -EOPNOTSUPP;
                if (req->value > 1)
--

2.23.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#12 lore raw

PATCH 1/1 drm/atomic: Take the atomic toys away from X

In reply to Daniel Vetter

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

v2:
- add an informational dmesg output (Rob, Ajax)
- reorder after the DRIVER_ATOMIC check to avoid useless noise (Ilia)
- allow req->value > 2 so that X can do another attempt at atomic in the future

Cc: Ilia Mirkin <[email protected]>
References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")

---
 drivers/gpu/drm/drm_ioctl.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_ioctl.c +6 -1
index 2c120c58f72d..56aa8bbb3a8c 100644
@@ -336,7 +336,12 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
 	case DRM_CLIENT_CAP_ATOMIC:
 		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
 			return -EOPNOTSUPP;
-		if (req->value > 1)
+		/* The modesetting DDX has a totally broken idea of atomic. */
+		if (strstr(current->comm, "X") && req->value == 1) {
+			pr_info("broken atomic modeset userspace detected, disabling atomic\n");
+			return -EOPNOTSUPP;
+		}
+		if (req->value > 2)
 			return -EINVAL;
 		file_priv->atomic = req->value;
 		file_priv->universal_planes = req->value;
Signature · 1 line
2.23.0
maintainer
#13 lore raw

Hi,

[This is an automated email]

This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all

The bot has tested the following trees: v5.2.11, v4.19.69, v4.14.141, v4.9.190, v4.4.190.

v5.2.11: Build OK!
v4.19.69: Failed to apply! Possible dependencies:
69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter") 70109354fed2 ("drm: Reject unknown legacy bpp and depth for drm_mode_addfb ioctl") 72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
7f4de521001f ("drm/atomic: Add __drm_atomic_helper_plane_reset") a5ec8332d428 ("drm: Add per-plane pixel blend mode property") d86552efe10a ("drm/atomic: trim driver interface/docs")
eae06120f197 ("drm: refuse ADDFB2 ioctl for broken bigendian drivers")

v4.14.141: Failed to apply! Possible dependencies:
163bcc2c74a2 ("drm/atomic: Move drm_crtc_commit to drm_crtc_state, v4.") 179c02fe90a4 ("drm/tve200: Add new driver for TVE200")
21a01abbe32a ("drm/atomic: Fix freeing connector/plane state too early by tracking commits, v3.") 24557865c8b1 ("drm: Add Content Protection property")
2ed077e467ee ("drm: Add drm_object lease infrastructure [v5]")
47dc413b0025 ("drm/armada: convert overlay plane to atomic state")
65724a19438c ("drm/armada: wait and cancel any pending frame work at disable") 66660d4cf21b ("drm: add connector info/property for non-desktop displays [v2]") 69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter") 6d544fd6f4e1 ("drm/doc: Put all driver docs into a separate chapter") 72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
890ca8df5a75 ("drm/armada: disable planes at next blanking period")
8d70f395e6cb ("drm: Add support for a panel-orientation connector property, v6") 901bb8899165 ("drm/armada: add a common frame work allocator")
935774cd71fe ("drm: Add writeback connector type")
c76f0f7cb546 ("drm: Begin an API for in-kernel clients")
eaa66279c3dd ("drm/armada: move regs into armada_plane_work")
eaab01307554 ("drm/armada: store plane in armada_plane_work")

v4.9.190: Failed to apply! Possible dependencies:

    1a02ea434ec3 ("drm: Extract drm_dumb_buffers.c")
    1ea357687479 ("drm/doc: Consistent kerneldoc include order")
    28575f165d36 ("drm: Extract drm_mode_config.[hc]")
    69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter")
    6c4789edc55d ("drm: Clean up kerneldoc for struct drm_driver")
    72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
    85e634bce01a ("drm: Extract drm_drv.h")
    9edbf1fa600a ("drm: Add API for capturing frame CRCs")
    d8187177b0b1 ("drm: add helper for printing to log or seq_file")

v4.4.190: Failed to apply! Possible dependencies:
1ea357687479 ("drm/doc: Consistent kerneldoc include order")
22cba31bae9d ("Documentation/sphinx: add basic working Sphinx configuration and build") 27528c667a21 ("drm: Add ratelimited versions of the DRM_DEBUG* macros") 3cbf6a5deb2f ("drm: Mark up legacy/dri1 drivers with DRM_LEGACY") 54d2c2da0946 ("drm: Introduce drm_connector_register_all() helper") 5fff80bbdb6b ("drm/atomic: Allow for holes in connector state, v2.") 69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter") 6bd488db80a4 ("drm: Simplify drm_printk to reduce object size quite a bit") 6c4789edc55d ("drm: Clean up kerneldoc for struct drm_driver") 6c87e5c3ec6d ("drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()") 72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
79190ea2658a ("drm: Add callbacks for late registering")
85e634bce01a ("drm: Extract drm_drv.h")
bee7fb158f40 ("drm: Protect drm_connector_register_all() under DRIVER_MODESET") c4e68a583202 ("drm: Introduce DRM_DEV_* log messages")
ca00c2b986ea ("Documentation/gpu: split up the gpu documentation") cb597fcea5c2 ("Documentation/gpu: add new gpu.rst converted from DocBook gpu.tmpl") e28cd4d0a223 ("drm: Automatically register/unregister all connectors") fa3ab4c2113c ("drm: Add crtc->name and use it in debug messages")

NOTE: The patch will not be queued to stable trees until it is upstream.

How should we proceed with this patch?

--
Thanks,
Sasha
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#14 lore raw
In reply to Daniel Vetter

Hi,

[This is an automated email]

This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all

The bot has tested the following trees: v5.2.11, v4.19.69, v4.14.141, v4.9.190, v4.4.190.

v5.2.11: Build OK!
v4.19.69: Failed to apply! Possible dependencies:
69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter") 70109354fed2 ("drm: Reject unknown legacy bpp and depth for drm_mode_addfb ioctl") 72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
7f4de521001f ("drm/atomic: Add __drm_atomic_helper_plane_reset") a5ec8332d428 ("drm: Add per-plane pixel blend mode property") d86552efe10a ("drm/atomic: trim driver interface/docs")
eae06120f197 ("drm: refuse ADDFB2 ioctl for broken bigendian drivers")

v4.14.141: Failed to apply! Possible dependencies:
163bcc2c74a2 ("drm/atomic: Move drm_crtc_commit to drm_crtc_state, v4.") 179c02fe90a4 ("drm/tve200: Add new driver for TVE200")
21a01abbe32a ("drm/atomic: Fix freeing connector/plane state too early by tracking commits, v3.") 24557865c8b1 ("drm: Add Content Protection property")
2ed077e467ee ("drm: Add drm_object lease infrastructure [v5]")
47dc413b0025 ("drm/armada: convert overlay plane to atomic state")
65724a19438c ("drm/armada: wait and cancel any pending frame work at disable") 66660d4cf21b ("drm: add connector info/property for non-desktop displays [v2]") 69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter") 6d544fd6f4e1 ("drm/doc: Put all driver docs into a separate chapter") 72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
890ca8df5a75 ("drm/armada: disable planes at next blanking period")
8d70f395e6cb ("drm: Add support for a panel-orientation connector property, v6") 901bb8899165 ("drm/armada: add a common frame work allocator")
935774cd71fe ("drm: Add writeback connector type")
c76f0f7cb546 ("drm: Begin an API for in-kernel clients")
eaa66279c3dd ("drm/armada: move regs into armada_plane_work")
eaab01307554 ("drm/armada: store plane in armada_plane_work")

v4.9.190: Failed to apply! Possible dependencies:

    1a02ea434ec3 ("drm: Extract drm_dumb_buffers.c")
    1ea357687479 ("drm/doc: Consistent kerneldoc include order")
    28575f165d36 ("drm: Extract drm_mode_config.[hc]")
    69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter")
    6c4789edc55d ("drm: Clean up kerneldoc for struct drm_driver")
    72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
    85e634bce01a ("drm: Extract drm_drv.h")
    9edbf1fa600a ("drm: Add API for capturing frame CRCs")
    d8187177b0b1 ("drm: add helper for printing to log or seq_file")

v4.4.190: Failed to apply! Possible dependencies:
1ea357687479 ("drm/doc: Consistent kerneldoc include order")
22cba31bae9d ("Documentation/sphinx: add basic working Sphinx configuration and build") 27528c667a21 ("drm: Add ratelimited versions of the DRM_DEBUG* macros") 3cbf6a5deb2f ("drm: Mark up legacy/dri1 drivers with DRM_LEGACY") 54d2c2da0946 ("drm: Introduce drm_connector_register_all() helper") 5fff80bbdb6b ("drm/atomic: Allow for holes in connector state, v2.") 69fdf4206a8b ("drm: Differentiate the lack of an interface from invalid parameter") 6bd488db80a4 ("drm: Simplify drm_printk to reduce object size quite a bit") 6c4789edc55d ("drm: Clean up kerneldoc for struct drm_driver") 6c87e5c3ec6d ("drm: Rename drm_connector_unplug_all() to drm_connector_unregister_all()") 72fdb40c1a4b ("drm: extract drm_atomic_uapi.c")
79190ea2658a ("drm: Add callbacks for late registering")
85e634bce01a ("drm: Extract drm_drv.h")
bee7fb158f40 ("drm: Protect drm_connector_register_all() under DRIVER_MODESET") c4e68a583202 ("drm: Introduce DRM_DEV_* log messages")
ca00c2b986ea ("Documentation/gpu: split up the gpu documentation") cb597fcea5c2 ("Documentation/gpu: add new gpu.rst converted from DocBook gpu.tmpl") e28cd4d0a223 ("drm: Automatically register/unregister all connectors") fa3ab4c2113c ("drm: Add crtc->name and use it in debug messages")

NOTE: The patch will not be queued to stable trees until it is upstream.

How should we proceed with this patch?

--
Thanks,
Sasha
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#15 lore raw

PATCH 1/1 drm/atomic: Take the atomic toys away from X

In reply to Daniel Vetter

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

v2:
- add an informational dmesg output (Rob, Ajax)
- reorder after the DRIVER_ATOMIC check to avoid useless noise (Ilia)
- allow req->value > 2 so that X can do another attempt at atomic in the future

v3: Go with paranoid, insist that the X should be first (suggested by Rob)

Cc: Ilia Mirkin <[email protected]>
References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")

---
 drivers/gpu/drm/drm_ioctl.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_ioctl.c +6 -1
index 2c120c58f72d..1cd5cc492df1 100644
@@ -336,7 +336,12 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
 	case DRM_CLIENT_CAP_ATOMIC:
 		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
 			return -EOPNOTSUPP;
-		if (req->value > 1)
+		/* The modesetting DDX has a totally broken idea of atomic. */
+		if (current->comm[0] == 'X' && req->value == 1) {
+			pr_info("broken atomic modeset userspace detected, disabling atomic\n");
+			return -EOPNOTSUPP;
+		}
+		if (req->value > 2)
 			return -EINVAL;
 		file_priv->atomic = req->value;
 		file_priv->universal_planes = req->value;
Signature · 1 line
2.23.0
#16 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Quoted 9 lines · Daniel Vetter

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

Quoted 8 lines

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

Hi Daniel and Greg (especially). It seems that this patch was never applied to stable, maybe it fell through the cracks?

It doesn't apply as-is in 4.19 branch but a small change in the context makes it apply. I'm experiencing issues with lightdm and vt-switch in Debian Buster (which has a 4.19 kernel) so I'd appreciate if the patch was included in at least that release.

Regards,
- --
Yves-Alexis
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAl61ITAACgkQ3rYcyPpX RFvlaAf9HZ0DTX1fAkNeNFoAgn4pFztnFq0fAwGj5iVIL4q6upE1wE3E8cDgUHeT maQQvL3YHFXjgzgDHYNIuUMipFE1Djymoy+EB4ZoOftqsJ4CPy4pCMUAh57u7BrV T+eBtj4n0wY0SgvoPism3QdbxY7CLLgCMJKLNrCPlkDCdJyGsZX9RIgfqvbkGM36 ftwBKcyy1iW5cAv10ehiXi/1zszA8bx2gULim3abcSjjz12ckNvBPy/BDvfFx19V 8cGgG3qD9PLmxRl80H1/mX30Ddw8Md5Fu7I/ndh3EGXLu8p8zod0rQVCQjAEW4X4 ew4tajDD2l9vWzN0sZIlyjq9fNgXBw==
=lPBO
-----END PGP SIGNATURE-----
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#17 lore raw
Quoted 16 lines · Yves-Alexis Perez

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Quoted 12 lines · Daniel Vetter

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

Quoted 8 lines
Quoted 5 lines

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

Hi Daniel and Greg (especially). It seems that this patch was never applied to stable, maybe it fell through the cracks?

What patch is "this patch"?

Quoted 4 lines

It doesn't apply as-is in 4.19 branch but a small change in the context makes it apply. I'm experiencing issues with lightdm and vt-switch in Debian Buster (which has a 4.19 kernel) so I'd appreciate if the patch was included in at least that release.

What is the git commit id of the patch in Linus's tree? If you have a working backport, that makes it much easier than hoping I can fix it up...

thanks,

greg k-h

Tested-by Reviewed-by Maarten Lankhorst Reviewed-by Nicholas Kazlauskas Acked-by Adam Jackson Acked-by Rob Clark
#18 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Quoted 5 lines · Greg KH
Quoted 3 lines

Hi Daniel and Greg (especially). It seems that this patch was never applied to
stable, maybe it fell through the cracks?

What patch is "this patch"?

Sorry, the patch was in the mail I was replying to:

commit 26b1d3b527e7bf3e24b814d617866ac5199ce68d

Author: Daniel Vetter <[email protected]>
Date:   Thu Sep 5 20:53:18 2019 +0200

drm/atomic: Take the atomic toys away from X

Quoted 9 lines
Quoted 8 lines

It doesn't apply as-is in 4.19 branch but a small change in the context makes
it apply. I'm experiencing issues with lightdm and vt-switch in Debian Buster
(which has a 4.19 kernel) so I'd appreciate if the patch was included in at
least that release.

Quoted 3 lines

What is the git commit id of the patch in Linus's tree? If you have a working backport, that makes it much easier than hoping I can fix it up...

The commit id is in Linus tree is 26b1d3b527e7bf3e24b814d617866ac5199ce68d. To apply properly 69fdf4206a8ba91a277b3d50a3a05b71247635b2 would need to be cherry-picked as well but it wasn't marked for stable so I didn't bother and only fixed the context. Here's the backport to 4.19, compile and runtime tested. It does fix the issue for me (like it did on mainline).

So I guess

commit 8a99914f7b539542622dc571c82d6cd203bddf64

Author: Daniel Vetter <[email protected]>
Date:   Thu Sep 5 20:53:18 2019 +0200

drm/atomic: Take the atomic toys away from X

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

v2:
- add an informational dmesg output (Rob, Ajax)
- reorder after the DRIVER_ATOMIC check to avoid useless noise (Ilia)
- allow req->value > 2 so that X can do another attempt at atomic in the future

v3: Go with paranoid, insist that the X should be first (suggested by Rob)

Cc: Ilia Mirkin <[email protected]>
References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure
untiled displays from master")

Link:
https://patchwork.freedesktop.org/patch/msgid/[email protected]

drivers/gpu/drm/drm_ioctl.c +0 -0
index ba129b64b61f..b92682f037b2 100644

- --- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -321,7 +321,12 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
case DRM_CLIENT_CAP_ATOMIC:
if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
return -EINVAL;
- - if (req->value > 1)
+ /* The modesetting DDX has a totally broken idea of atomic. */
+ if (current->comm[0] == 'X' && req->value == 1) {
+ pr_info("broken atomic modeset userspace detected,
disabling atomic\n");
+ return -EOPNOTSUPP;
+ }
+ if (req->value > 2)
return -EINVAL;
file_priv->atomic = req->value; file_priv->universal_planes = req->value;

- --
Yves-Alexis
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAl61SZUACgkQ3rYcyPpX RFvPfwgAzMyFqiV592RBKu4tx5Ivqa4EC/1OdR8DojyQlw4AP0bYc+4O67xYbvt5 r4JXuGbSu+jW/29V+2t8ZlLi4S7bAvAo2DEhuBdGVzdmD4gM9EC+69oqVeZWWZTm VUldLrRO8BoPxv14lX/K/kU/o5Pv8ivRoEKs385JU2p1AxNGJI2UUmIXKGtk7Cu/ Fu/flH627RHjTRk2QYsemqHqSAONaHYuSiYm783hz4wYiPOZQdGvS+ifHwMAhUqh scaCxv+pBOxaLuZAfUXFjDX+qAcuJCxaP9bT4soweIpYqjzcAdBSmny0+OLOnie/ HcBzKwpgitKR/cVadZgb0US1oHeo2A==
=l8z1
-----END PGP SIGNATURE-----
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#19 lore raw
Quoted 113 lines · Yves-Alexis Perez

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Quoted 5 lines · Greg KH
Quoted 3 lines

Hi Daniel and Greg (especially). It seems that this patch was never applied to
stable, maybe it fell through the cracks?

What patch is "this patch"?

Sorry, the patch was in the mail I was replying to:

commit 26b1d3b527e7bf3e24b814d617866ac5199ce68d

Author: Daniel Vetter <[email protected]>
Date:   Thu Sep 5 20:53:18 2019 +0200

drm/atomic: Take the atomic toys away from X

Quoted 9 lines
Quoted 8 lines

It doesn't apply as-is in 4.19 branch but a small change in the context makes
it apply. I'm experiencing issues with lightdm and vt-switch in Debian Buster
(which has a 4.19 kernel) so I'd appreciate if the patch was included in at
least that release.

Quoted 3 lines

What is the git commit id of the patch in Linus's tree? If you have a working backport, that makes it much easier than hoping I can fix it up...

The commit id is in Linus tree is 26b1d3b527e7bf3e24b814d617866ac5199ce68d. To apply properly 69fdf4206a8ba91a277b3d50a3a05b71247635b2 would need to be cherry-picked as well but it wasn't marked for stable so I didn't bother and only fixed the context. Here's the backport to 4.19, compile and runtime tested. It does fix the issue for me (like it did on mainline).

So I guess

commit 8a99914f7b539542622dc571c82d6cd203bddf64

Author: Daniel Vetter <[email protected]>
Date:   Thu Sep 5 20:53:18 2019 +0200

drm/atomic: Take the atomic toys away from X

The -modesetting ddx has a totally broken idea of how atomic works:
- doesn't disable old connectors, assuming they get auto-disable like with the legacy setcrtc
- assumes ASYNC_FLIP is wired through for the atomic ioctl
- not a single call to TEST_ONLY

Iow the implementation is a 1:1 translation of legacy ioctls to atomic, which is a) broken b) pointless.

We already have bugs in both i915 and amdgpu-DC where this prevents us from enabling neat features.

If anyone ever cares about atomic in X we can easily add a new atomic level (req->value == 2) for X to get back the shiny toys.

Since these broken versions of -modesetting have been shipping, there's really no other way to get out of this bind.

v2:
- add an informational dmesg output (Rob, Ajax)
- reorder after the DRIVER_ATOMIC check to avoid useless noise (Ilia)
- allow req->value > 2 so that X can do another attempt at atomic in the future

v3: Go with paranoid, insist that the X should be first (suggested by Rob)

Cc: Ilia Mirkin <[email protected]>
References: https://gitlab.freedesktop.org/xorg/xserver/issues/629
References: https://gitlab.freedesktop.org/xorg/xserver/merge_requests/180
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure
untiled displays from master")

Link:
https://patchwork.freedesktop.org/patch/msgid/[email protected]

drivers/gpu/drm/drm_ioctl.c +7 -2
index ba129b64b61f..b92682f037b2 100644
- --- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -321,7 +321,12 @@ drm_setclientcap(struct drm_device *dev, void *data,
 struct drm_file *file_priv)
 	case DRM_CLIENT_CAP_ATOMIC:
 		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
 			return -EINVAL;
- -		if (req->value > 1)
+		/* The modesetting DDX has a totally broken idea of atomic. */
+		if (current->comm[0] == 'X' && req->value == 1) {
+			pr_info("broken atomic modeset userspace detected,
 disabling atomic\n");
+			return -EOPNOTSUPP;
+		}
+		if (req->value > 2)
 			return -EINVAL;

drivers/gpu/drm/drm_ioctl.c

Quoted 2 lines
drivers/gpu/drm/drm_ioctl.c +0 -0
 		file_priv->atomic = req->value;
 		file_priv->universal_planes = req->value;

This is line-wrapped and can not be applied :(

Ugh, let me see if I can do this by hand...

greg k-h

#20 lore raw

✗ Fi.CI.CHECKPATCH: warning for series starting with drm/atomic: Take the atomic toys away from X (rev2)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with drm/atomic: Take the atomic toys away from X (rev2)
URL : https://patchwork.freedesktop.org/series/66180/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
e86b20096a9f drm/atomic: Take the atomic toys away from X
-:36: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#36: 
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")

-:36: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")' #36:
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")

-:68: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 1 errors, 2 warnings, 0 checks, 13 lines checked
7199f6ecd88b drm/atomic: Reject FLIP_ASYNC unconditionally
-:38: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 9 lines checked
b725cd7d53b3 drm/atomic: Rename crtc_state->pageflip_flags to async_flip
-:126: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 65 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#21 lore raw

✓ Fi.CI.BAT: success for series starting with drm/atomic: Take the atomic toys away from X (rev2)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with drm/atomic: Take the atomic toys away from X (rev2)
URL : https://patchwork.freedesktop.org/series/66180/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6839 -> Patchwork_14292
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/

Known issues
------------

Here are the changes found in Patchwork_14292 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [PASS][1] -> [INCOMPLETE][2] ([fdo#107718])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-blb-e6850/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-blb-e6850/igt@[email protected]

* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [PASS][3] -> [DMESG-FAIL][4] ([fdo#111108])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html

#### Possible fixes ####

* igt@gem_ctx_create@basic-files:
- fi-icl-u3: [INCOMPLETE][5] ([fdo#107713] / [fdo#109100]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-icl-u3/igt@[email protected]

* igt@i915_selftest@live_requests:
- {fi-icl-guc}: [INCOMPLETE][7] ([fdo#107713] / [fdo#109644] / [fdo#110464]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-icl-guc/igt@i915_selftest@live_requests.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-icl-guc/igt@i915_selftest@live_requests.html

* igt@kms_busy@basic-flip-c:
- fi-skl-6770hq: [SKIP][9] ([fdo#109271] / [fdo#109278]) -> [PASS][10] +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-skl-6770hq/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-skl-6770hq/igt@[email protected]

* igt@kms_flip@basic-flip-vs-dpms:
- fi-skl-6770hq: [SKIP][11] ([fdo#109271]) -> [PASS][12] +23 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-skl-6770hq/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-skl-6770hq/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u2: [FAIL][13] ([fdo#103167]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-icl-u2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-icl-u2/igt@[email protected]

#### Warnings ####

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][15] ([fdo#111096]) -> [FAIL][16] ([fdo#111407])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-kbl-7500u/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/fi-kbl-7500u/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109644]: https://bugs.freedesktop.org/show_bug.cgi?id=109644
[fdo#110464]: https://bugs.freedesktop.org/show_bug.cgi?id=110464
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407

Participating hosts (55 -> 45)
------------------------------

Missing (10): fi-ilk-m540 fi-hsw-4200u fi-bsw-n3050 fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-icl-y fi-bsw-kefka fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6839 -> Patchwork_14292

CI-20190529: 20190529
CI_DRM_6839: d3d45e02f5adaa9b9dae212460b3d93cc6e28a4b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5171: 1911564805fe454919e8a5846534a0c1ef376a33 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14292: b725cd7d53b373f0a3f3cd034173d22935085e79 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

b725cd7d53b3 drm/atomic: Rename crtc_state->pageflip_flags to async_flip 7199f6ecd88b drm/atomic: Reject FLIP_ASYNC unconditionally e86b20096a9f drm/atomic: Take the atomic toys away from X

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14292/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#22 lore raw

✗ Fi.CI.CHECKPATCH: warning for series starting with drm/atomic: Take the atomic toys away from X (rev3)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with drm/atomic: Take the atomic toys away from X (rev3)
URL : https://patchwork.freedesktop.org/series/66180/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
b8008e1c52d0 drm/atomic: Take the atomic toys away from X
-:39: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#39: 
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")

-:39: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")' #39:
References: abbc0697d5fb ("drm/fb: revert the i915 Actually configure untiled displays from master")

-:71: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 1 errors, 2 warnings, 0 checks, 13 lines checked
2c27e1c2e3fb drm/atomic: Reject FLIP_ASYNC unconditionally
-:38: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 9 lines checked
cc829ad05250 drm/atomic: Rename crtc_state->pageflip_flags to async_flip
-:126: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 65 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#23 lore raw

✓ Fi.CI.BAT: success for series starting with drm/atomic: Take the atomic toys away from X (rev3)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with drm/atomic: Take the atomic toys away from X (rev3)
URL : https://patchwork.freedesktop.org/series/66180/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6839 -> Patchwork_14294
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/

Known issues
------------

Here are the changes found in Patchwork_14294 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_chamelium@dp-crc-fast:
- fi-cml-u2: [PASS][1] -> [FAIL][2] ([fdo#110627])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-cml-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-cml-u2/igt@[email protected]

* igt@kms_chamelium@hdmi-edid-read:
- fi-icl-u2: [PASS][3] -> [FAIL][4] ([fdo#109483])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-icl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-icl-u2/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_create@basic-files:
- fi-icl-u3: [INCOMPLETE][5] ([fdo#107713] / [fdo#109100]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-icl-u3/igt@[email protected]

* igt@i915_module_load@reload:
- fi-blb-e6850: [INCOMPLETE][7] ([fdo#107718]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-blb-e6850/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-blb-e6850/igt@[email protected]

* igt@i915_selftest@live_requests:
- {fi-icl-guc}: [INCOMPLETE][9] ([fdo#107713] / [fdo#109644] / [fdo#110464]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-icl-guc/igt@i915_selftest@live_requests.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-icl-guc/igt@i915_selftest@live_requests.html

* igt@kms_busy@basic-flip-c:
- fi-skl-6770hq: [SKIP][11] ([fdo#109271] / [fdo#109278]) -> [PASS][12] +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-skl-6770hq/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-skl-6770hq/igt@[email protected]

* igt@kms_flip@basic-flip-vs-dpms:
- fi-skl-6770hq: [SKIP][13] ([fdo#109271]) -> [PASS][14] +23 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-skl-6770hq/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-skl-6770hq/igt@[email protected]

#### Warnings ####

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][15] ([fdo#111096]) -> [FAIL][16] ([fdo#111407])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/fi-kbl-7500u/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/fi-kbl-7500u/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#109644]: https://bugs.freedesktop.org/show_bug.cgi?id=109644
[fdo#110464]: https://bugs.freedesktop.org/show_bug.cgi?id=110464
[fdo#110627]: https://bugs.freedesktop.org/show_bug.cgi?id=110627
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407

Participating hosts (55 -> 46)
------------------------------

Missing (9): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-pnv-d510 fi-icl-y fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6839 -> Patchwork_14294

CI-20190529: 20190529
CI_DRM_6839: d3d45e02f5adaa9b9dae212460b3d93cc6e28a4b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5171: 1911564805fe454919e8a5846534a0c1ef376a33 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14294: cc829ad05250eb2f8987c98f1deadb0a1baf2338 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

cc829ad05250 drm/atomic: Rename crtc_state->pageflip_flags to async_flip 2c27e1c2e3fb drm/atomic: Reject FLIP_ASYNC unconditionally b8008e1c52d0 drm/atomic: Take the atomic toys away from X

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#24 lore raw

✓ Fi.CI.IGT: success for series starting with drm/atomic: Take the atomic toys away from X (rev3)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with drm/atomic: Take the atomic toys away from X (rev3)
URL : https://patchwork.freedesktop.org/series/66180/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6839_full -> Patchwork_14294_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Known issues
------------

Here are the changes found in Patchwork_14294_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_eio@reset-stress:
- shard-skl: [PASS][1] -> [FAIL][2] ([fdo#109661])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl6/igt@[email protected]

* igt@gem_exec_schedule@out-order-bsd2:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +11 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb3/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-contexts-chain-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +4 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb4/igt@[email protected]

* igt@gem_exec_suspend@basic-s3-devices:
- shard-apl: [PASS][7] -> [FAIL][8] ([fdo#111550])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl6/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [PASS][9] -> [SKIP][10] ([fdo#109271])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-kbl3/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-kbl6/igt@[email protected]

* igt@i915_suspend@sysfs-reader:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl7/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl4/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: [PASS][13] -> [FAIL][14] ([fdo#105363])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-glk6/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-glk6/igt@[email protected]

* igt@kms_flip@flip-vs-suspend:
- shard-skl: [PASS][15] -> [INCOMPLETE][16] ([fdo#109507]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl8/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl1/igt@[email protected]

* igt@kms_flip@plain-flip-fb-recreate:
- shard-skl: [PASS][17] -> [FAIL][18] ([fdo#100368]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-gtt:
- shard-skl: [PASS][19] -> [FAIL][20] ([fdo#103167])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl3/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-gtt.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl5/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#103167]) +2 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-snb: [PASS][23] -> [FAIL][24] ([fdo#103375]) +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-snb7/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-snb2/igt@[email protected]

* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][25] -> [FAIL][26] ([fdo#103166])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb4/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb5/igt@[email protected]

* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#109642] / [fdo#111068])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb2/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb8/igt@[email protected]

* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][29] -> [SKIP][30] ([fdo#109441]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb8/igt@kms_psr@psr2_sprite_plane_move.html

* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-skl: [PASS][31] -> [INCOMPLETE][32] ([fdo#104108])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl10/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl3/igt@[email protected]

* igt@perf@blocking:
- shard-skl: [PASS][33] -> [FAIL][34] ([fdo#110728]) +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl1/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl6/igt@[email protected]

* igt@perf_pmu@busy-double-start-vcs0:
- shard-skl: [PASS][35] -> [FAIL][36] ([fdo#111438])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl1/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl5/igt@[email protected]

* igt@perf_pmu@other-init-1:
- shard-apl: [PASS][37] -> [FAIL][38] ([fdo#111545]) +7 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl6/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [SKIP][39] ([fdo#110841]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb6/igt@[email protected]

* igt@gem_exec_balancer@bonded-imm:
- shard-apl: [INCOMPLETE][41] ([fdo#103927]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl8/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl5/igt@[email protected]

* igt@gem_exec_balancer@smoke:
- shard-iclb: [SKIP][43] ([fdo#110854]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb6/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb2/igt@[email protected]

* igt@gem_exec_schedule@wide-bsd:
- shard-iclb: [SKIP][45] ([fdo#111325]) -> [PASS][46] +4 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb7/igt@[email protected]

* igt@gem_exec_suspend@basic-s4-devices:
- shard-hsw: [FAIL][47] ([fdo#111550]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-hsw7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-hsw4/igt@[email protected]

* igt@gem_softpin@noreloc-s3:
- shard-apl: [DMESG-WARN][49] ([fdo#108566]) -> [PASS][50] +3 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl5/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl4/igt@[email protected]

* igt@gem_tiled_swapping@non-threaded:
- shard-glk: [DMESG-WARN][51] ([fdo#108686]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-glk3/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-glk5/igt@[email protected]

* igt@i915_pm_rpm@pm-tiling:
- shard-hsw: [FAIL][53] ([fdo#111548]) -> [PASS][54] +4 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-hsw7/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-hsw4/igt@[email protected]

* igt@i915_selftest@mock_fence:
- shard-iclb: [INCOMPLETE][55] ([fdo#107713]) -> [PASS][56] +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb1/igt@i915_selftest@mock_fence.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb1/igt@i915_selftest@mock_fence.html

* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [FAIL][57] ([fdo#103375]) -> [PASS][58] +3 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl3/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl1/igt@[email protected]

* igt@i915_suspend@forcewake:
- shard-snb: [FAIL][59] ([fdo#103375]) -> [PASS][60] +3 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-snb5/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-snb1/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [FAIL][61] ([fdo#105363]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl9/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl4/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [FAIL][63] ([fdo#103167]) -> [PASS][64] +5 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-hsw: [FAIL][65] ([fdo#103375]) -> [PASS][66] +4 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-hsw7/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-hsw4/igt@[email protected]

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-skl: [FAIL][67] ([fdo#103166]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl1/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl6/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [FAIL][69] ([fdo#108145]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-skl1/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-skl6/igt@[email protected]

* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [SKIP][71] ([fdo#109441]) -> [PASS][72] +2 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb5/igt@kms_psr@psr2_cursor_render.html
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb2/igt@kms_psr@psr2_cursor_render.html

* igt@kms_setmode@basic:
- shard-apl: [FAIL][73] ([fdo#99912]) -> [PASS][74]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl7/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl4/igt@[email protected]
- shard-hsw: [FAIL][75] ([fdo#99912]) -> [PASS][76]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-hsw2/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-hsw7/igt@[email protected]

* igt@perf_pmu@rc6:
- shard-apl: [FAIL][77] ([fdo#111545]) -> [PASS][78] +9 similar issues
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl3/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl1/igt@[email protected]

* igt@prime_busy@hang-bsd2:
- shard-iclb: [SKIP][79] ([fdo#109276]) -> [PASS][80] +21 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb6/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb2/igt@[email protected]

#### Warnings ####

* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][81] ([fdo#111329]) -> [SKIP][82] ([fdo#109276])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb4/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb5/igt@[email protected]

* igt@gem_eio@in-flight-suspend:
- shard-apl: [FAIL][83] ([fdo#103375]) -> [DMESG-WARN][84] ([fdo#108566]) +1 similar issue
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-apl3/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-apl1/igt@[email protected]

* igt@gem_mocs_settings@mocs-isolation-bsd2:
- shard-iclb: [SKIP][85] ([fdo#109276]) -> [FAIL][86] ([fdo#111330]) +1 similar issue
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb7/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb2/igt@[email protected]

* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [FAIL][87] ([fdo#111330]) -> [SKIP][88] ([fdo#109276])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb2/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb8/igt@[email protected]

* igt@i915_pm_rpm@modeset-lpsp:
- shard-hsw: [FAIL][89] ([fdo#111548]) -> [SKIP][90] ([fdo#109271]) +1 similar issue
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-hsw7/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-hsw6/igt@[email protected]

* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][91] ([fdo#109349]) -> [DMESG-WARN][92] ([fdo#107724])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-iclb7/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-iclb2/igt@[email protected]

* igt@perf_pmu@cpu-hotplug:
- shard-hsw: [TIMEOUT][93] ([fdo#111546]) -> [INCOMPLETE][94] ([fdo#103540])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6839/shard-hsw7/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/shard-hsw4/igt@[email protected]

[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#111438]: https://bugs.freedesktop.org/show_bug.cgi?id=111438
[fdo#111545]: https://bugs.freedesktop.org/show_bug.cgi?id=111545
[fdo#111546]: https://bugs.freedesktop.org/show_bug.cgi?id=111546
[fdo#111548]: https://bugs.freedesktop.org/show_bug.cgi?id=111548
[fdo#111550]: https://bugs.freedesktop.org/show_bug.cgi?id=111550
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (10 -> 10)
------------------------------

No changes in participating hosts

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6839 -> Patchwork_14294

CI-20190529: 20190529
CI_DRM_6839: d3d45e02f5adaa9b9dae212460b3d93cc6e28a4b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5171: 1911564805fe454919e8a5846534a0c1ef376a33 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14294: cc829ad05250eb2f8987c98f1deadb0a1baf2338 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14294/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx