diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2015-01-09 16:57:17 -0700 |
---|---|---|
committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2015-03-02 11:33:29 -0700 |
commit | 6e2abfb389a41953d64ae81fc17f3d1260eaec72 (patch) | |
tree | 54874b9eeb56bbba0a3059be3f2ac9a6b9e89940 /drivers/coresight | |
parent | 5d51a40f730179445e9a5bd7e38c4ded852be2eb (diff) |
coresight-etm: Fix initial trace ID value
The coresight TRM specify that a component's trace ID should
be other than 0.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b2c09284bbfe36f9ba0e3e8bec8bb3c4789b3911)
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'drivers/coresight')
-rw-r--r-- | drivers/coresight/coresight-etm3x.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/coresight/coresight-etm3x.c b/drivers/coresight/coresight-etm3x.c index 369cac00afaa..73c36696f1b6 100644 --- a/drivers/coresight/coresight-etm3x.c +++ b/drivers/coresight/coresight-etm3x.c @@ -1749,7 +1749,11 @@ static void etm_init_arch_data(void *info) static void etm_init_default_data(struct etm_drvdata *drvdata) { - static int etm3x_traceid; + /* + * A trace ID of value 0 is invalid, so let's start at some + * random value that fits in 7 bits and will be just as good. + */ + static int etm3x_traceid = 0x10; u32 flags = (1 << 0 | /* instruction execute*/ 3 << 3 | /* ARM instruction */ |