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

Commit 51cf6ee4 authored by Neil Leeder's avatar Neil Leeder Committed by Gerrit - the friendly Code Review server
Browse files

Perf: arm64: Use device tree property for CTI PMU workaround



The CTI PMU workaround is enabled by default. Use a device tree property
to decide if the workaround needs to be applied or not.

Change-Id: Ie63fbbe24a58b8abd3f998f7858400189a74a32b
Signed-off-by: default avatarNeil Leeder <nleeder@codeaurora.org>
parent 84735e13
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ Optional:

- qcom,irq-is-percpu: 	Define this if the IRQ of the PMU is a PPI. This will tell perf to use
			the per_cpu IRQ API for request and free.
- qcom,apply-cti-pmu-wa: Indicates if the driver needs to apply the CTI PMU Workaround. Relevant for 8994V1.

Example:

+7 −0
Original line number Diff line number Diff line
@@ -45,4 +45,11 @@
				  "sbe-irq";
		qcom,apply-cti-pmu-wa;
	};

	cpu-pmu {
		compatible = "arm,armv8-pmuv3";
		qcom,irq-is-percpu;
		interrupts = <1 14 0xff00>;
		qcom,apply-cti-pmu-wa;
	};
};
+6 −0
Original line number Diff line number Diff line
@@ -48,6 +48,12 @@
				  "cci-irq",
				  "sbe-irq";
	};

	cpu-pmu {
		compatible = "arm,armv8-pmuv3";
		qcom,irq-is-percpu;
		interrupts = <1 7 0xff00>;
	};
};

/* GPU overrides */
+0 −6
Original line number Diff line number Diff line
@@ -2936,12 +2936,6 @@
					  <45 512 100000 200000>; /* 800 Mbps */
	};

	cpu-pmu {
		compatible = "arm,armv8-pmuv3";
		qcom,irq-is-percpu;
		interrupts = <1 14 0xff00>;
	};

	audio_heap {
		compatible = "qcom,msm-shared-memory";
		qcom,proc-id = <1>;
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ static char *descriptions =
	" 5 Perf: arm64: add perf user-mode permissions\n"
	" 6 Perf: arm64: Add debugfs node to clear PMU\n"
	" 7 Perf: arm64: Update PMU force reset\n"
	" 8 Perf: arm64: Use device tree property for CTI PMU workaround\n"
;

static ssize_t desc_read(struct file *fp, char __user *buf,
Loading