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

Commit d92e6d55 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Correctly enable A3XX performance counters"

parents 6acd463b 218aade7
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -3242,7 +3242,6 @@ static int a3xx_perfcounter_enable(struct adreno_device *adreno_dev,
	unsigned int group, unsigned int counter, unsigned int countable)
{
	struct kgsl_device *device = &adreno_dev->dev;
	unsigned int val = 0;
	struct adreno_perfcount_register *reg;

	/* Special cases */
@@ -3267,15 +3266,6 @@ static int a3xx_perfcounter_enable(struct adreno_device *adreno_dev,
	/* Select the desired perfcounter */
	kgsl_regwrite(device, reg->select, countable);

	if (reg->load_bit < 32) {
		kgsl_regread(device, A3XX_RBBM_PERFCTR_LOAD_CMD0, &val);
		val |= (1 << reg->load_bit);
		kgsl_regwrite(device, A3XX_RBBM_PERFCTR_LOAD_CMD0, val);
	} else {
		kgsl_regread(device, A3XX_RBBM_PERFCTR_LOAD_CMD1, &val);
		val  |= (1 << (reg->load_bit - 32));
		kgsl_regwrite(device, A3XX_RBBM_PERFCTR_LOAD_CMD1, val);
	}
	return 0;
}