From: mathieu.poirier@linaro.org (Mathieu Poirier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/5] coresight: etm3x: Set synchronisation frequencty to TRM default
Date: Fri, 30 Jun 2017 11:41:59 -0600 [thread overview]
Message-ID: <1498844519-8845-6-git-send-email-mathieu.poirier@linaro.org> (raw)
In-Reply-To: <1498844519-8845-1-git-send-email-mathieu.poirier@linaro.org>
Register ETMSYNCFR holds the number of by that need to be generated before
periodic synchronisation packets are inserted in the trace stream. By
zeroing out the config structure, the current code effectively disable
periodic synchronization.
This patch simply initialise the recommended value for this register as
specified in the technical reference manual.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
drivers/hwtracing/coresight/coresight-etm3x.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c
index a51b6b64ecdf..b67122acea7a 100644
--- a/drivers/hwtracing/coresight/coresight-etm3x.c
+++ b/drivers/hwtracing/coresight/coresight-etm3x.c
@@ -243,6 +243,8 @@ void etm_set_default(struct etm_config *config)
}
config->ctxid_mask = 0x0;
+ /* Setting default to 1024 as per TRM recommendation */
+ config->sync_freq = 0x400;
}
void etm_config_trace_mode(struct etm_config *config)
--
2.7.4
prev parent reply other threads:[~2017-06-30 17:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 17:41 [PATCH 0/5] coresight: Miscellaneous fixes Mathieu Poirier
2017-06-30 17:41 ` [PATCH 1/5] coresight: Correct buffer lost increment Mathieu Poirier
2017-06-30 17:41 ` [PATCH 2/5] coresight: etb10: Remove useless conversion to LE Mathieu Poirier
2017-06-30 17:41 ` [PATCH 3/5] coresight: Add barrier packet for synchronisation Mathieu Poirier
2017-06-30 17:41 ` [PATCH 4/5] coresight: etb10: Move etb_disable_hw() outside of lock Mathieu Poirier
2017-06-30 17:41 ` Mathieu Poirier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1498844519-8845-6-git-send-email-mathieu.poirier@linaro.org \
--to=mathieu.poirier@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).