summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_guc_submission.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-11-29 15:10:22 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2016-11-29 18:52:43 +0300
commit597bdc8bb2e8a8318d9c19bc285a95532a9ffe52 (patch)
treea400a848d91447685103f545ba7a7a85225605f0 /drivers/gpu/drm/i915/i915_guc_submission.c
parent357248bfe592f8a34be5fb76bb8154710403785e (diff)
downloadlinux-597bdc8bb2e8a8318d9c19bc285a95532a9ffe52.tar.xz
drm/i915/guc: Initialise doorbell cookie to matching value
Set the initial value of the doorbell cookie from the client. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161129121024.22650-4-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_guc_submission.c')
-rw-r--r--drivers/gpu/drm/i915/i915_guc_submission.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_guc_submission.c b/drivers/gpu/drm/i915/i915_guc_submission.c
index aaaf3928394e..dd879f0b077d 100644
--- a/drivers/gpu/drm/i915/i915_guc_submission.c
+++ b/drivers/gpu/drm/i915/i915_guc_submission.c
@@ -134,8 +134,8 @@ static int guc_update_doorbell_id(struct intel_guc *guc,
/* Activate the new doorbell */
__set_bit(new_id, doorbell_bitmap);
- doorbell->cookie = 0;
doorbell->db_status = GUC_DOORBELL_ENABLED;
+ doorbell->cookie = client->doorbell_cookie;
return guc_allocate_doorbell(guc, client);
}