]> git.baikalelectronics.ru Git - kernel.git/commit
drm/xen-front: Pass dumb buffer data offset to the backend
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Thu, 13 Aug 2020 12:00:38 +0000 (14:00 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 13 Aug 2020 15:15:21 +0000 (17:15 +0200)
commit431b10ef1f4bac6a4b6ca396858051f31eddd2d1
treef810d8ad1537573a2db82851a21eb2f78f6ae5c8
parent61a1e0d3543a95bdbc53bc7e94d86a9e22a36a7f
drm/xen-front: Pass dumb buffer data offset to the backend

While importing a dmabuf it is possible that the data of the buffer
is put with offset which is indicated by the SGT offset.
Respect the offset value and forward it to the backend.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/gpu/drm/xen/xen_drm_front.c
drivers/gpu/drm/xen/xen_drm_front.h
drivers/gpu/drm/xen/xen_drm_front_gem.c