PMSIDR_EL1, Sampling Profiling ID Register

The PMSIDR_EL1 characteristics are:

Purpose

Describes the Statistical Profiling implementation to software.

Configuration

This register is present only when FEAT_SPE is implemented. Otherwise, direct accesses to PMSIDR_EL1 are UNDEFINED.

Attributes

PMSIDR_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0SME
ALTCLKFPFEFTCRRPBTFormatCountSizeMaxSizeIntervalFDSFnEERndLDSArchInstFLFTFE

Bits [63:33]

Reserved, RES0.

SME, bit [32]

SPE for SME. Adds support for the Scalable Matrix Extensions to Statistical Profiling.

The value of this field is an IMPLEMENTATION DEFINED choice of:

SMEMeaning
0b0

FEAT_SPE_SME is not implemented.

0b1

FEAT_SPE_SME is implemented.

FEAT_SPE_SME implements the functionality identified by the value 1.

Access to this field is RO.

ALTCLK, bits [31:28]

Alternate clock domain.

The value of this field is an IMPLEMENTATION DEFINED choice of:

ALTCLKMeaning
0b0000

Alternate clock domain not implemented, or CPU clock domain.

0b0001

SMCU clock domain.

0b1111

IMPLEMENTATION DEFINED clock domain.

All other values are reserved.

FEAT_SPE_ALTCLK implements the functionality identified by a nonzero value.

For example, if the PE includes an SME implementation that executes SME instructions in an external SMCU clock domain, PMSIDR_EL1.ALTCLK is 0b0001.

Access to this field is RO.

FPF, bit [27]

Floating-point flag.

The value of this field is an IMPLEMENTATION DEFINED choice of:

FPFMeaning
0b0

Operation Type packets for scalar and Advanced SIMD operations do not contain floating-point or Advanced SIMD information.

0b1

Operation Type packets for scalar and Advanced SIMD operations contain floating-point or Advanced SIMD information.

FEAT_SPE_FPF implements the functionality identified by the value 1.

Access to this field is RO.

EFT, bit [26]

Extended filtering by operation type.

The value of this field is an IMPLEMENTATION DEFINED choice of:

EFTMeaning
0b0

PMSFCR_EL1.{SIMDm, FPm, STm, Bm, LDm, SIMD, FP} are RES0.

0b1

PMSFCR_EL1.{SIMDm, FPm, STm, Bm, LDm, SIMD, FP} are implemented.

FEAT_SPE_EFT implements the functionality identified by the value 1.

Access to this field is RO.

CRR, bit [25]

Call Return branch records.

The value of this field is an IMPLEMENTATION DEFINED choice of:

CRRMeaning
0b0

Operation Type packets for branches do not contain Call Return information.

0b1

Operation Type packets for branches contain Call Return information.

FEAT_SPE_CRR implements the functionality identified by the value 1.

Access to this field is RO.

PBT, bit [24]

Previous branch target Address packet.

The value of this field is an IMPLEMENTATION DEFINED choice of:

PBTMeaning
0b0

Previous branch target Address packet not supported.

0b1

Previous branch target Address packet support implemented.

FEAT_SPEv1p2 implements the OPTIONAL functionality identified by the value 1.

Access to this field is RO.

Format, bits [23:20]

Defines the format of the sample records.

FormatMeaning
0b0000

Format 0.

All other values are reserved.

Access to this field is RO.

CountSize, bits [19:16]

Defines the size of the counters.

The value of this field is an IMPLEMENTATION DEFINED choice of:

CountSizeMeaning
0b0010

12-bit saturating counters.

0b0011

16-bit saturating counters.

All other values are reserved.

Access to this field is RO.

MaxSize, bits [15:12]

Defines the largest size for a single record, rounded up to a power-of-two. If this is the same as the minimum alignment (PMBIDR_EL1.Align), then each record is exactly this size.

The value of this field is an IMPLEMENTATION DEFINED choice of:

MaxSizeMeaning
0b0100

16 bytes.

0b0101

32 bytes.

0b0110

64 bytes.

0b0111

128 bytes.

0b1000

256 bytes.

0b1001

512 bytes.

0b1010

1KB.

0b1011

2KB.

All other values are reserved.

The values 0b0100 and 0b0101 are not permitted for an implementation.

Access to this field is RO.

Interval, bits [11:8]

Recommended minimum sampling interval. This provides guidance from the implementer to the smallest minimum sampling interval, N.

The value of this field is an IMPLEMENTATION DEFINED choice of:

IntervalMeaning
0b0000

256.

0b0010

512.

0b0011

768.

0b0100

1,024.

0b0101

1,536.

0b0110

2,048.

0b0111

3,072.

0b1000

4,096.

All other values are reserved.

Access to this field is RO.

FDS, bit [7]

Filter by data source.

The value of this field is an IMPLEMENTATION DEFINED choice of:

FDSMeaning
0b0

PMSDSFR_EL1 is not implemented and PMSFCR_EL1.FDS is RES0.

0b1

PMSDSFR_EL1 and PMSFCR_EL1.FDS are implemented.

FEAT_SPE_FDS implements the functionality identified by the value 1.

From Armv8.9, if FEAT_SPE is implemented, the value 0 is not permitted.

Access to this field is RO.

FnE, bit [6]

Filtering by events, inverted.

The value of this field is an IMPLEMENTATION DEFINED choice of:

FnEMeaning
0b0

PMSNEVFR_EL1 is not implemented and PMSFCR_EL1.FnE is RES0.

0b1

PMSNEVFR_EL1 and PMSFCR_EL1.FnE are implemented.

FEAT_SPEv1p2 implements the functionality identified by the value 1.

From Armv8.7, if FEAT_SPE is implemented, the value 0 is not permitted.

Access to this field is RO.

ERnd, bit [5]

Defines how the random number generator is used in determining the interval between samples, when enabled by PMSIRR_EL1.RND.

The value of this field is an IMPLEMENTATION DEFINED choice of:

ERndMeaning
0b0

The random number is added at the start of the interval, and the sample is taken and a new interval started when the combined interval expires.

0b1

The random number is added and the new interval started after the interval programmed in PMSIRR_EL1.INTERVAL expires, and the sample is taken when the random interval expires.

Access to this field is RO.

LDS, bit [4]

Data source indicator for sampled load instructions.

The value of this field is an IMPLEMENTATION DEFINED choice of:

LDSMeaning
0b0

Loaded data source not implemented.

0b1

Loaded data source implemented.

Access to this field is RO.

ArchInst, bit [3]

Architectural instruction profiling.

The value of this field is an IMPLEMENTATION DEFINED choice of:

ArchInstMeaning
0b0

Micro-op sampling implemented.

0b1

Architecture instruction sampling implemented.

Access to this field is RO.

FL, bit [2]

Filtering by latency.

Reads as 0b1.

Access to this field is RO.

FT, bit [1]

Filtering by operation type.

Reads as 0b1.

Access to this field is RO.

FE, bit [0]

Filtering by events.

Reads as 0b1.

Access to this field is RO.

Accessing PMSIDR_EL1

Accesses to this register use the following encodings in the System register encoding space:

MRS <Xt>, PMSIDR_EL1

op0op1CRnCRmop2
0b110b0000b10010b10010b111

if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if HaveEL(EL3) && EL3SDDUndefPriority() && (MDCR_EL3.NSPB[0] == '0' || MDCR_EL3.NSPB[1] != SCR_EL3.NS || (IsFeatureImplemented(FEAT_RME) && MDCR_EL3.NSPBE != SCR_EL3.NSE)) then UNDEFINED; elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HDFGRTR_EL2.PMSIDR_EL1 == '1' then AArch64.SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && MDCR_EL2.TPMS == '1' then AArch64.SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && (MDCR_EL3.NSPB[0] == '0' || MDCR_EL3.NSPB[1] != SCR_EL3.NS || (IsFeatureImplemented(FEAT_RME) && MDCR_EL3.NSPBE != SCR_EL3.NSE)) then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else X[t, 64] = PMSIDR_EL1; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && (MDCR_EL3.NSPB[0] == '0' || MDCR_EL3.NSPB[1] != SCR_EL3.NS || (IsFeatureImplemented(FEAT_RME) && MDCR_EL3.NSPBE != SCR_EL3.NSE)) then UNDEFINED; elsif HaveEL(EL3) && (MDCR_EL3.NSPB[0] == '0' || MDCR_EL3.NSPB[1] != SCR_EL3.NS || (IsFeatureImplemented(FEAT_RME) && MDCR_EL3.NSPBE != SCR_EL3.NSE)) then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else X[t, 64] = PMSIDR_EL1; elsif PSTATE.EL == EL3 then X[t, 64] = PMSIDR_EL1;


26/03/2024 09:49; 67c0ae5282a7629ba0ea0ba7267b43cd4f7939f6

Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.