]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: re-use computed offset bias for context pin
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 23 Dec 2016 23:56:22 +0000 (15:56 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 24 Dec 2016 10:08:45 +0000 (10:08 +0000)
commitfeef2a7cb93e532bde3c7682ec7b1bce99cc8be5
tree6b21f95ae16d16e26ed774ccccacf222b4911316
parentd3ef1af6fdb67705d4569ac4b6ee11d91f6ab794
drm/i915: re-use computed offset bias for context pin

The context has to obey the same offset requirements as the ring,
so we can re-use the same bias value we computed for the ring instead of
unconditionally using GUC_WOPCM_TOP.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1482537382-28584-2-git-send-email-daniele.ceraolospurio@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_lrc.c