diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2020-01-31 16:37:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-02-01 00:42:59 +0100 |
commit | e85de17703853e66ec97044c06163d774dbe605d (patch) | |
tree | 6be40916a6bb9cb5b391466f52c010dc3fcb2425 /drivers/gpu/drm/i915/i915_drv.h | |
parent | drm/i915/selftests: Disable heartbeat around hang tests (diff) | |
download | linux-e85de17703853e66ec97044c06163d774dbe605d.tar.xz linux-e85de17703853e66ec97044c06163d774dbe605d.zip |
drm/i915/guc: Introduce guc_is_ready
We already have guc_is_running function, but it only reflects
firmware status, while to fully use GuC we need to know if we've
already established communication with it.
v2: also s/intel_guc_is_running/intel_guc_is_fw_running (Chris)
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200131153706.109528-1-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index e56f289d2975..a71ff233cc55 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -2017,7 +2017,7 @@ i915_coherent_map_type(struct drm_i915_private *i915) static inline bool intel_guc_submission_is_enabled(struct intel_guc *guc) { return intel_guc_is_submission_supported(guc) && - intel_guc_is_running(guc); + intel_guc_is_ready(guc); } #endif |