Skip to content

Commit 97c78f4

Browse files
committed
drm/imx: ipuv3-plane: add IDMAC timeout warning
ipu_plane_disable should never be called while the plane IDMAC channel is active. The busy wait is just a safety net that should never time out. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
1 parent 815b02e commit 97c78f4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎drivers/gpu/drm/imx/ipuv3-plane.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,15 @@ static void ipu_plane_enable(struct ipu_plane *ipu_plane)
228228

229229
void ipu_plane_disable(struct ipu_plane *ipu_plane, bool disable_dp_channel)
230230
{
231+
int ret;
232+
231233
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
232234

233-
ipu_idmac_wait_busy(ipu_plane->ipu_ch, 50);
235+
ret = ipu_idmac_wait_busy(ipu_plane->ipu_ch, 50);
236+
if (ret == -ETIMEDOUT) {
237+
DRM_ERROR("[PLANE:%d] IDMAC timeout\n",
238+
ipu_plane->base.base.id);
239+
}
234240

235241
if (ipu_plane->dp && disable_dp_channel)
236242
ipu_dp_disable_channel(ipu_plane->dp, false);

0 commit comments

Comments
 (0)