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

Commit e8cd7ebe authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu
Browse files

soc: qcom: cdsprm: remove error log in rpmsg callback



The log message in rpmsg callback signifying failure in queuing
a CDSP request can be repetitive and clobber the dmesg log. Mark
it as debug to monitor it on need basis and to avoid a RPMh
communication failure due to excessive logging. Also increase
the queue depth for preventing any loss of message from CDSP.

Change-Id: Iba7cea255df5ef94d0fee9d3c98f0e53c0cbbd78
Acked-by: default avatarSreekanth Gande <sgande@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent 6150c9ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -60,7 +60,7 @@
#define SYSMON_CDSP_QOS_FLAG_DISABLE	2
#define SYSMON_CDSP_QOS_FLAG_DISABLE	2
#define QOS_LATENCY_DISABLE_VALUE	-1
#define QOS_LATENCY_DISABLE_VALUE	-1
#define SYS_CLK_TICKS_PER_MS		19200
#define SYS_CLK_TICKS_PER_MS		19200
#define CDSPRM_MSG_QUEUE_DEPTH		10
#define CDSPRM_MSG_QUEUE_DEPTH		50
#define CDSP_THERMAL_MAX_STATE		10
#define CDSP_THERMAL_MAX_STATE		10
#define HVX_THERMAL_MAX_STATE		10
#define HVX_THERMAL_MAX_STATE		10


@@ -827,7 +827,7 @@ static int cdsprm_rpmsg_callback(struct rpmsg_device *dev, void *data,
				gcdsprm.msg_queue_idx = 0;
				gcdsprm.msg_queue_idx = 0;
		} else {
		} else {
			spin_unlock_irqrestore(&gcdsprm.list_lock, flags);
			spin_unlock_irqrestore(&gcdsprm.list_lock, flags);
			dev_err(&dev->dev,
			dev_dbg(&dev->dev,
				"Unable to queue cdsp request, no memory\n");
				"Unable to queue cdsp request, no memory\n");
			return -ENOMEM;
			return -ENOMEM;
		}
		}