Skip to content

Commit 0ef42fb

Browse files
ickleramalingamc
authored andcommitted
drm/i915: Exclude reserved stolen from driver use
Remove the portion of stolen memory reserved for private use from driver access. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> cc: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211208153404.27546-2-ramalingam.c@intel.com
1 parent 40aa583 commit 0ef42fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)
488488
return 0;
489489
}
490490

491+
/* Exclude the reserved region from driver use */
492+
mem->region.end = reserved_base - 1;
493+
491494
/* It is possible for the reserved area to end before the end of stolen
492495
* memory, so just consider the start. */
493496
reserved_total = stolen_top - reserved_base;

0 commit comments

Comments
 (0)