Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH 1/3] fixup! drm/xe/display: Implement display support
@ 2023-09-15 17:36 Maarten Lankhorst
  2023-09-15 17:36 ` [Intel-xe] [PATCH 2/3] drm/i915: Swap ggtt_vma during legacy cursor update Maarten Lankhorst
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Maarten Lankhorst @ 2023-09-15 17:36 UTC (permalink / raw)
  To: intel-xe; +Cc: Maarten Lankhorst

From: Maarten Lankhorst <dev@lankhorst.se>

Add null check to make cursor magic work.

Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
---
 drivers/gpu/drm/xe/display/xe_fb_pin.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
index 3422942a99518..ac0d4474cd880 100644
--- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
+++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
@@ -308,6 +308,7 @@ int intel_plane_pin_fb(struct intel_plane_state *plane_state)
 
 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state)
 {
-	__xe_unpin_fb_vma(old_plane_state->ggtt_vma);
+	if (old_plane_state->ggtt_vma)
+		__xe_unpin_fb_vma(old_plane_state->ggtt_vma);
 	old_plane_state->ggtt_vma = NULL;
 }
-- 
2.39.2


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

end of thread, other threads:[~2023-09-20 20:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-15 17:36 [Intel-xe] [PATCH 1/3] fixup! drm/xe/display: Implement display support Maarten Lankhorst
2023-09-15 17:36 ` [Intel-xe] [PATCH 2/3] drm/i915: Swap ggtt_vma during legacy cursor update Maarten Lankhorst
2023-09-15 17:36 ` [Intel-xe] [PATCH 3/3] drm/i915: Block in cleanup for legacy cursor updates Maarten Lankhorst
2023-09-20 20:06   ` Rodrigo Vivi
2023-09-15 18:13 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/3] fixup! drm/xe/display: Implement display support Patchwork
2023-09-15 18:14 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-15 18:15 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-15 18:22 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-09-15 18:22 ` [Intel-xe] ✗ CI.Hooks: failure " Patchwork
2023-09-15 18:23 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-09-15 18:55 ` [Intel-xe] ✓ CI.BAT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox