aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorLuden <luden@ghostmail.com>2016-02-15 00:21:20 +0100
committerZiyan <jaraidaniel@gmail.com>2016-05-01 23:35:57 +0200
commitfd517955e280af6dea607a898fb1b7c71dca0846 (patch)
tree68caa0f38b544f09850cb0afeb1f8b43acc1e675 /drivers/rpmsg
parente0f3b2e128dd26d96e43317565f4a7ee90138e92 (diff)
downloadkernel_samsung_tuna-fd517955e280af6dea607a898fb1b7c71dca0846.zip
kernel_samsung_tuna-fd517955e280af6dea607a898fb1b7c71dca0846.tar.gz
kernel_samsung_tuna-fd517955e280af6dea607a898fb1b7c71dca0846.tar.bz2
Added IOBUFS max size monitoring.
Added debugging code to monitor the max size requested for IOBUFS buffers.
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/rpmsg_omx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/rpmsg/rpmsg_omx.c b/drivers/rpmsg/rpmsg_omx.c
index 6470824..8ed5bba 100644
--- a/drivers/rpmsg/rpmsg_omx.c
+++ b/drivers/rpmsg/rpmsg_omx.c
@@ -115,6 +115,9 @@ static LIST_HEAD(rpmsg_omx_services_list);
#define ION_1D_START 0xBA300000
#define ION_1D_END 0xBFD00000
#define ION_1D_VA 0x88000000
+
+static u32 max_iobufs_addr = ION_1D_VA;
+
static int _rpmsg_pa_to_da(u32 pa, u32 *da)
{
int ret = 0;
@@ -205,6 +208,15 @@ static int _rpmsg_omx_map_buf(struct rpmsg_omx_instance *omx, char *packet)
}
}
+#ifdef CONFIG_CMA_DEBUG
+ if (da > TILER_END && da < ION_1D_VA + ION_1D_END - ION_1D_START) {
+ if (da > max_iobufs_addr) {
+ max_iobufs_addr = da;
+ pr_err("new max IOBUFS addr is 0x%x, max size is %dMB\n", max_iobufs_addr, (max_iobufs_addr - ION_1D_VA) / SZ_1M);
+ }
+ }
+#endif
+
return ret;
}