Add PMU counters

Description

Arm BSA (Base System Architecture) specification says:

B_PE_09: PEs must implement the FEAT_PMUv3p1 extension, and the base system must expose a minimum of four programmable PMU counters to the operating system.

B_PE_21: The base system must expose a minimum of two programmable PMU counters to a hypervisor.

It is then repeated in SBSA (Server Base System Architecture) specification in level 3 requirements:

Each PE must implement a minimum of six programmable PMU counters.

Deliverables

  • SBSA reference platform would have 6 PMU counters

Acceptance Criteria

  • SBSA ACS will pass PE 012 test

Checklist

Activity

Marcin Juszkiewicz 
May 20, 2022 at 1:56 PM

Done

Marcin Juszkiewicz 
May 20, 2022 at 1:54 PM
(edited)

Also forgotten. Thanks for sorting it out Peter!

Peter Maydell 
May 20, 2022 at 10:01 AM

Apologies for having forgotten the PMU patch that was reverted in April 2021 – I just cleaned it up and fixed the problem which required the revert. It’s now in upstream git as commit 24526bb92f69 and should be in QEMU 7.1.

Marcin Juszkiewicz 
October 15, 2021 at 8:17 PM

Still lack PMU counters. Will look how situation ended in some moment next week.

There will be OpenStack PTG and Arm DevSummit too so it may slip.

Marcin Juszkiewicz 
July 7, 2021 at 9:50 AM

Peter Maydell wrote other implementation in March and then reverted it in April due to conflicts in KVM mode.

Done

Details

Assignee

Reporter

Original estimate

Time tracking

No time logged8w remaining

Fix versions

Priority

Checklist

Sentry

Created October 29, 2020 at 4:03 PM
Updated May 20, 2022 at 1:56 PM
Resolved May 20, 2022 at 1:56 PM