From: Dave Gordon Date: Thu, 9 Jul 2015 18:29:02 +0000 (+0100) Subject: drm/i915: Add i915_gem_object_create_from_data() X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~28^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea70299d6e6961dd6adce2cbdf64e6e8a7ea97c0;p=pandora-kernel.git drm/i915: Add i915_gem_object_create_from_data() i915_gem_object_create_from_data() is a generic function to save data from a plain linear buffer in a new pageable gem object that can later be accessed by the CPU and/or GPU. We will need this for the microcontroller firmware loading support code. Derived from i915_gem_object_write(), originally by Alex Dai v2: Change of function: now allocates & fills a new object, rather than writing to an existing object New name courtesy of Chris Wilson Explicit domain-setting and other improvements per review comments by Chris Wilson & Daniel Vetter v4: Rebased Issue: VIZ-4884 Signed-off-by: Alex Dai Signed-off-by: Dave Gordon Reviewed-by: Tom O'Rourke Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed