Skip to content
Snippets Groups Projects
Commit 8ada8f11 authored by James Morse's avatar James Morse
Browse files

FIXME arm_mpam: Make mpam_msmon_read() safe for irq-masked callers


The resctrl_pmu driver calls resctrl_arch_rmid_read() from interrupt
context. This eventually ends up in mpam_msmon_read() which cross-calls
to access remote cache-slices, and sleeps if the monitor returned
not-ready.

To support resctrl_pmu, remove these behaviours if irqs are masked.

Instead of cross-calling, return an error. This means the resctrl_pmu
can't be supported on platforms with cache-slices that aren't accessible
from every CPU. Instead of sleeping when the counter is busy, return
-EBUSY. The resctrl_pmu driver will not update the counter in this case.

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
parent 4a48cc3f
No related branches found
No related tags found
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