[PATCH v2 RESEND] drm/virtio: use generic dumb_map_offset implementation
Dmitry Osipenko
dmitry.osipenko at collabora.com
Tue Nov 19 10:09:21 UTC 2024
On 11/7/24 17:10, Peter Shkenev wrote:
> Currently, virtio uses its own dumb_map_offset implementation,
> virtio_gpu_mode_dumb_mmap. It works similarly to generic implementation,
> drm_gem_dumb_map_offset, and using the generic implementation is
> preferable (and making drivers to do so is a task stated on the DRM
> subsystem's TODO list).
>
> Thus, make driver use the generic implementation. This includes
> VIRTGPU_MAP ioctl so it cannot be used to circumvent rules imposed by
> drm_gem_dumb_map_offset (imported objects cannot be mapped).
>
> Signed-off-by: Peter Shkenev <mustela at erminea.space>
> ---
> Changes in v2:
> - Remove excessive include of drm_gem.h from virtgpu_ioctl.h
> - Remove obsoleted virtio_gpu_mode_dumb_mmap prototype from
> virtgpu_drv.h
>
Applied to misc-next, thanks!
--
Best regards,
Dmitry
More information about the dri-devel
mailing list