# =======================================================================================
#
#      Filename:  perfmon_zen5_events.txt
#
#      Description:  Event list for AMD Zen (Gen5)
#
#      Version:   <VERSION>
#      Released:  <DATE>
#
#      Author:   Thomas Gruber (tr), thomas.roehl@googlemail.com
#      Project:  likwid
#
#      Copyright (C) 2017 RRZE, University Erlangen-Nuremberg
#
#      This program is free software: you can redistribute it and/or modify it under
#      the terms of the GNU General Public License as published by the Free Software
#      Foundation, either version 3 of the License, or (at your option) any later
#      version.
#
#      This program is distributed in the hope that it will be useful, but WITHOUT ANY
#      WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
#      PARTICULAR PURPOSE.  See the GNU General Public License for more details.
#
#      You should have received a copy of the GNU General Public License along with
#      this program.  If not, see <http://www.gnu.org/licenses/>.
#
# =======================================================================================

# Fixed Events
# Not working well. With accessdaemon the counts are off. With perf_event, the
# event always returns zero
#EVENT_INST_RETIRED_ANY                      0x06 FIXC0
#UMASK_INST_RETIRED_ANY                      0x00

EVENT_ACTUAL_CPU_CLOCK                       0x01 FIXC1
UMASK_ACTUAL_CPU_CLOCK                       0x00

EVENT_APERF                                  0x01 FIXC1
UMASK_APERF                                  0x00

EVENT_MAX_CPU_CLOCK                          0x02 FIXC2
UMASK_MAX_CPU_CLOCK                          0x00

EVENT_MPERF                                  0x02 FIXC2
UMASK_MPERF                                  0x00

# Core-local Events

EVENT_MERGE                                 0xFFF PMC
UMASK_MERGE                                 0x00

## FP events

EVENT_RETIRED_X87_FP_OPS                    0x02 PMC
UMASK_RETIRED_X87_FP_OPS_ADD_SUB            0x01
UMASK_RETIRED_X87_FP_OPS_MULT               0x02
UMASK_RETIRED_X87_FP_OPS_DIV_SQRT           0x04

### Must be used with MERGE event
EVENT_RETIRED_SSE_AVX_FLOPS                      0x03 PMC
UMASK_RETIRED_SSE_AVX_FLOPS_ADD_SUB_ANY          0x01
UMASK_RETIRED_SSE_AVX_FLOPS_MULT_ANY             0x02
UMASK_RETIRED_SSE_AVX_FLOPS_DIV_SQRT_ANY         0x04
UMASK_RETIRED_SSE_AVX_FLOPS_FMA_ANY              0x08
UMASK_RETIRED_SSE_AVX_FLOPS_ADD_SUB_BF16         0x21
UMASK_RETIRED_SSE_AVX_FLOPS_MULT_BF16            0x22
UMASK_RETIRED_SSE_AVX_FLOPS_DIV_SQRT_BF16        0x24
UMASK_RETIRED_SSE_AVX_FLOPS_FMA_BF16             0x28
UMASK_RETIRED_SSE_AVX_FLOPS_ADD_SUB_SP_SCALAR    0x41
UMASK_RETIRED_SSE_AVX_FLOPS_MULT_SP_SCALAR       0x42
UMASK_RETIRED_SSE_AVX_FLOPS_DIV_SQRT_SP_SCALAR   0x44
UMASK_RETIRED_SSE_AVX_FLOPS_FMA_SP_SCALAR        0x48
UMASK_RETIRED_SSE_AVX_FLOPS_ADD_SUB_SP_PACKED    0x61
UMASK_RETIRED_SSE_AVX_FLOPS_MULT_SP_PACKED       0x62
UMASK_RETIRED_SSE_AVX_FLOPS_DIV_SQRT_SP_PACKED   0x64
UMASK_RETIRED_SSE_AVX_FLOPS_FMA_SP_PACKED        0x68
UMASK_RETIRED_SSE_AVX_FLOPS_ADD_SUB_DP_SCALAR    0x81
UMASK_RETIRED_SSE_AVX_FLOPS_MULT_DP_SCALAR       0x82
UMASK_RETIRED_SSE_AVX_FLOPS_DIV_SQRT_DP_SCALAR   0x84
UMASK_RETIRED_SSE_AVX_FLOPS_FMA_DP_SCALAR        0x88
UMASK_RETIRED_SSE_AVX_FLOPS_ADD_SUB_DP_PACKED    0xA1
UMASK_RETIRED_SSE_AVX_FLOPS_MULT_DP_PACKED       0xA2
UMASK_RETIRED_SSE_AVX_FLOPS_DIV_SQRT_DP_PACKED   0xA4
UMASK_RETIRED_SSE_AVX_FLOPS_FMA_DP_PACKED        0xA8
### Events added by Thomas Gruber
UMASK_RETIRED_SSE_AVX_FLOPS_ALL_ANY              0x0F
UMASK_RETIRED_SSE_AVX_FLOPS_ALL_BF16             0x2F
UMASK_RETIRED_SSE_AVX_FLOPS_ALL_SP_SCALAR        0x4F
UMASK_RETIRED_SSE_AVX_FLOPS_ALL_SP_PACKED        0x6F
UMASK_RETIRED_SSE_AVX_FLOPS_ALL_DP_SCALAR        0x8F
UMASK_RETIRED_SSE_AVX_FLOPS_ALL_DP_PACKED        0xAF

EVENT_RETIRED_FP_OPS_BY_WIDTH               0x08 PMC
UMASK_RETIRED_FP_OPS_BY_WIDTH_X87           0x01
UMASK_RETIRED_FP_OPS_BY_WIDTH_MMX           0x02
UMASK_RETIRED_FP_OPS_BY_WIDTH_SCALAR        0x04
UMASK_RETIRED_FP_OPS_BY_WIDTH_PACK128       0x08
UMASK_RETIRED_FP_OPS_BY_WIDTH_PACK256       0x10
UMASK_RETIRED_FP_OPS_BY_WIDTH_PACK512       0x20
UMASK_RETIRED_FP_OPS_BY_WIDTH_ANY           0x3F

EVENT_RETIRED_FP_OPS_BY_TYPE                0x0A PMC
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_ADD     0x01
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_SUB     0x02
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_MUL     0x03
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_MAC     0x04
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_FMA     0x04
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_DIV     0x05
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_SQRT    0x06
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_CMP     0x07
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_CVT     0x08
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_BLEND   0x09
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_MOVE    0x0A
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_SHUFFLE 0x0B
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_BF16    0x0C
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_LOGICAL 0x0D
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_OTHER   0x0E
UMASK_RETIRED_FP_OPS_BY_TYPE_SCALAR_ALL     0x0F
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_ADD     0x10
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_SUB     0x20
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_MUL     0x30
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_MAC     0x40
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_FMA     0x40
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_DIV     0x50
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_SQRT    0x60
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_CMP     0x70
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_CVT     0x80
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_BLEND   0x90
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_MOVE    0xA0
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_SHUFFLE 0xB0
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_BF16    0xC0
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_LOGICAL 0xD0
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_OTHER   0xE0
UMASK_RETIRED_FP_OPS_BY_TYPE_VECTOR_ALL     0xF0
UMASK_RETIRED_FP_OPS_BY_TYPE_ALL_ALL        0xFF

EVENT_RETIRED_INT_OPS                       0x0B PMC
UMASK_RETIRED_INT_OPS_MMX_ADD               0x01
UMASK_RETIRED_INT_OPS_MMX_SUB               0x02
UMASK_RETIRED_INT_OPS_MMX_MUL               0x03
UMASK_RETIRED_INT_OPS_MMX_MAC               0x04
UMASK_RETIRED_INT_OPS_MMX_FMA               0x04
UMASK_RETIRED_INT_OPS_MMX_AES               0x05
UMASK_RETIRED_INT_OPS_MMX_SHA               0x06
UMASK_RETIRED_INT_OPS_MMX_CMP               0x07
UMASK_RETIRED_INT_OPS_MMX_CLM               0x07
UMASK_RETIRED_INT_OPS_MMX_SHIFT             0x09
UMASK_RETIRED_INT_OPS_MMX_MOV               0x0A
UMASK_RETIRED_INT_OPS_MMX_SHUFFLE           0x0B
UMASK_RETIRED_INT_OPS_MMX_VNNI              0x0C
UMASK_RETIRED_INT_OPS_MMX_LOGICAL           0x0D
UMASK_RETIRED_INT_OPS_MMX_OTHER             0x0E
UMASK_RETIRED_INT_OPS_MMX_ALL               0x0F
UMASK_RETIRED_INT_OPS_SSE_AVX_ADD           0x10
UMASK_RETIRED_INT_OPS_SSE_AVX_SUB           0x20
UMASK_RETIRED_INT_OPS_SSE_AVX_MUL           0x30
UMASK_RETIRED_INT_OPS_SSE_AVX_MAC           0x40
UMASK_RETIRED_INT_OPS_SSE_AVX_FMA           0x40
UMASK_RETIRED_INT_OPS_SSE_AVX_AES           0x50
UMASK_RETIRED_INT_OPS_SSE_AVX_SHA           0x60
UMASK_RETIRED_INT_OPS_SSE_AVX_CMP           0x70
UMASK_RETIRED_INT_OPS_SSE_AVX_CLM           0x80
UMASK_RETIRED_INT_OPS_SSE_AVX_SHIFT         0x90
UMASK_RETIRED_INT_OPS_SSE_AVX_MOV           0xA0
UMASK_RETIRED_INT_OPS_SSE_AVX_SHUFFLE       0xB0
UMASK_RETIRED_INT_OPS_SSE_AVX_VNNI          0xC0
UMASK_RETIRED_INT_OPS_SSE_AVX_LOGICAL       0xD0
UMASK_RETIRED_INT_OPS_SSE_AVX_OTHER         0xE0
UMASK_RETIRED_INT_OPS_SSE_AVX_ALL           0xF0
UMASK_RETIRED_INT_OPS_ALL_ALL               0xFF

EVENT_RETIRED_PACKED_FP_OPS                   0x0C PMC
UMASK_RETIRED_PACKED_FP_OPS_FP128_ADD         0x01
UMASK_RETIRED_PACKED_FP_OPS_FP128_SUB         0x02
UMASK_RETIRED_PACKED_FP_OPS_FP128_MUL         0x03
UMASK_RETIRED_PACKED_FP_OPS_FP128_MAC         0x04
UMASK_RETIRED_PACKED_FP_OPS_FP128_FMA         0x04
UMASK_RETIRED_PACKED_FP_OPS_FP128_DIV         0x05
UMASK_RETIRED_PACKED_FP_OPS_FP128_SQRT        0x06
UMASK_RETIRED_PACKED_FP_OPS_FP128_CMP         0x07
UMASK_RETIRED_PACKED_FP_OPS_FP128_CVT         0x08
UMASK_RETIRED_PACKED_FP_OPS_FP128_BLEND       0x09
UMASK_RETIRED_PACKED_FP_OPS_FP128_MOVE        0xA0
UMASK_RETIRED_PACKED_FP_OPS_FP128_SHUFFLE     0x0B
UMASK_RETIRED_PACKED_FP_OPS_FP128_BF16        0x0C
UMASK_RETIRED_PACKED_FP_OPS_FP128_LOGICAL     0x0D
UMASK_RETIRED_PACKED_FP_OPS_FP128_OTHER       0x0E
UMASK_RETIRED_PACKED_FP_OPS_FP128_ALL         0x0F
UMASK_RETIRED_PACKED_FP_OPS_FP256_ADD         0x10
UMASK_RETIRED_PACKED_FP_OPS_FP256_SUB         0x20
UMASK_RETIRED_PACKED_FP_OPS_FP256_MUL         0x30
UMASK_RETIRED_PACKED_FP_OPS_FP256_MAC         0x40
UMASK_RETIRED_PACKED_FP_OPS_FP256_FMA         0x40
UMASK_RETIRED_PACKED_FP_OPS_FP256_DIV         0x50
UMASK_RETIRED_PACKED_FP_OPS_FP256_SQRT        0x60
UMASK_RETIRED_PACKED_FP_OPS_FP256_CMP         0x70
UMASK_RETIRED_PACKED_FP_OPS_FP256_CVT         0x80
UMASK_RETIRED_PACKED_FP_OPS_FP256_BLEND       0x90
UMASK_RETIRED_PACKED_FP_OPS_FP256_MOVE        0xA0
UMASK_RETIRED_PACKED_FP_OPS_FP256_SHUFFLE     0xB0
UMASK_RETIRED_PACKED_FP_OPS_FP256_BF16        0xC0
UMASK_RETIRED_PACKED_FP_OPS_FP256_LOGICAL     0xD0
UMASK_RETIRED_PACKED_FP_OPS_FP256_OTHER       0xE0
UMASK_RETIRED_PACKED_FP_OPS_FP256_ALL         0xF0
UMASK_RETIRED_PACKED_FP_OPS_ALL_ALL           0xFF

EVENT_RETIRED_PACKED_INT_OPS                    0x0D PMC
UMASK_RETIRED_PACKED_INT_OPS_INT128_ADD         0x01
UMASK_RETIRED_PACKED_INT_OPS_INT128_SUB         0x02
UMASK_RETIRED_PACKED_INT_OPS_INT128_MUL         0x03
UMASK_RETIRED_PACKED_INT_OPS_INT128_MAC         0x04
UMASK_RETIRED_PACKED_INT_OPS_INT128_FMA         0x04
UMASK_RETIRED_PACKED_INT_OPS_INT128_AES         0x05
UMASK_RETIRED_PACKED_INT_OPS_INT128_SHA         0x06
UMASK_RETIRED_PACKED_INT_OPS_INT128_CMP         0x07
UMASK_RETIRED_PACKED_INT_OPS_INT128_CLM         0x08
UMASK_RETIRED_PACKED_INT_OPS_INT128_SHIFT       0x09
UMASK_RETIRED_PACKED_INT_OPS_INT128_MOV         0x0A
UMASK_RETIRED_PACKED_INT_OPS_INT128_SHUFFLE     0x0B
UMASK_RETIRED_PACKED_INT_OPS_INT128_VNNI        0x0C
UMASK_RETIRED_PACKED_INT_OPS_INT128_LOGICAL     0x0D
UMASK_RETIRED_PACKED_INT_OPS_INT128_OTHER       0x0E
UMASK_RETIRED_PACKED_INT_OPS_INT128_ALL         0x0F
UMASK_RETIRED_PACKED_INT_OPS_INT256_ADD         0x10
UMASK_RETIRED_PACKED_INT_OPS_INT256_SUB         0x20
UMASK_RETIRED_PACKED_INT_OPS_INT256_MUL         0x30
UMASK_RETIRED_PACKED_INT_OPS_INT256_MAC         0x40
UMASK_RETIRED_PACKED_INT_OPS_INT256_FMA         0x40
UMASK_RETIRED_PACKED_INT_OPS_INT256_AES         0x50
UMASK_RETIRED_PACKED_INT_OPS_INT256_SHA         0x60
UMASK_RETIRED_PACKED_INT_OPS_INT256_CMP         0x70
UMASK_RETIRED_PACKED_INT_OPS_INT256_CLM         0x80
UMASK_RETIRED_PACKED_INT_OPS_INT256_SHIFT       0x90
UMASK_RETIRED_PACKED_INT_OPS_INT256_MOV         0xA0
UMASK_RETIRED_PACKED_INT_OPS_INT256_SHUFFLE     0xB0
UMASK_RETIRED_PACKED_INT_OPS_INT256_VNNI        0xC0
UMASK_RETIRED_PACKED_INT_OPS_INT256_LOGICAL     0xD0
UMASK_RETIRED_PACKED_INT_OPS_INT256_OTHER       0xE0
UMASK_RETIRED_PACKED_INT_OPS_INT256_ALL         0xF0
UMASK_RETIRED_PACKED_INT_OPS_ALL_ALL            0xFF

EVENT_FP_DISPATCH_FAULTS                    0x0E PMC
UMASK_FP_DISPATCH_FAULTS_X87_FILL           0x01
UMASK_FP_DISPATCH_FAULTS_XMM_FILL           0x02
UMASK_FP_DISPATCH_FAULTS_YMM_FILL           0x04
UMASK_FP_DISPATCH_FAULTS_YMM_SPILL          0x08


## Load/Store (LS) events

EVENT_BAD_STATUS_STLI                       0x24 PMC
UMASK_BAD_STATUS_STLI_OTHER                 0x01

EVENT_RETIRED_LOCK_INSTR                    0x25 PMC
UMASK_RETIRED_LOCK_INSTR_BUS_LOCK           0x01
UMASK_RETIRED_LOCK_INSTR_ANY_LOCK           0x1F

EVENT_RETIRED_CLFLUSH                       0x26 PMC
UMASK_RETIRED_CLFLUSH                       0x00

EVENT_RETIRED_CPUID                         0x27 PMC
UMASK_RETIRED_CPUID                         0x00

EVENT_LS_DISPATCH                           0x29 PMC
UMASK_LS_DISPATCH_LOADS                     0x01
UMASK_LS_DISPATCH_STORES                    0x02
UMASK_LS_DISPATCH_LOAD_OP_STORES            0x04
### Added by T. Gruber
UMASK_LS_DISPATCH_ALL                       0x07

EVENT_SMI_RECEIVED                          0x2B PMC
UMASK_SMI_RECEIVED                          0x00

EVENT_INTERRUPTS_TAKEN                      0x2C PMC
UMASK_INTERRUPTS_TAKEN                      0x01

EVENT_ST_TO_LD_FWD                          0x35 PMC
UMASK_ST_TO_LD_FWD                          0x00

EVENT_ST_GLOBAL_VISIBLE_CANCELS                    0x37 PMC
UMASK_ST_GLOBAL_VISIBLE_CANCELS_OLDER_ST_VISIBLE   0x01

# Each increment represents an up to 32-byte access
# Added by Thomas Gruber. Not documented by AMD for Zen5
# but Zen4.
EVENT_DATA_CACHE_ACCESSES                   0x40 PMC
UMASK_DATA_CACHE_ACCESSES                   0x00

EVENT_LS_MAB_ALLOC                          0x41 PMC
UMASK_LS_MAB_ALLOC_LD_ST                    0x07
UMASK_LS_MAB_ALLOC_HWPF                     0x08
UMASK_LS_MAB_ALLOC_ALL                      0x0F

EVENT_DEMAND_DATA_CACHE_FILLS                               0x43 PMC
UMASK_DEMAND_DATA_CACHE_FILLS_LOCAL_L2                      0x01
UMASK_DEMAND_DATA_CACHE_FILLS_LOCAL_CCX                     0x02
UMASK_DEMAND_DATA_CACHE_FILLS_INT_CACHE                     0x02 # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_NEAR_CACHE_NEAR_FAR           0x04
UMASK_DEMAND_DATA_CACHE_FILLS_EXT_CACHE_LOCAL               0x04 # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_DRAM_IO_NEAR                  0x08
UMASK_DEMAND_DATA_CACHE_FILLS_LOCAL_DRAM                    0x08 # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_LOCAL_ALL                     0x0F # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_EXT_CACHE_REMOTE              0x10 # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_FAR_CACHE_NEAR_FAR            0x10
UMASK_DEMAND_DATA_CACHE_FILLS_REMOTE_DRAM                   0x40 # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_DRAM_IO_FAR                   0x40
UMASK_DEMAND_DATA_CACHE_FILLS_ALTERNATE_MEMORIES_NEAR_FAR   0x80
UMASK_DEMAND_DATA_CACHE_FILLS_REMOTE_ALL                    0xD0 # Added by T. Gruber
UMASK_DEMAND_DATA_CACHE_FILLS_ALL                           0xDF # Added by T. Gruber

EVENT_ANY_DATA_CACHE_FILLS                              0x44 PMC
UMASK_ANY_DATA_CACHE_FILLS_LOCAL_L2                     0x01
UMASK_ANY_DATA_CACHE_FILLS_LOCAL_CCX                    0x02
UMASK_ANY_DATA_CACHE_FILLS_INT_CACHE                    0x02 # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_NEAR_CACHE_NEAR_FAR          0x04
UMASK_ANY_DATA_CACHE_FILLS_EXT_CACHE_LOCAL              0x04 # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_DRAM_IO_NEAR                 0x08
UMASK_ANY_DATA_CACHE_FILLS_LOCAL_DRAM                   0x08 # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_LOCAL_ALL                    0x0F # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_EXT_CACHE_REMOTE             0x10 # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_FAR_CACHE_NEAR_FAR           0x10
UMASK_ANY_DATA_CACHE_FILLS_REMOTE_DRAM                  0x40 # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_DRAM_IO_FAR                  0x40
UMASK_ANY_DATA_CACHE_FILLS_ALTERNATE_MEMORIES_NEAR_FAR  0x80
UMASK_ANY_DATA_CACHE_FILLS_REMOTE_ALL                   0xD0 # Added by T. Gruber
UMASK_ANY_DATA_CACHE_FILLS_ALL                          0xDF # Added by T. Gruber

EVENT_L1_DTLB_MISS                                      0x45 PMC
UMASK_L1_DTLB_MISS_4K_L2_HIT                            0x01
UMASK_L1_DTLB_MISS_COALESCED_PAGE_HIT                   0x02
UMASK_L1_DTLB_MISS_2M_L2_HIT                            0x04
UMASK_L1_DTLB_MISS_1G_L2_HIT                            0x08
UMASK_L1_DTLB_MISS_ANY_L2_HIT                           0x0F # Added by T. Gruber
UMASK_L1_DTLB_MISS_4K_L2_MISS                           0x10
UMASK_L1_DTLB_MISS_COALESCED_PAGE_MISS                  0x20
UMASK_L1_DTLB_MISS_2M_L2_MISS                           0x40
UMASK_L1_DTLB_MISS_1G_L2_MISS                           0x80
UMASK_L1_DTLB_MISS_ANY_L2_MISS                          0xF0 # Added by T. Gruber

EVENT_MISALIGNED_LOADS                      0x47 PMC
UMASK_MISALIGNED_LOADS_MA_64B               0x01
UMASK_MISALIGNED_LOADS_MA_4K                0x02
UMASK_MISALIGNED_LOADS_MA_ANY               0x03 # Added by T. Gruber

EVENT_PREF_INSTR_DISPATCHED                 0x4B PMC
UMASK_PREF_INSTR_DISPATCHED_PREFETCH        0x01
UMASK_PREF_INSTR_DISPATCHED_PREFETCHW       0x02
UMASK_PREF_INSTR_DISPATCHED_PREFETCHNTA     0x04
UMASK_PREF_INSTR_DISPATCHED_ANY             0x07 # Added by T. Gruber

EVENT_WCB_CLOSE                             0x50 PMC
UMASK_WCB_CLOSE_FULL_LINE_64BIT             0x01

EVENT_INEFFECTIVE_SW_PREF                   0x52 PMC
UMASK_INEFFECTIVE_SW_PREF_DC_HIT            0x01
UMASK_INEFFECTIVE_SW_PREF_MAB_HIT           0x02

EVENT_SWPREF_DATA_CACHE_FILLS                   0x59 PMC
UMASK_SWPREF_DATA_CACHE_FILLS_LOCAL_L2          0x01
UMASK_SWPREF_DATA_CACHE_FILLS_LOCAL_CCX         0x02
UMASK_SWPREF_DATA_CACHE_FILLS_INT_CACHE         0x02 # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_NEAR_CACHE_NEAR_FAR   0x04
UMASK_SWPREF_DATA_CACHE_FILLS_EXT_CACHE_LOCAL   0x04 # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_DRAM_IO_NEAR      0x08
UMASK_SWPREF_DATA_CACHE_FILLS_LOCAL_DRAM        0x08 # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_LOCAL_ALL         0x0F # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_EXT_CACHE_REMOTE  0x10 # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_FAR_CACHE_NEAR_FAR  0x10
UMASK_SWPREF_DATA_CACHE_FILLS_REMOTE_DRAM       0x40 # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_DRAM_IO_FAR       0x40
UMASK_SWPREF_DATA_CACHE_FILLS_ALTERNATE_MEMORIES_NEAR_FAR   0x80
UMASK_SWPREF_DATA_CACHE_FILLS_REMOTE_ALL        0xD0 # Added by T. Gruber
UMASK_SWPREF_DATA_CACHE_FILLS_ALL               0xDF # Added by T. Gruber

EVENT_HWPREF_DATA_CACHE_FILLS                   0x5A PMC
UMASK_HWPREF_DATA_CACHE_FILLS_LOCAL_L2          0x01
UMASK_HWPREF_DATA_CACHE_FILLS_LOCAL_CCX         0x02
UMASK_HWPREF_DATA_CACHE_FILLS_INT_CACHE         0x02 # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_NEAR_CACHE_NEAR_FAR   0x04
UMASK_HWPREF_DATA_CACHE_FILLS_EXT_CACHE_LOCAL   0x04 # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_DRAM_IO_NEAR      0x08
UMASK_HWPREF_DATA_CACHE_FILLS_LOCAL_DRAM        0x08 # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_LOCAL_ALL         0x0F # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_EXT_CACHE_REMOTE  0x10 # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_FAR_CACHE_NEAR_FAR  0x10
UMASK_HWPREF_DATA_CACHE_FILLS_REMOTE_DRAM       0x40 # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_DRAM_IO_FAR       0x40
UMASK_HWPREF_DATA_CACHE_FILLS_ALTERNATE_MEMORIES_NEAR_FAR   0x80
UMASK_HWPREF_DATA_CACHE_FILLS_REMOTE_ALL        0xD0 # Added by T. Gruber
UMASK_HWPREF_DATA_CACHE_FILLS_ALL               0xDF # Added by T. Gruber

EVENT_ALLOCATED_DC_MISSES                       0x5F PMC
UMASK_ALLOCATED_DC_MISSES                       0x00

EVENT_CPU_CLOCKS_UNHALTED                       0x76 PMC
UMASK_CPU_CLOCKS_UNHALTED                       0x00

EVENT_TLB_FLUSHES                            0x78 PMC
UMASK_TLB_FLUSHES_ALL                        0xFF

EVENT_P0_FREQ_CYCLES_UNHALTED               0x120 PMC
UMASK_P0_FREQ_CYCLES_UNHALTED               0x01

### IC and BP events

# The number of 64-byte instruction cache lines fulfilled from the L2 cache.
EVENT_ICACHE_L2_REFILLS                     0x82     PMC
UMASK_ICACHE_L2_REFILLS                     0x00

# The number of 64-byte instruction cache line fulfilled from system memory or another cache.
EVENT_ICACHE_SYSTEM_REFILLS                 0x83     PMC
UMASK_ICACHE_SYSTEM_REFILLS                 0x00

EVENT_L1_ITLB_MISS_L2_ITLB_HIT              0x84     PMC
UMASK_L1_ITLB_MISS_L2_ITLB_HIT              0x00

EVENT_L1_ITLB_MISS_L2_ITLB_MISS                 0x85     PMC
UMASK_L1_ITLB_MISS_L2_ITLB_MISS_IF_4K           0x01
UMASK_L1_ITLB_MISS_L2_ITLB_MISS_IF_2M           0x02
UMASK_L1_ITLB_MISS_L2_ITLB_MISS_IF_1G           0x04
UMASK_L1_ITLB_MISS_L2_ITLB_MISS_COALESCED_4K    0x08
UMASK_L1_ITLB_MISS_L2_ITLB_MISS_ANY             0x0F # Added by T. Gruber

EVENT_BP_PIPE_CORRECT_OR_CANCEL                 0x8B PMC
UMASK_BP_PIPE_CORRECT_OR_CANCEL                 0x00

EVENT_VARIABLE_TARGET_PREDICTIONS               0x8E PMC
UMASK_VARIABLE_TARGET_PREDICTIONS               0x00

EVENT_DECODER_BP_REDIRECTS                      0x91 PMC
UMASK_DECODER_BP_REDIRECTS                      0x00

EVENT_L1_TLB_FETCH_HIT                  0x94 PMC
UMASK_L1_TLB_FETCH_HIT_IF_4K            0x01
UMASK_L1_TLB_FETCH_HIT_IF_2M            0x04
UMASK_L1_TLB_FETCH_HIT_IF_1G            0x08
UMASK_L1_TLB_FETCH_HIT_IF_ANY           0x0D # Added by T. Gruber

EVENT_BP_REDIRECTS                      0x9F PMC
UMASK_BP_REDIRECTS_RESYNC               0x01
UMASK_BP_REDIRECTS_EXEC_REDIRECT        0x02

EVENT_FETCH_IBS                         0x188 PMC
UMASK_FETCH_IBS_FETCH_TAGGED            0x02
UMASK_FETCH_IBS_SAMPLE_DISCARDED        0x04
UMASK_FETCH_IBS_SAMPLE_FILTERED         0x08
UMASK_FETCH_IBS_SAMPLE_VAL              0x10

EVENT_IC_TAG                                0x18E PMC
UMASK_IC_TAG_HIT                            0x07
UMASK_IC_TAG_MISS                           0x18
UMASK_IC_TAG_ANY                            0x1F

EVENT_OC_CACHE                              0x28F PMC
UMASK_OC_CACHE_HIT                          0x03
UMASK_OC_CACHE_MISS                         0x04
UMASK_OC_CACHE_ANY                          0x07

### DE Events

EVENT_UOPS_QUEUE_EMTPY                  0xA9 PMC
UMASK_UOPS_QUEUE_EMTPY                  0x00

EVENT_UOPS_DISP                           0xAA PMC
UMASK_UOPS_DISP_FROM_DEC                  0x01
UMASK_UOPS_DISP_FROM_OPCACHE              0x02
# Derived from Pipeline Utilization Analysis
# Bad Speculation
# (Event[4307AA] – Event[4300C1]) / Total Dispatch Slots
UMASK_UOPS_DISP_FROM_ANY                  0x07

EVENT_TYPE_UOPS_FROM_DECODER                0xAB PMC
UMASK_TYPE_UOPS_FROM_DECODER_FP             0x04
UMASK_TYPE_UOPS_FROM_DECODER_INT            0x08

EVENT_DISPATCH_RESOURCE_STALL_CYCLES_1                          0xAE PMC
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_1_INT_REGFILE              0x01
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_1_LOAD_QUEUE               0x02
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_1_STORE_QUEUE              0x04
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_1_TAKEN_BRANCH             0x10
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_1_FP_SCHEDULER             0x40

EVENT_DISPATCH_RESOURCE_STALL_CYCLES_2                          0xAF PMC
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_2_AL_TOKEN_STALL           0x01
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_2_AG_TOKEN_STALL           0x02
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_2_EX_FLUSH_RECOVERY        0x04
UMASK_DISPATCH_RESOURCE_STALL_CYCLES_2_RETIRE_TOKEN_STALL       0x20

EVENT_DISPATCH_STALLS_PER_SLOT                  0x1A0 PMC
UMASK_DISPATCH_STALLS_PER_SLOT_FRONTEND         0x01
UMASK_DISPATCH_STALLS_PER_SLOT_BACKEND          0x1E
UMASK_DISPATCH_STALLS_PER_SLOT_OTHER_SMT_THREAD 0x60

EVENT_ADDITIONAL_DISPATCH_RESOURCE_STALLS       0x1A2 PMC
UMASK_ADDITIONAL_DISPATCH_RESOURCE_STALLS       0x30

### EX (SC) Events

EVENT_RETIRED_INSTRUCTIONS                    0xC0     PMC
UMASK_RETIRED_INSTRUCTIONS                    0x00

EVENT_RETIRED_UOPS                            0xC1     PMC
UMASK_RETIRED_UOPS                            0x00

EVENT_RETIRED_BRANCH_INSTR                    0xC2     PMC
UMASK_RETIRED_BRANCH_INSTR                    0x00

EVENT_RETIRED_MISP_BRANCH_INSTR               0xC3     PMC
UMASK_RETIRED_MISP_BRANCH_INSTR               0x00

EVENT_RETIRED_TAKEN_BRANCH_INSTR              0xC4     PMC
UMASK_RETIRED_TAKEN_BRANCH_INSTR              0x00

EVENT_RETIRED_TAKEN_MISP_BRANCH_INSTR         0xC5     PMC
UMASK_RETIRED_TAKEN_MISP_BRANCH_INSTR         0x00

EVENT_RETIRED_FAR_CONTROL_TRANSFERS           0xC6     PMC
UMASK_RETIRED_FAR_CONTROL_TRANSFERS           0x00

EVENT_RETIRED_NEAR_RETURNS                    0xC8     PMC
UMASK_RETIRED_NEAR_RETURNS                    0x00

EVENT_RETIRED_NEAR_RETURNS_MISP               0xC9     PMC
UMASK_RETIRED_NEAR_RETURNS_MISP               0x00

EVENT_RETIRED_INDIRECT_BRANCHES_MISP          0xCA     PMC
UMASK_RETIRED_INDIRECT_BRANCHES_MISP          0x00

EVENT_RETIRED_MMX_FP_INSTR                    0xCB     PMC
UMASK_RETIRED_MMX_FP_INSTR_X87                0x01
UMASK_RETIRED_MMX_FP_INSTR_MMX                0x02
UMASK_RETIRED_MMX_FP_INSTR_SSE                0x04
UMASK_RETIRED_MMX_FP_INSTR_ALL                0x07 # Added by T. Gruber

EVENT_RETIRED_INDIRECT_BRANCH_INSTR           0xCC     PMC
UMASK_RETIRED_INDIRECT_BRANCH_INSTR           0x00

EVENT_RETIRED_COND_BRANCH_INSTR               0xD1 PMC
UMASK_RETIRED_COND_BRANCH_INSTR               0x00

EVENT_DIV_BUSY_CYCLES                         0xD3 PMC
UMASK_DIV_BUSY_CYCLES                         0x00

EVENT_DIV_OP_COUNT                            0xD4 PMC
UMASK_DIV_OP_COUNT                            0x00

EVENT_CYCLES_NO_RETIRE                                0xD6 PMC
UMASK_CYCLES_NO_RETIRE_LOAD_ALU_QUEUE_EMPTY           0x01
UMASK_CYCLES_NO_RETIRE_LOAD_ALU_NOT_COMPLETE          0x02
UMASK_CYCLES_NO_RETIRE_LOAD_ALU_OTHER                 0x08
UMASK_CYCLES_NO_RETIRE_LOAD_ALU_THREAD_NOT_SELECTED   0x10
UMASK_CYCLES_NO_RETIRE_LOAD_MISS_NOT_COMPLETE         0xA1

EVENT_RETIRED_MICROCODED_INSTR                  0x1C1 PMC
UMASK_RETIRED_MICROCODED_INSTR                  0x00

EVENT_RETIRED_MICROCODE_OPS                     0x1C2 PMC
UMASK_RETIRED_MICROCODE_OPS                     0x00

EVENT_RETIRED_BRANCHES_MISP_DIRECTION_MISMATCH  0x1C7     PMC
UMASK_RETIRED_BRANCHES_MISP_DIRECTION_MISMATCH  0x00

EVENT_RETIRED_UNCOND_INDIRECT_BRANCHES_MISP     0x1C8 PMC
UMASK_RETIRED_UNCOND_INDIRECT_BRANCHES_MISP     0x00

EVENT_RETIRED_UNCOND_BRANCHE_INSTR     0x1C9 PMC
UMASK_RETIRED_UNCOND_BRANCHE_INSTR     0x00

EVENT_TAGGED_IBS_OPS                          0x1CF PMC
UMASK_TAGGED_IBS_OPS_COUNT                    0x01
UMASK_TAGGED_IBS_OPS_COUNT_RETIRED            0x02
UMASK_TAGGED_IBS_OPS_COUNT_ROLLOVER           0x04

EVENT_RETIRED_FUSED_INSTR                       0x1D0 PMC
UMASK_RETIRED_FUSED_INSTR                       0x00

### L2 Cache Events

EVENT_REQUESTS_TO_L2_GRP1                     0x60 PMC
UMASK_REQUESTS_TO_L2_GRP1_GRP2                0x01
UMASK_REQUESTS_TO_L2_GRP1_L2_HW_PREF          0x02
UMASK_REQUESTS_TO_L2_GRP1_PREF_L2             0x04
UMASK_REQUESTS_TO_L2_GRP1_CACHEABLE_IC_READ   0x10
UMASK_REQUESTS_TO_L2_GRP1_LS_RD_BLOCK_C_S     0x20
UMASK_REQUESTS_TO_L2_GRP1_RD_BLOCK_X          0x40
UMASK_REQUESTS_TO_L2_GRP1_RD_BLOCK_L          0x80
# Table 28: Guidance for Common Performance Statistics with Complex Event Selects
# L2 Cache Access from L1 Data Cache Miss (including Prefetch) 
# Event[0x43E060]
UMASK_REQUESTS_TO_L2_GPR1_L1_MISS             0xE0
# Table 28: Guidance for Common Performance Statistics with Complex Event Selects
# All L2 Cache Accesses
# Event[0x43F160]
UMASK_REQUESTS_TO_L2_GRP1_RD_ANY              0xF1

EVENT_REQUESTS_TO_L2_GRP2                     0x61 PMC
UMASK_REQUESTS_TO_L2_GRP2_LS_READ_NC          0x20
UMASK_REQUESTS_TO_L2_GRP2_LS_READ             0x40

EVENT_L2_WCB_REQUEST                          0x64 PMC
UMASK_L2_WCB_REQUEST_CLOSE                    0x20

EVENT_CORE_TO_L2_CACHE_REQUESTS                      0x64 PMC
UMASK_CORE_TO_L2_CACHE_REQUESTS_IC_FILL_MISS         0x01
UMASK_CORE_TO_L2_CACHE_REQUESTS_IC_FILL_HIT_S        0x02
UMASK_CORE_TO_L2_CACHE_REQUESTS_IC_FILL_HIT_X        0x04
UMASK_CORE_TO_L2_CACHE_REQUESTS_LS_READ_BLK_C        0x08
UMASK_CORE_TO_L2_CACHE_REQUESTS_LS_READ_BLK_X        0x10
UMASK_CORE_TO_L2_CACHE_REQUESTS_LS_READ_BLK_L_HIT_S  0x20
UMASK_CORE_TO_L2_CACHE_REQUESTS_LS_READ_BLK_L_HIT_X  0x40
UMASK_CORE_TO_L2_CACHE_REQUESTS_LS_READ_BLK_CS       0x80
UMASK_CORE_TO_L2_CACHE_REQUESTS_MISSES               0x09 # Added by T. Gruber
UMASK_CORE_TO_L2_CACHE_REQUESTS_HITS                 0xF6 # Added by T. Gruber

EVENT_L2_PF_HIT_IN_L2                       0x70 PMC
#UMASK_L2_PF_HIT_IN_L2_L2_STREAM             0x01
#UMASK_L2_PF_HIT_IN_L2_L2_NEXT_LINE          0x02
#UMASK_L2_PF_HIT_IN_L2_L2_UP_DOWN            0x04
#UMASK_L2_PF_HIT_IN_L2_L2_BURST              0x08
#UMASK_L2_PF_HIT_IN_L2_L2_STRIDE             0x10
#UMASK_L2_PF_HIT_IN_L2_L1_STREAM             0x20
#UMASK_L2_PF_HIT_IN_L2_L1_STRIDE             0x40
#UMASK_L2_PF_HIT_IN_L2_L1_REGION             0x80
UMASK_L2_PF_HIT_IN_L2_L2_HWPF               0x1F
UMASK_L2_PF_HIT_IN_L2_L1_DC_HWPF            0xE0
UMASK_L2_PF_HIT_IN_L2_ALL                   0xFF

EVENT_L2_PF_HIT_IN_L3                       0x71 PMC
#UMASK_L2_PF_HIT_IN_L3_L2_STREAM             0x01
#UMASK_L2_PF_HIT_IN_L3_L2_NEXT_LINE          0x02
#UMASK_L2_PF_HIT_IN_L3_L2_UP_DOWN            0x04
#UMASK_L2_PF_HIT_IN_L3_L2_BURST              0x08
#UMASK_L2_PF_HIT_IN_L3_L2_STRIDE             0x10
#UMASK_L2_PF_HIT_IN_L3_L1_STREAM             0x20
#UMASK_L2_PF_HIT_IN_L3_L1_STRIDE             0x40
#UMASK_L2_PF_HIT_IN_L3_L1_REGION             0x80
UMASK_L2_PF_HIT_IN_L3_L1_DC_HWPF            0x0E
UMASK_L2_PF_HIT_IN_L3_L2_HWPF               0x1F
UMASK_L2_PF_HIT_IN_L3_ALL                   0xFF

EVENT_L2_PF_MISS_IN_L3                      0x72 PMC
#UMASK_L2_PF_MISS_IN_L3_L2_STREAM            0x01
#UMASK_L2_PF_MISS_IN_L3_L2_NEXT_LINE         0x02
#UMASK_L2_PF_MISS_IN_L3_L2_UP_DOWN           0x04
#UMASK_L2_PF_MISS_IN_L3_L2_BURST             0x08
#UMASK_L2_PF_MISS_IN_L3_L2_STRIDE            0x10
#UMASK_L2_PF_MISS_IN_L3_L1_STREAM            0x20
#UMASK_L2_PF_MISS_IN_L3_L1_STRIDE            0x40
#UMASK_L2_PF_MISS_IN_L3_L1_REGION            0x80
UMASK_L2_PF_MISS_IN_L3_L1_DC_HWPF           0xE0
UMASK_L2_PF_MISS_IN_L3_L2_HWPF              0x1F
UMASK_L2_PF_MISS_IN_L3_ALL                  0xFF

EVENT_L2_FILL_BY                            0x165 PMC
UMASK_L2_FILL_BY_LOCAL_CCX                  0x02
UMASK_L2_FILL_BY_INT_CACHE                  0x02 # Added by T. Gruber
UMASK_L2_FILL_BY_NEAR_FAR_CACHE_NEAR        0x04
UMASK_L2_FILL_BY_EXT_CACHE_LOCAL            0x04 # Added by T. Gruber
UMASK_L2_FILL_BY_DRAM_IO_NEAR               0x08
UMASK_L2_FILL_BY_LOCAL_DRAM                 0x08 # Added by T. Gruber
UMASK_L2_FILL_BY_LOCAL_ALL                  0x0F # Added by T. Gruber
UMASK_L2_FILL_BY_NEAR_FAR_CACHE_FAR         0x10
UMASK_L2_FILL_BY_EXT_CACHE_REMOTE           0x10 # Added by T. Gruber
UMASK_L2_FILL_BY_DRAM_IO_FAR                0x40
UMASK_L2_FILL_BY_REMOTE_DRAM                0x40 # Added by T. Gruber
UMASK_L2_FILL_BY_ALTERNATE_MEMORIES_NEAR_FAR   0x80
UMASK_L2_FILL_BY_REMOTE_ALL                 0xD0 # Added by T. Gruber
UMASK_L2_FILL_BY_ALL                        0xFE # Added by T. Gruber


## L3 Cache Events

EVENT_L3_LOOKUP_STATE                       0x04 CPMC
UMASK_L3_LOOKUP_STATE_MISS                  0x01
UMASK_L3_LOOKUP_STATE_HIT                   0xFE
UMASK_L3_LOOKUP_STATE_ALL_TYPES             0xFF

EVENT_L3_XI_SAMPLED_LATENCY                             0xAC CPMC
UMASK_L3_XI_SAMPLED_LATENCY_DRAM_NEAR                   0x01
UMASK_L3_XI_SAMPLED_LATENCY_DRAM_FAR                    0x02
UMASK_L3_XI_SAMPLED_LATENCY_NEAR_CACHE_FAR_CACHE_NEAR   0x04
UMASK_L3_XI_SAMPLED_LATENCY_NEAR_CACHE_FAR_CACHE_FAR    0x08
UMASK_L3_XI_SAMPLED_LATENCY_EXT_NEAR                    0x10
UMASK_L3_XI_SAMPLED_LATENCY_EXT_FAR                     0x20
UMASK_L3_XI_SAMPLED_LATENCY_ANY                         0xFF

EVENT_L3_XI_SAMPLED_LATENCY_REQUESTS                             0xAD CPMC
DEFAULT_OPTIONS_L3_XI_SAMPLED_LATENCY_REQUESTS                   EVENT_OPTION_SLICE=0x3
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_DRAM_NEAR                   0x01
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_DRAM_FAR                    0x02
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_NEAR_CACHE_FAR_CACHE_NEAR   0x04
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_NEAR_CACHE_FAR_CACHE_FAR    0x08
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_EXT_NEAR                    0x10
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_EXT_FAR                     0x20
UMASK_L3_XI_SAMPLED_LATENCY_REQUESTS_ANY                         0xFF

## Energy Events

EVENT_RAPL_CORE_ENERGY                    0x01 PWR0
UMASK_RAPL_CORE_ENERGY                    0x00

EVENT_RAPL_PKG_ENERGY                     0x02 PWR1
UMASK_RAPL_PKG_ENERGY                     0x00

## DataFabric Events

EVENT_DATA_BW_UMC0                           0x1F DFC
UMASK_DATA_BW_UMC0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC0_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC1                           0x5F DFC
UMASK_DATA_BW_UMC1_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC1_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC1_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC1_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC1_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC1_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC2                           0x9F DFC
UMASK_DATA_BW_UMC2_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC2_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC2_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC2_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC2_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC2_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC3                           0xDF DFC
UMASK_DATA_BW_UMC3_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC3_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC3_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC3_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC3_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC3_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC4                           0x11F DFC
UMASK_DATA_BW_UMC4_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC4_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC4_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC4_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC4_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC4_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC5                           0x15F DFC
UMASK_DATA_BW_UMC5_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC5_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC5_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC5_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC5_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC5_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC6                           0x19F DFC
UMASK_DATA_BW_UMC6_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC6_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC6_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC6_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC6_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC6_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC7                           0x1DF DFC
UMASK_DATA_BW_UMC7_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC7_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC7_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC7_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC7_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC7_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC8                           0x21F DFC
UMASK_DATA_BW_UMC8_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC8_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC8_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC8_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC8_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC8_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC9                           0x25F DFC
UMASK_DATA_BW_UMC9_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_UMC9_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_UMC9_ANY_READ                  0xFFE
UMASK_DATA_BW_UMC9_ANY_WRITE                 0xFFF
UMASK_DATA_BW_UMC9_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_UMC9_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_UMC10                          0x29F DFC
UMASK_DATA_BW_UMC10_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_UMC10_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_UMC10_ANY_READ                 0xFFE
UMASK_DATA_BW_UMC10_ANY_WRITE                0xFFF
UMASK_DATA_BW_UMC10_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_UMC10_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_UMC11                          0x2DF DFC
UMASK_DATA_BW_UMC11_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_UMC11_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_UMC11_ANY_READ                 0xFFE
UMASK_DATA_BW_UMC11_ANY_WRITE                0xFFF
UMASK_DATA_BW_UMC11_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_UMC11_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_CMP0                           0x31F DFC
UMASK_DATA_BW_CMP0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CMP0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CMP0_ANY_READ                  0xFFE
UMASK_DATA_BW_CMP0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CMP0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CMP0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CMP1                           0x35F DFC
UMASK_DATA_BW_CMP1_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CMP1_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CMP1_ANY_READ                  0xFFE
UMASK_DATA_BW_CMP1_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CMP1_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CMP1_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CMP2                           0x39F DFC
UMASK_DATA_BW_CMP2_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CMP2_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CMP2_ANY_READ                  0xFFE
UMASK_DATA_BW_CMP2_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CMP2_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CMP2_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CMP3                           0x3DF DFC
UMASK_DATA_BW_CMP3_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CMP3_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CMP3_ANY_READ                  0xFFE
UMASK_DATA_BW_CMP3_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CMP3_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CMP3_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM0                           0x41F DFC
UMASK_DATA_BW_CCM0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM0_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM1                           0x45F DFC
UMASK_DATA_BW_CCM1_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM1_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM1_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM1_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM1_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM1_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM2                           0x49F DFC
UMASK_DATA_BW_CCM2_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM2_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM2_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM2_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM2_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM2_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM3                           0x4DF DFC
UMASK_DATA_BW_CCM3_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM3_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM3_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM3_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM3_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM3_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM4                           0x51F DFC
UMASK_DATA_BW_CCM4_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM4_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM4_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM4_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM4_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM4_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM5                           0x55F DFC
UMASK_DATA_BW_CCM5_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM5_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM5_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM5_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM5_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM5_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM6                           0x59F DFC
UMASK_DATA_BW_CCM6_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM6_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM6_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM6_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM6_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM6_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM7                           0x5DF DFC
UMASK_DATA_BW_CCM7_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM7_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM7_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM7_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM7_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM7_SAME_DIE_WRITE            0x7FF


### Special events
### Depending on the processor and platform configuration, these can be used
### either to connect to two CCD instances (one interface per CCD), or to
### connect to a single CCD instance (both interfaces to the same CCD). In such
### cases, the Event Encoding for the DATA_BW PMC event for the first interface
### on that CCM is 0x1E

EVENT_DATA_BW_CCM0_SINGLE_CCD                           0x41E DFC
UMASK_DATA_BW_CCM0_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM0_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM0_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM0_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM0_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM0_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM1_SINGLE_CCD                           0x45E DFC
UMASK_DATA_BW_CCM1_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM1_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM1_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM1_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM1_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM1_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM2_SINGLE_CCD                           0x49E DFC
UMASK_DATA_BW_CCM2_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM2_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM2_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM2_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM2_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM2_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM3_SINGLE_CCD                           0x4DE DFC
UMASK_DATA_BW_CCM3_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM3_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM3_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM3_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM3_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM3_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM4_SINGLE_CCD                           0x51E DFC
UMASK_DATA_BW_CCM4_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM4_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM4_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM4_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM4_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM4_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM5_SINGLE_CCD                           0x55E DFC
UMASK_DATA_BW_CCM5_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM5_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM5_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM5_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM5_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM5_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM6_SINGLE_CCD                           0x59E DFC
UMASK_DATA_BW_CCM6_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM6_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM6_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM6_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM6_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM6_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CCM7_SINGLE_CCD                           0x5DE DFC
UMASK_DATA_BW_CCM7_SINGLE_CCD_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_CCM7_SINGLE_CCD_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_CCM7_SINGLE_CCD_ANY_READ                  0xFFE
UMASK_DATA_BW_CCM7_SINGLE_CCD_ANY_WRITE                 0xFFF
UMASK_DATA_BW_CCM7_SINGLE_CCD_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_CCM7_SINGLE_CCD_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_ACM0                           0x61F DFC
UMASK_DATA_BW_ACM0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_ACM0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_ACM0_ANY_READ                  0xFFE
UMASK_DATA_BW_ACM0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_ACM0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_ACM0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_ACM1                           0x65F DFC
UMASK_DATA_BW_ACM1_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_ACM1_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_ACM1_ANY_READ                  0xFFE
UMASK_DATA_BW_ACM1_ANY_WRITE                 0xFFF
UMASK_DATA_BW_ACM1_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_ACM1_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_ACM2                           0x69F DFC
UMASK_DATA_BW_ACM2_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_ACM2_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_ACM2_ANY_READ                  0xFFE
UMASK_DATA_BW_ACM2_ANY_WRITE                 0xFFF
UMASK_DATA_BW_ACM2_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_ACM2_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_ACM3                           0x6DF DFC
UMASK_DATA_BW_ACM3_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_ACM3_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_ACM3_ANY_READ                  0xFFE
UMASK_DATA_BW_ACM3_ANY_WRITE                 0xFFF
UMASK_DATA_BW_ACM3_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_ACM3_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_NCM_IOMMU0                     0x7DF DFC
UMASK_DATA_BW_NCM_IOMMU0_REMOTE_DIE_READ     0xBFE
UMASK_DATA_BW_NCM_IOMMU0_REMOTE_DIE_WRITE    0xBFF
UMASK_DATA_BW_NCM_IOMMU0_ANY_READ            0xFFE
UMASK_DATA_BW_NCM_IOMMU0_ANY_WRITE           0xFFF
UMASK_DATA_BW_NCM_IOMMU0_SAME_DIE_READ       0x7FE
UMASK_DATA_BW_NCM_IOMMU0_SAME_DIE_WRITE      0x7FF

EVENT_DATA_BW_IOM0_IOHUBM0                   0x81F DFC
UMASK_DATA_BW_IOM0_IOHUBM0_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM0_IOHUBM0_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM0_IOHUBM0_ANY_READ          0xFFE
UMASK_DATA_BW_IOM0_IOHUBM0_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM0_IOHUBM0_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM0_IOHUBM0_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM1_IOHUBM1                   0x85F DFC
UMASK_DATA_BW_IOM1_IOHUBM1_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM1_IOHUBM1_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM1_IOHUBM1_ANY_READ          0xFFE
UMASK_DATA_BW_IOM1_IOHUBM1_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM1_IOHUBM1_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM1_IOHUBM1_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM2_IOHUBM2                   0x89F DFC
UMASK_DATA_BW_IOM2_IOHUBM2_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM2_IOHUBM2_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM2_IOHUBM2_ANY_READ          0xFFE
UMASK_DATA_BW_IOM2_IOHUBM2_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM2_IOHUBM2_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM2_IOHUBM2_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM3_IOHUBM3                   0x8DF DFC
UMASK_DATA_BW_IOM3_IOHUBM3_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM3_IOHUBM3_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM3_IOHUBM3_ANY_READ          0xFFE
UMASK_DATA_BW_IOM3_IOHUBM3_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM3_IOHUBM3_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM3_IOHUBM3_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM4_IOHUBM4                   0x91F DFC
UMASK_DATA_BW_IOM4_IOHUBM4_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM4_IOHUBM4_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM4_IOHUBM4_ANY_READ          0xFFE
UMASK_DATA_BW_IOM4_IOHUBM4_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM4_IOHUBM4_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM4_IOHUBM4_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM5_IOHUBM5                   0x95F DFC
UMASK_DATA_BW_IOM5_IOHUBM5_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM5_IOHUBM5_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM5_IOHUBM5_ANY_READ          0xFFE
UMASK_DATA_BW_IOM5_IOHUBM5_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM5_IOHUBM5_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM5_IOHUBM5_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM6_IOHUBM6                   0x99F DFC
UMASK_DATA_BW_IOM6_IOHUBM6_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM6_IOHUBM6_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM6_IOHUBM6_ANY_READ          0xFFE
UMASK_DATA_BW_IOM6_IOHUBM6_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM6_IOHUBM6_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM6_IOHUBM6_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOM7_IOHUBM7                   0x9DF DFC
UMASK_DATA_BW_IOM7_IOHUBM7_REMOTE_DIE_READ   0xBFE
UMASK_DATA_BW_IOM7_IOHUBM7_REMOTE_DIE_WRITE  0xBFF
UMASK_DATA_BW_IOM7_IOHUBM7_ANY_READ          0xFFE
UMASK_DATA_BW_IOM7_IOHUBM7_ANY_WRITE         0xFFF
UMASK_DATA_BW_IOM7_IOHUBM7_SAME_DIE_READ     0x7FE
UMASK_DATA_BW_IOM7_IOHUBM7_SAME_DIE_WRITE    0x7FF

EVENT_DATA_BW_IOHUBS0                        0xA1F DFC
UMASK_DATA_BW_IOHUBS0_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS0_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS0_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS0_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS0_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS0_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS1                        0xA5F DFC
UMASK_DATA_BW_IOHUBS1_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS1_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS1_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS1_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS1_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS1_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS2                        0xA9F DFC
UMASK_DATA_BW_IOHUBS2_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS2_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS2_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS2_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS2_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS2_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS3                        0xADF DFC
UMASK_DATA_BW_IOHUBS3_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS3_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS3_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS3_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS3_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS3_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS4                        0xB1F DFC
UMASK_DATA_BW_IOHUBS4_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS4_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS4_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS4_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS4_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS4_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS5                        0xB5F DFC
UMASK_DATA_BW_IOHUBS5_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS5_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS5_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS5_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS5_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS5_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS6                        0xB9F DFC
UMASK_DATA_BW_IOHUBS6_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS6_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS6_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS6_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS6_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS6_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_IOHUBS7                        0xBDF DFC
UMASK_DATA_BW_IOHUBS7_REMOTE_DIE_READ        0xBFE
UMASK_DATA_BW_IOHUBS7_REMOTE_DIE_WRITE       0xBFF
UMASK_DATA_BW_IOHUBS7_ANY_READ               0xFFE
UMASK_DATA_BW_IOHUBS7_ANY_WRITE              0xFFF
UMASK_DATA_BW_IOHUBS7_SAME_DIE_READ          0x7FE
UMASK_DATA_BW_IOHUBS7_SAME_DIE_WRITE         0x7FF

EVENT_DATA_BW_ICNG0                          0xC1F DFC
UMASK_DATA_BW_ICNG0_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_ICNG0_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_ICNG0_ANY_READ                 0xFFE
UMASK_DATA_BW_ICNG0_ANY_WRITE                0xFFF
UMASK_DATA_BW_ICNG0_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_ICNG0_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_ICNG1                          0xC5F DFC
UMASK_DATA_BW_ICNG1_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_ICNG1_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_ICNG1_ANY_READ                 0xFFE
UMASK_DATA_BW_ICNG1_ANY_WRITE                0xFFF
UMASK_DATA_BW_ICNG1_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_ICNG1_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_ICNG2                          0xC9F DFC
UMASK_DATA_BW_ICNG2_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_ICNG2_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_ICNG2_ANY_READ                 0xFFE
UMASK_DATA_BW_ICNG2_ANY_WRITE                0xFFF
UMASK_DATA_BW_ICNG2_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_ICNG2_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_ICNG3                          0xCDF DFC
UMASK_DATA_BW_ICNG3_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_ICNG3_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_ICNG3_ANY_READ                 0xFFE
UMASK_DATA_BW_ICNG3_ANY_WRITE                0xFFF
UMASK_DATA_BW_ICNG3_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_ICNG3_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_PIE0                           0xD1F DFC
UMASK_DATA_BW_PIE0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PIE0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PIE0_ANY_READ                  0xFFE
UMASK_DATA_BW_PIE0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PIE0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PIE0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_CAKE_XGMI_0                    0xD5F DFC
UMASK_DATA_BW_CAKE_XGMI_0_INBOUND            0xF3F
UMASK_DATA_BW_CAKE_XGMI_0_OUTBOUND           0xF3E

EVENT_DATA_BW_CAKE_XGMI_1                    0xD9F DFC
UMASK_DATA_BW_CAKE_XGMI_1_INBOUND            0xF3F
UMASK_DATA_BW_CAKE_XGMI_1_OUTBOUND           0xF3E

EVENT_DATA_BW_CAKE_XGMI_2                    0xDDF DFC
UMASK_DATA_BW_CAKE_XGMI_2_INBOUND            0xF3F
UMASK_DATA_BW_CAKE_XGMI_2_OUTBOUND           0xF3E

EVENT_DATA_BW_CAKE_XGMI_3                    0xE1F DFC
UMASK_DATA_BW_CAKE_XGMI_3_INBOUND            0xF3F
UMASK_DATA_BW_CAKE_XGMI_3_OUTBOUND           0xF3E

EVENT_DATA_BW_CAKE_XGMI_4                    0xE5F DFC
UMASK_DATA_BW_CAKE_XGMI_4_INBOUND            0xF3F
UMASK_DATA_BW_CAKE_XGMI_4_OUTBOUND           0xF3E

EVENT_DATA_BW_CAKE_XGMI_5                    0xE9F DFC
UMASK_DATA_BW_CAKE_XGMI_5_INBOUND            0xF3F
UMASK_DATA_BW_CAKE_XGMI_5_OUTBOUND           0xF3E

EVENT_DATA_BW_CNLI0                          0xEDF DFC
UMASK_DATA_BW_CNLI0_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_CNLI0_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_CNLI0_ANY_READ                 0xFFE
UMASK_DATA_BW_CNLI0_ANY_WRITE                0xFFF
UMASK_DATA_BW_CNLI0_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_CNLI0_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_CNLI1                          0xF1F DFC
UMASK_DATA_BW_CNLI1_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_CNLI1_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_CNLI1_ANY_READ                 0xFFE
UMASK_DATA_BW_CNLI1_ANY_WRITE                0xFFF
UMASK_DATA_BW_CNLI1_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_CNLI1_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_CNLI2                          0xF5F DFC
UMASK_DATA_BW_CNLI2_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_CNLI2_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_CNLI2_ANY_READ                 0xFFE
UMASK_DATA_BW_CNLI2_ANY_WRITE                0xFFF
UMASK_DATA_BW_CNLI2_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_CNLI2_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_CNLI3                          0xF9F DFC
UMASK_DATA_BW_CNLI3_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_CNLI3_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_CNLI3_ANY_READ                 0xFFE
UMASK_DATA_BW_CNLI3_ANY_WRITE                0xFFF
UMASK_DATA_BW_CNLI3_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_CNLI3_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_PFX0                           0xFDF DFC
UMASK_DATA_BW_PFX0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX0_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX1                           0x101F DFC
UMASK_DATA_BW_PFX1_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX1_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX1_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX1_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX1_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX1_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX2                           0x105F DFC
UMASK_DATA_BW_PFX2_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX2_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX2_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX2_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX2_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX2_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX3                           0x109F DFC
UMASK_DATA_BW_PFX3_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX3_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX3_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX3_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX3_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX3_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX4                           0x10DF DFC
UMASK_DATA_BW_PFX4_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX4_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX4_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX4_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX4_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX4_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX5                           0x111F DFC
UMASK_DATA_BW_PFX5_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX5_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX5_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX5_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX5_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX5_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX6                           0x115F DFC
UMASK_DATA_BW_PFX6_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX6_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX6_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX6_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX6_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX6_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_PFX7                           0x119F DFC
UMASK_DATA_BW_PFX7_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_PFX7_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_PFX7_ANY_READ                  0xFFE
UMASK_DATA_BW_PFX7_ANY_WRITE                 0xFFF
UMASK_DATA_BW_PFX7_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_PFX7_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF0                           0x11DF DFC
UMASK_DATA_BW_SPF0_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF0_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF0_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF0_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF0_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF0_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF1                           0x121F DFC
UMASK_DATA_BW_SPF1_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF1_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF1_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF1_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF1_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF1_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF2                           0x125F DFC
UMASK_DATA_BW_SPF2_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF2_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF2_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF2_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF2_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF2_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF3                           0x129F DFC
UMASK_DATA_BW_SPF3_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF3_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF3_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF3_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF3_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF3_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF4                           0x12DF DFC
UMASK_DATA_BW_SPF4_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF4_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF4_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF4_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF4_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF4_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF5                           0x131F DFC
UMASK_DATA_BW_SPF5_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF5_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF5_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF5_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF5_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF5_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF6                           0x135F DFC
UMASK_DATA_BW_SPF6_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF6_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF6_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF6_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF6_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF6_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF7                           0x139F DFC
UMASK_DATA_BW_SPF7_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF7_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF7_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF7_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF7_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF7_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF8                           0x13DF DFC
UMASK_DATA_BW_SPF8_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF8_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF8_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF8_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF8_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF8_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF9                           0x141F DFC
UMASK_DATA_BW_SPF9_REMOTE_DIE_READ           0xBFE
UMASK_DATA_BW_SPF9_REMOTE_DIE_WRITE          0xBFF
UMASK_DATA_BW_SPF9_ANY_READ                  0xFFE
UMASK_DATA_BW_SPF9_ANY_WRITE                 0xFFF
UMASK_DATA_BW_SPF9_SAME_DIE_READ             0x7FE
UMASK_DATA_BW_SPF9_SAME_DIE_WRITE            0x7FF

EVENT_DATA_BW_SPF10                          0x145F DFC
UMASK_DATA_BW_SPF10_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_SPF10_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_SPF10_ANY_READ                 0xFFE
UMASK_DATA_BW_SPF10_ANY_WRITE                0xFFF
UMASK_DATA_BW_SPF10_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_SPF10_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_SPF11                          0x149F DFC
UMASK_DATA_BW_SPF11_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_SPF11_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_SPF11_ANY_READ                 0xFFE
UMASK_DATA_BW_SPF11_ANY_WRITE                0xFFF
UMASK_DATA_BW_SPF11_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_SPF11_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_SPF12                          0x14DF DFC
UMASK_DATA_BW_SPF12_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_SPF12_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_SPF12_ANY_READ                 0xFFE
UMASK_DATA_BW_SPF12_ANY_WRITE                0xFFF
UMASK_DATA_BW_SPF12_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_SPF12_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_SPF13                          0x151F DFC
UMASK_DATA_BW_SPF13_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_SPF13_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_SPF13_ANY_READ                 0xFFE
UMASK_DATA_BW_SPF13_ANY_WRITE                0xFFF
UMASK_DATA_BW_SPF13_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_SPF13_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_SPF14                          0x155F DFC
UMASK_DATA_BW_SPF14_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_SPF14_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_SPF14_ANY_READ                 0xFFE
UMASK_DATA_BW_SPF14_ANY_WRITE                0xFFF
UMASK_DATA_BW_SPF14_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_SPF14_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_SPF15                          0x159F DFC
UMASK_DATA_BW_SPF15_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_SPF15_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_SPF15_ANY_READ                 0xFFE
UMASK_DATA_BW_SPF15_ANY_WRITE                0xFFF
UMASK_DATA_BW_SPF15_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_SPF15_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX0                          0x15DF DFC
UMASK_DATA_BW_TCDX0_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX0_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX0_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX0_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX0_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX0_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX1                          0x161F DFC
UMASK_DATA_BW_TCDX1_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX1_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX1_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX1_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX1_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX1_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX2                          0x165F DFC
UMASK_DATA_BW_TCDX2_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX2_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX2_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX2_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX2_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX2_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX3                          0x169F DFC
UMASK_DATA_BW_TCDX3_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX3_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX3_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX3_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX3_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX3_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX4                          0x16DF DFC
UMASK_DATA_BW_TCDX4_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX4_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX4_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX4_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX4_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX4_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX5                          0x171F DFC
UMASK_DATA_BW_TCDX5_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX5_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX5_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX5_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX5_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX5_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX6                          0x175F DFC
UMASK_DATA_BW_TCDX6_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX6_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX6_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX6_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX6_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX6_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX7                          0x179F DFC
UMASK_DATA_BW_TCDX7_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX7_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX7_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX7_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX7_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX7_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX8                          0x17DF DFC
UMASK_DATA_BW_TCDX8_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX8_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX8_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX8_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX8_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX8_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX9                          0x181F DFC
UMASK_DATA_BW_TCDX9_REMOTE_DIE_READ          0xBFE
UMASK_DATA_BW_TCDX9_REMOTE_DIE_WRITE         0xBFF
UMASK_DATA_BW_TCDX9_ANY_READ                 0xFFE
UMASK_DATA_BW_TCDX9_ANY_WRITE                0xFFF
UMASK_DATA_BW_TCDX9_SAME_DIE_READ            0x7FE
UMASK_DATA_BW_TCDX9_SAME_DIE_WRITE           0x7FF

EVENT_DATA_BW_TCDX10                         0x185F DFC
UMASK_DATA_BW_TCDX10_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX10_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX10_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX10_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX10_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX10_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX11                         0x189F DFC
UMASK_DATA_BW_TCDX11_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX11_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX11_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX11_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX11_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX11_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX12                         0x18DF DFC
UMASK_DATA_BW_TCDX12_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX12_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX12_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX12_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX12_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX12_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX13                         0x191F DFC
UMASK_DATA_BW_TCDX13_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX13_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX13_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX13_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX13_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX13_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX14                         0x195F DFC
UMASK_DATA_BW_TCDX14_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX14_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX14_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX14_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX14_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX14_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX15                         0x199F DFC
UMASK_DATA_BW_TCDX15_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX15_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX15_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX15_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX15_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX15_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX16                         0x19DF DFC
UMASK_DATA_BW_TCDX16_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX16_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX16_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX16_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX16_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX16_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX17                         0x1A1F DFC
UMASK_DATA_BW_TCDX17_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX17_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX17_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX17_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX17_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX17_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX18                         0x1A5F DFC
UMASK_DATA_BW_TCDX18_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX18_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX18_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX18_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX18_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX18_SAME_DIE_WRITE          0x7FF

EVENT_DATA_BW_TCDX19                         0x1A9F DFC
UMASK_DATA_BW_TCDX19_REMOTE_DIE_READ         0xBFE
UMASK_DATA_BW_TCDX19_REMOTE_DIE_WRITE        0xBFF
UMASK_DATA_BW_TCDX19_ANY_READ                0xFFE
UMASK_DATA_BW_TCDX19_ANY_WRITE               0xFFF
UMASK_DATA_BW_TCDX19_SAME_DIE_READ           0x7FE
UMASK_DATA_BW_TCDX19_SAME_DIE_WRITE          0x7FF



## UMC Events

EVENT_UMC_CLOCKTICKS                    0x00 UMC
UMASK_UMC_CLOCKTICKS                    0x00


EVENT_ACT_CMD                          0x05 UMC
DEFAULT_OPTIONS_ACT_CMD_RD             EVENT_OPTION_MASK0=0x1
UMASK_ACT_CMD_RD                       0x00
DEFAULT_OPTIONS_ACT_CMD_WR             EVENT_OPTION_MASK0=0x2
UMASK_ACT_CMD_WR                       0x00
UMASK_ACT_CMD_ANY                      0x00

EVENT_PCHG_CMD                          0x06 UMC
DEFAULT_OPTIONS_PCHG_CMD_RD             EVENT_OPTION_MASK0=0x1
UMASK_PCHG_CMD_RD                       0x00
DEFAULT_OPTIONS_PCHG_CMD_WR             EVENT_OPTION_MASK0=0x2
UMASK_PCHG_CMD_WR                       0x00
UMASK_PCHG_CMD_ANY                      0x00

EVENT_CAS_CMD                          0x0A UMC
DEFAULT_OPTIONS_CAS_CMD_RD             EVENT_OPTION_MASK0=0x1
UMASK_CAS_CMD_RD                       0x00
DEFAULT_OPTIONS_CAS_CMD_WR             EVENT_OPTION_MASK0=0x2
UMASK_CAS_CMD_WR                       0x00
UMASK_CAS_CMD_ANY                      0x00

EVENT_DATASLOT_CLOCKTICKS                          0x12 UMC
DEFAULT_OPTIONS_DATASLOT_CLOCKTICKS_RD             EVENT_OPTION_MASK0=0x1
UMASK_DATASLOT_CLOCKTICKS_RD                       0x00
DEFAULT_OPTIONS_DATASLOT_CLOCKTICKS_WR             EVENT_OPTION_MASK0=0x2
UMASK_DATASLOT_CLOCKTICKS_WR                       0x00
UMASK_DATASLOT_CLOCKTICKS_ANY                      0x00
