summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-11-09 12:42:52 +0800
committerQiang Yu <Qiang.Yu@amd.com>2017-05-17 10:24:19 +0800
commit8c2a3df406f2cf2e2752da0e20d8eca143a1bc8f (patch)
tree97500612e9ee036bac8218f6efa379ecd2d9aa4a
parent1df72708b4762e795ba5382318b8cd6db55eb7a3 (diff)
amdgpu: expose the AMDGPU_GEM_CREATE_NO_EVICT flag v2
With this flag specified, the buffer will be pinned at allocation time. v2: 8991a3cc7ff9947474aa071c1dc2fd88d9808f16 [Flora Cui] change AMDGPU_GEM_CREATE_NO_EVICT flag definition to avoid conflict with upstream flags. 7987cf4262d2cf83f32eb5debef9aefa791c1505 [Junwei Zhang] update GEM flag bit for 64-bit extension Change-Id: Iad8c81302ebf468dc45233ca7a91e6c83cb27a5f Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Flora Cui <Flora.Cui@amd.com> Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
-rw-r--r--include/drm/amdgpu_drm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index 6e5544ef..61ec2826 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -86,6 +86,10 @@ extern "C" {
/* Flag that allocating the BO should use linear VRAM */
#define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5)
+/* Hybrid specific */
+/* Flag that the memory allocation should be pinned */
+#define AMDGPU_GEM_CREATE_NO_EVICT (1ULL << 31)
+
struct drm_amdgpu_gem_create_in {
/** the requested memory size */
__u64 bo_size;