Skip to content
Commit cc08ef11 authored by Ricardo Koller's avatar Ricardo Koller Committed by Andrew Jones
Browse files

arm: pmu: Fix test_overflow_interrupt()



test_overflow_interrupt() (from arm/pmu.c) has a test that passes
because the previous test leaves the state needed to pass: the
overflow status register with the expected bits. The test (that should
fail) does not enable the PMU after mem_access_loop(), which clears
the PMCR, and before writing into the software increment register.

Fix by clearing the previous test state (pmovsclr_el0) and by enabling
the PMU before the sw_incr test.

Fixes: 4f5ef94f ("arm: pmu: Test overflow interrupts")
Reported-by: default avatarReiji Watanabe <reijiw@google.com>
Signed-off-by: default avatarRicardo Koller <ricarkol@google.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarAndrew Jones <andrew.jones@linux.dev>
parent a7509187
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment