[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1476288038-24909-9-git-send-email-loic.pallardy@st.com>
Date: Wed, 12 Oct 2016 18:00:26 +0200
From: Loic Pallardy <loic.pallardy@...com>
To: <bjorn.andersson@...aro.org>, <ohad@...ery.com>,
<lee.jones@...aro.org>
CC: <loic.pallardy@...com>, <linux-remoteproc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <kernel@...inux.com>
Subject: [PATCH v3 08/20] remoteproc: core: Complete VDEV support in rproc_dump_resource_table function
Add dump of cfg field of vdev struct.
Signed-off-by: Loic Pallardy <loic.pallardy@...com>
---
drivers/remoteproc/remoteproc_core.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index ce62546..ae8e934 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -808,6 +808,8 @@ static void rproc_dump_resource_table(struct rproc *rproc,
int offset = table->offset[i];
struct fw_rsc_hdr *hdr = (void *)table + offset;
void *rsc = (void *)hdr + sizeof(*hdr);
+ unsigned char *cfg;
+ int len;
switch (hdr->type) {
case RSC_CARVEOUT:
@@ -861,6 +863,17 @@ static void rproc_dump_resource_table(struct rproc *rproc,
dev_dbg(dev, " Physical Address 0x%x\n\n",
v->vring[j].pa);
}
+
+ dev_dbg(dev, " Config table\n");
+ cfg = (unsigned char *)(&v->vring[v->num_of_vrings]);
+ len = 0;
+ do {
+ j = min(16, (int)(v->config_len - len));
+ dev_dbg(dev, " Config[%2d-%2d] = %*phC\n",
+ len, len + j - 1, j, cfg + len);
+ len += j;
+ } while (len < v->config_len);
+
break;
default:
dev_dbg(dev, "Invalid resource type found: %d [hdr: %p]\n",
--
1.9.1
Powered by blists - more mailing lists