Intel Agilex® 7 F-Series and I-Series Known Issue List

ID 683584
Date 5/03/2023
Public
Document Table of Contents

3.16. 855827: PMU Counter Values May Be Inaccurate When Monitoring Certain Events

Description

The Cortex-A53 MPCore* processor implements a Performance Monitor Unit (PMU). The PMU allows programmers to gather statistics on the operation of the processor during runtime. Because of this erratum, software may read inaccurate PMU counter values when monitoring certain events. Specifically:

  • The INST_RETIRED event counts architecturally executed instructions. Because of this erratum, it may count more instructions than were architecturally executed.
  • The ST_RETIRED event does not count store-exclusive instructions that fail. Because of this erratum, it does count these instructions.
  • The UNALIGNED_LDST_RETIRED event counts loads and stores that fail their alignment check. Because of this erratum, it may also count LDRD and STRD instructions that pass their alignment check.
  • The EXC_TAKEN and EXC_RETURN events are filtered precisely according to the exception level/security state they were executed in. Because of this erratum, they are filtered according to the destination exception level/security state.
This erratum is present when:
  • A performance counter is enabled and configured to count an INST_RETIRED , ST_RETIRED, UNALIGNED_LDST_RETIRED, EXC_TAKEN, or EXC_RETURN event.
  • The following conditions occur during the event capture:
    • INST_RETIRED: An immediate branch instruction is executed.
    • ST_RETIRED: A store-exclusive instruction is executed and fails.
    • UNALIGNED_LDST_RETIRED: A LDRD or STRD instruction is executed that is word aligned but not double word aligned.
    • EXC_TAKEN: An exception is taken.
    • EXC_RETURN: An exception return is executed.
  • The INST_RETIRED, ST_RETIRED, and UNALIGNED_LDST_RETIRED filter settings for the performance counter are configured so that an event must be counted if it occurs.
  • The EXC_TAKEN and EXC_RETURN filter settings are configured to one of the following descriptions:
    • Events must be counted in the original exception level and security state, but must not be counted in the exception level and security state following the exception or the exception return
    • Events must not be counted in the original exception level and security state, but must be counted in the exception level and security state following the exception or the exception return.

Impact

If the erratum conditions are met, the performance counter may erroneously increment or fail to increment. Specifically:
  • INST_RETIRED: The counter may erroneously increment by two when only one instruction executes.
  • ST_RETIRED: The counter may erroneously increment for the failed store-exclusive instruction.
  • UNALIGNED_LDST_RETIRED: The counter erroneously increments for the LDRD or STRD instruction.
  • EXC_TAKEN: The counter may erroneously increment or erroneously fail to increment.
  • EXC_RETURN: The counter may erroneously increment or erroneously fail to increment.

Workaround

For the EXC_TAKEN and EXC_RETURN events, you can workaround the erratum by changing the filter settings for the performance counter to monitor the destination exception level and security state instead of the exception level and security state in which the exception or exception return are executed.

There are no workarounds for the other PMU events.

Category

Category 3