All of lore.kernel.org
 help / color / mirror / Atom feed
* Trying to fix drm/prime: remove drm_prime_lookup_buf_by_handle
@ 2025-06-13 13:12 Christian König
  2025-06-13 13:12 ` [PATCH] drm/prime: fix drm_prime_add_buf_handle Christian König
  2025-06-13 14:32 ` Trying to fix drm/prime: remove drm_prime_lookup_buf_by_handle Saarinen, Jani
  0 siblings, 2 replies; 13+ messages in thread
From: Christian König @ 2025-06-13 13:12 UTC (permalink / raw)
  To: jani.saarinen, jani.nikula, tursulin, simona.vetter, tzimmermann,
	dri-devel

The problem with this patch is that we now don't check if the handle
already existed any more, but just blindly try to add it again.

This obviously breaks re-exporting DMA-bufs but also surfaces an issue
that we don't seem to take into account that multiple handles can point
to the same GEM object.

Try to fix this by just ignoring adding the same DMA-buf to the rb tree
multiple times. Not sure if that is the best approach, but it should fix
the issue at hand.

Regards,
Christian.



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

end of thread, other threads:[~2025-06-17 14:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13 13:12 Trying to fix drm/prime: remove drm_prime_lookup_buf_by_handle Christian König
2025-06-13 13:12 ` [PATCH] drm/prime: fix drm_prime_add_buf_handle Christian König
2025-06-13 14:04   ` Simona Vetter
2025-06-13 14:10     ` Simona Vetter
2025-06-17 14:11       ` Simona Vetter
2025-06-17 14:29         ` Simona Vetter
2025-06-13 14:12     ` Christian König
2025-06-13 14:35       ` Simona Vetter
2025-06-13 15:03         ` Christian König
2025-06-16 10:38           ` Simona Vetter
2025-06-16 11:38             ` Christian König
2025-06-17 13:55               ` Simona Vetter
2025-06-13 14:32 ` Trying to fix drm/prime: remove drm_prime_lookup_buf_by_handle Saarinen, Jani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.