Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: [CI-only 4/4] drm/i915: Hack to check use-after-free aggressively, and undo purpose of patches
Date: Tue,  9 Apr 2024 10:31:40 +0200	[thread overview]
Message-ID: <20240409083140.27711-4-maarten.lankhorst@linux.intel.com> (raw)
In-Reply-To: <20240409083140.27711-1-maarten.lankhorst@linux.intel.com>

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_crtc.c   | 2 +-
 drivers/gpu/drm/i915/display/intel_cursor.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_crtc.c b/drivers/gpu/drm/i915/display/intel_crtc.c
index 558e9b7404b5..0ec6c3a79ec1 100644
--- a/drivers/gpu/drm/i915/display/intel_crtc.c
+++ b/drivers/gpu/drm/i915/display/intel_crtc.c
@@ -640,7 +640,7 @@ void intel_pipe_update_end(struct intel_atomic_state *state,
 			if (old_plane_state->uapi.crtc == &crtc->base &&
 			    old_plane_state->unpin_work.vblank) {
 				drm_vblank_work_schedule(&old_plane_state->unpin_work,
-							 drm_crtc_accurate_vblank_count(&crtc->base) + 1,
+							 drm_crtc_accurate_vblank_count(&crtc->base),
 							 false);
 
 				/* Remove plane from atomic state, cleanup/free is done from vblank worker. */
diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c
index e999ee8e9d94..f052c25b0675 100644
--- a/drivers/gpu/drm/i915/display/intel_cursor.c
+++ b/drivers/gpu/drm/i915/display/intel_cursor.c
@@ -833,7 +833,7 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
 				     intel_cursor_unpin_work);
 
 		drm_vblank_work_schedule(&old_plane_state->unpin_work,
-					 drm_crtc_accurate_vblank_count(&crtc->base) + 1,
+					 drm_crtc_accurate_vblank_count(&crtc->base),
 					 false);
 
 		old_plane_state = NULL;
-- 
2.43.0


  parent reply	other threads:[~2024-04-09  8:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-09  8:31 [CI-only 1/4] drm: Add drm_vblank_work_flush_all() Maarten Lankhorst
2024-04-09  8:31 ` [CI-only 2/4] drm/i915: Use vblank worker to unpin old legacy cursor fb safely Maarten Lankhorst
2024-04-09  8:31 ` [CI-only 3/4] drm/i915: Use the same vblank worker for atomic unpin Maarten Lankhorst
2024-04-09  8:31 ` Maarten Lankhorst [this message]
2024-04-09  9:03 ` ✓ CI.Patch_applied: success for series starting with [CI-only,1/4] drm: Add drm_vblank_work_flush_all() Patchwork
2024-04-09  9:04 ` ✗ CI.checkpatch: warning " Patchwork
2024-04-09  9:05 ` ✓ CI.KUnit: success " Patchwork
2024-04-09  9:16 ` ✓ CI.Build: " Patchwork
2024-04-09  9:19 ` ✓ CI.Hooks: " Patchwork
2024-04-09  9:20 ` ✗ CI.checksparse: warning " Patchwork
2024-04-09  9:47 ` ✓ CI.BAT: success " Patchwork
2024-04-09 10:54 ` ✗ CI.FULL: failure " Patchwork

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=20240409083140.27711-4-maarten.lankhorst@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

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

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