linux/drivers/gpu/drm/i915/intel_uc.c
/* Reset GuC providing us with fresh state for both GuC and HuC.
 */
Reset GuC providing us with fresh state for both GuC and HuC.
Reset GuC providing us with fresh state for both GuC and HuC .
static int __intel_uc_reset_hw(struct drm_i915_private *dev_priv)
{
	int ret;
	u32 guc_status;
	ret = intel_reset_guc(dev_priv);
	if (ret) {
		DRM_ERROR("Failed to reset GuC, ret = %d\n", ret);
		return ret;
	}
	guc_status = I915_READ(GUC_STATUS);
	WARN(!(guc_status & GS_MIA_IN_RESET),
	     "GuC status: 0x%x, MIA core expected to be in reset\n",
	     guc_status);
	return ret;
}
static int __intel_uc_reset_hw ( struct drm_i915_private * dev_priv ) { int ret ; u32 guc_status ; ret = intel_reset_guc ( dev_priv ) ; if ( ret ) { DRM_ERROR ( " \n " , ret ) ; return ret ; } guc_status = I915_READ ( GUC_STATUS ) ; WARN ( ! ( guc_status & GS_MIA_IN_RESET ) , " \n " , guc_status ) ; return ret ; }
Reset GuC providing us with fresh state for both GuC and HuC.
Reset GuC providing us with fresh state for both GuC and HuC .