Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1cbe03f authored by Shashank Mittal's avatar Shashank Mittal
Browse files

coresight-etm4x: use trace ids starting 0x1 for ETMs devices



ETM parser expects ETM trace ids starting from 0x1.

This change fixes the start of ETM trace id to make it compatible with
ETM parser.

Change-Id: Icc5c6de317468b845448dae22a447e8b9a82ea54
Signed-off-by: default avatarShashank Mittal <mittals@codeaurora.org>
parent e8442021
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2543,11 +2543,9 @@ static void etm4_init_default_data(struct etmv4_drvdata *drvdata)
	drvdata->vmid_mask1 = 0x0;

	/*
	 * A trace ID value of 0 is invalid, so let's start at some
	 * random value that fits in 7 bits.  ETMv3.x has 0x10 so let's
	 * start at 0x20.
	 * Start trace id from 0x1.
	 */
	drvdata->trcid = 0x20 + drvdata->cpu;
	drvdata->trcid = 0x1 + drvdata->cpu;
}

static int etm4_late_init(struct etmv4_drvdata *drvdata)