History

drm/msm: Add MSM_INFO_GET_FLAGS

In some cases crosvm needs a way to query the cache flags to communicate them to the guest kernel for guest userspace mapping.

Rob Clark committed 4 years ago

Commit 90d2c871 parent 92bab912 files · +11 −0Browse files

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

Unified · Split

include/uapi/drm/msm_drm.h+1−0
@@ -138,6 +138,7 @@ struct drm_msm_gem_new { · 137 unmodified lines
138#define MSM_INFO_SET_NAME 0x02 /* set the debug name (by pointer) */138#define MSM_INFO_SET_NAME 0x02 /* set the debug name (by pointer) */
139#define MSM_INFO_GET_NAME 0x03 /* get debug name, returned by pointer */139#define MSM_INFO_GET_NAME 0x03 /* get debug name, returned by pointer */
140#define MSM_INFO_SET_IOVA 0x04 /* set the iova, passed by value */140#define MSM_INFO_SET_IOVA 0x04 /* set the iova, passed by value */
141#define MSM_INFO_GET_FLAGS 0x05 /* get the MSM_BO_x flags */
141 142
142struct drm_msm_gem_info {143struct drm_msm_gem_info {
143 __u32 handle; /* in */144 __u32 handle; /* in */