]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2ea8d2ec6a2c6c493b4ece7c91cbb40cbab11b0
tree91a6f436ef0c0c95dc87aed434b4f9fe7e5f97c6
parent85120fe57fdf8efce913470e0293693cf0cd9892
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