]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 8 May 2017 20:35:01 +0000 (14:35 -0600)
committerRob Clark <robdclark@gmail.com>
Fri, 16 Jun 2017 15:15:47 +0000 (11:15 -0400)
commit49fd08baa36ac10b13ea7b23fc6bbee8b4a6fcfe
tree9d167c6ce28adbf1aeed4bae9497dc315d96927c
parente895c7bd31f5ca7dbd315001cfbdcaee98ee16c4
drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA

Modify the 'pad' member of struct drm_msm_gem_info to 'flags'. If the
user sets 'flags' to non-zero it means that they want a IOVA for the
GEM object instead of a mmap() offset. Return the iova in the 'offset'
member.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
[robclark: s/hint/flags in commit msg]
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c
include/uapi/drm/msm_drm.h