Skip to content

Commit 36150bb

Browse files
committed
drm/i915: mark stolen as private
In the next patch we want to expose the supported regions to userspace, which can then be fed into the gem_create_ext placement extensions. For now treat stolen memory as private from userspace pov. Signed-off-by: Matthew Auld <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Thomas Hellström <[email protected]> Cc: Daniele Ceraolo Spurio <[email protected]> Cc: Lionel Landwerlin <[email protected]> Cc: Jon Bloomfield <[email protected]> Cc: Jordan Justen <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Kenneth Graunke <[email protected]> Cc: Jason Ekstrand <[email protected]> Cc: Dave Airlie <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: Kenneth Graunke <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2bc9c04 commit 36150bb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/gpu/drm/i915/gem/i915_gem_stolen.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,8 @@ i915_gem_stolen_lmem_setup(struct drm_i915_private *i915)
803803

804804
intel_memory_region_set_name(mem, "stolen-local");
805805

806+
mem->private = true;
807+
806808
return mem;
807809
}
808810

@@ -821,6 +823,8 @@ i915_gem_stolen_smem_setup(struct drm_i915_private *i915)
821823

822824
intel_memory_region_set_name(mem, "stolen-system");
823825

826+
mem->private = true;
827+
824828
return mem;
825829
}
826830

drivers/gpu/drm/i915/intel_memory_region.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ struct intel_memory_region {
8686
u16 instance;
8787
enum intel_region_id id;
8888
char name[16];
89+
bool private; /* not for userspace */
8990

9091
struct list_head reserved;
9192

0 commit comments

Comments
 (0)