]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Make sure vma containing firmware is GuC mappable
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 11 Jan 2017 15:17:39 +0000 (16:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Jan 2017 10:52:39 +0000 (10:52 +0000)
commitd88fd408c548805c7fc2071094023a44b9512223
treeb11abe402b9013cae4b5dc25b0b32588858b0d31
parentf117fac5780dfb3a488cb9d842ebfa9b53851d0e
drm/i915/guc: Make sure vma containing firmware is GuC mappable

Since commit ba9389302ee7 ("drm/i915/guc: Assert that all GGTT offsets used
by the GuC are mappable"), we're asserting that GuC firmware is in the
GuC mappable range.
Except we're not pinning the object with bias, which means it's possible
to trigger this assert. Let's add a proper bias.

Fixes: ba9389302ee7 ("drm/i915/guc: Assert that all GGTT offsets used by the GuC are mappable")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Tomi Sarvela <tomi.p.sarvela@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111151739.28965-1-michal.winiarski@intel.com
drivers/gpu/drm/i915/intel_guc_loader.c