drm/i915/guc: Extract doorbell verification into a function
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 13 Dec 2017 22:13:52 +0000 (23:13 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Dec 2017 08:07:00 +0000 (08:07 +0000)
commita00cfc959ccbda94873f49bf4494edc00200d05d
treeb687adb2bf9caec4c88627e31bee818bf324f411
parent8ec52ec8dc6827ea7aed524ed5af7aedcfbc553b
drm/i915/guc: Extract doorbell verification into a function

We have the selftest that's checking doorbell create/destroy, so there's
no need to check all doorbells delaying the reset every time.
We do want to have that extra sanity check at module load/unload though.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171213221352.7173-7-michal.winiarski@intel.com
drivers/gpu/drm/i915/intel_guc_submission.c