drm/i915/guc: doorbell reset should avoid used doorbells
authorDave Gordon <david.s.gordon@intel.com>
Tue, 9 Aug 2016 14:19:19 +0000 (15:19 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 10 Aug 2016 09:40:05 +0000 (10:40 +0100)
commit8888cd015458811d568a152238b0614c586df751
treeb761fdff7848afb37e703f39ce7acd99e6506edd
parentdbd6ef29a74e6db22e037fc3d481c1dbca596f80
drm/i915/guc: doorbell reset should avoid used doorbells

guc_init_doorbell_hw() borrows the (currently single) GuC client to use
in reinitialising ALL the doorbell registers (as the hardware doesn't
reset them when the GuC is reset). As a prerequisite for accommodating
multiple clients, it should only reset doorbells that are supposed to be
disabled, avoiding those that are marked as in use by any client.

Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c