Commit 0ef42fb7 authored by Chris Wilson's avatar Chris Wilson Committed by Ramalingam C
Browse files

drm/i915: Exclude reserved stolen from driver use



Remove the portion of stolen memory reserved for private use from driver
access.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarRamalingam C <ramalingam.c@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211208153404.27546-2-ramalingam.c@intel.com
parent 40aa583e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -488,6 +488,9 @@ static int i915_gem_init_stolen(struct intel_memory_region *mem)
		return 0;
	}

	/* Exclude the reserved region from driver use */
	mem->region.end = reserved_base - 1;

	/* It is possible for the reserved area to end before the end of stolen
	 * memory, so just consider the start. */
	reserved_total = stolen_top - reserved_base;