Skip to content

Commit

Permalink
coresight-etm: Fix initial trace ID value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mathieu Poirier authored and Greg Kroah-Hartman committed Jan 12, 2015
1 parent 3ff7ca0 commit b2c0928
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/coresight/coresight-etm3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b2c0928

Please sign in to comment.