Part of video hw driver update from UMG.
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
struct drm_psb_private *dev_priv =
(struct drm_psb_private *)dev->dev_private;
struct pnw_topaz_private *topaz_priv = dev_priv->topaz_private;
+ uint32_t reg_val;
if (dev_priv->topaz_ctx == NULL)
return 0;
PSB_DEBUG_PM("TOPAZ: %s, HW is busy\n", __func__);
return -EBUSY;
}
+ TOPAZ_MULTICORE_READ32(TOPAZSC_CR_MULTICORE_CMD_FIFO_1,
+ ®_val);
+ reg_val &= MASK_TOPAZSC_CR_CMD_FIFO_SPACE;
+ if (reg_val != 32) {
+ PSB_DEBUG_GENERAL("TOPAZ: HW is busy. Free words in command"
+ "FIFO is %d.\n",
+ reg_val);
+ return -EBUSY;
+ }
return 0; /* we think it is idle */
}