Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de8fe166 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Allocate scratch page from stolen



With the last direct CPU access to the scratch page removed, we can now
allocate it from our small amount of reserved system pages (stolen
memory).

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-10-git-send-email-chris@chris-wilson.co.uk
parent f8291952
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -665,6 +665,8 @@ int intel_init_pipe_control(struct intel_engine_cs *engine)

	WARN_ON(engine->scratch.obj);

	obj = i915_gem_object_create_stolen(engine->i915->dev, 4096);
	if (!obj)
		obj = i915_gem_object_create(engine->i915->dev, 4096);
	if (IS_ERR(obj)) {
		DRM_ERROR("Failed to allocate scratch page\n");