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

Commit 39fcfb91 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by Michael Ellerman
Browse files

selftests/powerpc: Run EBB tests only on POWER8



EBB (Event Based Branches) are currently only available on POWER8, so we
should skip them on other CPUs.

I've found that at least one test loops forever on 970MP (cycles_with_freeze_test).

Signed-off-by: default avatarDenis Kirjanov <kda@linux-powerpc.org>
[mpe: Minor change log editing, add skip to cpu_event_vs_ebb_test]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 20d09927
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -63,6 +63,8 @@ int back_to_back_ebbs(void)
{
	struct event event;

	SKIP_IF(!ebb_is_supported());

	event_init_named(&event, 0x1001e, "cycles");
	event_leader_ebb_init(&event);

+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ int close_clears_pmcc(void)
{
	struct event event;

	SKIP_IF(!ebb_is_supported());

	event_init_named(&event, 0x1001e, "cycles");
	event_leader_ebb_init(&event);

+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ int cpu_event_pinned_vs_ebb(void)
	int cpu, rc;
	pid_t pid;

	SKIP_IF(!ebb_is_supported());

	cpu = pick_online_cpu();
	FAIL_IF(cpu < 0);
	FAIL_IF(bind_to_cpu(cpu));
+2 −0
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@ int cpu_event_vs_ebb(void)
	int cpu, rc;
	pid_t pid;

	SKIP_IF(!ebb_is_supported());

	cpu = pick_online_cpu();
	FAIL_IF(cpu < 0);
	FAIL_IF(bind_to_cpu(cpu));
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@ int cycles(void)
{
	struct event event;

	SKIP_IF(!ebb_is_supported());

	event_init_named(&event, 0x1001e, "cycles");
	event_leader_ebb_init(&event);

Loading