diff options
author | Sumit Semwal <sumit.semwal@linaro.org> | 2020-07-23 20:16:40 +0530 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@linaro.org> | 2020-07-23 20:51:47 +0530 |
commit | 41d06b163f2310d5ef01a69eab6f7d00bf680a40 (patch) | |
tree | d2377e70ef2efb5b017c646cf49fc103066fbe41 | |
parent | 51a800d18eae089956e0ffb5194f6e7f05c16f19 (diff) |
vkoul's gpi debug patchtmp/forvkoul/p3-mainline-WIP-touch
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Change-Id: Id316bb16f14bf6dfa54a2142f0d3aa0e7e44f0ba
-rw-r--r-- | drivers/dma/qcom/gpi.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c index 101d31467360..ea96cdf31701 100644 --- a/drivers/dma/qcom/gpi.c +++ b/drivers/dma/qcom/gpi.c @@ -1455,11 +1455,18 @@ static void gpi_process_imed_data_event(struct gpii_chan *gpii_chan, GPII_ERR(gpii, gpii_chan->chid, "Event: %08x %08x %08x %08x\n", gpi_ere->dword[0], gpi_ere->dword[1], gpi_ere->dword[2], gpi_ere->dword[3]); + pr_err("VK: %s Event TRE: %08x %08x %08x %08x\n", __func__, + gpi_ere->dword[0], gpi_ere->dword[1], + gpi_ere->dword[2], gpi_ere->dword[3]); gpi_tre = tre; GPII_ERR(gpii, gpii_chan->chid, "Pending TRE: %08x %08x %08x %08x\n", gpi_tre->dword[0], gpi_tre->dword[1], gpi_tre->dword[2], gpi_tre->dword[3]); + + pr_err("VK %s Pending TRE: %08x %08x %08x %08x\n", __func__, + gpi_tre->dword[0], gpi_tre->dword[1], + gpi_tre->dword[2], gpi_tre->dword[3]); gpi_generate_cb_event(gpii_chan, MSM_GPI_QUP_EOT_DESC_MISMATCH, __LINE__); return; @@ -1547,6 +1554,9 @@ static void gpi_process_xfer_compl_event(struct gpii_chan *gpii_chan, GPII_ERR(gpii, gpii_chan->chid, "Event: %08x %08x %08x %08x\n", gpi_ere->dword[0], gpi_ere->dword[1], gpi_ere->dword[2], gpi_ere->dword[3]); + pr_err("VK: %s Event TRE: %08x %08x %08x %08x\n", __func__, + gpi_ere->dword[0], gpi_ere->dword[1], + gpi_ere->dword[2], gpi_ere->dword[3]); gpi_generate_cb_event(gpii_chan, MSM_GPI_QUP_EOT_DESC_MISMATCH, __LINE__); return; @@ -1626,6 +1636,11 @@ static void gpi_process_events(struct gpii *gpii) gpi_event->gpi_ere.dword[1], gpi_event->gpi_ere.dword[2], gpi_event->gpi_ere.dword[3]); + pr_err("VK: %s %08x %08x %08x %08x\n", __func__, + gpi_event->gpi_ere.dword[0], + gpi_event->gpi_ere.dword[1], + gpi_event->gpi_ere.dword[2], + gpi_event->gpi_ere.dword[3]); switch (type) { case XFER_COMPLETE_EV_TYPE: @@ -2291,6 +2306,7 @@ struct dma_async_tx_descriptor *gpi_prep_slave_sg(struct dma_chan *chan, void *tre, *wp = NULL; const gfp_t gfp = GFP_ATOMIC; struct gpi_desc *gpi_desc; + struct msm_gpi_tre *msm_tre; gpii->ieob_set = false; GPII_VERB(gpii, gpii_chan->chid, "enter\n"); @@ -2327,6 +2343,9 @@ struct dma_async_tx_descriptor *gpi_prep_slave_sg(struct dma_chan *chan, /* copy each tre into transfer ring */ for_each_sg(sgl, sg, sg_len, i) { tre = sg_virt(sg); + msm_tre = tre; + pr_err("VK: TRE:%d: %x:%x:%x:%x\n", i, msm_tre->dword[0], msm_tre->dword[1], + msm_tre->dword[2], msm_tre->dword[3]); /* Check if last tre has ieob set */ if (i == sg_len - 1) { |