drm/i915/guc: Wait for doorbell to be inactive before deallocating
authorOscar Mateo <oscar.mateo@intel.com>
Wed, 22 Mar 2017 17:39:51 +0000 (10:39 -0700)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 23 Mar 2017 12:58:23 +0000 (14:58 +0200)
commited2ec71f9f7c0e1682c0821e4fa2452430f70e5e
tree91a6f436ef0c0c95dc87aed434b4f9fe7e5f97c6
parent0d7681261453e6f10e0a98e7b744fe4085743291
drm/i915/guc: Wait for doorbell to be inactive before deallocating

Doorbell release flow requires that we wait for GEN8_DRB_VALID bit to go
to zero after updating db_status before we call the GuC to release the
doorbell.

Kudos to Daniele for finding this out.

v2: WARN instead of DRM_ERROR (Joonas)

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c