All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fixes for interaction of imported dma-bufs and scanout
@ 2017-03-29  0:27 raof
  2017-03-29  0:27 ` [PATCH 1/6] drm/nouveau: Fail fb creation from imported dma-bufs raof
                   ` (3 more replies)
  0 siblings, 4 replies; 29+ messages in thread
From: raof @ 2017-03-29  0:27 UTC (permalink / raw)
  To: dri-devel

For nouveau, radeon, and amdgpu attempting to scanout of a bo will cause
the driver to migrate it to VRAM.

When the bo in question is an imported dma-buf, this results in a buffer
that appears to be shared but is actually device-private.

Consensus on #dri-devel seemed to be that it would be appropriate for
addfb to fail when attempted on an imported dma-buf.

It *might* also be appropriate to fail addfb on an exported dma-buf (as
that is likewise pinned to GTT), but #dri-devel thought it possible the
buffer could be unshared between addfb and actually trying to scanout.
An imported dma-buf doesn't have the same problem.

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

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

end of thread, other threads:[~2017-04-04 15:08 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29  0:27 [PATCH] Fixes for interaction of imported dma-bufs and scanout raof
2017-03-29  0:27 ` [PATCH 1/6] drm/nouveau: Fail fb creation from imported dma-bufs raof
2017-03-29  8:47   ` Maarten Lankhorst
2017-03-29  0:27 ` [PATCH 2/6] drm/nouveau: Pin bos from imported dma-bufs to GTT raof
2017-03-29  8:45   ` Maarten Lankhorst
2017-04-03  5:56   ` [PATCH 2/6 v2] drm/nouveau: Pin bos from imported dma-bufs to GTT. (v2) raof
     [not found] ` <20170329002720.11445-1-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-03-29  0:27   ` [PATCH 3/6] drm/amdgpu: Fail fb creation from imported dma-bufs raof-GeWIH/nMZzLQT0dZR+AlfA
     [not found]     ` <20170329002720.11445-4-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-03-29  2:03       ` Michel Dänzer
     [not found]         ` <4a950f45-3ad5-2d63-c434-0474e8cfda37-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-03-29  3:41           ` Christopher James Halse Rogers
2017-03-29  4:02       ` [PATCH v2] drm/amdgpu: Fail fb creation from imported dma-bufs. (v2) raof-GeWIH/nMZzLQT0dZR+AlfA
     [not found]         ` <20170329040211.18844-1-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-03-29  6:07           ` Michel Dänzer
     [not found]             ` <2b175dd8-abeb-b3e7-d783-355607a48fda-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-03-29 21:51               ` Alex Deucher
2017-03-29  0:27   ` [PATCH 4/6] drm/amd/amdgpu: Pin bos from imported dma-bufs to GTT raof-GeWIH/nMZzLQT0dZR+AlfA
2017-03-29  1:57     ` Michel Dänzer
2017-03-29  7:14     ` Christian König
2017-03-29  9:07       ` Michel Dänzer
2017-03-29  9:11         ` Christian König
     [not found]     ` <20170329002720.11445-5-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-04-03  3:31       ` [PATCH 4/6 (v2)] drm/amdgpu: Refuse to pin or change acceptable domains of prime BOs to VRAM. (v2) raof-GeWIH/nMZzLQT0dZR+AlfA
2017-03-29  0:27   ` [PATCH 5/6] drm/radeon: Fail fb creation from imported dma-bufs raof-GeWIH/nMZzLQT0dZR+AlfA
     [not found]     ` <20170329002720.11445-6-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-03-29  4:00       ` [PATCH v2] " raof-GeWIH/nMZzLQT0dZR+AlfA
     [not found]         ` <20170329040054.18587-1-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-03-29  7:18           ` Christian König
2017-03-29  0:27 ` [PATCH 6/6] drm/radeon: Pin bos from imported dma-bufs to GTT raof
     [not found]   ` <20170329002720.11445-7-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-04-03  3:35     ` [PATCH 6/7] drm/radeon: Maintain prime import/export refcount for BOs raof-GeWIH/nMZzLQT0dZR+AlfA
     [not found]       ` <20170403033523.22639-1-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-04-03  3:35         ` [PATCH 7/7 v2] drm/radeon: Refuse to migrate a prime BO to VRAM. (v2) raof-GeWIH/nMZzLQT0dZR+AlfA
     [not found]           ` <20170403033523.22639-2-raof-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-04-03  8:24             ` Christian König
2017-04-03 15:51               ` Alex Deucher
2017-04-03 16:00                 ` Christian König
     [not found]                   ` <c9417139-b930-040b-c186-e99b8ecc3474-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-04  8:03                     ` Christopher James Halse Rogers
     [not found]               ` <4fe38f82-c9d5-c212-fa05-08c2b4684c4e-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-04 15:08                 ` Alex Deucher

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.