diff options
author | Alex Porosanu <alexandru.porosanu@freescale.com> | 2015-02-11 12:24:44 (GMT) |
---|---|---|
committer | Honghua Yin <Hong-Hua.Yin@freescale.com> | 2015-03-31 03:04:35 (GMT) |
commit | 8d34fd4dd6a0ddb0aca31aa3d2ffb873576d9b68 (patch) | |
tree | ad711f0a11e402d805b9d79188918c72026a98a5 /drivers/crypto | |
parent | 1bbe4d7969a8fa2eee0db459032402e6713f2a6e (diff) | |
download | linux-fsl-qoriq-8d34fd4dd6a0ddb0aca31aa3d2ffb873576d9b68.tar.xz |
crypto: caam - add useful prints for debugging
This patch adds some output from the CAAM QI driver
so the engineer can gain some insight on some of
the internals of the driver. Normally, this
information should reside in debug fs, but for now
it's guarded by the DEBUG define.
Change-Id: Ic6b7e570bc8fcedd758fb4163e15c94544e47130
Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/31369
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Honghua Yin <Hong-Hua.Yin@freescale.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/caam/qi.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/crypto/caam/qi.c b/drivers/crypto/caam/qi.c index 0a01674..52d3283 100644 --- a/drivers/crypto/caam/qi.c +++ b/drivers/crypto/caam/qi.c @@ -185,7 +185,10 @@ static struct qman_fq *create_caam_req_fq(struct device *qidev, dev_err(qidev, "Failed to init session req FQ\n"); goto init_req_fq_fail; } - +#ifdef DEBUG + dev_info(qidev, "Allocated request FQ %u for CPU %u\n", + req_fq->fqid, smp_processor_id()); +#endif return req_fq; init_req_fq_fail: @@ -642,7 +645,10 @@ static int alloc_rsp_fq_cpu(struct device *qidev, unsigned int cpu, u32 pool) dev_err(qidev, "Rsp FQ init failed\n"); return -ENODEV; } - +#ifdef DEBUG + dev_info(qidev, "Allocated response FQ %u for CPU %u", + fq->fqid, cpu); +#endif return 0; } @@ -691,6 +697,9 @@ static int alloc_cgrs(struct device *qidev) ret, qipriv.rsp_cgr.cgrid); return ret; } +#ifdef DEBUG + dev_info(qidev, "CAAM to CPU threshold set to %llu\n", val); +#endif return 0; } @@ -713,6 +722,7 @@ static int alloc_rsp_fqs(struct device *qidev) dev_err(qidev, "CAAM pool alloc failed: %d\n", ret); return ret; } + dev_info(qidev, "Allocated pool %d\n", pool); /*Now create response FQs*/ for_each_cpu(i, cpus) { |