Re: [PATCH 2/6] drm/shmem-helper: Add additional KMS helpers

2021-02-03 Thread Daniel Vetter
On Wed, Feb 3, 2021 at 3:26 PM Thomas Zimmermann wrote: > > Hi > > Am 03.02.21 um 15:01 schrieb Daniel Vetter: > > On Wed, Feb 03, 2021 at 02:10:42PM +0100, Thomas Zimmermann wrote: > >> Several drivers use GEM SHMEM buffer objects as shadow buffers for > >> the actual framebuffer memory. Right no

Re: [PATCH 2/6] drm/shmem-helper: Add additional KMS helpers

2021-02-03 Thread Thomas Zimmermann
Hi Am 03.02.21 um 15:01 schrieb Daniel Vetter: On Wed, Feb 03, 2021 at 02:10:42PM +0100, Thomas Zimmermann wrote: Several drivers use GEM SHMEM buffer objects as shadow buffers for the actual framebuffer memory. Right now, drivers do these vmap operations in their commit tail, which is actually

Re: [PATCH 2/6] drm/shmem-helper: Add additional KMS helpers

2021-02-03 Thread Daniel Vetter
On Wed, Feb 03, 2021 at 02:10:42PM +0100, Thomas Zimmermann wrote: > Several drivers use GEM SHMEM buffer objects as shadow buffers for > the actual framebuffer memory. Right now, drivers do these vmap > operations in their commit tail, which is actually not allowed by the > locking rules for the d

[PATCH 2/6] drm/shmem-helper: Add additional KMS helpers

2021-02-03 Thread Thomas Zimmermann
Several drivers use GEM SHMEM buffer objects as shadow buffers for the actual framebuffer memory. Right now, drivers do these vmap operations in their commit tail, which is actually not allowed by the locking rules for the dma-buf reservation lock. The involved SHMEM BO has to be vmapped in the pla