summaryrefslogtreecommitdiff
path: root/include/uapi/drm/msm_drm.h
diff options
context:
space:
mode:
authorJonathan Marek <jonathan@marek.ca>2021-04-23 22:08:20 +0300
committerRob Clark <robdclark@chromium.org>2021-06-23 17:32:14 +0300
commitd12e339044a00ecae993b06672c38c168a92f0c3 (patch)
treeb53c35fec2a587fb9d6e7f3807d2fb4f9b123b6e /include/uapi/drm/msm_drm.h
parentaf9b3547079915d682d14ea98018d6fa6edf97ca (diff)
downloadlinux-d12e339044a00ecae993b06672c38c168a92f0c3.tar.xz
drm/msm: add MSM_BO_CACHED_COHERENT
Add a new cache mode for creating coherent host-cached BOs. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org> Link: https://lore.kernel.org/r/20210423190833.25319-5-jonathan@marek.ca Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'include/uapi/drm/msm_drm.h')
-rw-r--r--include/uapi/drm/msm_drm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h
index 5596d7c37f9e..a92d90a6d96f 100644
--- a/include/uapi/drm/msm_drm.h
+++ b/include/uapi/drm/msm_drm.h
@@ -95,12 +95,11 @@ struct drm_msm_param {
#define MSM_BO_CACHED 0x00010000
#define MSM_BO_WC 0x00020000
#define MSM_BO_UNCACHED 0x00040000
+#define MSM_BO_CACHED_COHERENT 0x080000
#define MSM_BO_FLAGS (MSM_BO_SCANOUT | \
MSM_BO_GPU_READONLY | \
- MSM_BO_CACHED | \
- MSM_BO_WC | \
- MSM_BO_UNCACHED)
+ MSM_BO_CACHE_MASK)
struct drm_msm_gem_new {
__u64 size; /* in */