Re: [PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Thomas Zimmermann
Hi Am 31.03.20 um 10:50 schrieb Daniel Vetter: > On Tue, Mar 31, 2020 at 10:11:30AM +0200, Thomas Zimmermann wrote: >> Calling the VRAM helper's prepare_fb() helper now sets the plane's >> fence object. The helper still has to synchronize with other users >> of the GEM object. Leave a related TODO

Re: [PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Daniel Vetter
On Tue, Mar 31, 2020 at 10:11:30AM +0200, Thomas Zimmermann wrote: > Calling the VRAM helper's prepare_fb() helper now sets the plane's > fence object. The helper still has to synchronize with other users > of the GEM object. Leave a related TODO comment in the code. > > This will be useful for PR

Re: [PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Gerd Hoffmann
Hi, > + * TODO: Synchronize with other users of the buffer. Buffers > + * cannot be pinned to VRAM while they are in use by other > + * drivers for DMA. We should probably wait for each GEM > + * object's fence before attempting to pin the buffer. The other

[PATCH] drm/vram-helpers: Set plane fence for display update

2020-03-31 Thread Thomas Zimmermann
Calling the VRAM helper's prepare_fb() helper now sets the plane's fence object. The helper still has to synchronize with other users of the GEM object. Leave a related TODO comment in the code. This will be useful for PRIME support. VRAM helpers don't support buffer sharing ATM, so there are no d