Re: [PATCH 1/4] drm/client: Do not pin in drm_client_buffer_vmap()

2025-04-14 Thread Dmitry Osipenko
On 4/4/25 16:23, Thomas Zimmermann wrote: > +int drm_client_buffer_vmap(struct drm_client_buffer *buffer, > +struct iosys_map *map_copy) > { > struct drm_gem_object *gem = buffer->gem; > struct iosys_map *map = &buffer->map; > int ret; > > drm_gem_

Re: [PATCH 1/4] drm/client: Do not pin in drm_client_buffer_vmap()

2025-04-14 Thread Boris Brezillon
On Fri, 4 Apr 2025 15:23:31 +0200 Thomas Zimmermann wrote: > Pin and vmap are two distict operations. Do not mix them. > > The helper drm_client_buffer_vmap() maps the pages for fbdev-dma > and fbdev-shmem. In both cases, the vmap operation ensures that > the pages are available until the vunma

[PATCH 1/4] drm/client: Do not pin in drm_client_buffer_vmap()

2025-04-04 Thread Thomas Zimmermann
Pin and vmap are two distict operations. Do not mix them. The helper drm_client_buffer_vmap() maps the pages for fbdev-dma and fbdev-shmem. In both cases, the vmap operation ensures that the pages are available until the vunmap happens. And as the pages in DMA or SHMEM areas cannot be moved, there