Re: [PATCH] drm/vboxvideo: Use drm_gem_vram_vmap() interfaces

2020-09-14 Thread Thomas Zimmermann
Hi Am 11.09.20 um 16:07 schrieb Hans de Goede: > Hi, > > On 9/11/20 9:59 AM, Thomas Zimmermann wrote: >> VRAM helpers support ref counting for pin and vmap operations, no need >> to avoid these operations, by employing the internal kmap interface. Just >> use drm_gem_vram_vmap() and let it handle

Re: [PATCH] drm/vboxvideo: Use drm_gem_vram_vmap() interfaces

2020-09-11 Thread Hans de Goede
Hi, On 9/11/20 9:59 AM, Thomas Zimmermann wrote: VRAM helpers support ref counting for pin and vmap operations, no need to avoid these operations, by employing the internal kmap interface. Just use drm_gem_vram_vmap() and let it handle the details. Also unexport the kmap interfaces from VRAM he

Re: [PATCH] drm/vboxvideo: Use drm_gem_vram_vmap() interfaces

2020-09-11 Thread Daniel Vetter
On Fri, Sep 11, 2020 at 09:59:22AM +0200, Thomas Zimmermann wrote: > VRAM helpers support ref counting for pin and vmap operations, no need > to avoid these operations, by employing the internal kmap interface. Just > use drm_gem_vram_vmap() and let it handle the details. > > Also unexport the kma

[PATCH] drm/vboxvideo: Use drm_gem_vram_vmap() interfaces

2020-09-11 Thread Thomas Zimmermann
VRAM helpers support ref counting for pin and vmap operations, no need to avoid these operations, by employing the internal kmap interface. Just use drm_gem_vram_vmap() and let it handle the details. Also unexport the kmap interfaces from VRAM helpers. Vboxvideo was the last user of these internal