]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6e544bd46a71e6f9780dd9a0459da4bd3bef2da
treeb761fdff7848afb37e703f39ce7acd99e6506edd
parent522fd3f21fc735756a048d689e4f48143740b14a
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