dmaengine: gpi: Log the assigned GPII per SE during probe

This change Enhances IPC logs to add SE instance to know which
GPII is attached to which SE device, this helps in debug. Also,
removed unnecessary read of iommu-dma property.

Change-Id: I6a5a9312d80abab2addc0c63642429a787f9065c
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
This commit is contained in:
Mukesh Kumar Savaliya 2021-01-19 17:18:41 +05:30 committed by Gerrit - the friendly Code Review server
parent dc92568766
commit 74427ff890

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/
#include <linux/atomic.h>
@ -1228,8 +1228,11 @@ static void gpi_process_ch_ctrl_irq(struct gpii *gpii)
* Stop in process is a transition state and we will wait for
* stop interrupt before notifying.
*/
if (gpii_chan->ch_state != CH_STATE_STOP_IN_PROC)
if (gpii_chan->ch_state != CH_STATE_STOP_IN_PROC) {
GPII_ERR(gpii, GPI_DBG_COMMON,
"Chan Not in Proper state:%d\n", gpii_chan->ch_state);
complete_all(&gpii->cmd_completion);
}
/* notifying clients if in error state */
if (gpii_chan->ch_state == CH_STATE_ERROR)
@ -2874,9 +2877,9 @@ static struct dma_chan *gpi_of_dma_xlate(struct of_phandle_args *args,
gpii_chan->priority = args->args[4] & GPI_EV_PRIORITY_BMSK;
GPI_LOG(gpi_dev,
"client req. gpii:%u chid:%u #_tre:%u priority:%u protocol:%u\n",
"client req gpii:%u chid:%u #_tre:%u prio:%u proto:%u SE:%d\n",
gpii, chid, gpii_chan->req_tres, gpii_chan->priority,
gpii_chan->protocol);
gpii_chan->protocol, gpii_chan->seid);
return dma_get_slave_channel(&gpii_chan->vc.chan);
}
@ -2941,7 +2944,6 @@ static int gpi_probe(struct platform_device *pdev)
{
struct gpi_dev *gpi_dev;
int ret, i;
const char *mode = NULL;
u32 gpi_ee_offset;
gpi_dev = devm_kzalloc(&pdev->dev, sizeof(*gpi_dev), GFP_KERNEL);
@ -3002,9 +3004,6 @@ static int gpi_probe(struct platform_device *pdev)
return ret;
}
ret = of_property_read_string(gpi_dev->dev->of_node,
"qcom,iommu-dma", &mode);
ret = dma_set_mask(gpi_dev->dev, DMA_BIT_MASK(64));
if (ret) {
GPI_ERR(gpi_dev,