Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0448061 authored by Raviteja Tamatam's avatar Raviteja Tamatam Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Update LUT dma under-run handling



LUT dma under-run is a recoverable error, remove the panic and add a
event log to capture status.

Change-Id: If29d7b74a57527d09d084112276545e93c570571
Signed-off-by: default avatarRaviteja Tamatam <travitej@codeaurora.org>
parent 474f5f43
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -489,8 +489,13 @@ static int write_kick_off_v1(struct sde_reg_dma_kickoff_cfg *cfg)
	SET_UP_REG_DMA_REG(hw, reg_dma);
	SDE_REG_WRITE(&hw, REG_DMA_OP_MODE_OFF, BIT(0));
	val = SDE_REG_READ(&hw, reg_dma_intr_4_status_offset);
	if (val)
		SDE_DBG_DUMP("all", "dbg_bus", "vbif_dbg_bus", "panic");
	if (val) {
		DRM_DEBUG("LUT dma status %x\n", val);
		mask = BIT(0) | BIT(1) | BIT(2) | BIT(16);
		SDE_REG_WRITE(&hw, reg_dma_intr_clear_offset + sizeof(u32) * 4,
			mask);
		SDE_EVT32(val);
	}

	SDE_REG_WRITE(&hw, reg_dma_ctl_queue_off[cfg->ctl->idx],
			cfg->dma_buf->iova);