History

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.

Jordan Crouse committed 9 years ago

Commit 49fd08b1 parent e895c7b2 files · +27 −4Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/msm_drm.h+6−2
@@ -104,10 +104,14 @@ struct drm_msm_gem_new { · 103 unmodified lines
104 __u32 handle; /* out */104 __u32 handle; /* out */
105};105};
106 106
107#define MSM_INFO_IOVA 0x01
108
109#define MSM_INFO_FLAGS (MSM_INFO_IOVA)
110
107struct drm_msm_gem_info {111struct drm_msm_gem_info {
108 __u32 handle; /* in */112 __u32 handle; /* in */
109 __u32 pad;113 __u32 flags; /* in - combination of MSM_INFO_* flags */
110 __u64 offset; /* out, offset to pass to mmap() */114 __u64 offset; /* out, mmap() offset or iova */
111};115};
112 116
113#define MSM_PREP_READ 0x01117#define MSM_PREP_READ 0x01

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t