Skip to content
Commit 6956ca00 authored by James Morse's avatar James Morse
Browse files

arm_mpam: Add helpers to configure and read a monitor



If a component is made up of multiple devices, we need to configure
and read-from the monitor on each device. Extend what started as the
reset helper to configure and read from the monitors.

Reading from the monitor involves summing the value across multiple
devices. We could do better if we knew which devices had external
capture events, and how they were wired up. We don't, so we read the
counter value on each device.

Because this is currently only used for Cache Storage Usage we
aren't worried about overflow.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent f62856c4
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